@bitgo/public-types 6.84.0 → 6.86.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/dist/src/schema/transactionRequest/intents/accelerationIntent.d.ts +1 -0
  2. package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.d.ts +1 -0
  3. package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.d.ts +1 -0
  4. package/dist/src/schema/transactionRequest/intents/adaCancelIntent.d.ts +1 -0
  5. package/dist/src/schema/transactionRequest/intents/adaClaimTimelockIntent.d.ts +1 -0
  6. package/dist/src/schema/transactionRequest/intents/adaPaymentIntent.d.ts +1 -0
  7. package/dist/src/schema/transactionRequest/intents/adaPledgeIntent.d.ts +1 -0
  8. package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.d.ts +1 -0
  9. package/dist/src/schema/transactionRequest/intents/adaStakeIntent.d.ts +2 -0
  10. package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.d.ts +2 -0
  11. package/dist/src/schema/transactionRequest/intents/adaVoteDelegationIntent.d.ts +1 -0
  12. package/dist/src/schema/transactionRequest/intents/aptCustomTxIntent.d.ts +1 -0
  13. package/dist/src/schema/transactionRequest/intents/aptStakeIntent.d.ts +1 -0
  14. package/dist/src/schema/transactionRequest/intents/aptUnstakeIntent.d.ts +1 -0
  15. package/dist/src/schema/transactionRequest/intents/aptWithdrawStakeIntent.d.ts +1 -0
  16. package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.d.ts +1 -0
  17. package/dist/src/schema/transactionRequest/intents/atomStakeIntent.d.ts +1 -0
  18. package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.d.ts +1 -0
  19. package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.d.ts +1 -0
  20. package/dist/src/schema/transactionRequest/intents/babyCreateBtcDelegationIntent.d.ts +1 -0
  21. package/dist/src/schema/transactionRequest/intents/babyWithdrawRewardIntent.d.ts +1 -0
  22. package/dist/src/schema/transactionRequest/intents/baseBridgeFundsIntent.d.ts +1 -0
  23. package/dist/src/schema/transactionRequest/intents/baseGoStakeIntent.d.ts +1 -0
  24. package/dist/src/schema/transactionRequest/intents/baseIntent.d.ts +2 -0
  25. package/dist/src/schema/transactionRequest/intents/baseStakeIntent.d.ts +1 -0
  26. package/dist/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.d.ts +1 -0
  27. package/dist/src/schema/transactionRequest/intents/beraDelegateIntent.d.ts +1 -0
  28. package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.d.ts +1 -0
  29. package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.d.ts +1 -0
  30. package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.d.ts +1 -0
  31. package/dist/src/schema/transactionRequest/intents/bscWithdrawUndelegateIntent.d.ts +1 -0
  32. package/dist/src/schema/transactionRequest/intents/cantonAllocationAllocateIntent.d.ts +1 -0
  33. package/dist/src/schema/transactionRequest/intents/cantonAllocationOfferWithdrawnIntent.d.ts +1 -0
  34. package/dist/src/schema/transactionRequest/intents/cantonAllocationRejectIntent.d.ts +1 -0
  35. package/dist/src/schema/transactionRequest/intents/cantonAllocationRequestIntent.d.ts +1 -0
  36. package/dist/src/schema/transactionRequest/intents/cantonCommandIntent.d.ts +1 -0
  37. package/dist/src/schema/transactionRequest/intents/cantonCosignDelegationAcceptIntent.d.ts +1 -0
  38. package/dist/src/schema/transactionRequest/intents/cantonCosignDelegationProposalIntent.d.ts +1 -0
  39. package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingAcceptIntent.d.ts +1 -0
  40. package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingOfferIntent.d.ts +1 -0
  41. package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingRejectIntent.d.ts +1 -0
  42. package/dist/src/schema/transactionRequest/intents/cantonParticipantOnboardingRequestIntent.d.ts +1 -0
  43. package/dist/src/schema/transactionRequest/intents/cantonPaymentIntent.d.ts +1 -0
  44. package/dist/src/schema/transactionRequest/intents/cantonTransferAcceptIntent.d.ts +1 -0
  45. package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.d.ts +1 -0
  46. package/dist/src/schema/transactionRequest/intents/cantonTransferOfferWithdrawnIntent.d.ts +1 -0
  47. package/dist/src/schema/transactionRequest/intents/cantonTransferRejectIntent.d.ts +1 -0
  48. package/dist/src/schema/transactionRequest/intents/claimIntent.d.ts +1 -0
  49. package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.d.ts +1 -0
  50. package/dist/src/schema/transactionRequest/intents/coredaoClaimIntent.d.ts +1 -0
  51. package/dist/src/schema/transactionRequest/intents/coredaoDelegateIntent.d.ts +1 -0
  52. package/dist/src/schema/transactionRequest/intents/coredaoUndelegateIntent.d.ts +1 -0
  53. package/dist/src/schema/transactionRequest/intents/cosmosContractCallIntent.d.ts +1 -0
  54. package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.d.ts +1 -0
  55. package/dist/src/schema/transactionRequest/intents/cosmosStakeClaimRewardsIntent.d.ts +1 -0
  56. package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.d.ts +1 -0
  57. package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.d.ts +1 -0
  58. package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.d.ts +1 -0
  59. package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.d.ts +1 -0
  60. package/dist/src/schema/transactionRequest/intents/defiApproveIntent.d.ts +1 -0
  61. package/dist/src/schema/transactionRequest/intents/defiDepositIntent.d.ts +1 -0
  62. package/dist/src/schema/transactionRequest/intents/defiRedeemIntent.d.ts +1 -0
  63. package/dist/src/schema/transactionRequest/intents/defiWithdrawIntent.d.ts +1 -0
  64. package/dist/src/schema/transactionRequest/intents/delegateIntent.d.ts +1 -0
  65. package/dist/src/schema/transactionRequest/intents/disableTokenIntent.d.ts +1 -0
  66. package/dist/src/schema/transactionRequest/intents/dotBaseIntent.d.ts +1 -0
  67. package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.d.ts +1 -0
  68. package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.d.ts +1 -0
  69. package/dist/src/schema/transactionRequest/intents/dotStakingIntent.d.ts +1 -0
  70. package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.d.ts +1 -0
  71. package/dist/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.d.ts +1 -0
  72. package/dist/src/schema/transactionRequest/intents/enableTokenIntent.d.ts +1 -0
  73. package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.d.ts +1 -0
  74. package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.d.ts +1 -0
  75. package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +1 -0
  76. package/dist/src/schema/transactionRequest/intents/ethLikeStakeIntent.d.ts +2 -0
  77. package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.d.ts +1 -0
  78. package/dist/src/schema/transactionRequest/intents/ethStakingIntent.d.ts +1 -0
  79. package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.d.ts +1 -0
  80. package/dist/src/schema/transactionRequest/intents/feeAddressTransferIntent.d.ts +1 -0
  81. package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +1 -0
  82. package/dist/src/schema/transactionRequest/intents/goUnstakeIntent.d.ts +1 -0
  83. package/dist/src/schema/transactionRequest/intents/hbarUpdateAccountIntent.d.ts +1 -0
  84. package/dist/src/schema/transactionRequest/intents/hypeevmBridgeFundsIntent.d.ts +1 -0
  85. package/dist/src/schema/transactionRequest/intents/hypeevmEnableBridgingIntent.d.ts +1 -0
  86. package/dist/src/schema/transactionRequest/intents/hypeevmSpotTransferIntent.d.ts +1 -0
  87. package/dist/src/schema/transactionRequest/intents/icpPaymentIntent.d.ts +1 -0
  88. package/dist/src/schema/transactionRequest/intents/index.d.ts +3 -0
  89. package/dist/src/schema/transactionRequest/intents/index.js +3 -0
  90. package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
  91. package/dist/src/schema/transactionRequest/intents/intent.d.ts +165 -1
  92. package/dist/src/schema/transactionRequest/intents/intentType.d.ts +2 -0
  93. package/dist/src/schema/transactionRequest/intents/intentType.js +1 -0
  94. package/dist/src/schema/transactionRequest/intents/intentType.js.map +1 -1
  95. package/dist/src/schema/transactionRequest/intents/iotaBuildOptions.d.ts +1 -0
  96. package/dist/src/schema/transactionRequest/intents/iotaConsolidateIntent.d.ts +1 -0
  97. package/dist/src/schema/transactionRequest/intents/iotaPaymentIntent.d.ts +2 -0
  98. package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.d.ts +2 -0
  99. package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.d.ts +1 -0
  100. package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.d.ts +1 -0
  101. package/dist/src/schema/transactionRequest/intents/nearStakeIntent.d.ts +1 -0
  102. package/dist/src/schema/transactionRequest/intents/nearUnstakeIntent.d.ts +1 -0
  103. package/dist/src/schema/transactionRequest/intents/nearWithdrawIntent.d.ts +1 -0
  104. package/dist/src/schema/transactionRequest/intents/paymentIntent.d.ts +1 -0
  105. package/dist/src/schema/transactionRequest/intents/polyxBaseIntent.d.ts +1 -0
  106. package/dist/src/schema/transactionRequest/intents/polyxCreateAccountIntent.d.ts +1 -0
  107. package/dist/src/schema/transactionRequest/intents/polyxPreApproveAssetIntent.d.ts +1 -0
  108. package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.d.ts +1 -0
  109. package/dist/src/schema/transactionRequest/intents/polyxSwitchValidatorIntent.d.ts +1 -0
  110. package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.d.ts +1 -0
  111. package/dist/src/schema/transactionRequest/intents/polyxWithdrawIntent.d.ts +1 -0
  112. package/dist/src/schema/transactionRequest/intents/signMessageIntent.d.ts +1 -0
  113. package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.d.ts +1 -0
  114. package/dist/src/schema/transactionRequest/intents/solClaimIntent.d.ts +1 -0
  115. package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.d.ts +1 -0
  116. package/dist/src/schema/transactionRequest/intents/solConfidentialTransferIntent.d.ts +123 -0
  117. package/dist/src/schema/transactionRequest/intents/solConfidentialTransferIntent.js +49 -0
  118. package/dist/src/schema/transactionRequest/intents/solConfidentialTransferIntent.js.map +1 -0
  119. package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts +1 -0
  120. package/dist/src/schema/transactionRequest/intents/solCustomTxIntent.d.ts +1 -0
  121. package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.d.ts +1 -0
  122. package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +1 -0
  123. package/dist/src/schema/transactionRequest/intents/solGoUnstakeIntent.d.ts +1 -0
  124. package/dist/src/schema/transactionRequest/intents/solPaymentIntent.d.ts +4 -1
  125. package/dist/src/schema/transactionRequest/intents/solPaymentIntent.js +2 -0
  126. package/dist/src/schema/transactionRequest/intents/solPaymentIntent.js.map +1 -1
  127. package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +2 -0
  128. package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +2 -0
  129. package/dist/src/schema/transactionRequest/intents/solVersionMarker.d.ts +5 -0
  130. package/dist/src/schema/transactionRequest/intents/solVersionMarker.js +31 -0
  131. package/dist/src/schema/transactionRequest/intents/solVersionMarker.js.map +1 -0
  132. package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.d.ts +2 -0
  133. package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.js +2 -23
  134. package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.js.map +1 -1
  135. package/dist/src/schema/transactionRequest/intents/solVersionedTransactionData.d.ts +23 -0
  136. package/dist/src/schema/transactionRequest/intents/solVersionedTransactionData.js +52 -0
  137. package/dist/src/schema/transactionRequest/intents/solVersionedTransactionData.js.map +1 -0
  138. package/dist/src/schema/transactionRequest/intents/stacksRegisterForBondIntent.d.ts +1 -0
  139. package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.d.ts +1 -0
  140. package/dist/src/schema/transactionRequest/intents/stakeIntent.d.ts +1 -0
  141. package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.d.ts +1 -0
  142. package/dist/src/schema/transactionRequest/intents/stakeWithCallDataIntent.d.ts +1 -0
  143. package/dist/src/schema/transactionRequest/intents/substrateBaseIntent.d.ts +1 -0
  144. package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.d.ts +1 -0
  145. package/dist/src/schema/transactionRequest/intents/suiBuildOptions.d.ts +1 -0
  146. package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.d.ts +1 -0
  147. package/dist/src/schema/transactionRequest/intents/suiCustomTxIntent.d.ts +2 -0
  148. package/dist/src/schema/transactionRequest/intents/suiGoUnstakeIntent.d.ts +3 -0
  149. package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.d.ts +2 -0
  150. package/dist/src/schema/transactionRequest/intents/suiStakingIntent.d.ts +1 -0
  151. package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.d.ts +1 -0
  152. package/dist/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.d.ts +1 -0
  153. package/dist/src/schema/transactionRequest/intents/taoClaimRootIntent.d.ts +1 -0
  154. package/dist/src/schema/transactionRequest/intents/taoClaimRootIntent.js.map +1 -1
  155. package/dist/src/schema/transactionRequest/intents/taoStakeIntent.d.ts +2 -0
  156. package/dist/src/schema/transactionRequest/intents/taoStakeIntent.js.map +1 -1
  157. package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.d.ts +1 -0
  158. package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.js.map +1 -1
  159. package/dist/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.d.ts +1 -0
  160. package/dist/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.js.map +1 -1
  161. package/dist/src/schema/transactionRequest/intents/taoTransferStakeIntent.d.ts +1 -0
  162. package/dist/src/schema/transactionRequest/intents/taoTransferStakeIntent.js.map +1 -1
  163. package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.d.ts +2 -0
  164. package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.js.map +1 -1
  165. package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.d.ts +1 -0
  166. package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.d.ts +1 -0
  167. package/dist/src/schema/transactionRequest/intents/tonMultiNominatorDelegateIntent.d.ts +1 -0
  168. package/dist/src/schema/transactionRequest/intents/tonMultiNominatorUndelegateIntent.d.ts +1 -0
  169. package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.d.ts +1 -0
  170. package/dist/src/schema/transactionRequest/intents/tonSingleNominatorDelegateIntent.d.ts +1 -0
  171. package/dist/src/schema/transactionRequest/intents/tonSingleNominatorUndelegateIntent.d.ts +1 -0
  172. package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.d.ts +1 -0
  173. package/dist/src/schema/transactionRequest/intents/tonWhalesDelegateIntent.d.ts +1 -0
  174. package/dist/src/schema/transactionRequest/intents/tonWhalesUndelegateIntent.d.ts +1 -0
  175. package/dist/src/schema/transactionRequest/intents/transferTokenIntent.d.ts +1 -0
  176. package/dist/src/schema/transactionRequest/intents/trxClaimRewardsIntent.d.ts +1 -0
  177. package/dist/src/schema/transactionRequest/intents/trxCreateAccountIntent.d.ts +1 -0
  178. package/dist/src/schema/transactionRequest/intents/trxDelegateResourceIntent.d.ts +1 -0
  179. package/dist/src/schema/transactionRequest/intents/trxFreezeIntent.d.ts +1 -0
  180. package/dist/src/schema/transactionRequest/intents/trxUndelegateResourceIntent.d.ts +1 -0
  181. package/dist/src/schema/transactionRequest/intents/trxUnfreezeIntent.d.ts +1 -0
  182. package/dist/src/schema/transactionRequest/intents/trxVoteIntent.d.ts +1 -0
  183. package/dist/src/schema/transactionRequest/intents/trxWithdrawExpireUnfreezeIntent.d.ts +1 -0
  184. package/dist/src/schema/transactionRequest/intents/undelegateIntent.d.ts +1 -0
  185. package/dist/src/schema/transactionRequest/intents/unstakeIntent.d.ts +1 -0
  186. package/dist/src/schema/transactionRequest/intents/unwrapNativeIntent.d.ts +1 -0
  187. package/dist/src/schema/transactionRequest/intents/validatorRegistrationIntent.d.ts +1 -0
  188. package/dist/src/schema/transactionRequest/intents/vetDecreaseStakeIntent.d.ts +1 -0
  189. package/dist/src/schema/transactionRequest/intents/vetDelegateIntent.d.ts +1 -0
  190. package/dist/src/schema/transactionRequest/intents/vetIncreaseStakeIntent.d.ts +1 -0
  191. package/dist/src/schema/transactionRequest/intents/vetSignalExitIntent.d.ts +1 -0
  192. package/dist/src/schema/transactionRequest/intents/vetStakeClaimRewardsIntent.d.ts +1 -0
  193. package/dist/src/schema/transactionRequest/intents/vetStakingIntent.d.ts +1 -0
  194. package/dist/src/schema/transactionRequest/intents/vetUnstakingIntent.d.ts +2 -0
  195. package/dist/src/schema/transactionRequest/intents/vetValidatorRegistrationIntent.d.ts +1 -0
  196. package/dist/src/schema/transactionRequest/intents/vetWithdrawStakeIntent.d.ts +1 -0
  197. package/dist/src/schema/transactionRequest/intents/voteDelegationIntent.d.ts +1 -0
  198. package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.d.ts +1 -0
  199. package/dist/src/schema/transactionRequest/intents/walrusStakingIntent.d.ts +1 -0
  200. package/dist/src/schema/transactionRequest/intents/walrusUndelegateIntent.d.ts +1 -0
  201. package/dist/src/schema/transactionRequest/intents/walrusWithdrawIntent.d.ts +1 -0
  202. package/dist/src/schema/transactionRequest/intents/withdrawIntent.d.ts +1 -0
  203. package/dist/src/schema/transactionRequest/intents/withdrawIntent.js.map +1 -1
  204. package/dist/src/schema/transactionRequest/intents/wrapApproveIntent.d.ts +1 -0
  205. package/dist/src/schema/transactionRequest/intents/wrapNativeIntent.d.ts +1 -0
  206. package/dist/src/schema/transactionRequest/intents/xdcStakingIntent.d.ts +2 -0
  207. package/dist/src/schema/transactionRequest/intents/xdcUnstakingIntent.d.ts +2 -0
  208. package/package.json +1 -1
  209. package/src/schema/transactionRequest/intents/index.ts +3 -0
  210. package/src/schema/transactionRequest/intents/intentType.ts +1 -0
  211. package/src/schema/transactionRequest/intents/solConfidentialTransferIntent.ts +42 -0
  212. package/src/schema/transactionRequest/intents/solPaymentIntent.ts +2 -0
  213. package/src/schema/transactionRequest/intents/solVersionMarker.ts +15 -0
  214. package/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.ts +2 -41
  215. package/src/schema/transactionRequest/intents/solVersionedTransactionData.ts +55 -0
  216. package/src/schema/transactionRequest/intents/taoClaimRootIntent.ts +9 -0
  217. package/src/schema/transactionRequest/intents/taoStakeIntent.ts +6 -0
  218. package/src/schema/transactionRequest/intents/taoStakingBaseIntent.ts +12 -0
  219. package/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.ts +25 -0
  220. package/src/schema/transactionRequest/intents/taoTransferStakeIntent.ts +33 -0
  221. package/src/schema/transactionRequest/intents/taoUnstakeIntent.ts +11 -0
  222. package/src/schema/transactionRequest/intents/withdrawIntent.ts +4 -0
@@ -32,6 +32,7 @@ export declare const UnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Intersec
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const UnwrapNativeIntent: t.IntersectionC<[t.IntersectionC<[t.Typ
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const ValidatorRegistrationIntent: t.IntersectionC<[t.Intersectio
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const VetDecreaseStakeIntent: t.IntersectionC<[t.IntersectionC<[t
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const VetDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Inte
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const VetIncreaseStakeIntent: t.IntersectionC<[t.IntersectionC<[t
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const VetSignalExitIntent: t.IntersectionC<[t.IntersectionC<[t.In
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const VetStakeClaimRewardsIntent: t.IntersectionC<[t.Intersection
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const VetStakingIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const VetExitDelegationIntent: t.IntersectionC<[t.IntersectionC<[
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -129,6 +130,7 @@ export declare const VetBurnNFTIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
129
130
  contractCall: t.LiteralC<"contractCall">;
130
131
  deactivate: t.LiteralC<"deactivate">;
131
132
  customTx: t.LiteralC<"customTx">;
133
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
132
134
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
133
135
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
134
136
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const VetValidatorRegistrationIntent: t.IntersectionC<[t.Intersec
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const VetWithdrawStakeIntent: t.IntersectionC<[t.IntersectionC<[t
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const VoteDelegationIntent: t.IntersectionC<[t.IntersectionC<[t.I
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const WalletRecoveryIntent: t.IntersectionC<[t.IntersectionC<[t.T
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const WalrusStakingIntent: t.IntersectionC<[t.IntersectionC<[t.In
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const WalrusUndelegateIntent: t.IntersectionC<[t.IntersectionC<[t
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const WalrusWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.I
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const WithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -1 +1 @@
1
- {"version":3,"file":"withdrawIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/withdrawIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,qCAAkC;AAClC,0CAA0C;AAE7B,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QAEL,UAAU,EAAE,wBAAW,CAAC,KAAK;KAC9B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,MAAM,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;KACzB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"withdrawIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/withdrawIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,qCAAkC;AAClC,0CAA0C;AAE7B,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QAEL,UAAU,EAAE,wBAAW,CAAC,KAAK;KAC9B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QAKR,MAAM,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;KACzB,CAAC;CACH,CAAC,CAAC"}
@@ -32,6 +32,7 @@ export declare const WrapApproveIntent: t.IntersectionC<[t.IntersectionC<[t.Type
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const WrapNativeIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const XdcUploadKycIntent: t.IntersectionC<[t.IntersectionC<[t.Int
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -128,6 +129,7 @@ export declare const XdcProposeIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
128
129
  contractCall: t.LiteralC<"contractCall">;
129
130
  deactivate: t.LiteralC<"deactivate">;
130
131
  customTx: t.LiteralC<"customTx">;
132
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
131
133
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
132
134
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
133
135
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -32,6 +32,7 @@ export declare const XdcResignIntent: t.IntersectionC<[t.IntersectionC<[t.Inters
32
32
  contractCall: t.LiteralC<"contractCall">;
33
33
  deactivate: t.LiteralC<"deactivate">;
34
34
  customTx: t.LiteralC<"customTx">;
35
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
35
36
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
36
37
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
37
38
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
@@ -128,6 +129,7 @@ export declare const XdcWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.Inte
128
129
  contractCall: t.LiteralC<"contractCall">;
129
130
  deactivate: t.LiteralC<"deactivate">;
130
131
  customTx: t.LiteralC<"customTx">;
132
+ confidentialTransfer: t.LiteralC<"confidentialTransfer">;
131
133
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
132
134
  stakeWithCallData: t.LiteralC<"stakeWithCallData">;
133
135
  unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "6.84.0",
3
+ "version": "6.86.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -134,6 +134,7 @@ export * from "./recipientEntry";
134
134
  export * from "./signMessageIntent";
135
135
  export * from "./solAuthorizeIntent";
136
136
  export * from "./solBuildOptions";
137
+ export * from "./solConfidentialTransferIntent";
137
138
  export * from "./solClaimIntent";
138
139
  export * from "./solCloseAssociatedTokenAccountIntent";
139
140
  export * from "./solConsolidateIntent";
@@ -142,11 +143,13 @@ export * from "./solCustomTxIntent";
142
143
  export * from "./solDeactivateIntent";
143
144
  export * from "./solDelegateIntent";
144
145
  export * from "./solGoUnstakeIntent";
146
+ export * from "./solVersionMarker";
145
147
  export * from "./solPaymentIntent";
146
148
  export * from "./solStakeIntent";
147
149
  export * from "./solStakingType";
148
150
  export * from "./solUnstakeIntent";
149
151
  export * from "./solVersionedCustomTxIntent";
152
+ export * from "./solVersionedTransactionData";
150
153
  export * from "./stacksRegisterForBondIntent";
151
154
  export * from "./stakeClaimRewardsIntent";
152
155
  export * from "./stakeIntent";
@@ -37,6 +37,7 @@ export const intentTypes = {
37
37
  contractCall: t.literal("contractCall"),
38
38
  deactivate: t.literal("deactivate"),
39
39
  customTx: t.literal("customTx"),
40
+ confidentialTransfer: t.literal("confidentialTransfer"),
40
41
  closeAssociatedTokenAccount: t.literal("closeAssociatedTokenAccount"),
41
42
  stakeWithCallData: t.literal("stakeWithCallData"),
42
43
  unstakeWithCallData: t.literal("unstakeWithCallData"),
@@ -0,0 +1,42 @@
1
+ import * as t from "io-ts";
2
+ import { BaseIntent } from "./baseIntent";
3
+ import { SolBuildOptions } from "./solBuildOptions";
4
+ import { SolVersionedTransactionData } from "./solVersionedTransactionData";
5
+ import { intentTypes } from "./intentType";
6
+
7
+ /**
8
+ * Structured Solana Token-2022 confidential-transfer intent (Phase 1a).
9
+ *
10
+ * Clients supply structured fields (tokenId, recipient, amount); the platform
11
+ * validates the SDK-built envelope against those fields before signing (interim
12
+ * carrier while server-side proof generation is wired) and will construct the
13
+ * instructions server-side once that integration lands.
14
+ *
15
+ * @title SOL Confidential Transfer Intent
16
+ */
17
+ export const SolConfidentialTransferIntent = t.intersection([
18
+ BaseIntent,
19
+ SolBuildOptions,
20
+ t.type({
21
+ /** Must be "confidentialTransfer". */
22
+ intentType: intentTypes.confidentialTransfer,
23
+ solConfidentialTransferData: t.intersection([
24
+ t.type({
25
+ /** The Token-2022 mint (confidential token) to transfer. */
26
+ tokenId: t.string,
27
+ /** The recipient address (ATA of the recipient for the token). */
28
+ recipient: t.string,
29
+ /** The amount to transfer, as a decimal string in the token's base units. */
30
+ amount: t.string,
31
+ }),
32
+ t.partial({
33
+ /** SDK-built confidential-transfer envelope (interim carrier; server-validated). */
34
+ solVersionedTransactionData: SolVersionedTransactionData,
35
+ }),
36
+ ]),
37
+ }),
38
+ ]);
39
+
40
+ export type SolConfidentialTransferIntent = t.TypeOf<
41
+ typeof SolConfidentialTransferIntent
42
+ >;
@@ -1,6 +1,7 @@
1
1
  import * as t from "io-ts";
2
2
  import { PaymentIntent } from "./paymentIntent";
3
3
  import { SolBuildOptions } from "./solBuildOptions";
4
+ import { SolVersionMarker } from "./solVersionMarker";
4
5
 
5
6
  /**
6
7
  * Transfer native SOL or SPL tokens to one or more recipients on Solana. For token transfers, the recipient amount symbol must use the "sol:tokenName" format (e.g. "sol:usdc"). Native SOL recipients must not be Associated Token Account (ATA) addresses.
@@ -10,6 +11,7 @@ import { SolBuildOptions } from "./solBuildOptions";
10
11
  export const SolPaymentIntent = t.intersection([
11
12
  PaymentIntent,
12
13
  SolBuildOptions,
14
+ SolVersionMarker,
13
15
  ]);
14
16
 
15
17
  export type SolPaymentIntent = t.TypeOf<typeof SolPaymentIntent>;
@@ -0,0 +1,15 @@
1
+ import * as t from "io-ts";
2
+
3
+ /**
4
+ * Optional wire-version marker (0 = v0, 1 = v1 SIMD-0296/0385) for structured Solana intents.
5
+ *
6
+ * When `version: 1`, the platform builds the transaction SERVER-SIDE from the
7
+ * structured intent fields via the SDK v1 serializer — clients supply fields
8
+ * (recipients, amounts), never instructions. `version: 0` (or absent) selects
9
+ * the v0 path. Absent-by-default keeps existing clients backward compatible.
10
+ */
11
+ export const SolVersionMarker = t.partial({
12
+ version: t.union([t.literal(0), t.literal(1)]),
13
+ });
14
+
15
+ export type SolVersionMarker = t.TypeOf<typeof SolVersionMarker>;
@@ -1,5 +1,6 @@
1
1
  import * as t from "io-ts";
2
2
  import { SolBuildOptions } from "./solBuildOptions";
3
+ import { SolVersionedTransactionData } from "./solVersionedTransactionData";
3
4
  import { BaseIntent } from "./baseIntent";
4
5
  import { intentTypes } from "./intentType";
5
6
 
@@ -15,47 +16,7 @@ export const SolVersionedCustomTxIntent = t.intersection([
15
16
  /** Must be "customTx". Presence of solVersionedTransactionData distinguishes this from legacy SolCustomTxIntent at runtime. */
16
17
  intentType: intentTypes.customTx,
17
18
  /** Versioned transaction data in Solana v0 message format. Presence of this field indicates a versioned transaction. */
18
- solVersionedTransactionData: t.intersection([
19
- t.type({
20
- /** The program instructions for this versioned transaction. */
21
- versionedInstructions: t.array(
22
- t.type({
23
- /** Index into the staticAccountKeys array identifying the program to invoke. */
24
- programIdIndex: t.number,
25
- /** Indexes into the combined account keys (static + lookup) for this instruction. */
26
- accountKeyIndexes: t.array(t.number),
27
- /** Instruction data encoded as base58 or hex. */
28
- data: t.string,
29
- }),
30
- ),
31
- /** Address lookup tables to extend the number of accounts beyond the static limit. Required when using account lookup tables in a v0 transaction. */
32
- addressLookupTables: t.array(
33
- t.type({
34
- /** The on-chain address of the lookup table account. */
35
- accountKey: t.string,
36
- /** Indexes of writable accounts in the lookup table. */
37
- writableIndexes: t.array(t.number),
38
- /** Indexes of read-only accounts in the lookup table. */
39
- readonlyIndexes: t.array(t.number),
40
- }),
41
- ),
42
- /** The static account keys referenced by this transaction. */
43
- staticAccountKeys: t.array(t.string),
44
- /** Solana message header specifying the number of required signers and read-only accounts. */
45
- messageHeader: t.type({
46
- /** Number of signatures required for this transaction. */
47
- numRequiredSignatures: t.number,
48
- /** Number of read-only accounts that require signatures. */
49
- numReadonlySignedAccounts: t.number,
50
- /** Number of read-only accounts that do not require signatures. */
51
- numReadonlyUnsignedAccounts: t.number,
52
- }),
53
- }),
54
- t.partial({
55
- /** Optional recent blockhash; when provided the platform uses it instead of fetching a durable nonce. */
56
- recentBlockhash: t.string,
57
- }),
58
- ]),
19
+ solVersionedTransactionData: SolVersionedTransactionData,
59
20
  }),
60
21
  ]);
61
22
 
@@ -0,0 +1,55 @@
1
+ import * as t from "io-ts";
2
+
3
+ /**
4
+ * Solana versioned-transaction envelope carried by versioned custom intents and
5
+ * (as an interim, server-validated carrier) structured confidential-transfer
6
+ * intents. Client-supplied for customTx; for structured v1 intents the platform
7
+ * builds the envelope server-side and the client never supplies instructions.
8
+ */
9
+ export const SolVersionedTransactionData = t.intersection([
10
+ t.type({
11
+ /** The program instructions for this versioned transaction. */
12
+ versionedInstructions: t.array(
13
+ t.type({
14
+ /** Index into the staticAccountKeys array identifying the program to invoke. */
15
+ programIdIndex: t.number,
16
+ /** Indexes into the combined account keys (static + lookup) for this instruction. */
17
+ accountKeyIndexes: t.array(t.number),
18
+ /** Instruction data encoded as base58 or hex. */
19
+ data: t.string,
20
+ }),
21
+ ),
22
+ /** Address lookup tables to extend the number of accounts beyond the static limit. Required when using account lookup tables in a v0 transaction. */
23
+ addressLookupTables: t.array(
24
+ t.type({
25
+ /** The on-chain address of the lookup table account. */
26
+ accountKey: t.string,
27
+ /** Indexes of writable accounts in the lookup table. */
28
+ writableIndexes: t.array(t.number),
29
+ /** Indexes of read-only accounts in the lookup table. */
30
+ readonlyIndexes: t.array(t.number),
31
+ }),
32
+ ),
33
+ /** The static account keys referenced by this transaction. */
34
+ staticAccountKeys: t.array(t.string),
35
+ /** Solana message header specifying the number of required signers and read-only accounts. */
36
+ messageHeader: t.type({
37
+ /** Number of signatures required for this transaction. */
38
+ numRequiredSignatures: t.number,
39
+ /** Number of read-only accounts that require signatures. */
40
+ numReadonlySignedAccounts: t.number,
41
+ /** Number of read-only accounts that do not require signatures. */
42
+ numReadonlyUnsignedAccounts: t.number,
43
+ }),
44
+ }),
45
+ t.partial({
46
+ /** Optional recent blockhash; when provided the platform uses it instead of fetching a durable nonce. */
47
+ recentBlockhash: t.string,
48
+ /** Wire version: 0 (v0) or 1 (v1, SIMD-0296/0385). Absent means v0. */
49
+ version: t.union([t.literal(0), t.literal(1)]),
50
+ }),
51
+ ]);
52
+
53
+ export type SolVersionedTransactionData = t.TypeOf<
54
+ typeof SolVersionedTransactionData
55
+ >;
@@ -15,8 +15,17 @@ export const TaoClaimRootIntent = t.intersection([
15
15
  BaseStakeIntent,
16
16
  SubstrateAccountBaseBuildOptions,
17
17
  t.type({
18
+ /** Must be "stakeClaimRewards". */
18
19
  intentType: intentTypes.stakeClaimRewards,
20
+ /**
21
+ * SS58-encoded public key of the hotkey whose accrued root-network basket
22
+ * rewards are being claimed.
23
+ */
19
24
  hotkey: t.string,
25
+ /**
26
+ * Must be "0" — the root network identifier. The underlying
27
+ * claimRootWithHotkey extrinsic only exists for the root network.
28
+ */
20
29
  netuid: t.string,
21
30
  }),
22
31
  ]);
@@ -3,12 +3,18 @@ import { StakeIntent } from "./stakeIntent";
3
3
  import { TaoStakingBaseIntent } from "./taoStakingBaseIntent";
4
4
 
5
5
  /**
6
+ * Stake TAO from the wallet's root address (coldkey) to a hotkey (validator)
7
+ * on a specified Bittensor subnet. Corresponds to the on-chain `add_stake`
8
+ * extrinsic. Requires a staking request ID from the BitGo staking service,
9
+ * and requires the enterprise to have staking permissions.
10
+ *
6
11
  * @title Tao Stake Intent
7
12
  */
8
13
  export const TaoStakeIntent = t.intersection([
9
14
  StakeIntent,
10
15
  TaoStakingBaseIntent,
11
16
  t.type({
17
+ /** Amount to stake, in base units (RAO for native TAO). */
12
18
  amountStaked: t.string,
13
19
  }),
14
20
  ]);
@@ -3,13 +3,25 @@ import { BaseStakeIntent } from "./baseStakeIntent";
3
3
  import { SubstrateAccountBaseBuildOptions } from "./substrateAccountBaseBuildOptions";
4
4
 
5
5
  /**
6
+ * Base fields shared by the TAO staking intents (`stake` and `claim`): the
7
+ * hotkey (validator) and Bittensor subnet to operate on. All TAO staking
8
+ * operations are submitted by the wallet's root address (coldkey).
9
+ *
6
10
  * @title Tao Staking Base Intent
7
11
  */
8
12
  export const TaoStakingBaseIntent = t.intersection([
9
13
  BaseStakeIntent,
10
14
  SubstrateAccountBaseBuildOptions,
11
15
  t.type({
16
+ /**
17
+ * SS58-encoded public key of the hotkey (validator) to stake to or
18
+ * remove stake from on the specified subnet.
19
+ */
12
20
  hotkey: t.string,
21
+ /**
22
+ * Numeric identifier of the Bittensor subnet to stake on or remove stake
23
+ * from, as a string. Use "0" for the root network.
24
+ */
13
25
  netuid: t.string,
14
26
  }),
15
27
  ]);
@@ -4,17 +4,42 @@ import { SubstrateAccountBaseBuildOptions } from "./substrateAccountBaseBuildOpt
4
4
  import { intentTypes } from "./intentType";
5
5
 
6
6
  /**
7
+ * Move staked alpha tokens from one hotkey (validator) or subnet to another
8
+ * within the same wallet coldkey — no unstaking and re-staking required.
9
+ * Corresponds to the on-chain `move_stake` extrinsic.
10
+ *
7
11
  * @title Tao Switch Validator Intent
8
12
  */
9
13
  export const TaoSwitchValidatorIntent = t.intersection([
10
14
  BaseStakeIntent,
11
15
  SubstrateAccountBaseBuildOptions,
12
16
  t.type({
17
+ /** Must be "switchValidator". */
13
18
  intentType: intentTypes.switchValidator,
19
+ /**
20
+ * SS58-encoded public key of the source hotkey (validator) currently
21
+ * holding the stake.
22
+ */
14
23
  originHotkey: t.string,
24
+ /**
25
+ * SS58-encoded public key of the target hotkey (validator) to move the
26
+ * stake to.
27
+ */
15
28
  destinationHotkey: t.string,
29
+ /**
30
+ * Numeric identifier of the source subnet where the stake currently
31
+ * resides, as a string.
32
+ */
16
33
  originNetuid: t.string,
34
+ /**
35
+ * Numeric identifier of the destination subnet to move the stake to,
36
+ * as a string. May equal originNetuid when changing hotkeys only.
37
+ */
17
38
  destinationNetuid: t.string,
39
+ /**
40
+ * Amount of alpha tokens to move, in raw alpha units. Must not exceed
41
+ * the staked balance for originHotkey on originNetuid.
42
+ */
18
43
  alphaAmount: t.string,
19
44
  }),
20
45
  ]);
@@ -5,18 +5,51 @@ import { intentTypes } from "./intentType";
5
5
  import { optionalString } from "../../../utils";
6
6
 
7
7
  /**
8
+ * Transfer staked alpha tokens from this wallet's coldkey to another coldkey
9
+ * on a specified subnet. This cross-coldkey operation transfers ownership of
10
+ * the stake without unstaking; it is distinct from switchValidator, which
11
+ * moves stake within the same coldkey. Corresponds to the on-chain
12
+ * `transfer_stake` extrinsic.
13
+ *
8
14
  * @title Tao Transfer Stake Intent
9
15
  */
10
16
  export const TaoTransferStakeIntent = t.intersection([
11
17
  BaseStakeIntent,
12
18
  SubstrateAccountBaseBuildOptions,
13
19
  t.type({
20
+ /** Must be "transferStake". */
14
21
  intentType: intentTypes.transferStake,
22
+ /**
23
+ * Optional SS58-encoded coldkey address within this wallet to send the
24
+ * stake from. Defaults to the wallet's root address when omitted. Must
25
+ * be a wallet-owned address; otherwise the request fails with an
26
+ * AddressNotFound error.
27
+ */
15
28
  originColdkey: optionalString,
29
+ /**
30
+ * SS58-encoded coldkey address of the recipient who will own the stake
31
+ * after the transfer. May belong to any wallet.
32
+ */
16
33
  destinationColdkey: t.string,
34
+ /**
35
+ * SS58-encoded public key of the hotkey (validator) whose stake position
36
+ * is being transferred. Must have an active stake on originNetuid.
37
+ */
17
38
  hotkey: t.string,
39
+ /**
40
+ * Numeric identifier of the source subnet where the stake currently
41
+ * resides, as a string.
42
+ */
18
43
  originNetuid: t.string,
44
+ /**
45
+ * Numeric identifier of the destination subnet where the transferred
46
+ * stake will be registered, as a string. May differ from originNetuid.
47
+ */
19
48
  destinationNetuid: t.string,
49
+ /**
50
+ * Amount of alpha tokens to transfer, in raw alpha units. Must not
51
+ * exceed the staked alpha balance for hotkey on originNetuid.
52
+ */
20
53
  alphaAmount: t.string,
21
54
  }),
22
55
  ]);