@bitgo/public-types 6.85.0 → 6.87.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/icpPaymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/icpSignatures.js.map +1 -1
- 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/taoStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/taoTransferStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.d.ts +2 -0
- 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/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/icpPaymentIntent.ts +11 -0
- package/src/schema/transactionRequest/intents/icpSignatures.ts +14 -0
- 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
|
@@ -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">;
|
|
@@ -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
|
@@ -3,11 +3,22 @@ import { PaymentIntent } from "./paymentIntent";
|
|
|
3
3
|
import { optionalString } from "../../../utils";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
+
* Transfer ICP tokens to a single recipient on the Internet Computer network.
|
|
7
|
+
* The wallet's root account identifier is the sender. Supports an optional
|
|
8
|
+
* numeric memo for sub-address routing (e.g. exchange deposit tags). Only one
|
|
9
|
+
* recipient is supported per transaction.
|
|
10
|
+
*
|
|
6
11
|
* @title ICP Payment Intent
|
|
7
12
|
*/
|
|
8
13
|
export const IcpPaymentIntent = t.intersection([
|
|
9
14
|
PaymentIntent,
|
|
10
15
|
t.partial({
|
|
16
|
+
/**
|
|
17
|
+
* Numeric sub-address memo encoded as a string (e.g. "42"). Used to
|
|
18
|
+
* distinguish deposits to the same root account identifier, similar to
|
|
19
|
+
* exchange deposit tags. Must parse as a non-negative integer —
|
|
20
|
+
* non-numeric strings are rejected at transaction build time.
|
|
21
|
+
*/
|
|
11
22
|
memo: optionalString,
|
|
12
23
|
}),
|
|
13
24
|
]);
|
|
@@ -4,9 +4,15 @@ const IcpAccountIdentifier = t.partial({
|
|
|
4
4
|
address: t.string,
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* The payload submitted for signing in the ICP transaction flow.
|
|
9
|
+
*/
|
|
7
10
|
export const SigningPayload = t.partial({
|
|
11
|
+
/** Account identifier of the signing account. */
|
|
8
12
|
account_identifier: IcpAccountIdentifier,
|
|
13
|
+
/** Raw hex bytes of the payload. */
|
|
9
14
|
hex_bytes: t.string,
|
|
15
|
+
/** Signature scheme used to sign the payload. Always "ecdsa". */
|
|
10
16
|
signature_type: t.literal("ecdsa"),
|
|
11
17
|
});
|
|
12
18
|
|
|
@@ -15,10 +21,18 @@ const IcpPublicKey = t.partial({
|
|
|
15
21
|
curve_type: t.string,
|
|
16
22
|
});
|
|
17
23
|
|
|
24
|
+
/**
|
|
25
|
+
* ECDSA signature produced by the ICP signing flow. Contains the raw hex
|
|
26
|
+
* bytes, the public key of the signer, and the payload that was signed.
|
|
27
|
+
*/
|
|
18
28
|
export const Signatures = t.partial({
|
|
29
|
+
/** The payload that was signed. */
|
|
19
30
|
signing_payload: SigningPayload,
|
|
31
|
+
/** Signature scheme used. Always "ecdsa". */
|
|
20
32
|
signature_type: t.literal("ecdsa"),
|
|
33
|
+
/** Public key of the signer. */
|
|
21
34
|
public_key: IcpPublicKey,
|
|
35
|
+
/** Raw hex bytes of the signature. */
|
|
22
36
|
hex_bytes: t.string,
|
|
23
37
|
});
|
|
24
38
|
|
|
@@ -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
|
+
>;
|