@bitgo/public-types 2.33.5 → 2.35.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/index.d.ts +1 -0
- package/dist/src/schema/transactionRequest/index.js +1 -0
- package/dist/src/schema/transactionRequest/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/accelerationIntent.d.ts +40 -0
- package/dist/src/schema/transactionRequest/intents/accelerationIntent.js +37 -0
- package/dist/src/schema/transactionRequest/intents/accelerationIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseBuildOptions.d.ts +5 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseBuildOptions.js +32 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseBuildOptions.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.d.ts +36 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.js +43 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.d.ts +42 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.d.ts +46 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/adaConsolidateIntent.d.ts +38 -0
- package/dist/src/schema/transactionRequest/intents/adaConsolidateIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/adaConsolidateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/adaPaymentIntent.d.ts +56 -0
- package/dist/src/schema/transactionRequest/intents/adaPaymentIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/adaPaymentIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/adaPledgeIntent.d.ts +42 -0
- package/dist/src/schema/transactionRequest/intents/adaPledgeIntent.js +39 -0
- package/dist/src/schema/transactionRequest/intents/adaPledgeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeIntent.d.ts +50 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeIntent.js +38 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/address.d.ts +9 -0
- package/dist/src/schema/transactionRequest/intents/address.js +33 -0
- package/dist/src/schema/transactionRequest/intents/address.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/amount.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/amount.js +32 -0
- package/dist/src/schema/transactionRequest/intents/amount.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.d.ts +56 -0
- package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.d.ts +72 -0
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.d.ts +72 -0
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.d.ts +54 -0
- package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.js +37 -0
- package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/baseIntent.d.ts +72 -0
- package/dist/src/schema/transactionRequest/intents/baseIntent.js +41 -0
- package/dist/src/schema/transactionRequest/intents/baseIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/baseStakeIntent.d.ts +39 -0
- package/dist/src/schema/transactionRequest/intents/baseStakeIntent.js +35 -0
- package/dist/src/schema/transactionRequest/intents/baseStakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.d.ts +50 -0
- package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.d.ts +45 -0
- package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.js +6 -0
- package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.d.ts +50 -0
- package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/bscWithdrawIntent.d.ts +48 -0
- package/dist/src/schema/transactionRequest/intents/bscWithdrawIntent.js +6 -0
- package/dist/src/schema/transactionRequest/intents/bscWithdrawIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.d.ts +102 -0
- package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.js +43 -0
- package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.d.ts +56 -0
- package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.d.ts +71 -0
- package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.js +42 -0
- package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.d.ts +47 -0
- package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.js +6 -0
- package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.d.ts +71 -0
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.js +42 -0
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.d.ts +50 -0
- package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.js +35 -0
- package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.d.ts +17 -0
- package/dist/src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.js +37 -0
- package/dist/src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/dotBaseIntent.d.ts +75 -0
- package/dist/src/schema/transactionRequest/intents/dotBaseIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/dotBaseIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.d.ts +85 -0
- package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.js +42 -0
- package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/dotFeeOptions.d.ts +7 -0
- package/dist/src/schema/transactionRequest/intents/dotFeeOptions.js +38 -0
- package/dist/src/schema/transactionRequest/intents/dotFeeOptions.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.d.ts +76 -0
- package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/dotProxy.d.ts +8 -0
- package/dist/src/schema/transactionRequest/intents/dotProxy.js +35 -0
- package/dist/src/schema/transactionRequest/intents/dotProxy.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/dotStakingIntent.d.ts +63 -0
- package/dist/src/schema/transactionRequest/intents/dotStakingIntent.js +42 -0
- package/dist/src/schema/transactionRequest/intents/dotStakingIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.d.ts +62 -0
- package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.js +41 -0
- package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.d.ts +62 -0
- package/dist/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.js +34 -0
- package/dist/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/eip1559FeeOptions.d.ts +7 -0
- package/dist/src/schema/transactionRequest/intents/eip1559FeeOptions.js +34 -0
- package/dist/src/schema/transactionRequest/intents/eip1559FeeOptions.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/enableTokenIntent.d.ts +43 -0
- package/dist/src/schema/transactionRequest/intents/enableTokenIntent.js +38 -0
- package/dist/src/schema/transactionRequest/intents/enableTokenIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.d.ts +66 -0
- package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.js +39 -0
- package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/ethBuildOptions.d.ts +53 -0
- package/dist/src/schema/transactionRequest/intents/ethBuildOptions.js +50 -0
- package/dist/src/schema/transactionRequest/intents/ethBuildOptions.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +63 -0
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.d.ts +91 -0
- package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.js +37 -0
- package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/ethStakingIntent.d.ts +81 -0
- package/dist/src/schema/transactionRequest/intents/ethStakingIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/ethStakingIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/feeOption.d.ts +8 -0
- package/dist/src/schema/transactionRequest/intents/feeOption.js +39 -0
- package/dist/src/schema/transactionRequest/intents/feeOption.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/feeOptionFeeType.d.ts +12 -0
- package/dist/src/schema/transactionRequest/intents/feeOptionFeeType.js +34 -0
- package/dist/src/schema/transactionRequest/intents/feeOptionFeeType.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/feeOptionFormula.d.ts +16 -0
- package/dist/src/schema/transactionRequest/intents/feeOptionFormula.js +36 -0
- package/dist/src/schema/transactionRequest/intents/feeOptionFormula.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/feeOptionUnit.d.ts +12 -0
- package/dist/src/schema/transactionRequest/intents/feeOptionUnit.js +34 -0
- package/dist/src/schema/transactionRequest/intents/feeOptionUnit.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +39 -0
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.js +37 -0
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/hopParams.d.ts +7 -0
- package/dist/src/schema/transactionRequest/intents/hopParams.js +34 -0
- package/dist/src/schema/transactionRequest/intents/hopParams.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/index.d.ts +89 -0
- package/dist/src/schema/transactionRequest/intents/index.js +106 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +2428 -0
- package/dist/src/schema/transactionRequest/intents/intent.js +118 -0
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/intentType.d.ts +62 -0
- package/dist/src/schema/transactionRequest/intents/intentType.js +59 -0
- package/dist/src/schema/transactionRequest/intents/intentType.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.d.ts +41 -0
- package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.js +38 -0
- package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.d.ts +43 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.js +35 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/nearStakeIntent.d.ts +57 -0
- package/dist/src/schema/transactionRequest/intents/nearStakeIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/nearStakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/nearUnstakeIntent.d.ts +57 -0
- package/dist/src/schema/transactionRequest/intents/nearUnstakeIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/nearUnstakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/nearWithdrawIntent.d.ts +64 -0
- package/dist/src/schema/transactionRequest/intents/nearWithdrawIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/nearWithdrawIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/paymentIntent.d.ts +54 -0
- package/dist/src/schema/transactionRequest/intents/paymentIntent.js +38 -0
- package/dist/src/schema/transactionRequest/intents/paymentIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/recipientEntry.d.ts +17 -0
- package/dist/src/schema/transactionRequest/intents/recipientEntry.js +36 -0
- package/dist/src/schema/transactionRequest/intents/recipientEntry.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/signMessageIntent.d.ts +41 -0
- package/dist/src/schema/transactionRequest/intents/signMessageIntent.js +39 -0
- package/dist/src/schema/transactionRequest/intents/signMessageIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.d.ts +51 -0
- package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.js +46 -0
- package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/solBuildOptions.d.ts +7 -0
- package/dist/src/schema/transactionRequest/intents/solBuildOptions.js +36 -0
- package/dist/src/schema/transactionRequest/intents/solBuildOptions.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/solClaimIntent.d.ts +58 -0
- package/dist/src/schema/transactionRequest/intents/solClaimIntent.js +39 -0
- package/dist/src/schema/transactionRequest/intents/solClaimIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts +47 -0
- package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.js +34 -0
- package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.d.ts +45 -0
- package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.js +41 -0
- package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +46 -0
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.js +42 -0
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/solPaymentIntent.d.ts +58 -0
- package/dist/src/schema/transactionRequest/intents/solPaymentIntent.js +34 -0
- package/dist/src/schema/transactionRequest/intents/solPaymentIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +51 -0
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.js +39 -0
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +61 -0
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.js +41 -0
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.d.ts +44 -0
- package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.js +38 -0
- package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/stakeIntent.d.ts +41 -0
- package/dist/src/schema/transactionRequest/intents/stakeIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/stakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.d.ts +47 -0
- package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/suiBuildOptions.d.ts +42 -0
- package/dist/src/schema/transactionRequest/intents/suiBuildOptions.js +38 -0
- package/dist/src/schema/transactionRequest/intents/suiBuildOptions.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/suiCustomTxIntent.d.ts +79 -0
- package/dist/src/schema/transactionRequest/intents/suiCustomTxIntent.js +39 -0
- package/dist/src/schema/transactionRequest/intents/suiCustomTxIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/suiFeeOptions.d.ts +5 -0
- package/dist/src/schema/transactionRequest/intents/suiFeeOptions.js +31 -0
- package/dist/src/schema/transactionRequest/intents/suiFeeOptions.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/suiStakingIntent.d.ts +75 -0
- package/dist/src/schema/transactionRequest/intents/suiStakingIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/suiStakingIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.d.ts +57 -0
- package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.js +38 -0
- package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/supportedTokenRecipientEntryItem.d.ts +5 -0
- package/dist/src/schema/transactionRequest/intents/supportedTokenRecipientEntryItem.js +31 -0
- package/dist/src/schema/transactionRequest/intents/supportedTokenRecipientEntryItem.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/tokenData.d.ts +12 -0
- package/dist/src/schema/transactionRequest/intents/tokenData.js +36 -0
- package/dist/src/schema/transactionRequest/intents/tokenData.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/tokenEnablement.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/tokenEnablement.js +33 -0
- package/dist/src/schema/transactionRequest/intents/tokenEnablement.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/tokenRecipientEntry.d.ts +28 -0
- package/dist/src/schema/transactionRequest/intents/tokenRecipientEntry.js +36 -0
- package/dist/src/schema/transactionRequest/intents/tokenRecipientEntry.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/tokenRecipientEntryItem.d.ts +7 -0
- package/dist/src/schema/transactionRequest/intents/tokenRecipientEntryItem.js +34 -0
- package/dist/src/schema/transactionRequest/intents/tokenRecipientEntryItem.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.d.ts +44 -0
- package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.js +39 -0
- package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.d.ts +56 -0
- package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.d.ts +40 -0
- package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.js +37 -0
- package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.d.ts +100 -0
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/unstakeIntent.d.ts +41 -0
- package/dist/src/schema/transactionRequest/intents/unstakeIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/unstakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.js +33 -0
- package/dist/src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.d.ts +39 -0
- package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/withdrawIntent.d.ts +48 -0
- package/dist/src/schema/transactionRequest/intents/withdrawIntent.js +39 -0
- package/dist/src/schema/transactionRequest/intents/withdrawIntent.js.map +1 -0
- package/dist/src/utils/primitives.d.ts +5 -0
- package/dist/src/utils/primitives.js +2 -1
- package/dist/src/utils/primitives.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/transactionRequest/index.ts +1 -0
- package/src/schema/transactionRequest/intents/README.md +29 -0
- package/src/schema/transactionRequest/intents/accelerationIntent.ts +13 -0
- package/src/schema/transactionRequest/intents/accountBaseBuildOptions.ts +8 -0
- package/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.ts +26 -0
- package/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.ts +18 -0
- package/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.ts +18 -0
- package/src/schema/transactionRequest/intents/adaConsolidateIntent.ts +12 -0
- package/src/schema/transactionRequest/intents/adaPaymentIntent.ts +12 -0
- package/src/schema/transactionRequest/intents/adaPledgeIntent.ts +15 -0
- package/src/schema/transactionRequest/intents/adaStakeIntent.ts +14 -0
- package/src/schema/transactionRequest/intents/address.ts +7 -0
- package/src/schema/transactionRequest/intents/amount.ts +8 -0
- package/src/schema/transactionRequest/intents/atomPaymentIntent.ts +12 -0
- package/src/schema/transactionRequest/intents/atomStakeIntent.ts +16 -0
- package/src/schema/transactionRequest/intents/atomUnstakeIntent.ts +16 -0
- package/src/schema/transactionRequest/intents/atomWithdrawIntent.ts +13 -0
- package/src/schema/transactionRequest/intents/baseIntent.ts +20 -0
- package/src/schema/transactionRequest/intents/baseStakeIntent.ts +11 -0
- package/src/schema/transactionRequest/intents/bscDelegateIntent.ts +16 -0
- package/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.ts +8 -0
- package/src/schema/transactionRequest/intents/bscUndelegateIntent.ts +16 -0
- package/src/schema/transactionRequest/intents/bscWithdrawIntent.ts +6 -0
- package/src/schema/transactionRequest/intents/consolidateTokenIntent.ts +19 -0
- package/src/schema/transactionRequest/intents/cosmosPaymentIntent.ts +12 -0
- package/src/schema/transactionRequest/intents/cosmosStakeIntent.ts +18 -0
- package/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.ts +8 -0
- package/src/schema/transactionRequest/intents/cosmosUnstakeIntent.ts +18 -0
- package/src/schema/transactionRequest/intents/cosmosWithdrawIntent.ts +11 -0
- package/src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.ts +15 -0
- package/src/schema/transactionRequest/intents/dotBaseIntent.ts +16 -0
- package/src/schema/transactionRequest/intents/dotCreateAccountIntent.ts +19 -0
- package/src/schema/transactionRequest/intents/dotFeeOptions.ts +12 -0
- package/src/schema/transactionRequest/intents/dotPaymentIntent.ts +16 -0
- package/src/schema/transactionRequest/intents/dotProxy.ts +11 -0
- package/src/schema/transactionRequest/intents/dotStakingIntent.ts +18 -0
- package/src/schema/transactionRequest/intents/dotUnstakingIntent.ts +17 -0
- package/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.ts +10 -0
- package/src/schema/transactionRequest/intents/eip1559FeeOptions.ts +10 -0
- package/src/schema/transactionRequest/intents/enableTokenIntent.ts +14 -0
- package/src/schema/transactionRequest/intents/ethAccelerationIntent.ts +15 -0
- package/src/schema/transactionRequest/intents/ethBuildOptions.ts +27 -0
- package/src/schema/transactionRequest/intents/ethFillNonceIntent.ts +18 -0
- package/src/schema/transactionRequest/intents/ethPaymentIntent.ts +13 -0
- package/src/schema/transactionRequest/intents/ethStakingIntent.ts +16 -0
- package/src/schema/transactionRequest/intents/feeOption.ts +13 -0
- package/src/schema/transactionRequest/intents/feeOptionFeeType.ts +11 -0
- package/src/schema/transactionRequest/intents/feeOptionFormula.ts +13 -0
- package/src/schema/transactionRequest/intents/feeOptionUnit.ts +11 -0
- package/src/schema/transactionRequest/intents/fillNonceIntent.ts +13 -0
- package/src/schema/transactionRequest/intents/hopParams.ts +10 -0
- package/src/schema/transactionRequest/intents/index.ts +89 -0
- package/src/schema/transactionRequest/intents/intent.ts +97 -0
- package/src/schema/transactionRequest/intents/intentType.ts +36 -0
- package/src/schema/transactionRequest/intents/lightningPaymentIntent.ts +14 -0
- package/src/schema/transactionRequest/intents/mmiSignMessageIntent.ts +11 -0
- package/src/schema/transactionRequest/intents/nearStakeIntent.ts +12 -0
- package/src/schema/transactionRequest/intents/nearUnstakeIntent.ts +12 -0
- package/src/schema/transactionRequest/intents/nearWithdrawIntent.ts +12 -0
- package/src/schema/transactionRequest/intents/paymentIntent.ts +14 -0
- package/src/schema/transactionRequest/intents/recipientEntry.ts +12 -0
- package/src/schema/transactionRequest/intents/signMessageIntent.ts +23 -0
- package/src/schema/transactionRequest/intents/solAuthorizeIntent.ts +22 -0
- package/src/schema/transactionRequest/intents/solBuildOptions.ts +12 -0
- package/src/schema/transactionRequest/intents/solClaimIntent.ts +15 -0
- package/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.ts +12 -0
- package/src/schema/transactionRequest/intents/solDeactivateIntent.ts +17 -0
- package/src/schema/transactionRequest/intents/solDelegateIntent.ts +18 -0
- package/src/schema/transactionRequest/intents/solPaymentIntent.ts +10 -0
- package/src/schema/transactionRequest/intents/solStakeIntent.ts +15 -0
- package/src/schema/transactionRequest/intents/solUnstakeIntent.ts +17 -0
- package/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.ts +12 -0
- package/src/schema/transactionRequest/intents/stakeIntent.ts +12 -0
- package/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.ts +18 -0
- package/src/schema/transactionRequest/intents/suiBuildOptions.ts +14 -0
- package/src/schema/transactionRequest/intents/suiCustomTxIntent.ts +15 -0
- package/src/schema/transactionRequest/intents/suiFeeOptions.ts +7 -0
- package/src/schema/transactionRequest/intents/suiStakingIntent.ts +16 -0
- package/src/schema/transactionRequest/intents/suiUnstakingIntent.ts +14 -0
- package/src/schema/transactionRequest/intents/supportedTokenRecipientEntryItem.ts +9 -0
- package/src/schema/transactionRequest/intents/tokenData.ts +12 -0
- package/src/schema/transactionRequest/intents/tokenEnablement.ts +9 -0
- package/src/schema/transactionRequest/intents/tokenRecipientEntry.ts +12 -0
- package/src/schema/transactionRequest/intents/tokenRecipientEntryItem.ts +10 -0
- package/src/schema/transactionRequest/intents/tonDelegateIntent.ts +15 -0
- package/src/schema/transactionRequest/intents/tonPaymentIntent.ts +12 -0
- package/src/schema/transactionRequest/intents/tonUndelegateIntent.ts +13 -0
- package/src/schema/transactionRequest/intents/transferTokenIntent.ts +16 -0
- package/src/schema/transactionRequest/intents/unstakeIntent.ts +12 -0
- package/src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.ts +11 -0
- package/src/schema/transactionRequest/intents/walletRecoveryIntent.ts +12 -0
- package/src/schema/transactionRequest/intents/withdrawIntent.ts +15 -0
- package/src/utils/primitives.ts +1 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
+
exports.TransferTokenIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const baseIntent_1 = require("./baseIntent");
|
29
|
+
const ethBuildOptions_1 = require("./ethBuildOptions");
|
30
|
+
const tokenRecipientEntry_1 = require("./tokenRecipientEntry");
|
31
|
+
const intentType_1 = require("./intentType");
|
32
|
+
exports.TransferTokenIntent = t.intersection([
|
33
|
+
baseIntent_1.BaseIntent,
|
34
|
+
ethBuildOptions_1.EthBuildOptions,
|
35
|
+
t.type({
|
36
|
+
intentType: intentType_1.intentTypes.transferToken,
|
37
|
+
recipients: t.array(tokenRecipientEntry_1.TokenRecipientEntry),
|
38
|
+
}),
|
39
|
+
]);
|
40
|
+
//# sourceMappingURL=transferTokenIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"transferTokenIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/transferTokenIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,uDAAoD;AACpD,+DAA4D;AAC5D,6CAA2C;AAE9B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,aAAa;QACrC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,yCAAmB,CAAC;KACzC,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const UnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
|
+
intentType: t.KeyofC<{
|
4
|
+
payment: t.LiteralC<"payment">;
|
5
|
+
transferToken: t.LiteralC<"transferToken">;
|
6
|
+
consolidate: t.LiteralC<"consolidate">;
|
7
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
8
|
+
fanout: t.LiteralC<"fanout">;
|
9
|
+
stake: t.LiteralC<"stake">;
|
10
|
+
unstake: t.LiteralC<"unstake">;
|
11
|
+
delegate: t.LiteralC<"delegate">;
|
12
|
+
undelegate: t.LiteralC<"undelegate">;
|
13
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
14
|
+
claim: t.LiteralC<"claim">;
|
15
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
|
+
pledge: t.LiteralC<"pledge">;
|
17
|
+
vote: t.LiteralC<"vote">;
|
18
|
+
createAccount: t.LiteralC<"createAccount">;
|
19
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
20
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
21
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
22
|
+
signMessage: t.LiteralC<"signMessage">;
|
23
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
24
|
+
enableToken: t.LiteralC<"enableToken">;
|
25
|
+
authorize: t.LiteralC<"authorize">;
|
26
|
+
acceleration: t.LiteralC<"acceleration">;
|
27
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
28
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
29
|
+
contractCall: t.LiteralC<"contractCall">;
|
30
|
+
deactivate: t.LiteralC<"deactivate">;
|
31
|
+
customTx: t.LiteralC<"customTx">;
|
32
|
+
}>;
|
33
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
+
nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
|
36
|
+
}>, t.TypeC<{
|
37
|
+
stakingRequestId: t.StringC;
|
38
|
+
}>]>, t.TypeC<{
|
39
|
+
intentType: t.LiteralC<"unstake">;
|
40
|
+
}>]>;
|
41
|
+
export type UnstakeIntent = t.TypeOf<typeof UnstakeIntent>;
|
@@ -0,0 +1,36 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
+
exports.UnstakeIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const baseStakeIntent_1 = require("./baseStakeIntent");
|
29
|
+
const intentType_1 = require("./intentType");
|
30
|
+
exports.UnstakeIntent = t.intersection([
|
31
|
+
baseStakeIntent_1.BaseStakeIntent,
|
32
|
+
t.type({
|
33
|
+
intentType: intentType_1.intentTypes.unstake,
|
34
|
+
}),
|
35
|
+
]);
|
36
|
+
//# sourceMappingURL=unstakeIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"unstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/unstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAE9B,QAAA,aAAa,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,OAAO;KAChC,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const UnsupportedTokenRecipientEntryItem: t.TypeC<{
|
3
|
+
tokenContractAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
4
|
+
decimals: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
5
|
+
}>;
|
6
|
+
export type UnsupportedTokenRecipientEntryItem = t.TypeOf<typeof UnsupportedTokenRecipientEntryItem>;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
+
exports.UnsupportedTokenRecipientEntryItem = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const utils_1 = require("../../../utils");
|
29
|
+
exports.UnsupportedTokenRecipientEntryItem = t.type({
|
30
|
+
tokenContractAddress: utils_1.optionalString,
|
31
|
+
decimals: utils_1.optionalNumber,
|
32
|
+
});
|
33
|
+
//# sourceMappingURL=unsupportedTokenRecipientEntryItem.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"unsupportedTokenRecipientEntryItem.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAAgE;AAEnD,QAAA,kCAAkC,GAAG,CAAC,CAAC,IAAI,CAAC;IACvD,oBAAoB,EAAE,sBAAc;IACpC,QAAQ,EAAE,sBAAc;CACzB,CAAC,CAAC"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const WalletRecoveryIntent: t.IntersectionC<[t.TypeC<{
|
3
|
+
intentType: t.KeyofC<{
|
4
|
+
payment: t.LiteralC<"payment">;
|
5
|
+
transferToken: t.LiteralC<"transferToken">;
|
6
|
+
consolidate: t.LiteralC<"consolidate">;
|
7
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
8
|
+
fanout: t.LiteralC<"fanout">;
|
9
|
+
stake: t.LiteralC<"stake">;
|
10
|
+
unstake: t.LiteralC<"unstake">;
|
11
|
+
delegate: t.LiteralC<"delegate">;
|
12
|
+
undelegate: t.LiteralC<"undelegate">;
|
13
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
14
|
+
claim: t.LiteralC<"claim">;
|
15
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
|
+
pledge: t.LiteralC<"pledge">;
|
17
|
+
vote: t.LiteralC<"vote">;
|
18
|
+
createAccount: t.LiteralC<"createAccount">;
|
19
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
20
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
21
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
22
|
+
signMessage: t.LiteralC<"signMessage">;
|
23
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
24
|
+
enableToken: t.LiteralC<"enableToken">;
|
25
|
+
authorize: t.LiteralC<"authorize">;
|
26
|
+
acceleration: t.LiteralC<"acceleration">;
|
27
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
28
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
29
|
+
contractCall: t.LiteralC<"contractCall">;
|
30
|
+
deactivate: t.LiteralC<"deactivate">;
|
31
|
+
customTx: t.LiteralC<"customTx">;
|
32
|
+
}>;
|
33
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
+
nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
|
36
|
+
}>, t.TypeC<{
|
37
|
+
intentType: t.LiteralC<"walletRecovery">;
|
38
|
+
}>]>;
|
39
|
+
export type WalletRecoveryIntent = t.TypeOf<typeof WalletRecoveryIntent>;
|
@@ -0,0 +1,36 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
+
exports.WalletRecoveryIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const baseIntent_1 = require("./baseIntent");
|
29
|
+
const intentType_1 = require("./intentType");
|
30
|
+
exports.WalletRecoveryIntent = t.intersection([
|
31
|
+
baseIntent_1.BaseIntent,
|
32
|
+
t.type({
|
33
|
+
intentType: intentType_1.intentTypes.walletRecovery,
|
34
|
+
}),
|
35
|
+
]);
|
36
|
+
//# sourceMappingURL=walletRecoveryIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"walletRecoveryIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/walletRecoveryIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAE9B,QAAA,oBAAoB,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,cAAc;KACvC,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const WithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
|
+
intentType: t.KeyofC<{
|
4
|
+
payment: t.LiteralC<"payment">;
|
5
|
+
transferToken: t.LiteralC<"transferToken">;
|
6
|
+
consolidate: t.LiteralC<"consolidate">;
|
7
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
8
|
+
fanout: t.LiteralC<"fanout">;
|
9
|
+
stake: t.LiteralC<"stake">;
|
10
|
+
unstake: t.LiteralC<"unstake">;
|
11
|
+
delegate: t.LiteralC<"delegate">;
|
12
|
+
undelegate: t.LiteralC<"undelegate">;
|
13
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
14
|
+
claim: t.LiteralC<"claim">;
|
15
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
16
|
+
pledge: t.LiteralC<"pledge">;
|
17
|
+
vote: t.LiteralC<"vote">;
|
18
|
+
createAccount: t.LiteralC<"createAccount">;
|
19
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
20
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
21
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
22
|
+
signMessage: t.LiteralC<"signMessage">;
|
23
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
24
|
+
enableToken: t.LiteralC<"enableToken">;
|
25
|
+
authorize: t.LiteralC<"authorize">;
|
26
|
+
acceleration: t.LiteralC<"acceleration">;
|
27
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
28
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
29
|
+
contractCall: t.LiteralC<"contractCall">;
|
30
|
+
deactivate: t.LiteralC<"deactivate">;
|
31
|
+
customTx: t.LiteralC<"customTx">;
|
32
|
+
}>;
|
33
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
+
nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
|
36
|
+
}>, t.TypeC<{
|
37
|
+
stakingRequestId: t.StringC;
|
38
|
+
}>]>, t.TypeC<{
|
39
|
+
intentType: t.LiteralC<"claim">;
|
40
|
+
amount: t.UnionC<[t.Type<{
|
41
|
+
value: string;
|
42
|
+
symbol: string;
|
43
|
+
}, {
|
44
|
+
value: string;
|
45
|
+
symbol: string;
|
46
|
+
}, unknown>, t.UndefinedC]>;
|
47
|
+
}>]>;
|
48
|
+
export type WithdrawIntent = t.TypeOf<typeof WithdrawIntent>;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
+
exports.WithdrawIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const baseStakeIntent_1 = require("./baseStakeIntent");
|
29
|
+
const intentType_1 = require("./intentType");
|
30
|
+
const amount_1 = require("./amount");
|
31
|
+
const utils_1 = require("../../../utils");
|
32
|
+
exports.WithdrawIntent = t.intersection([
|
33
|
+
baseStakeIntent_1.BaseStakeIntent,
|
34
|
+
t.type({
|
35
|
+
intentType: intentType_1.intentTypes.claim,
|
36
|
+
amount: (0, utils_1.Optional)(amount_1.Amount),
|
37
|
+
}),
|
38
|
+
]);
|
39
|
+
//# sourceMappingURL=withdrawIntent.js.map
|
@@ -0,0 +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;QACL,UAAU,EAAE,wBAAW,CAAC,KAAK;QAC7B,MAAM,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;KACzB,CAAC;CACH,CAAC,CAAC"}
|
@@ -5,3 +5,8 @@ export declare const optionalBoolean: t.UnionC<[t.Type<boolean, boolean, unknown
|
|
5
5
|
export declare const optionalNumber: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
6
6
|
export declare const optionalStringOrNumber: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
7
7
|
export declare const optionalUnknown: t.UnionC<[t.Type<{}, {}, unknown>, t.UndefinedC]>;
|
8
|
+
export declare const optionalUnknownObject: t.UnionC<[t.Type<{
|
9
|
+
[x: string]: unknown;
|
10
|
+
}, {
|
11
|
+
[x: string]: unknown;
|
12
|
+
}, unknown>, t.UndefinedC]>;
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.optionalUnknown = exports.optionalStringOrNumber = exports.optionalNumber = exports.optionalBoolean = exports.optionalStringArray = exports.optionalString = void 0;
|
26
|
+
exports.optionalUnknownObject = exports.optionalUnknown = exports.optionalStringOrNumber = exports.optionalNumber = exports.optionalBoolean = exports.optionalStringArray = exports.optionalString = void 0;
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
28
|
const optional_1 = require("./optional");
|
29
29
|
exports.optionalString = (0, optional_1.Optional)(t.string);
|
@@ -32,4 +32,5 @@ exports.optionalBoolean = (0, optional_1.Optional)(t.boolean);
|
|
32
32
|
exports.optionalNumber = (0, optional_1.Optional)(t.number);
|
33
33
|
exports.optionalStringOrNumber = (0, optional_1.Optional)(t.union([t.string, t.number]));
|
34
34
|
exports.optionalUnknown = (0, optional_1.Optional)(t.intersection([t.unknown, t.partial({})]));
|
35
|
+
exports.optionalUnknownObject = (0, optional_1.Optional)(t.record(t.string, t.unknown));
|
35
36
|
//# sourceMappingURL=primitives.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"primitives.js","sourceRoot":"","sources":["../../../src/utils/primitives.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yCAAsC;AAEzB,QAAA,cAAc,GAAG,IAAA,mBAAQ,EAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AACpC,QAAA,mBAAmB,GAAG,IAAA,mBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAClD,QAAA,eAAe,GAAG,IAAA,mBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC,CAAC;AACtC,QAAA,cAAc,GAAG,IAAA,mBAAQ,EAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AACpC,QAAA,sBAAsB,GAAG,IAAA,mBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACjE,QAAA,eAAe,GAAG,IAAA,mBAAQ,EACrC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAC3C,CAAC"}
|
1
|
+
{"version":3,"file":"primitives.js","sourceRoot":"","sources":["../../../src/utils/primitives.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yCAAsC;AAEzB,QAAA,cAAc,GAAG,IAAA,mBAAQ,EAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AACpC,QAAA,mBAAmB,GAAG,IAAA,mBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAClD,QAAA,eAAe,GAAG,IAAA,mBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC,CAAC;AACtC,QAAA,cAAc,GAAG,IAAA,mBAAQ,EAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AACpC,QAAA,sBAAsB,GAAG,IAAA,mBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACjE,QAAA,eAAe,GAAG,IAAA,mBAAQ,EACrC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAC3C,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAA,mBAAQ,EAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Transaction Intents
|
2
|
+
|
3
|
+
This directory contains the intents for the transaction request schema.
|
4
|
+
|
5
|
+
## Adding a new Intent
|
6
|
+
|
7
|
+
Once you have created your new intent codec, ensure to export it in `src/schema/transactionRequest/intents/intent.ts`
|
8
|
+
and to regenerate the index.ts file.
|
9
|
+
|
10
|
+
## Regenerate index.ts
|
11
|
+
|
12
|
+
Use the following bash commands from the root of the project to regenerate the index.ts file in this directory. T
|
13
|
+
This will export all the intents in this directory.
|
14
|
+
|
15
|
+
```bash
|
16
|
+
# Delete the existing index.ts file if it exists
|
17
|
+
if [ -f src/schema/transactionRequest/intents/index.ts ]; then
|
18
|
+
rm src/schema/transactionRequest/intents/index.ts
|
19
|
+
fi
|
20
|
+
|
21
|
+
# Loop through each .ts file in the directory and append export statements to index.ts, excluding index.ts itself
|
22
|
+
for file in src/schema/transactionRequest/intents/*.ts; do
|
23
|
+
filename=$(basename -- "$file")
|
24
|
+
filenameWithoutExt="${filename%.*}"
|
25
|
+
if [ "$filenameWithoutExt" != "index" ]; then
|
26
|
+
echo "export * from './$filenameWithoutExt';" >> src/schema/transactionRequest/intents/index.ts
|
27
|
+
fi
|
28
|
+
done
|
29
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { BaseIntent } from "./baseIntent";
|
3
|
+
import { intentTypes } from "./intentType";
|
4
|
+
|
5
|
+
export const AccelerationIntent = t.intersection([
|
6
|
+
BaseIntent,
|
7
|
+
t.type({
|
8
|
+
intentType: intentTypes.acceleration,
|
9
|
+
txid: t.string,
|
10
|
+
}),
|
11
|
+
]);
|
12
|
+
|
13
|
+
export type AccelerationIntent = t.TypeOf<typeof AccelerationIntent>;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { AccountBaseBuildOptions } from "./accountBaseBuildOptions";
|
3
|
+
import { intentTypes } from "./intentType";
|
4
|
+
import {
|
5
|
+
Optional,
|
6
|
+
optionalBoolean,
|
7
|
+
optionalNumber,
|
8
|
+
optionalString,
|
9
|
+
} from "../../../utils";
|
10
|
+
import { RecipientEntry } from "./recipientEntry";
|
11
|
+
|
12
|
+
export const AccountBaseConsolidateIntent = t.intersection([
|
13
|
+
AccountBaseBuildOptions,
|
14
|
+
t.type({
|
15
|
+
intentType: intentTypes.consolidate,
|
16
|
+
receiveAddress: t.string,
|
17
|
+
senderAddressIndex: optionalNumber,
|
18
|
+
consolidateId: optionalString,
|
19
|
+
recipients: Optional(t.array(RecipientEntry)),
|
20
|
+
keepAlive: optionalBoolean,
|
21
|
+
}),
|
22
|
+
]);
|
23
|
+
|
24
|
+
export type AccountBaseConsolidateIntent = t.TypeOf<
|
25
|
+
typeof AccountBaseConsolidateIntent
|
26
|
+
>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { optionalString } from "../../../utils";
|
3
|
+
import { BaseIntent } from "./baseIntent";
|
4
|
+
import { AccountBaseBuildOptions } from "./accountBaseBuildOptions";
|
5
|
+
import { intentTypes } from "./intentType";
|
6
|
+
|
7
|
+
export const AccountBaseCreateAccountIntent = t.intersection([
|
8
|
+
BaseIntent,
|
9
|
+
AccountBaseBuildOptions,
|
10
|
+
t.type({
|
11
|
+
intentType: intentTypes.createAccount,
|
12
|
+
name: optionalString,
|
13
|
+
}),
|
14
|
+
]);
|
15
|
+
|
16
|
+
export type AccountBaseCreateAccountIntent = t.TypeOf<
|
17
|
+
typeof AccountBaseCreateAccountIntent
|
18
|
+
>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { BaseIntent } from "./baseIntent";
|
3
|
+
import { AccountBaseBuildOptions } from "./accountBaseBuildOptions";
|
4
|
+
import { intentTypes } from "./intentType";
|
5
|
+
import { optionalUnknownObject } from "../../../utils";
|
6
|
+
|
7
|
+
export const AccountBaseUpdateAccountIntent = t.intersection([
|
8
|
+
BaseIntent,
|
9
|
+
AccountBaseBuildOptions,
|
10
|
+
t.type({
|
11
|
+
intentType: intentTypes.updateAccount,
|
12
|
+
options: optionalUnknownObject,
|
13
|
+
}),
|
14
|
+
]);
|
15
|
+
|
16
|
+
export type AccountBaseUpdateAccountIntent = t.TypeOf<
|
17
|
+
typeof AccountBaseUpdateAccountIntent
|
18
|
+
>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { AccountBaseConsolidateIntent } from "./accountBaseConsolidateIntent";
|
3
|
+
import { optionalStringArray } from "../../../utils";
|
4
|
+
|
5
|
+
export const AdaConsolidateIntent = t.intersection([
|
6
|
+
AccountBaseConsolidateIntent,
|
7
|
+
t.type({
|
8
|
+
unspents: optionalStringArray,
|
9
|
+
}),
|
10
|
+
]);
|
11
|
+
|
12
|
+
export type AdaConsolidateIntent = t.TypeOf<typeof AdaConsolidateIntent>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { optionalStringArray } from "../../../utils";
|
3
|
+
import { PaymentIntent } from "./paymentIntent";
|
4
|
+
|
5
|
+
export const AdaPaymentIntent = t.intersection([
|
6
|
+
PaymentIntent,
|
7
|
+
t.type({
|
8
|
+
unspents: optionalStringArray,
|
9
|
+
}),
|
10
|
+
]);
|
11
|
+
|
12
|
+
export type AdaPaymentIntent = t.TypeOf<typeof AdaPaymentIntent>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { BaseIntent } from "./baseIntent";
|
3
|
+
import { intentTypes } from "./intentType";
|
4
|
+
|
5
|
+
export const AdaPledgeIntent = t.intersection([
|
6
|
+
BaseIntent,
|
7
|
+
t.type({
|
8
|
+
intentType: intentTypes.pledge,
|
9
|
+
rawTx: t.string,
|
10
|
+
nodePublicKey: t.string,
|
11
|
+
nodeKeySignature: t.string,
|
12
|
+
}),
|
13
|
+
]);
|
14
|
+
|
15
|
+
export type AdaPledgeIntent = t.TypeOf<typeof AdaPledgeIntent>;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { StakeIntent } from "./stakeIntent";
|
3
|
+
import { Amount } from "./amount";
|
4
|
+
import { Optional } from "../../../utils";
|
5
|
+
|
6
|
+
export const AdaStakeIntent = t.intersection([
|
7
|
+
StakeIntent,
|
8
|
+
t.type({
|
9
|
+
amount: Optional(Amount),
|
10
|
+
poolKeyHash: t.string,
|
11
|
+
}),
|
12
|
+
]);
|
13
|
+
|
14
|
+
export type AdaStakeIntent = t.TypeOf<typeof AdaStakeIntent>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { optionalString } from "../../../utils";
|
3
|
+
import { PaymentIntent } from "./paymentIntent";
|
4
|
+
|
5
|
+
export const AtomPaymentIntent = t.intersection([
|
6
|
+
PaymentIntent,
|
7
|
+
t.type({
|
8
|
+
memo: optionalString,
|
9
|
+
}),
|
10
|
+
]);
|
11
|
+
|
12
|
+
export type AtomPaymentIntent = t.TypeOf<typeof AtomPaymentIntent>;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { Amount } from "./amount";
|
3
|
+
import { RecipientEntry } from "./recipientEntry";
|
4
|
+
import { Optional } from "../../../utils";
|
5
|
+
import { StakeIntent } from "./stakeIntent";
|
6
|
+
|
7
|
+
export const AtomStakeIntent = t.intersection([
|
8
|
+
StakeIntent,
|
9
|
+
t.type({
|
10
|
+
validatorAddress: t.string,
|
11
|
+
amount: Amount,
|
12
|
+
recipients: Optional(t.array(RecipientEntry)),
|
13
|
+
}),
|
14
|
+
]);
|
15
|
+
|
16
|
+
export type AtomStakeIntent = t.TypeOf<typeof AtomStakeIntent>;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { Amount } from "./amount";
|
3
|
+
import { UnstakeIntent } from "./unstakeIntent";
|
4
|
+
import { RecipientEntry } from "./recipientEntry";
|
5
|
+
import { Optional } from "../../../utils";
|
6
|
+
|
7
|
+
export const AtomUnstakeIntent = t.intersection([
|
8
|
+
UnstakeIntent,
|
9
|
+
t.type({
|
10
|
+
validatorAddress: t.string,
|
11
|
+
amount: Amount,
|
12
|
+
recipients: Optional(t.array(RecipientEntry)),
|
13
|
+
}),
|
14
|
+
]);
|
15
|
+
|
16
|
+
export type AtomUnstakeIntent = t.TypeOf<typeof AtomUnstakeIntent>;
|