@bitgo/public-types 2.39.0 → 2.41.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/index.d.ts +1 -0
- package/dist/src/schema/index.js +1 -0
- package/dist/src/schema/index.js.map +1 -1
- package/dist/src/schema/lightning/index.d.ts +1 -0
- package/dist/src/schema/lightning/index.js +18 -0
- package/dist/src/schema/lightning/index.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 +1115 -369
- 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 +4 -3
- 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/package.json +1 -1
- package/src/schema/index.ts +1 -0
- package/src/schema/lightning/index.ts +1 -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/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
@@ -0,0 +1,105 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const EthConsolidateTokenIntent: 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.IntersectionC<[t.PartialC<{
|
38
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
39
|
+
}>, t.PartialC<{
|
40
|
+
feeOptions: t.UnionC<[t.Type<{
|
41
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
42
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
43
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
44
|
+
gasLimit?: number | undefined;
|
45
|
+
gasPrice?: number | undefined;
|
46
|
+
} | {
|
47
|
+
gasLimit?: number | undefined;
|
48
|
+
maxFeePerGas?: number | undefined;
|
49
|
+
maxPriorityFeePerGas?: number | undefined;
|
50
|
+
}, {
|
51
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
52
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
53
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
54
|
+
gasLimit?: number | undefined;
|
55
|
+
gasPrice?: number | undefined;
|
56
|
+
} | {
|
57
|
+
gasLimit?: number | undefined;
|
58
|
+
maxFeePerGas?: number | undefined;
|
59
|
+
maxPriorityFeePerGas?: number | undefined;
|
60
|
+
}, unknown>, t.UndefinedC]>;
|
61
|
+
hopParams: t.UnionC<[t.Type<{
|
62
|
+
paymentId: string | undefined;
|
63
|
+
userReqSig: string | undefined;
|
64
|
+
gasPriceMax: number | undefined;
|
65
|
+
}, {
|
66
|
+
paymentId: string | undefined;
|
67
|
+
userReqSig: string | undefined;
|
68
|
+
gasPriceMax: number | undefined;
|
69
|
+
}, unknown>, t.UndefinedC]>;
|
70
|
+
receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
71
|
+
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
72
|
+
}>]>, t.TypeC<{
|
73
|
+
intentType: t.LiteralC<"consolidateToken">;
|
74
|
+
recipients: t.ArrayC<t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
75
|
+
address: t.PartialC<{
|
76
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
77
|
+
option: t.UnionC<[t.Type<{
|
78
|
+
[x: string]: unknown;
|
79
|
+
}, {
|
80
|
+
[x: string]: unknown;
|
81
|
+
}, unknown>, t.UndefinedC]>;
|
82
|
+
}>;
|
83
|
+
amount: t.TypeC<{
|
84
|
+
value: t.StringC;
|
85
|
+
symbol: t.StringC;
|
86
|
+
}>;
|
87
|
+
}>, t.PartialC<{
|
88
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
89
|
+
}>]>, t.TypeC<{
|
90
|
+
tokenData: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
91
|
+
tokenQuantity: t.StringC;
|
92
|
+
tokenType: t.StringC;
|
93
|
+
}>, t.PartialC<{
|
94
|
+
tokenId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
95
|
+
}>]>, t.TypeC<{
|
96
|
+
tokenName: t.StringC;
|
97
|
+
}>, t.PartialC<{
|
98
|
+
tokenContractAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
99
|
+
decimals: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
100
|
+
}>]>;
|
101
|
+
}>]>>;
|
102
|
+
consolidateId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
103
|
+
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
104
|
+
}>]>;
|
105
|
+
export type EthConsolidateTokenIntent = t.TypeOf<typeof EthConsolidateTokenIntent>;
|
@@ -0,0 +1,43 @@
|
|
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.EthConsolidateTokenIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const baseIntent_1 = require("./baseIntent");
|
29
|
+
const intentType_1 = require("./intentType");
|
30
|
+
const utils_1 = require("../../../utils");
|
31
|
+
const tokenRecipientEntry_1 = require("./tokenRecipientEntry");
|
32
|
+
const ethBuildOptions_1 = require("./ethBuildOptions");
|
33
|
+
exports.EthConsolidateTokenIntent = t.intersection([
|
34
|
+
baseIntent_1.BaseIntent,
|
35
|
+
ethBuildOptions_1.EthBuildOptions,
|
36
|
+
t.type({
|
37
|
+
intentType: intentType_1.intentTypes.consolidateToken,
|
38
|
+
recipients: t.array(tokenRecipientEntry_1.TokenRecipientEntry),
|
39
|
+
consolidateId: utils_1.optionalString,
|
40
|
+
keepAlive: utils_1.optionalBoolean,
|
41
|
+
}),
|
42
|
+
]);
|
43
|
+
//# sourceMappingURL=ethConsolidateTokenIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ethConsolidateTokenIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethConsolidateTokenIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAC3C,0CAAiE;AACjE,+DAA4D;AAC5D,uDAAoD;AAEvC,QAAA,yBAAyB,GAAG,CAAC,CAAC,YAAY,CAAC;IACtD,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,gBAAgB;QACxC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,yCAAmB,CAAC;QACxC,aAAa,EAAE,sBAAc;QAC7B,SAAS,EAAE,uBAAe;KAC3B,CAAC;CACH,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const EthFillNonceIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const EthFillNonceIntent: 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,32 +30,33 @@ export declare const EthFillNonceIntent: t.IntersectionC<[t.IntersectionC<[t.Typ
|
|
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
|
-
}>, t.TypeC<{
|
36
|
+
}>]>, t.TypeC<{
|
36
37
|
intentType: t.LiteralC<"fillNonce">;
|
37
38
|
nonce: t.UnionC<[t.StringC, t.NumberC]>;
|
38
|
-
}>]>, t.
|
39
|
+
}>]>, t.PartialC<{
|
39
40
|
feeOptions: t.UnionC<[t.Type<{
|
40
|
-
|
41
|
-
|
42
|
-
|
41
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
42
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
43
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
44
|
+
gasLimit?: number | undefined;
|
45
|
+
gasPrice?: number | undefined;
|
43
46
|
} | {
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
gasLimit: number | undefined;
|
48
|
-
gasPrice: number | undefined;
|
47
|
+
gasLimit?: number | undefined;
|
48
|
+
maxFeePerGas?: number | undefined;
|
49
|
+
maxPriorityFeePerGas?: number | undefined;
|
49
50
|
}, {
|
50
|
-
|
51
|
-
|
52
|
-
|
51
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
52
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
53
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
54
|
+
gasLimit?: number | undefined;
|
55
|
+
gasPrice?: number | undefined;
|
53
56
|
} | {
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
gasLimit: number | undefined;
|
58
|
-
gasPrice: number | undefined;
|
57
|
+
gasLimit?: number | undefined;
|
58
|
+
maxFeePerGas?: number | undefined;
|
59
|
+
maxPriorityFeePerGas?: number | undefined;
|
59
60
|
}, unknown>, t.UndefinedC]>;
|
60
61
|
receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
61
62
|
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
@@ -26,15 +26,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.EthFillNonceIntent = void 0;
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
28
|
const fillNonceIntent_1 = require("./fillNonceIntent");
|
29
|
-
const
|
30
|
-
const feeOption_1 = require("./feeOption");
|
31
|
-
const eip1559FeeOptions_1 = require("./eip1559FeeOptions");
|
29
|
+
const ethBuildOptions_1 = require("./ethBuildOptions");
|
32
30
|
exports.EthFillNonceIntent = t.intersection([
|
33
31
|
fillNonceIntent_1.FillNonceIntent,
|
34
|
-
|
35
|
-
feeOptions: (0, utils_1.Optional)(t.union([feeOption_1.FeeOption, eip1559FeeOptions_1.EIP1559FeeOptions])),
|
36
|
-
receiveAddress: utils_1.optionalString,
|
37
|
-
senderAddressIndex: utils_1.optionalNumber,
|
38
|
-
}),
|
32
|
+
ethBuildOptions_1.EthFillNonceBuildOptions,
|
39
33
|
]);
|
40
34
|
//# sourceMappingURL=ethFillNonceIntent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ethFillNonceIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethFillNonceIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,
|
1
|
+
{"version":3,"file":"ethFillNonceIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethFillNonceIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,uDAA6D;AAEhD,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,iCAAe;IACf,0CAAwB;CACzB,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const EthPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const EthPaymentIntent: 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,14 @@ export declare const EthPaymentIntent: t.IntersectionC<[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,31 +49,32 @@ export declare const EthPaymentIntent: t.IntersectionC<[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
|
-
}>>;
|
53
|
-
}>]>, t.IntersectionC<[t.
|
54
|
+
}>]>>;
|
55
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
54
56
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
55
|
-
}>, t.
|
57
|
+
}>, t.PartialC<{
|
56
58
|
feeOptions: t.UnionC<[t.Type<{
|
57
|
-
|
58
|
-
|
59
|
-
|
59
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
60
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
61
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
62
|
+
gasLimit?: number | undefined;
|
63
|
+
gasPrice?: number | undefined;
|
60
64
|
} | {
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
gasLimit: number | undefined;
|
65
|
-
gasPrice: number | undefined;
|
65
|
+
gasLimit?: number | undefined;
|
66
|
+
maxFeePerGas?: number | undefined;
|
67
|
+
maxPriorityFeePerGas?: number | undefined;
|
66
68
|
}, {
|
67
|
-
|
68
|
-
|
69
|
-
|
69
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
70
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
71
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
72
|
+
gasLimit?: number | undefined;
|
73
|
+
gasPrice?: number | undefined;
|
70
74
|
} | {
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
gasLimit: number | undefined;
|
75
|
-
gasPrice: number | undefined;
|
75
|
+
gasLimit?: number | undefined;
|
76
|
+
maxFeePerGas?: number | undefined;
|
77
|
+
maxPriorityFeePerGas?: number | undefined;
|
76
78
|
}, unknown>, t.UndefinedC]>;
|
77
79
|
hopParams: t.UnionC<[t.Type<{
|
78
80
|
paymentId: string | undefined;
|
@@ -86,6 +88,6 @@ export declare const EthPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC
|
|
86
88
|
receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
87
89
|
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
88
90
|
}>]>, t.TypeC<{
|
89
|
-
selfSend: t.
|
91
|
+
selfSend: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
90
92
|
}>]>;
|
91
93
|
export type EthPaymentIntent = t.TypeOf<typeof EthPaymentIntent>;
|
@@ -27,11 +27,12 @@ exports.EthPaymentIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
28
|
const paymentIntent_1 = require("./paymentIntent");
|
29
29
|
const ethBuildOptions_1 = require("./ethBuildOptions");
|
30
|
+
const utils_1 = require("../../../utils");
|
30
31
|
exports.EthPaymentIntent = t.intersection([
|
31
32
|
paymentIntent_1.PaymentIntent,
|
32
33
|
ethBuildOptions_1.EthBuildOptions,
|
33
34
|
t.type({
|
34
|
-
selfSend:
|
35
|
+
selfSend: utils_1.optionalBoolean,
|
35
36
|
}),
|
36
37
|
]);
|
37
38
|
//# sourceMappingURL=ethPaymentIntent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ethPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,uDAAoD;
|
1
|
+
{"version":3,"file":"ethPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,uDAAoD;AACpD,0CAAiD;AAEpC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,QAAQ,EAAE,uBAAe;KAC1B,CAAC;CACH,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const EthStakingIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const EthStakingIntent: 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,36 +30,37 @@ export declare const EthStakingIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
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
|
-
}>]>, t.IntersectionC<[t.
|
41
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
41
42
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
42
|
-
}>, t.
|
43
|
+
}>, t.PartialC<{
|
43
44
|
feeOptions: t.UnionC<[t.Type<{
|
44
|
-
|
45
|
-
|
46
|
-
|
45
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
46
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
47
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
48
|
+
gasLimit?: number | undefined;
|
49
|
+
gasPrice?: number | undefined;
|
47
50
|
} | {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
gasLimit: number | undefined;
|
52
|
-
gasPrice: number | undefined;
|
51
|
+
gasLimit?: number | undefined;
|
52
|
+
maxFeePerGas?: number | undefined;
|
53
|
+
maxPriorityFeePerGas?: number | undefined;
|
53
54
|
}, {
|
54
|
-
|
55
|
-
|
56
|
-
|
55
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
56
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
57
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
58
|
+
gasLimit?: number | undefined;
|
59
|
+
gasPrice?: number | undefined;
|
57
60
|
} | {
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
gasLimit: number | undefined;
|
62
|
-
gasPrice: number | undefined;
|
61
|
+
gasLimit?: number | undefined;
|
62
|
+
maxFeePerGas?: number | undefined;
|
63
|
+
maxPriorityFeePerGas?: number | undefined;
|
63
64
|
}, unknown>, t.UndefinedC]>;
|
64
65
|
hopParams: t.UnionC<[t.Type<{
|
65
66
|
paymentId: string | undefined;
|
@@ -0,0 +1,103 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const EthTransferTokenIntent: 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
|
+
intentType: t.LiteralC<"transferToken">;
|
39
|
+
recipients: t.ArrayC<t.IntersectionC<[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
|
+
}>]>, t.TypeC<{
|
55
|
+
tokenData: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
56
|
+
tokenQuantity: t.StringC;
|
57
|
+
tokenType: t.StringC;
|
58
|
+
}>, t.PartialC<{
|
59
|
+
tokenId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
60
|
+
}>]>, t.TypeC<{
|
61
|
+
tokenName: t.StringC;
|
62
|
+
}>, t.PartialC<{
|
63
|
+
tokenContractAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
64
|
+
decimals: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
65
|
+
}>]>;
|
66
|
+
}>]>>;
|
67
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
68
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
69
|
+
}>, t.PartialC<{
|
70
|
+
feeOptions: t.UnionC<[t.Type<{
|
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
|
+
} | {
|
77
|
+
gasLimit?: number | undefined;
|
78
|
+
maxFeePerGas?: number | undefined;
|
79
|
+
maxPriorityFeePerGas?: number | undefined;
|
80
|
+
}, {
|
81
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
82
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
83
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
84
|
+
gasLimit?: number | undefined;
|
85
|
+
gasPrice?: number | undefined;
|
86
|
+
} | {
|
87
|
+
gasLimit?: number | undefined;
|
88
|
+
maxFeePerGas?: number | undefined;
|
89
|
+
maxPriorityFeePerGas?: number | undefined;
|
90
|
+
}, unknown>, t.UndefinedC]>;
|
91
|
+
hopParams: t.UnionC<[t.Type<{
|
92
|
+
paymentId: string | undefined;
|
93
|
+
userReqSig: string | undefined;
|
94
|
+
gasPriceMax: number | undefined;
|
95
|
+
}, {
|
96
|
+
paymentId: string | undefined;
|
97
|
+
userReqSig: string | undefined;
|
98
|
+
gasPriceMax: number | undefined;
|
99
|
+
}, unknown>, t.UndefinedC]>;
|
100
|
+
receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
101
|
+
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
102
|
+
}>]>]>;
|
103
|
+
export type EthTransferTokenIntent = t.TypeOf<typeof EthTransferTokenIntent>;
|
@@ -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.EthTransferTokenIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const ethBuildOptions_1 = require("./ethBuildOptions");
|
29
|
+
const transferTokenIntent_1 = require("./transferTokenIntent");
|
30
|
+
exports.EthTransferTokenIntent = t.intersection([
|
31
|
+
transferTokenIntent_1.TransferTokenIntent,
|
32
|
+
ethBuildOptions_1.EthBuildOptions,
|
33
|
+
]);
|
34
|
+
//# sourceMappingURL=ethTransferTokenIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ethTransferTokenIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethTransferTokenIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,+DAA4D;AAE/C,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,yCAAmB;IACnB,iCAAe;CAChB,CAAC,CAAC"}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const FeeOption: t.
|
2
|
+
export declare const FeeOption: t.PartialC<{
|
3
3
|
unit: t.UnionC<[t.Type<"baseUnit" | "cpu" | "ram", "baseUnit" | "cpu" | "ram", unknown>, t.UndefinedC]>;
|
4
4
|
formula: t.UnionC<[t.Type<"fixed" | "feeRate" | "perKB" | "custom" | "perVKB", "fixed" | "feeRate" | "perKB" | "custom" | "perVKB", unknown>, t.UndefinedC]>;
|
5
5
|
feeType: t.UnionC<[t.Type<"max" | "base" | "tip", "max" | "base" | "tip", unknown>, t.UndefinedC]>;
|
6
6
|
gasLimit: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
7
7
|
gasPrice: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
8
8
|
}>;
|
9
|
+
export type FeeOption = t.TypeOf<typeof FeeOption>;
|
@@ -29,7 +29,7 @@ const utils_1 = require("../../../utils");
|
|
29
29
|
const feeOptionUnit_1 = require("./feeOptionUnit");
|
30
30
|
const feeOptionFormula_1 = require("./feeOptionFormula");
|
31
31
|
const feeOptionFeeType_1 = require("./feeOptionFeeType");
|
32
|
-
exports.FeeOption = t.
|
32
|
+
exports.FeeOption = t.partial({
|
33
33
|
unit: (0, utils_1.Optional)(feeOptionUnit_1.FeeUnit),
|
34
34
|
formula: (0, utils_1.Optional)(feeOptionFormula_1.FeeFormula),
|
35
35
|
feeType: (0, utils_1.Optional)(feeOptionFeeType_1.FeeType),
|
@@ -1 +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,
|
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,OAAO,CAAC;IACjC,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"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const FillNonceIntent: t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const FillNonceIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
3
|
intentType: t.KeyofC<{
|
4
4
|
payment: t.LiteralC<"payment">;
|
5
5
|
transferToken: t.LiteralC<"transferToken">;
|
@@ -30,9 +30,10 @@ export declare const FillNonceIntent: 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
|
-
}>, t.TypeC<{
|
36
|
+
}>]>, t.TypeC<{
|
36
37
|
intentType: t.LiteralC<"fillNonce">;
|
37
38
|
nonce: t.UnionC<[t.StringC, t.NumberC]>;
|
38
39
|
}>]>;
|