@bitgo/public-types 2.38.0 → 2.40.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/lightning/payment.d.ts +20 -0
- package/dist/src/schema/lightning/payment.js +43 -0
- package/dist/src/schema/lightning/payment.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/accelerationIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/accountBaseBuildOptions.d.ts +1 -1
- package/dist/src/schema/transactionRequest/intents/accountBaseBuildOptions.js +1 -1
- package/dist/src/schema/transactionRequest/intents/accountBaseBuildOptions.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.d.ts +13 -10
- package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.d.ts +5 -3
- package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.d.ts +5 -3
- package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/adaConsolidateIntent.d.ts +14 -11
- package/dist/src/schema/transactionRequest/intents/adaConsolidateIntent.js +1 -1
- package/dist/src/schema/transactionRequest/intents/adaConsolidateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/adaPaymentIntent.d.ts +8 -6
- package/dist/src/schema/transactionRequest/intents/adaPledgeIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/adaStakeIntent.d.ts +6 -4
- package/dist/src/schema/transactionRequest/intents/adaStakeIntent.js +3 -1
- package/dist/src/schema/transactionRequest/intents/adaStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.d.ts +6 -4
- package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.js +3 -1
- package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/address.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/address.js +1 -1
- package/dist/src/schema/transactionRequest/intents/address.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.d.ts +8 -6
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.d.ts +16 -12
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.d.ts +16 -12
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.d.ts +5 -3
- package/dist/src/schema/transactionRequest/intents/baseIntent.d.ts +7 -5
- package/dist/src/schema/transactionRequest/intents/baseIntent.js +19 -11
- package/dist/src/schema/transactionRequest/intents/baseIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/baseStakeIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/bscWithdrawIntent.d.ts +5 -3
- package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.d.ts +31 -27
- package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.d.ts +8 -6
- package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.d.ts +16 -12
- package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.d.ts +16 -12
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.d.ts +5 -3
- package/dist/src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.d.ts +10 -8
- package/dist/src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.js +1 -1
- package/dist/src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/dotBaseIntent.d.ts +23 -18
- package/dist/src/schema/transactionRequest/intents/dotBaseIntent.js +1 -1
- package/dist/src/schema/transactionRequest/intents/dotBaseIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/dotConsolidateIntent.d.ts +39 -0
- package/dist/src/schema/transactionRequest/intents/dotConsolidateIntent.js +6 -0
- package/dist/src/schema/transactionRequest/intents/dotConsolidateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.d.ts +27 -20
- package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/dotFeeOptionFormula.d.ts +14 -0
- package/dist/src/schema/transactionRequest/intents/dotFeeOptionFormula.js +35 -0
- package/dist/src/schema/transactionRequest/intents/dotFeeOptionFormula.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/dotFeeOptions.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/dotFeeOptions.js +11 -7
- package/dist/src/schema/transactionRequest/intents/dotFeeOptions.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.d.ts +19 -15
- package/dist/src/schema/transactionRequest/intents/dotProxy.d.ts +1 -1
- package/dist/src/schema/transactionRequest/intents/dotProxy.js +1 -1
- package/dist/src/schema/transactionRequest/intents/dotProxy.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/dotStakingIntent.d.ts +15 -11
- package/dist/src/schema/transactionRequest/intents/dotStakingIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/dotStakingIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.d.ts +15 -11
- package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.d.ts +15 -11
- package/dist/src/schema/transactionRequest/intents/eip1559FeeOptions.d.ts +1 -1
- package/dist/src/schema/transactionRequest/intents/eip1559FeeOptions.js +1 -1
- package/dist/src/schema/transactionRequest/intents/eip1559FeeOptions.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/enableTokenIntent.d.ts +7 -5
- package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.d.ts +8 -7
- package/dist/src/schema/transactionRequest/intents/ethBuildOptions.d.ts +125 -23
- package/dist/src/schema/transactionRequest/intents/ethBuildOptions.js +13 -3
- package/dist/src/schema/transactionRequest/intents/ethBuildOptions.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethConsolidateIntent.d.ts +74 -0
- package/dist/src/schema/transactionRequest/intents/ethConsolidateIntent.js +34 -0
- package/dist/src/schema/transactionRequest/intents/ethConsolidateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.d.ts +105 -0
- package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.js +43 -0
- package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +20 -19
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.js +2 -8
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.d.ts +27 -25
- package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.js +2 -1
- package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethStakingIntent.d.ts +22 -21
- package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.d.ts +103 -0
- package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.js +34 -0
- package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/feeOption.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/feeOption.js +1 -1
- package/dist/src/schema/transactionRequest/intents/feeOption.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/index.d.ts +8 -0
- package/dist/src/schema/transactionRequest/intents/index.js +8 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +1147 -394
- package/dist/src/schema/transactionRequest/intents/intent.js +17 -1
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.d.ts +12 -4
- package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.d.ts +58 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.js +35 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/nearStakeIntent.d.ts +8 -6
- package/dist/src/schema/transactionRequest/intents/nearUnstakeIntent.d.ts +8 -6
- package/dist/src/schema/transactionRequest/intents/nearWithdrawIntent.d.ts +9 -6
- package/dist/src/schema/transactionRequest/intents/paymentIntent.d.ts +8 -6
- package/dist/src/schema/transactionRequest/intents/recipientEntry.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/recipientEntry.js +9 -5
- package/dist/src/schema/transactionRequest/intents/recipientEntry.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/signMessageIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/solBuildOptions.d.ts +1 -1
- package/dist/src/schema/transactionRequest/intents/solClaimIntent.d.ts +6 -4
- package/dist/src/schema/transactionRequest/intents/solConsolidateIntent.d.ts +13 -10
- package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts +8 -6
- package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/solPaymentIntent.d.ts +9 -7
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +5 -4
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +6 -4
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/stakeIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/suiBuildOptions.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.d.ts +79 -0
- package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.js +34 -0
- package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/suiCustomTxIntent.d.ts +7 -5
- package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.d.ts +96 -0
- package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.js +34 -0
- package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/suiStakingIntent.d.ts +16 -13
- package/dist/src/schema/transactionRequest/intents/suiStakingIntent.js +1 -1
- package/dist/src/schema/transactionRequest/intents/suiStakingIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.d.ts +6 -3
- package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/tokenData.d.ts +5 -4
- package/dist/src/schema/transactionRequest/intents/tokenEnablement.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/tokenEnablement.js +8 -4
- package/dist/src/schema/transactionRequest/intents/tokenEnablement.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/tokenRecipientEntry.d.ts +9 -7
- package/dist/src/schema/transactionRequest/intents/tokenRecipientEntryItem.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/tokenRecipientEntryItem.js +9 -5
- package/dist/src/schema/transactionRequest/intents/tokenRecipientEntryItem.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/tonConsolidateIntent.d.ts +13 -10
- package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.d.ts +9 -7
- package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.js +1 -1
- package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.d.ts +11 -43
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.js +0 -2
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/unstakeIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.d.ts +1 -1
- package/dist/src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.js +1 -1
- package/dist/src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.d.ts +4 -3
- package/dist/src/schema/transactionRequest/intents/withdrawIntent.d.ts +5 -3
- package/dist/src/schema/transactionRequest/intents/withdrawIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/withdrawIntent.js.map +1 -1
- package/dist/src/schema/transactions/sendTransactions.d.ts +0 -56
- package/dist/src/schema/transactions/sendTransactions.js +0 -12
- package/dist/src/schema/transactions/sendTransactions.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/lightning/payment.ts +23 -0
- package/src/schema/transactionRequest/intents/accountBaseBuildOptions.ts +1 -1
- package/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/adaConsolidateIntent.ts +1 -1
- package/src/schema/transactionRequest/intents/adaStakeIntent.ts +3 -1
- package/src/schema/transactionRequest/intents/adaUnstakeIntent.ts +3 -1
- package/src/schema/transactionRequest/intents/address.ts +3 -1
- package/src/schema/transactionRequest/intents/atomStakeIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/atomUnstakeIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/baseIntent.ts +20 -12
- package/src/schema/transactionRequest/intents/consolidateTokenIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/cosmosStakeIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/cosmosUnstakeIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.ts +1 -1
- package/src/schema/transactionRequest/intents/dotBaseIntent.ts +1 -1
- package/src/schema/transactionRequest/intents/dotConsolidateIntent.ts +6 -0
- package/src/schema/transactionRequest/intents/dotCreateAccountIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/dotFeeOptionFormula.ts +12 -0
- package/src/schema/transactionRequest/intents/dotFeeOptions.ts +11 -7
- package/src/schema/transactionRequest/intents/dotProxy.ts +1 -1
- package/src/schema/transactionRequest/intents/dotStakingIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/dotUnstakingIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/eip1559FeeOptions.ts +1 -1
- package/src/schema/transactionRequest/intents/ethBuildOptions.ts +26 -2
- package/src/schema/transactionRequest/intents/ethConsolidateIntent.ts +10 -0
- package/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.ts +21 -0
- package/src/schema/transactionRequest/intents/ethFillNonceIntent.ts +2 -10
- package/src/schema/transactionRequest/intents/ethPaymentIntent.ts +2 -1
- package/src/schema/transactionRequest/intents/ethTransferTokenIntent.ts +10 -0
- package/src/schema/transactionRequest/intents/feeOption.ts +3 -1
- package/src/schema/transactionRequest/intents/index.ts +8 -0
- package/src/schema/transactionRequest/intents/intent.ts +17 -1
- package/src/schema/transactionRequest/intents/lightningPaymentIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/mmiSignTransactionIntent.ts +13 -0
- package/src/schema/transactionRequest/intents/recipientEntry.ts +9 -5
- package/src/schema/transactionRequest/intents/solUnstakeIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/suiConsolidateIntent.ts +10 -0
- package/src/schema/transactionRequest/intents/suiPaymentIntent.ts +10 -0
- package/src/schema/transactionRequest/intents/suiStakingIntent.ts +1 -1
- package/src/schema/transactionRequest/intents/suiUnstakingIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/tokenEnablement.ts +8 -4
- package/src/schema/transactionRequest/intents/tokenRecipientEntryItem.ts +9 -5
- package/src/schema/transactionRequest/intents/tonPaymentIntent.ts +1 -1
- package/src/schema/transactionRequest/intents/transferTokenIntent.ts +0 -2
- package/src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.ts +1 -1
- package/src/schema/transactionRequest/intents/withdrawIntent.ts +2 -0
- package/src/schema/transactions/sendTransactions.ts +0 -14
@@ -72,6 +72,14 @@ const solConsolidateIntent_1 = require("./solConsolidateIntent");
|
|
72
72
|
const tonConsolidateIntent_1 = require("./tonConsolidateIntent");
|
73
73
|
const adaStakeClaimRewardsIntent_1 = require("./adaStakeClaimRewardsIntent");
|
74
74
|
const adaUnstakeIntent_1 = require("./adaUnstakeIntent");
|
75
|
+
const suiPaymentIntent_1 = require("./suiPaymentIntent");
|
76
|
+
const suiConsolidateIntent_1 = require("./suiConsolidateIntent");
|
77
|
+
const mmiSignTransactionIntent_1 = require("./mmiSignTransactionIntent");
|
78
|
+
const ethConsolidateIntent_1 = require("./ethConsolidateIntent");
|
79
|
+
const ethConsolidateTokenIntent_1 = require("./ethConsolidateTokenIntent");
|
80
|
+
const ethTransferTokenIntent_1 = require("./ethTransferTokenIntent");
|
81
|
+
const baseIntent_1 = require("./baseIntent");
|
82
|
+
const dotConsolidateIntent_1 = require("./dotConsolidateIntent");
|
75
83
|
exports.TransactionIntent = t.union([
|
76
84
|
adaConsolidateIntent_1.AdaConsolidateIntent,
|
77
85
|
adaPaymentIntent_1.AdaPaymentIntent,
|
@@ -91,17 +99,23 @@ exports.TransactionIntent = t.union([
|
|
91
99
|
cosmosSwitchValidatorIntent_1.CosmosSwitchValidatorIntent,
|
92
100
|
cosmosUnstakeIntent_1.CosmosUnstakeIntent,
|
93
101
|
cosmosWithdrawIntent_1.CosmosWithdrawIntent,
|
102
|
+
dotConsolidateIntent_1.DotConsolidateIntent,
|
94
103
|
dotCreateAccountIntent_1.DotCreateAccountIntent,
|
95
104
|
dotPaymentIntent_1.DotPaymentIntent,
|
96
105
|
dotStakingIntent_1.DotStakingIntent,
|
97
106
|
dotUnstakingIntent_1.DotUnstakingIntent,
|
98
107
|
dotWithdrawStakeIntent_1.DotWithdrawStakeIntent,
|
99
108
|
ethAccelerationIntent_1.EthAccelerationIntent,
|
109
|
+
ethConsolidateIntent_1.EthConsolidateIntent,
|
110
|
+
ethConsolidateIntent_1.EthConsolidateIntent,
|
111
|
+
ethConsolidateTokenIntent_1.EthConsolidateTokenIntent,
|
100
112
|
ethFillNonceIntent_1.EthFillNonceIntent,
|
101
113
|
ethPaymentIntent_1.EthPaymentIntent,
|
102
114
|
ethStakingIntent_1.EthStakingIntent,
|
115
|
+
ethTransferTokenIntent_1.EthTransferTokenIntent,
|
103
116
|
lightningPaymentIntent_1.LightningPaymentIntent,
|
104
117
|
mmiSignMessageIntent_1.MmiSignMessageIntent,
|
118
|
+
mmiSignTransactionIntent_1.MmiSignTransactionIntent,
|
105
119
|
nearStakeIntent_1.NearStakeIntent,
|
106
120
|
nearUnstakeIntent_1.NearUnstakeIntent,
|
107
121
|
nearWithdrawIntent_1.NearWithdrawIntent,
|
@@ -113,7 +127,9 @@ exports.TransactionIntent = t.union([
|
|
113
127
|
solDelegateIntent_1.SolDelegateIntent,
|
114
128
|
solStakeIntent_1.SolStakeIntent,
|
115
129
|
solUnstakeIntent_1.SolUnstakeIntent,
|
130
|
+
suiConsolidateIntent_1.SuiConsolidateIntent,
|
116
131
|
suiCustomTxIntent_1.SuiCustomTxIntent,
|
132
|
+
suiPaymentIntent_1.SuiPaymentIntent,
|
117
133
|
suiStakingIntent_1.SuiStakingIntent,
|
118
134
|
suiUnstakingIntent_1.SuiUnstakingIntent,
|
119
135
|
tonConsolidateIntent_1.TonConsolidateIntent,
|
@@ -121,6 +137,6 @@ exports.TransactionIntent = t.union([
|
|
121
137
|
tonPaymentIntent_1.TonPaymentIntent,
|
122
138
|
tonUndelegateIntent_1.TonUndelegateIntent,
|
123
139
|
walletRecoveryIntent_1.WalletRecoveryIntent,
|
124
|
-
|
140
|
+
baseIntent_1.BaseIntent,
|
125
141
|
]);
|
126
142
|
//# sourceMappingURL=intent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAkD;AAClD,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,2DAAwD;AACxD,+DAA4D;AAC5D,2DAAwD;AACxD,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAClE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,qEAAkE;AAClE,mEAAgE;AAChE,6DAA0D;AAC1D,yDAAsD;AACtD,yDAAsD;AACtD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,+DAA4D;AAC5D,2DAAwD;AACxD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4D;AAC5D,iEAA8D;AAC9D,iEAA8D;AAC9D,iEAA8D;AAC9D,6EAA0E;AAC1E,yDAAsD;
|
1
|
+
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAkD;AAClD,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,2DAAwD;AACxD,+DAA4D;AAC5D,2DAAwD;AACxD,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAClE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,qEAAkE;AAClE,mEAAgE;AAChE,6DAA0D;AAC1D,yDAAsD;AACtD,yDAAsD;AACtD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,+DAA4D;AAC5D,2DAAwD;AACxD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4D;AAC5D,iEAA8D;AAC9D,iEAA8D;AAC9D,iEAA8D;AAC9D,6EAA0E;AAC1E,yDAAsD;AACtD,yDAAsD;AACtD,iEAA8D;AAC9D,yEAAsE;AACtE,iEAA8D;AAC9D,2EAAwE;AACxE,qEAAkE;AAClE,6CAA0C;AAC1C,iEAA8D;AAEjD,QAAA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC;IACvC,2CAAoB;IACpB,mCAAgB;IAChB,mCAAgB;IAChB,uDAA0B;IAC1B,+BAAc;IACd,mCAAgB;IAChB,qCAAiB;IACjB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,qCAAiB;IACjB,yCAAmB;IACnB,qCAAiB;IACjB,yCAAmB;IACnB,qCAAiB;IACjB,yDAA2B;IAC3B,yCAAmB;IACnB,2CAAoB;IACpB,2CAAoB;IACpB,+CAAsB;IACtB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+CAAsB;IACtB,6CAAqB;IACrB,2CAAoB;IACpB,2CAAoB;IACpB,qDAAyB;IACzB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,+CAAsB;IACtB,+CAAsB;IACtB,2CAAoB;IACpB,mDAAwB;IACxB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,uCAAkB;IAClB,+BAAc;IACd,6EAAqC;IACrC,2CAAoB;IACpB,yCAAmB;IACnB,qCAAiB;IACjB,+BAAc;IACd,mCAAgB;IAChB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IAIpB,uBAAU;CACX,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const LightningPaymentIntent: t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const LightningPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
3
|
intentType: t.KeyofC<{
|
4
4
|
payment: t.LiteralC<"payment">;
|
5
5
|
transferToken: t.LiteralC<"transferToken">;
|
@@ -30,12 +30,20 @@ export declare const LightningPaymentIntent: t.IntersectionC<[t.TypeC<{
|
|
30
30
|
deactivate: t.LiteralC<"deactivate">;
|
31
31
|
customTx: t.LiteralC<"customTx">;
|
32
32
|
}>;
|
33
|
+
}>, t.PartialC<{
|
33
34
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
35
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
-
nonce: t.UnionC<[t.
|
36
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
37
|
+
}>]>, t.TypeC<{
|
38
|
+
request: t.IntersectionC<[t.TypeC<{
|
39
|
+
invoice: t.StringC;
|
40
|
+
}>, t.PartialC<{
|
41
|
+
amountMsat: import("io-ts-types").BigIntFromStringC;
|
42
|
+
feeLimitMsat: import("io-ts-types").BigIntFromStringC;
|
43
|
+
feeLimitRatio: t.NumberC;
|
44
|
+
}>]>;
|
45
|
+
signature: t.StringC;
|
36
46
|
}>, t.TypeC<{
|
37
47
|
intentType: t.LiteralC<"payment">;
|
38
|
-
invoice: t.StringC;
|
39
|
-
signedInvoice: t.StringC;
|
40
48
|
}>]>;
|
41
49
|
export type LightningPaymentIntent = t.TypeOf<typeof LightningPaymentIntent>;
|
@@ -27,12 +27,12 @@ exports.LightningPaymentIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
28
|
const baseIntent_1 = require("./baseIntent");
|
29
29
|
const intentType_1 = require("./intentType");
|
30
|
+
const payment_1 = require("../../lightning/payment");
|
30
31
|
exports.LightningPaymentIntent = t.intersection([
|
31
32
|
baseIntent_1.BaseIntent,
|
33
|
+
payment_1.LightningPaymentRequestWithSig,
|
32
34
|
t.type({
|
33
35
|
intentType: intentType_1.intentTypes.payment,
|
34
|
-
invoice: t.string,
|
35
|
-
signedInvoice: t.string,
|
36
36
|
}),
|
37
37
|
]);
|
38
38
|
//# sourceMappingURL=lightningPaymentIntent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lightningPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/lightningPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;
|
1
|
+
{"version":3,"file":"lightningPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/lightningPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAC3C,qDAAyE;AAE5D,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,uBAAU;IACV,wCAA8B;IAC9B,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,OAAO;KAChC,CAAC;CACH,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const MmiSignMessageIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const MmiSignMessageIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
3
|
intentType: t.KeyofC<{
|
4
4
|
payment: t.LiteralC<"payment">;
|
5
5
|
transferToken: t.LiteralC<"transferToken">;
|
@@ -30,10 +30,11 @@ export declare const MmiSignMessageIntent: t.IntersectionC<[t.IntersectionC<[t.T
|
|
30
30
|
deactivate: t.LiteralC<"deactivate">;
|
31
31
|
customTx: t.LiteralC<"customTx">;
|
32
32
|
}>;
|
33
|
+
}>, t.PartialC<{
|
33
34
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
35
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
-
nonce: t.UnionC<[t.
|
36
|
-
}>, t.TypeC<{
|
36
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
37
|
+
}>]>, t.TypeC<{
|
37
38
|
intentType: t.LiteralC<"signMessage">;
|
38
39
|
messageRaw: t.StringC;
|
39
40
|
messageEncoded: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const MmiSignTransactionIntent: 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
|
+
}>, t.PartialC<{
|
34
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
36
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
37
|
+
}>]>, t.TypeC<{
|
38
|
+
intent: t.LiteralC<"payment">;
|
39
|
+
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
40
|
+
address: t.PartialC<{
|
41
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
42
|
+
option: t.UnionC<[t.Type<{
|
43
|
+
[x: string]: unknown;
|
44
|
+
}, {
|
45
|
+
[x: string]: unknown;
|
46
|
+
}, unknown>, t.UndefinedC]>;
|
47
|
+
}>;
|
48
|
+
amount: t.TypeC<{
|
49
|
+
value: t.StringC;
|
50
|
+
symbol: t.StringC;
|
51
|
+
}>;
|
52
|
+
}>, t.PartialC<{
|
53
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
54
|
+
}>]>>;
|
55
|
+
}>]>, t.TypeC<{
|
56
|
+
custodianTransactionId: t.StringC;
|
57
|
+
}>]>;
|
58
|
+
export type MmiSignTransactionIntent = t.TypeOf<typeof MmiSignTransactionIntent>;
|
@@ -0,0 +1,35 @@
|
|
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.MmiSignTransactionIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const paymentIntent_1 = require("./paymentIntent");
|
29
|
+
exports.MmiSignTransactionIntent = t.intersection([
|
30
|
+
paymentIntent_1.PaymentIntent,
|
31
|
+
t.type({
|
32
|
+
custodianTransactionId: t.string,
|
33
|
+
}),
|
34
|
+
]);
|
35
|
+
//# sourceMappingURL=mmiSignTransactionIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mmiSignTransactionIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/mmiSignTransactionIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAEnC,QAAA,wBAAwB,GAAG,CAAC,CAAC,YAAY,CAAC;IACrD,6BAAa;IACb,CAAC,CAAC,IAAI,CAAC;QACL,sBAAsB,EAAE,CAAC,CAAC,MAAM;KACjC,CAAC;CACH,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const NearStakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const NearStakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
3
|
intentType: t.KeyofC<{
|
4
4
|
payment: t.LiteralC<"payment">;
|
5
5
|
transferToken: t.LiteralC<"transferToken">;
|
@@ -30,16 +30,17 @@ export declare const NearStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inters
|
|
30
30
|
deactivate: t.LiteralC<"deactivate">;
|
31
31
|
customTx: t.LiteralC<"customTx">;
|
32
32
|
}>;
|
33
|
+
}>, t.PartialC<{
|
33
34
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
35
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
-
nonce: t.UnionC<[t.
|
36
|
-
}>, t.TypeC<{
|
36
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
37
|
+
}>]>, t.TypeC<{
|
37
38
|
stakingRequestId: t.StringC;
|
38
39
|
}>]>, t.TypeC<{
|
39
40
|
intentType: t.LiteralC<"stake">;
|
40
41
|
}>]>, t.TypeC<{
|
41
|
-
recipients: t.ArrayC<t.TypeC<{
|
42
|
-
address: t.
|
42
|
+
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
43
|
+
address: t.PartialC<{
|
43
44
|
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
44
45
|
option: t.UnionC<[t.Type<{
|
45
46
|
[x: string]: unknown;
|
@@ -51,7 +52,8 @@ export declare const NearStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inters
|
|
51
52
|
value: t.StringC;
|
52
53
|
symbol: t.StringC;
|
53
54
|
}>;
|
55
|
+
}>, t.PartialC<{
|
54
56
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
55
|
-
}>>;
|
57
|
+
}>]>>;
|
56
58
|
}>]>;
|
57
59
|
export type NearStakeIntent = t.TypeOf<typeof NearStakeIntent>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const NearUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const NearUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
3
|
intentType: t.KeyofC<{
|
4
4
|
payment: t.LiteralC<"payment">;
|
5
5
|
transferToken: t.LiteralC<"transferToken">;
|
@@ -30,16 +30,17 @@ export declare const NearUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inte
|
|
30
30
|
deactivate: t.LiteralC<"deactivate">;
|
31
31
|
customTx: t.LiteralC<"customTx">;
|
32
32
|
}>;
|
33
|
+
}>, t.PartialC<{
|
33
34
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
35
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
-
nonce: t.UnionC<[t.
|
36
|
-
}>, t.TypeC<{
|
36
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
37
|
+
}>]>, t.TypeC<{
|
37
38
|
stakingRequestId: t.StringC;
|
38
39
|
}>]>, t.TypeC<{
|
39
40
|
intentType: t.LiteralC<"unstake">;
|
40
41
|
}>]>, t.TypeC<{
|
41
|
-
recipients: t.ArrayC<t.TypeC<{
|
42
|
-
address: t.
|
42
|
+
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
43
|
+
address: t.PartialC<{
|
43
44
|
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
44
45
|
option: t.UnionC<[t.Type<{
|
45
46
|
[x: string]: unknown;
|
@@ -51,7 +52,8 @@ export declare const NearUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inte
|
|
51
52
|
value: t.StringC;
|
52
53
|
symbol: t.StringC;
|
53
54
|
}>;
|
55
|
+
}>, t.PartialC<{
|
54
56
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
55
|
-
}>>;
|
57
|
+
}>]>>;
|
56
58
|
}>]>;
|
57
59
|
export type NearUnstakeIntent = t.TypeOf<typeof NearUnstakeIntent>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const NearWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const NearWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
3
|
intentType: t.KeyofC<{
|
4
4
|
payment: t.LiteralC<"payment">;
|
5
5
|
transferToken: t.LiteralC<"transferToken">;
|
@@ -30,13 +30,15 @@ export declare const NearWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.Int
|
|
30
30
|
deactivate: t.LiteralC<"deactivate">;
|
31
31
|
customTx: t.LiteralC<"customTx">;
|
32
32
|
}>;
|
33
|
+
}>, t.PartialC<{
|
33
34
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
35
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
-
nonce: t.UnionC<[t.
|
36
|
-
}>, t.TypeC<{
|
36
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
37
|
+
}>]>, t.TypeC<{
|
37
38
|
stakingRequestId: t.StringC;
|
38
39
|
}>]>, t.TypeC<{
|
39
40
|
intentType: t.LiteralC<"claim">;
|
41
|
+
}>, t.PartialC<{
|
40
42
|
amount: t.UnionC<[t.Type<{
|
41
43
|
value: string;
|
42
44
|
symbol: string;
|
@@ -45,8 +47,8 @@ export declare const NearWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.Int
|
|
45
47
|
symbol: string;
|
46
48
|
}, unknown>, t.UndefinedC]>;
|
47
49
|
}>]>, t.TypeC<{
|
48
|
-
recipients: t.ArrayC<t.TypeC<{
|
49
|
-
address: t.
|
50
|
+
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
51
|
+
address: t.PartialC<{
|
50
52
|
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
51
53
|
option: t.UnionC<[t.Type<{
|
52
54
|
[x: string]: unknown;
|
@@ -58,7 +60,8 @@ export declare const NearWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.Int
|
|
58
60
|
value: t.StringC;
|
59
61
|
symbol: t.StringC;
|
60
62
|
}>;
|
63
|
+
}>, t.PartialC<{
|
61
64
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
62
|
-
}>>;
|
65
|
+
}>]>>;
|
63
66
|
}>]>;
|
64
67
|
export type NearWithdrawIntent = t.TypeOf<typeof NearWithdrawIntent>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const PaymentIntent: t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const PaymentIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
3
|
intentType: t.KeyofC<{
|
4
4
|
payment: t.LiteralC<"payment">;
|
5
5
|
transferToken: t.LiteralC<"transferToken">;
|
@@ -30,13 +30,14 @@ export declare const PaymentIntent: t.IntersectionC<[t.TypeC<{
|
|
30
30
|
deactivate: t.LiteralC<"deactivate">;
|
31
31
|
customTx: t.LiteralC<"customTx">;
|
32
32
|
}>;
|
33
|
+
}>, t.PartialC<{
|
33
34
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
35
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
-
nonce: t.UnionC<[t.
|
36
|
-
}>, t.TypeC<{
|
36
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
37
|
+
}>]>, t.TypeC<{
|
37
38
|
intent: t.LiteralC<"payment">;
|
38
|
-
recipients: t.ArrayC<t.TypeC<{
|
39
|
-
address: t.
|
39
|
+
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
40
|
+
address: t.PartialC<{
|
40
41
|
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
41
42
|
option: t.UnionC<[t.Type<{
|
42
43
|
[x: string]: unknown;
|
@@ -48,7 +49,8 @@ export declare const PaymentIntent: t.IntersectionC<[t.TypeC<{
|
|
48
49
|
value: t.StringC;
|
49
50
|
symbol: t.StringC;
|
50
51
|
}>;
|
52
|
+
}>, t.PartialC<{
|
51
53
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
52
|
-
}>>;
|
54
|
+
}>]>>;
|
53
55
|
}>]>;
|
54
56
|
export type PaymentIntent = t.TypeOf<typeof PaymentIntent>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const RecipientEntry: t.TypeC<{
|
3
|
-
address: t.
|
2
|
+
export declare const RecipientEntry: t.IntersectionC<[t.TypeC<{
|
3
|
+
address: t.PartialC<{
|
4
4
|
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
5
5
|
option: t.UnionC<[t.Type<{
|
6
6
|
[x: string]: unknown;
|
@@ -12,6 +12,7 @@ export declare const RecipientEntry: t.TypeC<{
|
|
12
12
|
value: t.StringC;
|
13
13
|
symbol: t.StringC;
|
14
14
|
}>;
|
15
|
+
}>, t.PartialC<{
|
15
16
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
16
|
-
}>;
|
17
|
+
}>]>;
|
17
18
|
export type RecipientEntry = t.TypeOf<typeof RecipientEntry>;
|
@@ -28,9 +28,13 @@ const t = __importStar(require("io-ts"));
|
|
28
28
|
const utils_1 = require("../../../utils");
|
29
29
|
const address_1 = require("./address");
|
30
30
|
const amount_1 = require("./amount");
|
31
|
-
exports.RecipientEntry = t.
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
})
|
31
|
+
exports.RecipientEntry = t.intersection([
|
32
|
+
t.type({
|
33
|
+
address: address_1.Address,
|
34
|
+
amount: amount_1.Amount,
|
35
|
+
}),
|
36
|
+
t.partial({
|
37
|
+
data: utils_1.optionalString,
|
38
|
+
}),
|
39
|
+
]);
|
36
40
|
//# sourceMappingURL=recipientEntry.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"recipientEntry.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/recipientEntry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAAgD;AAChD,uCAAoC;AACpC,qCAAkC;AAErB,QAAA,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC;
|
1
|
+
{"version":3,"file":"recipientEntry.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/recipientEntry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAAgD;AAChD,uCAAoC;AACpC,qCAAkC;AAErB,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,CAAC,CAAC,IAAI,CAAC;QACL,OAAO,EAAE,iBAAO;QAChB,MAAM,EAAE,eAAM;KACf,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,IAAI,EAAE,sBAAc;KACrB,CAAC;CACH,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const SignMessageIntent: t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const SignMessageIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
3
|
intentType: t.KeyofC<{
|
4
4
|
payment: t.LiteralC<"payment">;
|
5
5
|
transferToken: t.LiteralC<"transferToken">;
|
@@ -30,10 +30,11 @@ export declare const SignMessageIntent: t.IntersectionC<[t.TypeC<{
|
|
30
30
|
deactivate: t.LiteralC<"deactivate">;
|
31
31
|
customTx: t.LiteralC<"customTx">;
|
32
32
|
}>;
|
33
|
+
}>, t.PartialC<{
|
33
34
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
35
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
-
nonce: t.UnionC<[t.
|
36
|
-
}>, t.TypeC<{
|
36
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
37
|
+
}>]>, t.TypeC<{
|
37
38
|
intentType: t.LiteralC<"signMessage">;
|
38
39
|
messageRaw: t.StringC;
|
39
40
|
messageEncoded: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const SolAuthorizeIntent: t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const SolAuthorizeIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
3
|
intentType: t.KeyofC<{
|
4
4
|
payment: t.LiteralC<"payment">;
|
5
5
|
transferToken: t.LiteralC<"transferToken">;
|
@@ -30,10 +30,11 @@ export declare const SolAuthorizeIntent: t.IntersectionC<[t.TypeC<{
|
|
30
30
|
deactivate: t.LiteralC<"deactivate">;
|
31
31
|
customTx: t.LiteralC<"customTx">;
|
32
32
|
}>;
|
33
|
+
}>, t.PartialC<{
|
33
34
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
35
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
-
nonce: t.UnionC<[t.
|
36
|
-
}>, t.IntersectionC<[t.
|
36
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
37
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
37
38
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
38
39
|
}>, t.TypeC<{
|
39
40
|
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const SolBuildOptions: t.IntersectionC<[t.
|
2
|
+
export declare const SolBuildOptions: t.IntersectionC<[t.PartialC<{
|
3
3
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
4
4
|
}>, t.TypeC<{
|
5
5
|
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const SolClaimIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const SolClaimIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
3
|
intentType: t.KeyofC<{
|
4
4
|
payment: t.LiteralC<"payment">;
|
5
5
|
transferToken: t.LiteralC<"transferToken">;
|
@@ -30,13 +30,15 @@ export declare const SolClaimIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
|
|
30
30
|
deactivate: t.LiteralC<"deactivate">;
|
31
31
|
customTx: t.LiteralC<"customTx">;
|
32
32
|
}>;
|
33
|
+
}>, t.PartialC<{
|
33
34
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
35
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
-
nonce: t.UnionC<[t.
|
36
|
-
}>, t.TypeC<{
|
36
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
37
|
+
}>]>, t.TypeC<{
|
37
38
|
stakingRequestId: t.StringC;
|
38
39
|
}>]>, t.TypeC<{
|
39
40
|
intentType: t.LiteralC<"claim">;
|
41
|
+
}>, t.PartialC<{
|
40
42
|
amount: t.UnionC<[t.Type<{
|
41
43
|
value: string;
|
42
44
|
symbol: string;
|
@@ -44,7 +46,7 @@ export declare const SolClaimIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
|
|
44
46
|
value: string;
|
45
47
|
symbol: string;
|
46
48
|
}, unknown>, t.UndefinedC]>;
|
47
|
-
}>]>, t.IntersectionC<[t.
|
49
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
48
50
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
49
51
|
}>, t.TypeC<{
|
50
52
|
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
@@ -1,15 +1,16 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const SolConsolidateIntent: t.IntersectionC<[t.
|
2
|
+
export declare const SolConsolidateIntent: t.IntersectionC<[t.PartialC<{
|
3
3
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
4
4
|
}>, t.TypeC<{
|
5
5
|
intentType: t.LiteralC<"consolidate">;
|
6
6
|
receiveAddress: t.StringC;
|
7
|
+
}>, t.PartialC<{
|
7
8
|
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
8
9
|
consolidateId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
9
|
-
recipients: t.UnionC<[t.Type<{
|
10
|
+
recipients: t.UnionC<[t.Type<({
|
10
11
|
address: {
|
11
|
-
address
|
12
|
-
option
|
12
|
+
address?: string | undefined;
|
13
|
+
option?: {
|
13
14
|
[x: string]: unknown;
|
14
15
|
} | undefined;
|
15
16
|
};
|
@@ -17,11 +18,12 @@ export declare const SolConsolidateIntent: t.IntersectionC<[t.TypeC<{
|
|
17
18
|
value: string;
|
18
19
|
symbol: string;
|
19
20
|
};
|
20
|
-
|
21
|
-
|
21
|
+
} & {
|
22
|
+
data?: string | undefined;
|
23
|
+
})[], ({
|
22
24
|
address: {
|
23
|
-
address
|
24
|
-
option
|
25
|
+
address?: string | undefined;
|
26
|
+
option?: {
|
25
27
|
[x: string]: unknown;
|
26
28
|
} | undefined;
|
27
29
|
};
|
@@ -29,8 +31,9 @@ export declare const SolConsolidateIntent: t.IntersectionC<[t.TypeC<{
|
|
29
31
|
value: string;
|
30
32
|
symbol: string;
|
31
33
|
};
|
32
|
-
|
33
|
-
|
34
|
+
} & {
|
35
|
+
data?: string | undefined;
|
36
|
+
})[], unknown>, t.UndefinedC]>;
|
34
37
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
35
38
|
}>]>;
|
36
39
|
export type SolConsolidateIntent = t.TypeOf<typeof SolConsolidateIntent>;
|
package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const SolCreateAssociatedTokenAccountIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const SolCreateAssociatedTokenAccountIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
3
|
intentType: t.KeyofC<{
|
4
4
|
payment: t.LiteralC<"payment">;
|
5
5
|
transferToken: t.LiteralC<"transferToken">;
|
@@ -30,16 +30,18 @@ export declare const SolCreateAssociatedTokenAccountIntent: t.IntersectionC<[t.I
|
|
30
30
|
deactivate: t.LiteralC<"deactivate">;
|
31
31
|
customTx: t.LiteralC<"customTx">;
|
32
32
|
}>;
|
33
|
+
}>, t.PartialC<{
|
33
34
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
35
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
-
nonce: t.UnionC<[t.
|
36
|
-
}>, t.TypeC<{
|
36
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
37
|
+
}>]>, t.TypeC<{
|
37
38
|
intentType: t.LiteralC<"enableToken">;
|
38
|
-
enableTokens: t.ArrayC<t.TypeC<{
|
39
|
+
enableTokens: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
39
40
|
name: t.StringC;
|
41
|
+
}>, t.PartialC<{
|
40
42
|
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
41
|
-
}>>;
|
42
|
-
}>]>, t.IntersectionC<[t.
|
43
|
+
}>]>>;
|
44
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
43
45
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
44
46
|
}>, t.TypeC<{
|
45
47
|
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const SolDeactivateIntent: t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const SolDeactivateIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
3
|
intentType: t.KeyofC<{
|
4
4
|
payment: t.LiteralC<"payment">;
|
5
5
|
transferToken: t.LiteralC<"transferToken">;
|
@@ -30,10 +30,11 @@ export declare const SolDeactivateIntent: t.IntersectionC<[t.TypeC<{
|
|
30
30
|
deactivate: t.LiteralC<"deactivate">;
|
31
31
|
customTx: t.LiteralC<"customTx">;
|
32
32
|
}>;
|
33
|
+
}>, t.PartialC<{
|
33
34
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
35
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
-
nonce: t.UnionC<[t.
|
36
|
-
}>, t.IntersectionC<[t.
|
36
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
37
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
37
38
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
38
39
|
}>, t.TypeC<{
|
39
40
|
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|