@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
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const DotUnstakingIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const DotUnstakingIntent: 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,26 +30,29 @@ export declare const DotUnstakingIntent: 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<"unstake">;
|
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
|
fee: t.UnionC<[t.Type<{
|
44
45
|
amount: string | number;
|
45
|
-
|
46
|
-
|
47
|
-
|
46
|
+
} & {
|
47
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
48
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
49
|
+
type?: "max" | "base" | "tip" | undefined;
|
48
50
|
}, {
|
49
51
|
amount: string | number;
|
50
|
-
|
51
|
-
|
52
|
-
|
52
|
+
} & {
|
53
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
54
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
55
|
+
type?: "max" | "base" | "tip" | undefined;
|
53
56
|
}, unknown>, t.UndefinedC]>;
|
54
57
|
}>]>, t.TypeC<{
|
55
58
|
amount: t.TypeC<{
|
@@ -57,6 +60,7 @@ export declare const DotUnstakingIntent: t.IntersectionC<[t.IntersectionC<[t.Int
|
|
57
60
|
symbol: t.StringC;
|
58
61
|
}>;
|
59
62
|
stakingProxy: t.StringC;
|
63
|
+
}>, t.PartialC<{
|
60
64
|
stopStaking: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
61
65
|
}>]>;
|
62
66
|
export type DotUnstakingIntent = t.TypeOf<typeof DotUnstakingIntent>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dotUnstakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotUnstakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,6EAA0E;AAC1E,qCAAkC;AAClC,0CAAiD;AAEpC,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,6BAAa;IACb,uDAA0B;IAC1B,CAAC,CAAC,IAAI,CAAC;QACL,MAAM,EAAE,eAAM;QACd,YAAY,EAAE,CAAC,CAAC,MAAM;
|
1
|
+
{"version":3,"file":"dotUnstakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotUnstakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,6EAA0E;AAC1E,qCAAkC;AAClC,0CAAiD;AAEpC,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,6BAAa;IACb,uDAA0B;IAC1B,CAAC,CAAC,IAAI,CAAC;QACL,MAAM,EAAE,eAAM;QACd,YAAY,EAAE,CAAC,CAAC,MAAM;KACvB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,WAAW,EAAE,uBAAe;KAC7B,CAAC;CACH,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const DotWithdrawStakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const DotWithdrawStakeIntent: 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 DotWithdrawStakeIntent: t.IntersectionC<[t.IntersectionC<[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
|
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,19 +46,21 @@ export declare const DotWithdrawStakeIntent: t.IntersectionC<[t.IntersectionC<[t
|
|
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
|
-
}>, t.
|
51
|
+
}>, t.PartialC<{
|
50
52
|
fee: t.UnionC<[t.Type<{
|
51
53
|
amount: string | number;
|
52
|
-
|
53
|
-
|
54
|
-
|
54
|
+
} & {
|
55
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
56
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
57
|
+
type?: "max" | "base" | "tip" | undefined;
|
55
58
|
}, {
|
56
59
|
amount: string | number;
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
+
} & {
|
61
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
62
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
63
|
+
type?: "max" | "base" | "tip" | undefined;
|
60
64
|
}, unknown>, t.UndefinedC]>;
|
61
65
|
}>]>]>;
|
62
66
|
export type DotWithdrawStakeIntent = t.TypeOf<typeof DotWithdrawStakeIntent>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const EIP1559FeeOptions: t.
|
2
|
+
export declare const EIP1559FeeOptions: t.PartialC<{
|
3
3
|
gasLimit: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
4
4
|
maxFeePerGas: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
5
5
|
maxPriorityFeePerGas: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.EIP1559FeeOptions = void 0;
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
28
|
const utils_1 = require("../../../utils");
|
29
|
-
exports.EIP1559FeeOptions = t.
|
29
|
+
exports.EIP1559FeeOptions = t.partial({
|
30
30
|
gasLimit: utils_1.optionalNumber,
|
31
31
|
maxFeePerGas: utils_1.optionalNumber,
|
32
32
|
maxPriorityFeePerGas: utils_1.optionalNumber,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eip1559FeeOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/eip1559FeeOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAAgD;AAEnC,QAAA,iBAAiB,GAAG,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"eip1559FeeOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/eip1559FeeOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAAgD;AAEnC,QAAA,iBAAiB,GAAG,CAAC,CAAC,OAAO,CAAC;IACzC,QAAQ,EAAE,sBAAc;IACxB,YAAY,EAAE,sBAAc;IAC5B,oBAAoB,EAAE,sBAAc;CACrC,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const EnableTokenIntent: t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const EnableTokenIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3
3
|
intentType: t.KeyofC<{
|
4
4
|
payment: t.LiteralC<"payment">;
|
5
5
|
transferToken: t.LiteralC<"transferToken">;
|
@@ -30,14 +30,16 @@ export declare const EnableTokenIntent: 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<"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
|
-
}>>;
|
43
|
+
}>]>>;
|
42
44
|
}>]>;
|
43
45
|
export type EnableTokenIntent = t.TypeOf<typeof EnableTokenIntent>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const EthAccelerationIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const EthAccelerationIntent: 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,15 +30,16 @@ export declare const EthAccelerationIntent: t.IntersectionC<[t.IntersectionC<[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<"acceleration">;
|
38
39
|
txid: t.StringC;
|
39
|
-
}>]>, t.IntersectionC<[t.
|
40
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
40
41
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
41
|
-
}>, t.
|
42
|
+
}>, t.PartialC<{
|
42
43
|
hopParams: t.UnionC<[t.Type<{
|
43
44
|
paymentId: string | undefined;
|
44
45
|
userReqSig: string | undefined;
|
@@ -51,13 +52,13 @@ export declare const EthAccelerationIntent: t.IntersectionC<[t.IntersectionC<[t.
|
|
51
52
|
receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
52
53
|
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
53
54
|
}>]>, t.TypeC<{
|
54
|
-
feeOptions: t.UnionC<[t.
|
55
|
+
feeOptions: t.UnionC<[t.PartialC<{
|
55
56
|
unit: t.UnionC<[t.Type<"baseUnit" | "cpu" | "ram", "baseUnit" | "cpu" | "ram", unknown>, t.UndefinedC]>;
|
56
57
|
formula: t.UnionC<[t.Type<"fixed" | "feeRate" | "perKB" | "custom" | "perVKB", "fixed" | "feeRate" | "perKB" | "custom" | "perVKB", unknown>, t.UndefinedC]>;
|
57
58
|
feeType: t.UnionC<[t.Type<"max" | "base" | "tip", "max" | "base" | "tip", unknown>, t.UndefinedC]>;
|
58
59
|
gasLimit: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
59
60
|
gasPrice: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
60
|
-
}>, t.
|
61
|
+
}>, t.PartialC<{
|
61
62
|
gasLimit: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
62
63
|
maxFeePerGas: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
63
64
|
maxPriorityFeePerGas: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
@@ -1,27 +1,27 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const EthBuildOptions: t.IntersectionC<[t.
|
2
|
+
export declare const EthBuildOptions: t.IntersectionC<[t.PartialC<{
|
3
3
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
4
|
-
}>, t.
|
4
|
+
}>, t.PartialC<{
|
5
5
|
feeOptions: t.UnionC<[t.Type<{
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
}, {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
6
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
7
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
8
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
9
|
+
gasLimit?: number | undefined;
|
10
|
+
gasPrice?: number | undefined;
|
11
|
+
} | {
|
12
|
+
gasLimit?: number | undefined;
|
13
|
+
maxFeePerGas?: number | undefined;
|
14
|
+
maxPriorityFeePerGas?: number | undefined;
|
15
|
+
}, {
|
16
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
17
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
18
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
19
|
+
gasLimit?: number | undefined;
|
20
|
+
gasPrice?: number | undefined;
|
21
|
+
} | {
|
22
|
+
gasLimit?: number | undefined;
|
23
|
+
maxFeePerGas?: number | undefined;
|
24
|
+
maxPriorityFeePerGas?: number | undefined;
|
25
25
|
}, unknown>, t.UndefinedC]>;
|
26
26
|
hopParams: t.UnionC<[t.Type<{
|
27
27
|
paymentId: string | undefined;
|
@@ -36,9 +36,9 @@ export declare const EthBuildOptions: t.IntersectionC<[t.TypeC<{
|
|
36
36
|
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
37
37
|
}>]>;
|
38
38
|
export type EthBuildOptions = t.TypeOf<typeof EthBuildOptions>;
|
39
|
-
export declare const EthBuildOptionsWithoutFeeOptions: t.IntersectionC<[t.
|
39
|
+
export declare const EthBuildOptionsWithoutFeeOptions: t.IntersectionC<[t.PartialC<{
|
40
40
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
41
|
-
}>, t.
|
41
|
+
}>, t.PartialC<{
|
42
42
|
hopParams: t.UnionC<[t.Type<{
|
43
43
|
paymentId: string | undefined;
|
44
44
|
userReqSig: string | undefined;
|
@@ -51,3 +51,105 @@ export declare const EthBuildOptionsWithoutFeeOptions: t.IntersectionC<[t.TypeC<
|
|
51
51
|
receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
52
52
|
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
53
53
|
}>]>;
|
54
|
+
export type EthBuildOptionsWithoutFeeOptions = t.TypeOf<typeof EthBuildOptionsWithoutFeeOptions>;
|
55
|
+
export declare const EthFillNonceBuildOptions: t.PartialC<{
|
56
|
+
feeOptions: t.UnionC<[t.Type<{
|
57
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
58
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
59
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
60
|
+
gasLimit?: number | undefined;
|
61
|
+
gasPrice?: number | undefined;
|
62
|
+
} | {
|
63
|
+
gasLimit?: number | undefined;
|
64
|
+
maxFeePerGas?: number | undefined;
|
65
|
+
maxPriorityFeePerGas?: number | undefined;
|
66
|
+
}, {
|
67
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
68
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
69
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
70
|
+
gasLimit?: number | undefined;
|
71
|
+
gasPrice?: number | undefined;
|
72
|
+
} | {
|
73
|
+
gasLimit?: number | undefined;
|
74
|
+
maxFeePerGas?: number | undefined;
|
75
|
+
maxPriorityFeePerGas?: number | undefined;
|
76
|
+
}, unknown>, t.UndefinedC]>;
|
77
|
+
receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
78
|
+
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
79
|
+
}>;
|
80
|
+
export type EthFillNonceBuildOptions = t.TypeOf<typeof EthFillNonceBuildOptions>;
|
81
|
+
export declare const AllEthBuildOptions: t.UnionC<[t.IntersectionC<[t.PartialC<{
|
82
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
83
|
+
}>, t.PartialC<{
|
84
|
+
feeOptions: t.UnionC<[t.Type<{
|
85
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
86
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
87
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
88
|
+
gasLimit?: number | undefined;
|
89
|
+
gasPrice?: number | undefined;
|
90
|
+
} | {
|
91
|
+
gasLimit?: number | undefined;
|
92
|
+
maxFeePerGas?: number | undefined;
|
93
|
+
maxPriorityFeePerGas?: number | undefined;
|
94
|
+
}, {
|
95
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
96
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
97
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
98
|
+
gasLimit?: number | undefined;
|
99
|
+
gasPrice?: number | undefined;
|
100
|
+
} | {
|
101
|
+
gasLimit?: number | undefined;
|
102
|
+
maxFeePerGas?: number | undefined;
|
103
|
+
maxPriorityFeePerGas?: number | undefined;
|
104
|
+
}, unknown>, t.UndefinedC]>;
|
105
|
+
hopParams: t.UnionC<[t.Type<{
|
106
|
+
paymentId: string | undefined;
|
107
|
+
userReqSig: string | undefined;
|
108
|
+
gasPriceMax: number | undefined;
|
109
|
+
}, {
|
110
|
+
paymentId: string | undefined;
|
111
|
+
userReqSig: string | undefined;
|
112
|
+
gasPriceMax: number | undefined;
|
113
|
+
}, unknown>, t.UndefinedC]>;
|
114
|
+
receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
115
|
+
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
116
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
117
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
118
|
+
}>, t.PartialC<{
|
119
|
+
hopParams: t.UnionC<[t.Type<{
|
120
|
+
paymentId: string | undefined;
|
121
|
+
userReqSig: string | undefined;
|
122
|
+
gasPriceMax: number | undefined;
|
123
|
+
}, {
|
124
|
+
paymentId: string | undefined;
|
125
|
+
userReqSig: string | undefined;
|
126
|
+
gasPriceMax: number | undefined;
|
127
|
+
}, unknown>, t.UndefinedC]>;
|
128
|
+
receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
129
|
+
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
130
|
+
}>]>, t.PartialC<{
|
131
|
+
feeOptions: t.UnionC<[t.Type<{
|
132
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
133
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
134
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
135
|
+
gasLimit?: number | undefined;
|
136
|
+
gasPrice?: number | undefined;
|
137
|
+
} | {
|
138
|
+
gasLimit?: number | undefined;
|
139
|
+
maxFeePerGas?: number | undefined;
|
140
|
+
maxPriorityFeePerGas?: number | undefined;
|
141
|
+
}, {
|
142
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
143
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
144
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
145
|
+
gasLimit?: number | undefined;
|
146
|
+
gasPrice?: number | undefined;
|
147
|
+
} | {
|
148
|
+
gasLimit?: number | undefined;
|
149
|
+
maxFeePerGas?: number | undefined;
|
150
|
+
maxPriorityFeePerGas?: number | undefined;
|
151
|
+
}, unknown>, t.UndefinedC]>;
|
152
|
+
receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
153
|
+
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
154
|
+
}>]>;
|
155
|
+
export type AllEthBuildOptions = t.TypeOf<typeof AllEthBuildOptions>;
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.EthBuildOptionsWithoutFeeOptions = exports.EthBuildOptions = void 0;
|
26
|
+
exports.AllEthBuildOptions = exports.EthFillNonceBuildOptions = exports.EthBuildOptionsWithoutFeeOptions = exports.EthBuildOptions = void 0;
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
28
|
const accountBaseBuildOptions_1 = require("./accountBaseBuildOptions");
|
29
29
|
const utils_1 = require("../../../utils");
|
@@ -32,7 +32,7 @@ const eip1559FeeOptions_1 = require("./eip1559FeeOptions");
|
|
32
32
|
const hopParams_1 = require("./hopParams");
|
33
33
|
exports.EthBuildOptions = t.intersection([
|
34
34
|
accountBaseBuildOptions_1.AccountBaseBuildOptions,
|
35
|
-
t.
|
35
|
+
t.partial({
|
36
36
|
feeOptions: (0, utils_1.Optional)(t.union([feeOption_1.FeeOption, eip1559FeeOptions_1.EIP1559FeeOptions])),
|
37
37
|
hopParams: (0, utils_1.Optional)(hopParams_1.HopParams),
|
38
38
|
receiveAddress: utils_1.optionalString,
|
@@ -41,10 +41,20 @@ exports.EthBuildOptions = t.intersection([
|
|
41
41
|
]);
|
42
42
|
exports.EthBuildOptionsWithoutFeeOptions = t.intersection([
|
43
43
|
accountBaseBuildOptions_1.AccountBaseBuildOptions,
|
44
|
-
t.
|
44
|
+
t.partial({
|
45
45
|
hopParams: (0, utils_1.Optional)(hopParams_1.HopParams),
|
46
46
|
receiveAddress: utils_1.optionalString,
|
47
47
|
senderAddressIndex: utils_1.optionalNumber,
|
48
48
|
}),
|
49
49
|
]);
|
50
|
+
exports.EthFillNonceBuildOptions = t.partial({
|
51
|
+
feeOptions: (0, utils_1.Optional)(t.union([feeOption_1.FeeOption, eip1559FeeOptions_1.EIP1559FeeOptions])),
|
52
|
+
receiveAddress: utils_1.optionalString,
|
53
|
+
senderAddressIndex: utils_1.optionalNumber,
|
54
|
+
});
|
55
|
+
exports.AllEthBuildOptions = t.union([
|
56
|
+
exports.EthBuildOptions,
|
57
|
+
exports.EthBuildOptionsWithoutFeeOptions,
|
58
|
+
exports.EthFillNonceBuildOptions,
|
59
|
+
]);
|
50
60
|
//# sourceMappingURL=ethBuildOptions.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ethBuildOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethBuildOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uEAAoE;AACpE,0CAA0E;AAC1E,2CAAwC;AACxC,2DAAwD;AACxD,2CAAwC;AAE3B,QAAA,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,iDAAuB;IACvB,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"ethBuildOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethBuildOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uEAAoE;AACpE,0CAA0E;AAC1E,2CAAwC;AACxC,2DAAwD;AACxD,2CAAwC;AAE3B,QAAA,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,iDAAuB;IACvB,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,qBAAS,EAAE,qCAAiB,CAAC,CAAC,CAAC;QAC7D,SAAS,EAAE,IAAA,gBAAQ,EAAC,qBAAS,CAAC;QAC9B,cAAc,EAAE,sBAAc;QAC9B,kBAAkB,EAAE,sBAAc;KACnC,CAAC;CACH,CAAC,CAAC;AAIU,QAAA,gCAAgC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7D,iDAAuB;IACvB,CAAC,CAAC,OAAO,CAAC;QACR,SAAS,EAAE,IAAA,gBAAQ,EAAC,qBAAS,CAAC;QAC9B,cAAc,EAAE,sBAAc;QAC9B,kBAAkB,EAAE,sBAAc;KACnC,CAAC;CACH,CAAC,CAAC;AAQU,QAAA,wBAAwB,GAAG,CAAC,CAAC,OAAO,CAAC;IAChD,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,qBAAS,EAAE,qCAAiB,CAAC,CAAC,CAAC;IAC7D,cAAc,EAAE,sBAAc;IAC9B,kBAAkB,EAAE,sBAAc;CACnC,CAAC,CAAC;AAMU,QAAA,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC;IACxC,uBAAe;IACf,wCAAgC;IAChC,gCAAwB;CACzB,CAAC,CAAC"}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const EthConsolidateIntent: t.IntersectionC<[t.IntersectionC<[t.PartialC<{
|
3
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
4
|
+
}>, t.TypeC<{
|
5
|
+
intentType: t.LiteralC<"consolidate">;
|
6
|
+
receiveAddress: t.StringC;
|
7
|
+
}>, t.PartialC<{
|
8
|
+
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
9
|
+
consolidateId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
10
|
+
recipients: t.UnionC<[t.Type<({
|
11
|
+
address: {
|
12
|
+
address?: string | undefined;
|
13
|
+
option?: {
|
14
|
+
[x: string]: unknown;
|
15
|
+
} | undefined;
|
16
|
+
};
|
17
|
+
amount: {
|
18
|
+
value: string;
|
19
|
+
symbol: string;
|
20
|
+
};
|
21
|
+
} & {
|
22
|
+
data?: string | undefined;
|
23
|
+
})[], ({
|
24
|
+
address: {
|
25
|
+
address?: string | undefined;
|
26
|
+
option?: {
|
27
|
+
[x: string]: unknown;
|
28
|
+
} | undefined;
|
29
|
+
};
|
30
|
+
amount: {
|
31
|
+
value: string;
|
32
|
+
symbol: string;
|
33
|
+
};
|
34
|
+
} & {
|
35
|
+
data?: string | undefined;
|
36
|
+
})[], unknown>, t.UndefinedC]>;
|
37
|
+
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
38
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
39
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
40
|
+
}>, t.PartialC<{
|
41
|
+
feeOptions: t.UnionC<[t.Type<{
|
42
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
43
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
44
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
45
|
+
gasLimit?: number | undefined;
|
46
|
+
gasPrice?: number | undefined;
|
47
|
+
} | {
|
48
|
+
gasLimit?: number | undefined;
|
49
|
+
maxFeePerGas?: number | undefined;
|
50
|
+
maxPriorityFeePerGas?: number | undefined;
|
51
|
+
}, {
|
52
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
53
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
|
54
|
+
feeType?: "max" | "base" | "tip" | undefined;
|
55
|
+
gasLimit?: number | undefined;
|
56
|
+
gasPrice?: number | undefined;
|
57
|
+
} | {
|
58
|
+
gasLimit?: number | undefined;
|
59
|
+
maxFeePerGas?: number | undefined;
|
60
|
+
maxPriorityFeePerGas?: number | undefined;
|
61
|
+
}, unknown>, t.UndefinedC]>;
|
62
|
+
hopParams: t.UnionC<[t.Type<{
|
63
|
+
paymentId: string | undefined;
|
64
|
+
userReqSig: string | undefined;
|
65
|
+
gasPriceMax: number | undefined;
|
66
|
+
}, {
|
67
|
+
paymentId: string | undefined;
|
68
|
+
userReqSig: string | undefined;
|
69
|
+
gasPriceMax: number | undefined;
|
70
|
+
}, unknown>, t.UndefinedC]>;
|
71
|
+
receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
72
|
+
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
73
|
+
}>]>]>;
|
74
|
+
export type EthConsolidateIntent = t.TypeOf<typeof EthConsolidateIntent>;
|
@@ -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.EthConsolidateIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const accountBaseConsolidateIntent_1 = require("./accountBaseConsolidateIntent");
|
29
|
+
const ethBuildOptions_1 = require("./ethBuildOptions");
|
30
|
+
exports.EthConsolidateIntent = t.intersection([
|
31
|
+
accountBaseConsolidateIntent_1.AccountBaseConsolidateIntent,
|
32
|
+
ethBuildOptions_1.EthBuildOptions,
|
33
|
+
]);
|
34
|
+
//# sourceMappingURL=ethConsolidateIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ethConsolidateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethConsolidateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iFAA8E;AAC9E,uDAAoD;AAEvC,QAAA,oBAAoB,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,2DAA4B;IAC5B,iCAAe;CAChB,CAAC,CAAC"}
|