@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.
- package/dist/src/schema/transactionRequest/intents/accelerationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/adaCancelIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/adaClaimTimelockIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/adaPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/adaPledgeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/adaVoteDelegationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/aptCustomTxIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/aptStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/aptUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/aptWithdrawStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/babyCreateBtcDelegationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/babyWithdrawRewardIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/baseBridgeFundsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/baseGoStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/baseIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/baseStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/beraDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/bscWithdrawUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonAllocationAllocateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonAllocationOfferWithdrawnIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonAllocationRejectIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonAllocationRequestIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonCommandIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonCosignDelegationAcceptIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonCosignDelegationProposalIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingAcceptIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingOfferIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingRejectIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonParticipantOnboardingRequestIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcceptIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferOfferWithdrawnIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferRejectIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/claimIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/coredaoClaimIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/coredaoDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/coredaoUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosContractCallIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosStakeClaimRewardsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/defiApproveIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/defiDepositIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/defiRedeemIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/defiWithdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/delegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/disableTokenIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotBaseIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotStakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/enableTokenIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethLikeStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethStakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/feeAddressTransferIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/goUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/hbarUpdateAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/hypeevmBridgeFundsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/hypeevmEnableBridgingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/hypeevmSpotTransferIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/icpPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/index.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/index.js +3 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +165 -1
- package/dist/src/schema/transactionRequest/intents/intentType.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/intentType.js +1 -0
- package/dist/src/schema/transactionRequest/intents/intentType.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/iotaBuildOptions.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/iotaConsolidateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/iotaPaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/nearStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/nearUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/nearWithdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/paymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxBaseIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxCreateAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxPreApproveAssetIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxSwitchValidatorIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxWithdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/signMessageIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solClaimIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solConfidentialTransferIntent.d.ts +123 -0
- package/dist/src/schema/transactionRequest/intents/solConfidentialTransferIntent.js +49 -0
- package/dist/src/schema/transactionRequest/intents/solConfidentialTransferIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solCustomTxIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solGoUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solPaymentIntent.d.ts +4 -1
- package/dist/src/schema/transactionRequest/intents/solPaymentIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/solPaymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solVersionMarker.d.ts +5 -0
- package/dist/src/schema/transactionRequest/intents/solVersionMarker.js +31 -0
- package/dist/src/schema/transactionRequest/intents/solVersionMarker.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.js +2 -23
- package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solVersionedTransactionData.d.ts +23 -0
- package/dist/src/schema/transactionRequest/intents/solVersionedTransactionData.js +52 -0
- package/dist/src/schema/transactionRequest/intents/solVersionedTransactionData.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/stacksRegisterForBondIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/stakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/stakeWithCallDataIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/substrateBaseIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/suiBuildOptions.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/suiCustomTxIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/suiGoUnstakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/suiStakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/taoClaimRootIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/taoClaimRootIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/taoStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/taoStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/taoTransferStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/taoTransferStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonMultiNominatorDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonMultiNominatorUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonSingleNominatorDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonSingleNominatorUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonWhalesDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonWhalesUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/trxClaimRewardsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/trxCreateAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/trxDelegateResourceIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/trxFreezeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/trxUndelegateResourceIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/trxUnfreezeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/trxVoteIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/trxWithdrawExpireUnfreezeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/undelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/unstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/unwrapNativeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/validatorRegistrationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetDecreaseStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetIncreaseStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetSignalExitIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetStakeClaimRewardsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetStakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetUnstakingIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/vetValidatorRegistrationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetWithdrawStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/voteDelegationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/walrusStakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/walrusUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/walrusWithdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/withdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/withdrawIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/wrapApproveIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/wrapNativeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/xdcStakingIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/xdcUnstakingIntent.d.ts +2 -0
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/index.ts +3 -0
- package/src/schema/transactionRequest/intents/intentType.ts +1 -0
- package/src/schema/transactionRequest/intents/solConfidentialTransferIntent.ts +42 -0
- package/src/schema/transactionRequest/intents/solPaymentIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/solVersionMarker.ts +15 -0
- package/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.ts +2 -41
- package/src/schema/transactionRequest/intents/solVersionedTransactionData.ts +55 -0
- package/src/schema/transactionRequest/intents/taoClaimRootIntent.ts +9 -0
- package/src/schema/transactionRequest/intents/taoStakeIntent.ts +6 -0
- package/src/schema/transactionRequest/intents/taoStakingBaseIntent.ts +12 -0
- package/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.ts +25 -0
- package/src/schema/transactionRequest/intents/taoTransferStakeIntent.ts +33 -0
- package/src/schema/transactionRequest/intents/taoUnstakeIntent.ts +11 -0
- 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;
|
|
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
|
@@ -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:
|
|
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
|
]);
|