@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
@@ -36,6 +36,8 @@ exports.CosmosUnstakeIntent = t.intersection([
|
|
36
36
|
intentType: intentType_1.intentTypes.undelegate,
|
37
37
|
validatorAddress: t.string,
|
38
38
|
amount: amount_1.Amount,
|
39
|
+
}),
|
40
|
+
t.partial({
|
39
41
|
recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
|
40
42
|
}),
|
41
43
|
]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cosmosUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cosmosUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,qCAAkC;AAClC,qDAAkD;AAClD,0CAA0C;AAE7B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,UAAU;QAClC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;
|
1
|
+
{"version":3,"file":"cosmosUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cosmosUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,qCAAkC;AAClC,qDAAkD;AAClD,0CAA0C;AAE7B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,UAAU;QAClC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;KACf,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const CosmosWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const CosmosWithdrawIntent: 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 CosmosWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.I
|
|
30
30
|
deactivate: t.LiteralC<"deactivate">;
|
31
31
|
customTx: t.LiteralC<"customTx">;
|
32
32
|
}>;
|
33
|
+
}>, t.PartialC<{
|
33
34
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
35
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
-
nonce: t.UnionC<[t.
|
36
|
-
}>, t.TypeC<{
|
36
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
37
|
+
}>]>, t.TypeC<{
|
37
38
|
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;
|
@@ -1,17 +1,19 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const DotAccountBaseBuildOptions: t.IntersectionC<[t.
|
2
|
+
export declare const DotAccountBaseBuildOptions: 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
|
fee: t.UnionC<[t.Type<{
|
6
6
|
amount: string | number;
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
} & {
|
8
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
9
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
10
|
+
type?: "max" | "base" | "tip" | undefined;
|
10
11
|
}, {
|
11
12
|
amount: string | number;
|
12
|
-
|
13
|
-
|
14
|
-
|
13
|
+
} & {
|
14
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
15
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
16
|
+
type?: "max" | "base" | "tip" | undefined;
|
15
17
|
}, unknown>, t.UndefinedC]>;
|
16
18
|
}>]>;
|
17
19
|
export type DotAccountBaseBuildOptions = t.TypeOf<typeof DotAccountBaseBuildOptions>;
|
@@ -30,7 +30,7 @@ const dotFeeOptions_1 = require("./dotFeeOptions");
|
|
30
30
|
const utils_1 = require("../../../utils");
|
31
31
|
exports.DotAccountBaseBuildOptions = t.intersection([
|
32
32
|
accountBaseBuildOptions_1.AccountBaseBuildOptions,
|
33
|
-
t.
|
33
|
+
t.partial({
|
34
34
|
fee: (0, utils_1.Optional)(dotFeeOptions_1.DotFeeOptions),
|
35
35
|
}),
|
36
36
|
]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dotAccountBaseBuildOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uEAAoE;AACpE,mDAAgD;AAChD,0CAA0C;AAE7B,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,iDAAuB;IACvB,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"dotAccountBaseBuildOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uEAAoE;AACpE,mDAAgD;AAChD,0CAA0C;AAE7B,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,iDAAuB;IACvB,CAAC,CAAC,OAAO,CAAC;QACR,GAAG,EAAE,IAAA,gBAAQ,EAAC,6BAAa,CAAC;KAC7B,CAAC;CACH,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const DotBaseIntent: t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const DotBaseIntent: 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 DotBaseIntent: 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.
|
36
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
37
|
+
}>]>, t.PartialC<{
|
37
38
|
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
38
39
|
fee: t.UnionC<[t.Type<{
|
39
40
|
amount: string | number;
|
40
|
-
|
41
|
-
|
42
|
-
|
41
|
+
} & {
|
42
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
43
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
44
|
+
type?: "max" | "base" | "tip" | undefined;
|
43
45
|
}, {
|
44
46
|
amount: string | number;
|
45
|
-
|
46
|
-
|
47
|
-
|
47
|
+
} & {
|
48
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
49
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
50
|
+
type?: "max" | "base" | "tip" | undefined;
|
48
51
|
}, unknown>, t.UndefinedC]>;
|
49
|
-
recipients: t.UnionC<[t.Type<{
|
52
|
+
recipients: t.UnionC<[t.Type<({
|
50
53
|
address: {
|
51
|
-
address
|
52
|
-
option
|
54
|
+
address?: string | undefined;
|
55
|
+
option?: {
|
53
56
|
[x: string]: unknown;
|
54
57
|
} | undefined;
|
55
58
|
};
|
@@ -57,11 +60,12 @@ export declare const DotBaseIntent: t.IntersectionC<[t.TypeC<{
|
|
57
60
|
value: string;
|
58
61
|
symbol: string;
|
59
62
|
};
|
60
|
-
|
61
|
-
|
63
|
+
} & {
|
64
|
+
data?: string | undefined;
|
65
|
+
})[], ({
|
62
66
|
address: {
|
63
|
-
address
|
64
|
-
option
|
67
|
+
address?: string | undefined;
|
68
|
+
option?: {
|
65
69
|
[x: string]: unknown;
|
66
70
|
} | undefined;
|
67
71
|
};
|
@@ -69,7 +73,8 @@ export declare const DotBaseIntent: t.IntersectionC<[t.TypeC<{
|
|
69
73
|
value: string;
|
70
74
|
symbol: string;
|
71
75
|
};
|
72
|
-
|
73
|
-
|
76
|
+
} & {
|
77
|
+
data?: string | undefined;
|
78
|
+
})[], unknown>, t.UndefinedC]>;
|
74
79
|
}>]>;
|
75
80
|
export type DotBaseIntent = t.TypeOf<typeof DotBaseIntent>;
|
@@ -31,7 +31,7 @@ const recipientEntry_1 = require("./recipientEntry");
|
|
31
31
|
const baseIntent_1 = require("./baseIntent");
|
32
32
|
exports.DotBaseIntent = t.intersection([
|
33
33
|
baseIntent_1.BaseIntent,
|
34
|
-
t.
|
34
|
+
t.partial({
|
35
35
|
senderAddressIndex: utils_1.optionalNumber,
|
36
36
|
fee: (0, utils_1.Optional)(dotFeeOptions_1.DotFeeOptions),
|
37
37
|
recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dotBaseIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotBaseIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAA0D;AAC1D,mDAAgD;AAChD,qDAAkD;AAClD,6CAA0C;AAE7B,QAAA,aAAa,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1C,uBAAU;IACV,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"dotBaseIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotBaseIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAA0D;AAC1D,mDAAgD;AAChD,qDAAkD;AAClD,6CAA0C;AAE7B,QAAA,aAAa,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1C,uBAAU;IACV,CAAC,CAAC,OAAO,CAAC;QACR,kBAAkB,EAAE,sBAAc;QAClC,GAAG,EAAE,IAAA,gBAAQ,EAAC,6BAAa,CAAC;QAC5B,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const DotConsolidateIntent: 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
|
+
}>]>;
|
39
|
+
export type DotConsolidateIntent = t.TypeOf<typeof DotConsolidateIntent>;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DotConsolidateIntent = void 0;
|
4
|
+
const accountBaseConsolidateIntent_1 = require("./accountBaseConsolidateIntent");
|
5
|
+
exports.DotConsolidateIntent = accountBaseConsolidateIntent_1.AccountBaseConsolidateIntent;
|
6
|
+
//# sourceMappingURL=dotConsolidateIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dotConsolidateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotConsolidateIntent.ts"],"names":[],"mappings":";;;AACA,iFAA8E;AAEjE,QAAA,oBAAoB,GAAG,2DAA4B,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const DotCreateAccountIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const DotCreateAccountIntent: 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,41 @@ export declare const DotCreateAccountIntent: 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.
|
36
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
37
|
+
}>]>, t.PartialC<{
|
37
38
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
38
39
|
}>, t.TypeC<{
|
39
40
|
intentType: t.LiteralC<"createAccount">;
|
41
|
+
}>, t.PartialC<{
|
40
42
|
name: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
41
|
-
}>]>, t.IntersectionC<[t.
|
43
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
42
44
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
43
|
-
}>, t.
|
45
|
+
}>, t.PartialC<{
|
44
46
|
fee: t.UnionC<[t.Type<{
|
45
47
|
amount: string | number;
|
46
|
-
|
47
|
-
|
48
|
-
|
48
|
+
} & {
|
49
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
50
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
51
|
+
type?: "max" | "base" | "tip" | undefined;
|
49
52
|
}, {
|
50
53
|
amount: string | number;
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
+
} & {
|
55
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
56
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
57
|
+
type?: "max" | "base" | "tip" | undefined;
|
54
58
|
}, unknown>, t.UndefinedC]>;
|
55
59
|
}>]>, t.TypeC<{
|
56
60
|
delayBlocks: t.StringC;
|
57
61
|
proxyType: t.StringC;
|
62
|
+
}>, t.PartialC<{
|
58
63
|
index: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
59
|
-
recipients: t.UnionC<[t.Type<{
|
64
|
+
recipients: t.UnionC<[t.Type<({
|
60
65
|
address: {
|
61
|
-
address
|
62
|
-
option
|
66
|
+
address?: string | undefined;
|
67
|
+
option?: {
|
63
68
|
[x: string]: unknown;
|
64
69
|
} | undefined;
|
65
70
|
};
|
@@ -67,11 +72,12 @@ export declare const DotCreateAccountIntent: t.IntersectionC<[t.IntersectionC<[t
|
|
67
72
|
value: string;
|
68
73
|
symbol: string;
|
69
74
|
};
|
70
|
-
|
71
|
-
|
75
|
+
} & {
|
76
|
+
data?: string | undefined;
|
77
|
+
})[], ({
|
72
78
|
address: {
|
73
|
-
address
|
74
|
-
option
|
79
|
+
address?: string | undefined;
|
80
|
+
option?: {
|
75
81
|
[x: string]: unknown;
|
76
82
|
} | undefined;
|
77
83
|
};
|
@@ -79,7 +85,8 @@ export declare const DotCreateAccountIntent: t.IntersectionC<[t.IntersectionC<[t
|
|
79
85
|
value: string;
|
80
86
|
symbol: string;
|
81
87
|
};
|
82
|
-
|
83
|
-
|
88
|
+
} & {
|
89
|
+
data?: string | undefined;
|
90
|
+
})[], unknown>, t.UndefinedC]>;
|
84
91
|
}>]>;
|
85
92
|
export type DotCreateAccountIntent = t.TypeOf<typeof DotCreateAccountIntent>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dotCreateAccountIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotCreateAccountIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6EAA0E;AAC1E,0CAA0D;AAC1D,qDAAkD;AAClD,qFAAkF;AAErE,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,+DAA8B;IAC9B,uDAA0B;IAC1B,CAAC,CAAC,IAAI,CAAC;QACL,WAAW,EAAE,CAAC,CAAC,MAAM;QACrB,SAAS,EAAE,CAAC,CAAC,MAAM;
|
1
|
+
{"version":3,"file":"dotCreateAccountIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotCreateAccountIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6EAA0E;AAC1E,0CAA0D;AAC1D,qDAAkD;AAClD,qFAAkF;AAErE,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,+DAA8B;IAC9B,uDAA0B;IAC1B,CAAC,CAAC,IAAI,CAAC;QACL,WAAW,EAAE,CAAC,CAAC,MAAM;QACrB,SAAS,EAAE,CAAC,CAAC,MAAM;KACpB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,KAAK,EAAE,sBAAc;QAErB,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const dotFeeFormulas: {
|
3
|
+
fixed: t.LiteralC<"fixed">;
|
4
|
+
feeRate: t.LiteralC<"feeRate">;
|
5
|
+
perKB: t.LiteralC<"perKB">;
|
6
|
+
custom: t.LiteralC<"custom">;
|
7
|
+
};
|
8
|
+
export declare const DotFeeFormulas: t.KeyofC<{
|
9
|
+
fixed: t.LiteralC<"fixed">;
|
10
|
+
feeRate: t.LiteralC<"feeRate">;
|
11
|
+
perKB: t.LiteralC<"perKB">;
|
12
|
+
custom: t.LiteralC<"custom">;
|
13
|
+
}>;
|
14
|
+
export type DotFeeFormulas = t.TypeOf<typeof DotFeeFormulas>;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
+
exports.DotFeeFormulas = exports.dotFeeFormulas = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
exports.dotFeeFormulas = {
|
29
|
+
fixed: t.literal("fixed"),
|
30
|
+
feeRate: t.literal("feeRate"),
|
31
|
+
perKB: t.literal("perKB"),
|
32
|
+
custom: t.literal("custom"),
|
33
|
+
};
|
34
|
+
exports.DotFeeFormulas = t.keyof(exports.dotFeeFormulas);
|
35
|
+
//# sourceMappingURL=dotFeeOptionFormula.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dotFeeOptionFormula.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotFeeOptionFormula.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAEd,QAAA,cAAc,GAAG;IAC5B,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACzB,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC7B,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACzB,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;CAC5B,CAAC;AAEW,QAAA,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,sBAAc,CAAC,CAAC"}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const DotFeeOptions: t.TypeC<{
|
2
|
+
export declare const DotFeeOptions: t.IntersectionC<[t.TypeC<{
|
3
3
|
amount: t.UnionC<[t.StringC, t.NumberC]>;
|
4
|
+
}>, t.PartialC<{
|
4
5
|
unit: t.UnionC<[t.Type<"baseUnit" | "cpu" | "ram", "baseUnit" | "cpu" | "ram", unknown>, t.UndefinedC]>;
|
5
|
-
formula: t.UnionC<[t.Type<"fixed" | "feeRate" | "perKB" | "custom"
|
6
|
+
formula: t.UnionC<[t.Type<"fixed" | "feeRate" | "perKB" | "custom", "fixed" | "feeRate" | "perKB" | "custom", unknown>, t.UndefinedC]>;
|
6
7
|
type: t.UnionC<[t.Type<"max" | "base" | "tip", "max" | "base" | "tip", unknown>, t.UndefinedC]>;
|
7
|
-
}>;
|
8
|
+
}>]>;
|
@@ -27,12 +27,16 @@ exports.DotFeeOptions = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
28
|
const feeOptionUnit_1 = require("./feeOptionUnit");
|
29
29
|
const utils_1 = require("../../../utils");
|
30
|
-
const
|
30
|
+
const dotFeeOptionFormula_1 = require("./dotFeeOptionFormula");
|
31
31
|
const feeOptionFeeType_1 = require("./feeOptionFeeType");
|
32
|
-
exports.DotFeeOptions = t.
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
32
|
+
exports.DotFeeOptions = t.intersection([
|
33
|
+
t.type({
|
34
|
+
amount: t.union([t.string, t.number]),
|
35
|
+
}),
|
36
|
+
t.partial({
|
37
|
+
unit: (0, utils_1.Optional)(feeOptionUnit_1.FeeUnit),
|
38
|
+
formula: (0, utils_1.Optional)(dotFeeOptionFormula_1.DotFeeFormulas),
|
39
|
+
type: (0, utils_1.Optional)(feeOptionFeeType_1.FeeType),
|
40
|
+
}),
|
41
|
+
]);
|
38
42
|
//# sourceMappingURL=dotFeeOptions.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dotFeeOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotFeeOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAA0C;AAC1C,0CAA0C;AAC1C
|
1
|
+
{"version":3,"file":"dotFeeOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotFeeOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAA0C;AAC1C,0CAA0C;AAC1C,+DAAuD;AACvD,yDAA6C;AAEhC,QAAA,aAAa,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1C,CAAC,CAAC,IAAI,CAAC;QACL,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;KACtC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,IAAI,EAAE,IAAA,gBAAQ,EAAC,uBAAO,CAAC;QACvB,OAAO,EAAE,IAAA,gBAAQ,EAAC,oCAAc,CAAC;QACjC,IAAI,EAAE,IAAA,gBAAQ,EAAC,0BAAO,CAAC;KACxB,CAAC;CACH,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const DotPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const DotPaymentIntent: 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 DotPaymentIntent: 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,24 +49,27 @@ export declare const DotPaymentIntent: 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
|
fee: t.UnionC<[t.Type<{
|
57
59
|
amount: string | number;
|
58
|
-
|
59
|
-
|
60
|
-
|
60
|
+
} & {
|
61
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
62
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
63
|
+
type?: "max" | "base" | "tip" | undefined;
|
61
64
|
}, {
|
62
65
|
amount: string | number;
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
+
} & {
|
67
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
68
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
69
|
+
type?: "max" | "base" | "tip" | undefined;
|
66
70
|
}, unknown>, t.UndefinedC]>;
|
67
71
|
}>]>, t.TypeC<{
|
68
|
-
proxy: t.
|
72
|
+
proxy: t.PartialC<{
|
69
73
|
name: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
70
74
|
addressString: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
71
75
|
asset: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const DotProxy: t.
|
2
|
+
export declare const DotProxy: t.PartialC<{
|
3
3
|
name: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
4
4
|
addressString: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
5
5
|
asset: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.DotProxy = void 0;
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
28
|
const utils_1 = require("../../../utils");
|
29
|
-
exports.DotProxy = t.
|
29
|
+
exports.DotProxy = t.partial({
|
30
30
|
name: utils_1.optionalString,
|
31
31
|
addressString: utils_1.optionalString,
|
32
32
|
asset: utils_1.optionalString,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dotProxy.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotProxy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAAgD;AAEnC,QAAA,QAAQ,GAAG,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"dotProxy.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotProxy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAAgD;AAEnC,QAAA,QAAQ,GAAG,CAAC,CAAC,OAAO,CAAC;IAChC,IAAI,EAAE,sBAAc;IACpB,aAAa,EAAE,sBAAc;IAC7B,KAAK,EAAE,sBAAc;IACrB,YAAY,EAAE,sBAAc;CAC7B,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const DotStakingIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2
|
+
export declare const DotStakingIntent: 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 DotStakingIntent: 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
|
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 DotStakingIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
57
60
|
symbol: t.StringC;
|
58
61
|
}>;
|
59
62
|
stakingProxy: t.StringC;
|
63
|
+
}>, t.PartialC<{
|
60
64
|
addToStake: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
61
65
|
addProxy: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
62
66
|
}>]>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dotStakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotStakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6EAA0E;AAC1E,qCAAkC;AAClC,+CAA4C;AAC5C,0CAAiD;AAEpC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,yBAAW;IACX,uDAA0B;IAC1B,CAAC,CAAC,IAAI,CAAC;QACL,MAAM,EAAE,eAAM;QACd,YAAY,EAAE,CAAC,CAAC,MAAM;
|
1
|
+
{"version":3,"file":"dotStakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotStakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6EAA0E;AAC1E,qCAAkC;AAClC,+CAA4C;AAC5C,0CAAiD;AAEpC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,yBAAW;IACX,uDAA0B;IAC1B,CAAC,CAAC,IAAI,CAAC;QACL,MAAM,EAAE,eAAM;QACd,YAAY,EAAE,CAAC,CAAC,MAAM;KACvB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,uBAAe;QAC3B,QAAQ,EAAE,uBAAe;KAC1B,CAAC;CACH,CAAC,CAAC"}
|