@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,91 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const EthPaymentIntent: 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
|
+
intent: t.LiteralC<"payment">;
|
38
|
+
recipients: t.ArrayC<t.TypeC<{
|
39
|
+
address: t.TypeC<{
|
40
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
41
|
+
option: t.UnionC<[t.Type<{
|
42
|
+
[x: string]: unknown;
|
43
|
+
}, {
|
44
|
+
[x: string]: unknown;
|
45
|
+
}, unknown>, t.UndefinedC]>;
|
46
|
+
}>;
|
47
|
+
amount: t.TypeC<{
|
48
|
+
value: t.StringC;
|
49
|
+
symbol: t.StringC;
|
50
|
+
}>;
|
51
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
52
|
+
}>>;
|
53
|
+
}>]>, t.IntersectionC<[t.TypeC<{
|
54
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
55
|
+
}>, t.TypeC<{
|
56
|
+
feeOptions: t.UnionC<[t.Type<{
|
57
|
+
gasLimit: number | undefined;
|
58
|
+
maxFeePerGas: number | undefined;
|
59
|
+
maxPriorityFeePerGas: number | undefined;
|
60
|
+
} | {
|
61
|
+
unit: "baseUnit" | "cpu" | "ram" | undefined;
|
62
|
+
formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
63
|
+
feeType: "max" | "base" | "tip" | undefined;
|
64
|
+
gasLimit: number | undefined;
|
65
|
+
gasPrice: number | undefined;
|
66
|
+
}, {
|
67
|
+
gasLimit: number | undefined;
|
68
|
+
maxFeePerGas: number | undefined;
|
69
|
+
maxPriorityFeePerGas: number | undefined;
|
70
|
+
} | {
|
71
|
+
unit: "baseUnit" | "cpu" | "ram" | undefined;
|
72
|
+
formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
73
|
+
feeType: "max" | "base" | "tip" | undefined;
|
74
|
+
gasLimit: number | undefined;
|
75
|
+
gasPrice: number | undefined;
|
76
|
+
}, unknown>, t.UndefinedC]>;
|
77
|
+
hopParams: t.UnionC<[t.Type<{
|
78
|
+
paymentId: string | undefined;
|
79
|
+
userReqSig: string | undefined;
|
80
|
+
gasPriceMax: number | undefined;
|
81
|
+
}, {
|
82
|
+
paymentId: string | undefined;
|
83
|
+
userReqSig: string | undefined;
|
84
|
+
gasPriceMax: number | undefined;
|
85
|
+
}, unknown>, t.UndefinedC]>;
|
86
|
+
receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
87
|
+
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
88
|
+
}>]>, t.TypeC<{
|
89
|
+
selfSend: t.StringC;
|
90
|
+
}>]>;
|
91
|
+
export type EthPaymentIntent = t.TypeOf<typeof EthPaymentIntent>;
|
@@ -0,0 +1,37 @@
|
|
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.EthPaymentIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const paymentIntent_1 = require("./paymentIntent");
|
29
|
+
const ethBuildOptions_1 = require("./ethBuildOptions");
|
30
|
+
exports.EthPaymentIntent = t.intersection([
|
31
|
+
paymentIntent_1.PaymentIntent,
|
32
|
+
ethBuildOptions_1.EthBuildOptions,
|
33
|
+
t.type({
|
34
|
+
selfSend: t.string,
|
35
|
+
}),
|
36
|
+
]);
|
37
|
+
//# sourceMappingURL=ethPaymentIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ethPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,uDAAoD;AAEvC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,QAAQ,EAAE,CAAC,CAAC,MAAM;KACnB,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const EthStakingIntent: t.IntersectionC<[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<"stake">;
|
40
|
+
}>]>, t.IntersectionC<[t.TypeC<{
|
41
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
42
|
+
}>, t.TypeC<{
|
43
|
+
feeOptions: t.UnionC<[t.Type<{
|
44
|
+
gasLimit: number | undefined;
|
45
|
+
maxFeePerGas: number | undefined;
|
46
|
+
maxPriorityFeePerGas: number | undefined;
|
47
|
+
} | {
|
48
|
+
unit: "baseUnit" | "cpu" | "ram" | undefined;
|
49
|
+
formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
50
|
+
feeType: "max" | "base" | "tip" | undefined;
|
51
|
+
gasLimit: number | undefined;
|
52
|
+
gasPrice: number | undefined;
|
53
|
+
}, {
|
54
|
+
gasLimit: number | undefined;
|
55
|
+
maxFeePerGas: number | undefined;
|
56
|
+
maxPriorityFeePerGas: number | undefined;
|
57
|
+
} | {
|
58
|
+
unit: "baseUnit" | "cpu" | "ram" | undefined;
|
59
|
+
formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
60
|
+
feeType: "max" | "base" | "tip" | undefined;
|
61
|
+
gasLimit: number | undefined;
|
62
|
+
gasPrice: number | undefined;
|
63
|
+
}, unknown>, t.UndefinedC]>;
|
64
|
+
hopParams: t.UnionC<[t.Type<{
|
65
|
+
paymentId: string | undefined;
|
66
|
+
userReqSig: string | undefined;
|
67
|
+
gasPriceMax: number | undefined;
|
68
|
+
}, {
|
69
|
+
paymentId: string | undefined;
|
70
|
+
userReqSig: string | undefined;
|
71
|
+
gasPriceMax: number | undefined;
|
72
|
+
}, unknown>, t.UndefinedC]>;
|
73
|
+
receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
74
|
+
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
75
|
+
}>]>, t.TypeC<{
|
76
|
+
pubkey: t.StringC;
|
77
|
+
withdrawalCredentials: t.StringC;
|
78
|
+
signature: t.StringC;
|
79
|
+
depositDataRoot: t.StringC;
|
80
|
+
}>]>;
|
81
|
+
export type EthStakingIntent = t.TypeOf<typeof EthStakingIntent>;
|
@@ -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.EthStakingIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const stakeIntent_1 = require("./stakeIntent");
|
29
|
+
const ethBuildOptions_1 = require("./ethBuildOptions");
|
30
|
+
exports.EthStakingIntent = t.intersection([
|
31
|
+
stakeIntent_1.StakeIntent,
|
32
|
+
ethBuildOptions_1.EthBuildOptions,
|
33
|
+
t.type({
|
34
|
+
pubkey: t.string,
|
35
|
+
withdrawalCredentials: t.string,
|
36
|
+
signature: t.string,
|
37
|
+
depositDataRoot: t.string,
|
38
|
+
}),
|
39
|
+
]);
|
40
|
+
//# sourceMappingURL=ethStakingIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ethStakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethStakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+CAA4C;AAC5C,uDAAoD;AAEvC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,yBAAW;IACX,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,qBAAqB,EAAE,CAAC,CAAC,MAAM;QAC/B,SAAS,EAAE,CAAC,CAAC,MAAM;QACnB,eAAe,EAAE,CAAC,CAAC,MAAM;KAC1B,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const FeeOption: t.TypeC<{
|
3
|
+
unit: t.UnionC<[t.Type<"baseUnit" | "cpu" | "ram", "baseUnit" | "cpu" | "ram", unknown>, t.UndefinedC]>;
|
4
|
+
formula: t.UnionC<[t.Type<"fixed" | "feeRate" | "perKB" | "custom" | "perVKB", "fixed" | "feeRate" | "perKB" | "custom" | "perVKB", unknown>, t.UndefinedC]>;
|
5
|
+
feeType: t.UnionC<[t.Type<"max" | "base" | "tip", "max" | "base" | "tip", unknown>, t.UndefinedC]>;
|
6
|
+
gasLimit: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
7
|
+
gasPrice: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
8
|
+
}>;
|
@@ -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.FeeOption = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const utils_1 = require("../../../utils");
|
29
|
+
const feeOptionUnit_1 = require("./feeOptionUnit");
|
30
|
+
const feeOptionFormula_1 = require("./feeOptionFormula");
|
31
|
+
const feeOptionFeeType_1 = require("./feeOptionFeeType");
|
32
|
+
exports.FeeOption = t.type({
|
33
|
+
unit: (0, utils_1.Optional)(feeOptionUnit_1.FeeUnit),
|
34
|
+
formula: (0, utils_1.Optional)(feeOptionFormula_1.FeeFormula),
|
35
|
+
feeType: (0, utils_1.Optional)(feeOptionFeeType_1.FeeType),
|
36
|
+
gasLimit: utils_1.optionalNumber,
|
37
|
+
gasPrice: utils_1.optionalNumber,
|
38
|
+
});
|
39
|
+
//# sourceMappingURL=feeOption.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"feeOption.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/feeOption.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAA0D;AAC1D,mDAA0C;AAC1C,yDAAgD;AAChD,yDAA6C;AAEhC,QAAA,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9B,IAAI,EAAE,IAAA,gBAAQ,EAAC,uBAAO,CAAC;IACvB,OAAO,EAAE,IAAA,gBAAQ,EAAC,6BAAU,CAAC;IAC7B,OAAO,EAAE,IAAA,gBAAQ,EAAC,0BAAO,CAAC;IAC1B,QAAQ,EAAE,sBAAc;IACxB,QAAQ,EAAE,sBAAc;CACzB,CAAC,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const feeTypes: {
|
3
|
+
base: t.LiteralC<"base">;
|
4
|
+
max: t.LiteralC<"max">;
|
5
|
+
tip: t.LiteralC<"tip">;
|
6
|
+
};
|
7
|
+
export declare const FeeType: t.KeyofC<{
|
8
|
+
base: t.LiteralC<"base">;
|
9
|
+
max: t.LiteralC<"max">;
|
10
|
+
tip: t.LiteralC<"tip">;
|
11
|
+
}>;
|
12
|
+
export type FeeType = t.TypeOf<typeof FeeType>;
|
@@ -0,0 +1,34 @@
|
|
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.FeeType = exports.feeTypes = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
exports.feeTypes = {
|
29
|
+
base: t.literal("base"),
|
30
|
+
max: t.literal("max"),
|
31
|
+
tip: t.literal("tip"),
|
32
|
+
};
|
33
|
+
exports.FeeType = t.keyof(exports.feeTypes);
|
34
|
+
//# sourceMappingURL=feeOptionFeeType.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"feeOptionFeeType.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/feeOptionFeeType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAEd,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACvB,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACrB,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;CACtB,CAAC;AAEW,QAAA,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,gBAAQ,CAAC,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const feeFormulas: {
|
3
|
+
fixed: t.LiteralC<"fixed">;
|
4
|
+
feeRate: t.LiteralC<"feeRate">;
|
5
|
+
perKB: t.LiteralC<"perKB">;
|
6
|
+
custom: t.LiteralC<"custom">;
|
7
|
+
perVKB: t.LiteralC<"perVKB">;
|
8
|
+
};
|
9
|
+
export declare const FeeFormula: t.KeyofC<{
|
10
|
+
fixed: t.LiteralC<"fixed">;
|
11
|
+
feeRate: t.LiteralC<"feeRate">;
|
12
|
+
perKB: t.LiteralC<"perKB">;
|
13
|
+
custom: t.LiteralC<"custom">;
|
14
|
+
perVKB: t.LiteralC<"perVKB">;
|
15
|
+
}>;
|
16
|
+
export type FeeFormula = t.TypeOf<typeof FeeFormula>;
|
@@ -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.FeeFormula = exports.feeFormulas = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
exports.feeFormulas = {
|
29
|
+
fixed: t.literal("fixed"),
|
30
|
+
feeRate: t.literal("feeRate"),
|
31
|
+
perKB: t.literal("perKB"),
|
32
|
+
custom: t.literal("custom"),
|
33
|
+
perVKB: t.literal("perVKB"),
|
34
|
+
};
|
35
|
+
exports.FeeFormula = t.keyof(exports.feeFormulas);
|
36
|
+
//# sourceMappingURL=feeOptionFormula.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"feeOptionFormula.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/feeOptionFormula.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAEd,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACzB,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC7B,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACzB,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC3B,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;CAC5B,CAAC;AAEW,QAAA,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,mBAAW,CAAC,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const feeUnits: {
|
3
|
+
baseUnit: t.LiteralC<"baseUnit">;
|
4
|
+
cpu: t.LiteralC<"cpu">;
|
5
|
+
ram: t.LiteralC<"ram">;
|
6
|
+
};
|
7
|
+
export declare const FeeUnit: t.KeyofC<{
|
8
|
+
baseUnit: t.LiteralC<"baseUnit">;
|
9
|
+
cpu: t.LiteralC<"cpu">;
|
10
|
+
ram: t.LiteralC<"ram">;
|
11
|
+
}>;
|
12
|
+
export type FeeUnit = t.TypeOf<typeof FeeUnit>;
|
@@ -0,0 +1,34 @@
|
|
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.FeeUnit = exports.feeUnits = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
exports.feeUnits = {
|
29
|
+
baseUnit: t.literal("baseUnit"),
|
30
|
+
cpu: t.literal("cpu"),
|
31
|
+
ram: t.literal("ram"),
|
32
|
+
};
|
33
|
+
exports.FeeUnit = t.keyof(exports.feeUnits);
|
34
|
+
//# sourceMappingURL=feeOptionUnit.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"feeOptionUnit.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/feeOptionUnit.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAEd,QAAA,QAAQ,GAAG;IACtB,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC/B,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACrB,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;CACtB,CAAC;AAEW,QAAA,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,gBAAQ,CAAC,CAAC"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const FillNonceIntent: 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
|
+
}>, t.TypeC<{
|
36
|
+
intentType: t.LiteralC<"fillNonce">;
|
37
|
+
nonce: t.UnionC<[t.StringC, t.NumberC]>;
|
38
|
+
}>]>;
|
39
|
+
export type FillNonceIntent = t.TypeOf<typeof FillNonceIntent>;
|
@@ -0,0 +1,37 @@
|
|
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.FillNonceIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const baseIntent_1 = require("./baseIntent");
|
29
|
+
const intentType_1 = require("./intentType");
|
30
|
+
exports.FillNonceIntent = t.intersection([
|
31
|
+
baseIntent_1.BaseIntentWithoutNonce,
|
32
|
+
t.type({
|
33
|
+
intentType: intentType_1.intentTypes.fillNonce,
|
34
|
+
nonce: t.union([t.string, t.number]),
|
35
|
+
}),
|
36
|
+
]);
|
37
|
+
//# sourceMappingURL=fillNonceIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fillNonceIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/fillNonceIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAsD;AACtD,6CAA2C;AAE9B,QAAA,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,mCAAsB;IACtB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,SAAS;QACjC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;KACrC,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const HopParams: t.TypeC<{
|
3
|
+
paymentId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
4
|
+
userReqSig: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
5
|
+
gasPriceMax: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
6
|
+
}>;
|
7
|
+
export type HopParams = t.TypeOf<typeof HopParams>;
|
@@ -0,0 +1,34 @@
|
|
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.HopParams = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const utils_1 = require("../../../utils");
|
29
|
+
exports.HopParams = t.type({
|
30
|
+
paymentId: utils_1.optionalString,
|
31
|
+
userReqSig: utils_1.optionalString,
|
32
|
+
gasPriceMax: utils_1.optionalNumber,
|
33
|
+
});
|
34
|
+
//# sourceMappingURL=hopParams.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hopParams.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/hopParams.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAAgE;AAEnD,QAAA,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9B,SAAS,EAAE,sBAAc;IACzB,UAAU,EAAE,sBAAc;IAC1B,WAAW,EAAE,sBAAc;CAC5B,CAAC,CAAC"}
|