@bitgo/public-types 5.4.0 → 5.5.1

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.
Files changed (31) hide show
  1. package/dist/src/schema/transactionRequest/intents/index.d.ts +3 -0
  2. package/dist/src/schema/transactionRequest/intents/index.js +3 -0
  3. package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
  4. package/dist/src/schema/transactionRequest/intents/intent.d.ts +157 -1
  5. package/dist/src/schema/transactionRequest/intents/intent.js +4 -0
  6. package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
  7. package/dist/src/schema/transactionRequest/intents/polyxBaseIntent.d.ts +79 -0
  8. package/dist/src/schema/transactionRequest/intents/polyxBaseIntent.js +38 -0
  9. package/dist/src/schema/transactionRequest/intents/polyxBaseIntent.js.map +1 -0
  10. package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.d.ts +2 -2
  11. package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.js +4 -6
  12. package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.js.map +1 -1
  13. package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.d.ts +81 -0
  14. package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.js +36 -0
  15. package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.js.map +1 -0
  16. package/dist/src/schema/transactionRequest/intents/polyxWithdrawIntent.d.ts +81 -0
  17. package/dist/src/schema/transactionRequest/intents/polyxWithdrawIntent.js +36 -0
  18. package/dist/src/schema/transactionRequest/intents/polyxWithdrawIntent.js.map +1 -0
  19. package/dist/src/schema/transactions/tronTransaction.d.ts +30 -192
  20. package/dist/src/schema/transactions/tronTransaction.js +35 -66
  21. package/dist/src/schema/transactions/tronTransaction.js.map +1 -1
  22. package/dist/src/schema/webhook/addWalletWebhookRequest.js.map +1 -1
  23. package/package.json +1 -1
  24. package/src/schema/transactionRequest/intents/index.ts +3 -0
  25. package/src/schema/transactionRequest/intents/intent.ts +4 -0
  26. package/src/schema/transactionRequest/intents/polyxBaseIntent.ts +18 -0
  27. package/src/schema/transactionRequest/intents/polyxStakeIntent.ts +4 -6
  28. package/src/schema/transactionRequest/intents/polyxUnstakeIntent.ts +15 -0
  29. package/src/schema/transactionRequest/intents/polyxWithdrawIntent.ts +15 -0
  30. package/src/schema/transactions/tronTransaction.ts +36 -71
  31. package/src/schema/webhook/addWalletWebhookRequest.ts +3 -0
@@ -74,7 +74,10 @@ export * from "./mmiSignTransactionIntent";
74
74
  export * from "./nearStakeIntent";
75
75
  export * from "./nearUnstakeIntent";
76
76
  export * from "./nearWithdrawIntent";
77
+ export * from "./polyxBaseIntent";
77
78
  export * from "./polyxStakeIntent";
79
+ export * from "./polyxUnstakeIntent";
80
+ export * from "./polyxWithdrawIntent";
78
81
  export * from "./paymentIntent";
79
82
  export * from "./recipientEntry";
80
83
  export * from "./signMessageIntent";
@@ -90,7 +90,10 @@ __exportStar(require("./mmiSignTransactionIntent"), exports);
90
90
  __exportStar(require("./nearStakeIntent"), exports);
91
91
  __exportStar(require("./nearUnstakeIntent"), exports);
92
92
  __exportStar(require("./nearWithdrawIntent"), exports);
93
+ __exportStar(require("./polyxBaseIntent"), exports);
93
94
  __exportStar(require("./polyxStakeIntent"), exports);
95
+ __exportStar(require("./polyxUnstakeIntent"), exports);
96
+ __exportStar(require("./polyxWithdrawIntent"), exports);
94
97
  __exportStar(require("./paymentIntent"), exports);
95
98
  __exportStar(require("./recipientEntry"), exports);
96
99
  __exportStar(require("./signMessageIntent"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,+DAA6C;AAC7C,mDAAiC;AACjC,qDAAmC;AAC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D;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,8DAA4C;AAC5C,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,qDAAmC;AACnC,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,qEAAmD;AACnD,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,kDAAgC;AAChC,uEAAqD;AACrD,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,+DAA6C;AAC7C,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kEAAgD;AAChD,6DAA2C;AAC3C,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,uDAAqC;AACrC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,gEAA8C;AAC9C,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,kDAAgC;AAChC,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,kDA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C;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC"}
@@ -2918,8 +2918,86 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
2918
2918
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
2919
2919
  }>]>, t.TypeC<{
2920
2920
  stakingRequestId: t.StringC;
2921
+ }>]>, t.IntersectionC<[t.PartialC<{
2922
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
2923
+ }>, t.PartialC<{
2924
+ fee: t.UnionC<[t.Type<{
2925
+ amount: string | number;
2926
+ } & {
2927
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
2928
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
2929
+ type?: "max" | "base" | "tip" | undefined;
2930
+ }, {
2931
+ amount: string | number;
2932
+ } & {
2933
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
2934
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
2935
+ type?: "max" | "base" | "tip" | undefined;
2936
+ }, unknown>, t.UndefinedC]>;
2937
+ }>]>, t.TypeC<{
2938
+ recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
2939
+ address: t.PartialC<{
2940
+ address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2941
+ option: t.UnionC<[t.Type<{
2942
+ [x: string]: unknown;
2943
+ }, {
2944
+ [x: string]: unknown;
2945
+ }, unknown>, t.UndefinedC]>;
2946
+ }>;
2947
+ amount: t.TypeC<{
2948
+ value: t.StringC;
2949
+ symbol: t.StringC;
2950
+ }>;
2951
+ }>, t.PartialC<{
2952
+ data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2953
+ }>]>>;
2921
2954
  }>]>, t.TypeC<{
2922
2955
  intentType: t.LiteralC<"stake">;
2956
+ }>, t.PartialC<{
2957
+ addToStake: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
2958
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2959
+ intentType: t.KeyofC<{
2960
+ payment: t.LiteralC<"payment">;
2961
+ transferToken: t.LiteralC<"transferToken">;
2962
+ consolidate: t.LiteralC<"consolidate">;
2963
+ consolidateToken: t.LiteralC<"consolidateToken">;
2964
+ fanout: t.LiteralC<"fanout">;
2965
+ stake: t.LiteralC<"stake">;
2966
+ unstake: t.LiteralC<"unstake">;
2967
+ delegate: t.LiteralC<"delegate">;
2968
+ undelegate: t.LiteralC<"undelegate">;
2969
+ switchValidator: t.LiteralC<"switchValidator">;
2970
+ claim: t.LiteralC<"claim">;
2971
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
2972
+ pledge: t.LiteralC<"pledge">;
2973
+ voteDelegation: t.LiteralC<"voteDelegation">;
2974
+ vote: t.LiteralC<"vote">;
2975
+ createAccount: t.LiteralC<"createAccount">;
2976
+ updateAccount: t.LiteralC<"updateAccount">;
2977
+ addTrustLine: t.LiteralC<"addTrustLine">;
2978
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
2979
+ signMessage: t.LiteralC<"signMessage">;
2980
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
2981
+ enableToken: t.LiteralC<"enableToken">;
2982
+ authorize: t.LiteralC<"authorize">;
2983
+ acceleration: t.LiteralC<"acceleration">;
2984
+ fillNonce: t.LiteralC<"fillNonce">;
2985
+ walletRecovery: t.LiteralC<"walletRecovery">;
2986
+ contractCall: t.LiteralC<"contractCall">;
2987
+ deactivate: t.LiteralC<"deactivate">;
2988
+ customTx: t.LiteralC<"customTx">;
2989
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
2990
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
2991
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
2992
+ tokenApproval: t.LiteralC<"tokenApproval">;
2993
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
2994
+ }>;
2995
+ }>, t.PartialC<{
2996
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2997
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2998
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
2999
+ }>]>, t.TypeC<{
3000
+ stakingRequestId: t.StringC;
2923
3001
  }>]>, t.IntersectionC<[t.PartialC<{
2924
3002
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
2925
3003
  }>, t.PartialC<{
@@ -2953,8 +3031,86 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
2953
3031
  }>, t.PartialC<{
2954
3032
  data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2955
3033
  }>]>>;
3034
+ }>]>, t.TypeC<{
3035
+ intentType: t.LiteralC<"unstake">;
3036
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3037
+ intentType: t.KeyofC<{
3038
+ payment: t.LiteralC<"payment">;
3039
+ transferToken: t.LiteralC<"transferToken">;
3040
+ consolidate: t.LiteralC<"consolidate">;
3041
+ consolidateToken: t.LiteralC<"consolidateToken">;
3042
+ fanout: t.LiteralC<"fanout">;
3043
+ stake: t.LiteralC<"stake">;
3044
+ unstake: t.LiteralC<"unstake">;
3045
+ delegate: t.LiteralC<"delegate">;
3046
+ undelegate: t.LiteralC<"undelegate">;
3047
+ switchValidator: t.LiteralC<"switchValidator">;
3048
+ claim: t.LiteralC<"claim">;
3049
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
3050
+ pledge: t.LiteralC<"pledge">;
3051
+ voteDelegation: t.LiteralC<"voteDelegation">;
3052
+ vote: t.LiteralC<"vote">;
3053
+ createAccount: t.LiteralC<"createAccount">;
3054
+ updateAccount: t.LiteralC<"updateAccount">;
3055
+ addTrustLine: t.LiteralC<"addTrustLine">;
3056
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
3057
+ signMessage: t.LiteralC<"signMessage">;
3058
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
3059
+ enableToken: t.LiteralC<"enableToken">;
3060
+ authorize: t.LiteralC<"authorize">;
3061
+ acceleration: t.LiteralC<"acceleration">;
3062
+ fillNonce: t.LiteralC<"fillNonce">;
3063
+ walletRecovery: t.LiteralC<"walletRecovery">;
3064
+ contractCall: t.LiteralC<"contractCall">;
3065
+ deactivate: t.LiteralC<"deactivate">;
3066
+ customTx: t.LiteralC<"customTx">;
3067
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
3068
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
3069
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
3070
+ tokenApproval: t.LiteralC<"tokenApproval">;
3071
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
3072
+ }>;
2956
3073
  }>, t.PartialC<{
2957
- addToStake: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
3074
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3075
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3076
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3077
+ }>]>, t.TypeC<{
3078
+ stakingRequestId: t.StringC;
3079
+ }>]>, t.IntersectionC<[t.PartialC<{
3080
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3081
+ }>, t.PartialC<{
3082
+ fee: t.UnionC<[t.Type<{
3083
+ amount: string | number;
3084
+ } & {
3085
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
3086
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
3087
+ type?: "max" | "base" | "tip" | undefined;
3088
+ }, {
3089
+ amount: string | number;
3090
+ } & {
3091
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
3092
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
3093
+ type?: "max" | "base" | "tip" | undefined;
3094
+ }, unknown>, t.UndefinedC]>;
3095
+ }>]>, t.TypeC<{
3096
+ recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
3097
+ address: t.PartialC<{
3098
+ address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3099
+ option: t.UnionC<[t.Type<{
3100
+ [x: string]: unknown;
3101
+ }, {
3102
+ [x: string]: unknown;
3103
+ }, unknown>, t.UndefinedC]>;
3104
+ }>;
3105
+ amount: t.TypeC<{
3106
+ value: t.StringC;
3107
+ symbol: t.StringC;
3108
+ }>;
3109
+ }>, t.PartialC<{
3110
+ data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3111
+ }>]>>;
3112
+ }>]>, t.TypeC<{
3113
+ intentType: t.LiteralC<"claim">;
2958
3114
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2959
3115
  intentType: t.KeyofC<{
2960
3116
  payment: t.LiteralC<"payment">;
@@ -61,6 +61,8 @@ const nearUnstakeIntent_1 = require("./nearUnstakeIntent");
61
61
  const nearWithdrawIntent_1 = require("./nearWithdrawIntent");
62
62
  const polyxCreateAccountIntent_1 = require("./polyxCreateAccountIntent");
63
63
  const polyxStakeIntent_1 = require("./polyxStakeIntent");
64
+ const polyxUnstakeIntent_1 = require("./polyxUnstakeIntent");
65
+ const polyxWithdrawIntent_1 = require("./polyxWithdrawIntent");
64
66
  const solAuthorizeIntent_1 = require("./solAuthorizeIntent");
65
67
  const solClaimIntent_1 = require("./solClaimIntent");
66
68
  const solCreateAssociatedTokenAccountIntent_1 = require("./solCreateAssociatedTokenAccountIntent");
@@ -147,6 +149,8 @@ exports.TransactionIntent = t.union([
147
149
  nearWithdrawIntent_1.NearWithdrawIntent,
148
150
  polyxCreateAccountIntent_1.PolyxCreateAccountIntent,
149
151
  polyxStakeIntent_1.PolyxStakeIntent,
152
+ polyxUnstakeIntent_1.PolyxUnstakeIntent,
153
+ polyxWithdrawIntent_1.PolyxWithdrawIntent,
150
154
  solAuthorizeIntent_1.SolAuthorizeIntent,
151
155
  solClaimIntent_1.SolClaimIntent,
152
156
  solCloseAssociatedTokenAccountIntent_1.SolCloseAssociatedTokenAccountIntent,
@@ -1 +1 @@
1
- {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAkD;AAClD,uEAAoE;AACpE,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,mFAAgF;AAChF,yEAAsE;AACtE,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAClE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,qEAAkE;AAClE,mEAAgE;AAChE,6DAA0D;AAC1D,yDAAsD;AACtD,yDAAsD;AACtD,yEAAsE;AACtE,yDAAsD;AACtD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,yEAAsE;AACtE,yDAAsD;AACtD,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,6EAA0E;AAC1E,qEAAkE;AAClE,qDAAkD;AAClD,yDAAsD;AACtD,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4D;AAC5D,iEAA8D;AAC9D,iEAA8D;AAC9D,iEAA8D;AA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CAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IAKpB,uBAAU;CACX,CAAC,CAAC"}
1
+ {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAkD;AAClD,uEAAoE;AACpE,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,mFAAgF;AAChF,yEAAsE;AACtE,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAClE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,qEAAkE;AAClE,mEAAgE;AAChE,6DAA0D;AAC1D,yDAAsD;AACtD,yDAAsD;AACtD,yEAAsE;AACtE,yDAAsD;AACtD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,yEAAsE;AACtE,yDAAsD;AACtD,6DAA0D;AAC1D,+DAA4D;AAC5D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,6EAA0E;AAC1E,qEAAkE;AAClE,qDAAkD;AAClD,yDAAsD;AACtD,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4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oB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+BAAc;IACd,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IAKpB,uBAAU;CACX,CAAC,CAAC"}
@@ -0,0 +1,79 @@
1
+ import * as t from "io-ts";
2
+ export declare const PolyxBaseIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
+ intentType: t.KeyofC<{
4
+ payment: t.LiteralC<"payment">;
5
+ transferToken: t.LiteralC<"transferToken">;
6
+ consolidate: t.LiteralC<"consolidate">;
7
+ consolidateToken: t.LiteralC<"consolidateToken">;
8
+ fanout: t.LiteralC<"fanout">;
9
+ stake: t.LiteralC<"stake">;
10
+ unstake: t.LiteralC<"unstake">;
11
+ delegate: t.LiteralC<"delegate">;
12
+ undelegate: t.LiteralC<"undelegate">;
13
+ switchValidator: t.LiteralC<"switchValidator">;
14
+ claim: t.LiteralC<"claim">;
15
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
16
+ pledge: t.LiteralC<"pledge">;
17
+ voteDelegation: t.LiteralC<"voteDelegation">;
18
+ vote: t.LiteralC<"vote">;
19
+ createAccount: t.LiteralC<"createAccount">;
20
+ updateAccount: t.LiteralC<"updateAccount">;
21
+ addTrustLine: t.LiteralC<"addTrustLine">;
22
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
23
+ signMessage: t.LiteralC<"signMessage">;
24
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
25
+ enableToken: t.LiteralC<"enableToken">;
26
+ authorize: t.LiteralC<"authorize">;
27
+ acceleration: t.LiteralC<"acceleration">;
28
+ fillNonce: t.LiteralC<"fillNonce">;
29
+ walletRecovery: t.LiteralC<"walletRecovery">;
30
+ contractCall: t.LiteralC<"contractCall">;
31
+ deactivate: t.LiteralC<"deactivate">;
32
+ customTx: t.LiteralC<"customTx">;
33
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
34
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
35
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
36
+ tokenApproval: t.LiteralC<"tokenApproval">;
37
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
38
+ }>;
39
+ }>, t.PartialC<{
40
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
41
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
42
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
43
+ }>]>, t.TypeC<{
44
+ stakingRequestId: t.StringC;
45
+ }>]>, t.IntersectionC<[t.PartialC<{
46
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
47
+ }>, t.PartialC<{
48
+ fee: t.UnionC<[t.Type<{
49
+ amount: string | number;
50
+ } & {
51
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
52
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
53
+ type?: "max" | "base" | "tip" | undefined;
54
+ }, {
55
+ amount: string | number;
56
+ } & {
57
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
58
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
59
+ type?: "max" | "base" | "tip" | undefined;
60
+ }, unknown>, t.UndefinedC]>;
61
+ }>]>, t.TypeC<{
62
+ recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
63
+ address: t.PartialC<{
64
+ address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
65
+ option: t.UnionC<[t.Type<{
66
+ [x: string]: unknown;
67
+ }, {
68
+ [x: string]: unknown;
69
+ }, unknown>, t.UndefinedC]>;
70
+ }>;
71
+ amount: t.TypeC<{
72
+ value: t.StringC;
73
+ symbol: t.StringC;
74
+ }>;
75
+ }>, t.PartialC<{
76
+ data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
77
+ }>]>>;
78
+ }>]>;
79
+ export type PolyxBaseIntent = t.TypeOf<typeof PolyxBaseIntent>;
@@ -0,0 +1,38 @@
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.PolyxBaseIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const substrateAccountBaseBuildOptions_1 = require("./substrateAccountBaseBuildOptions");
29
+ const recipientEntry_1 = require("./recipientEntry");
30
+ const baseStakeIntent_1 = require("./baseStakeIntent");
31
+ exports.PolyxBaseIntent = t.intersection([
32
+ baseStakeIntent_1.BaseStakeIntent,
33
+ substrateAccountBaseBuildOptions_1.SubstrateAccountBaseBuildOptions,
34
+ t.type({
35
+ recipients: t.array(recipientEntry_1.RecipientEntry),
36
+ }),
37
+ ]);
38
+ //# sourceMappingURL=polyxBaseIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polyxBaseIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/polyxBaseIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yFAAsF;AACtF,qDAAkD;AAClD,uDAAoD;AAMvC,QAAA,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,iCAAe;IACf,mEAAgC;IAChC,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC;KACpC,CAAC;CACH,CAAC,CAAC"}
@@ -42,8 +42,6 @@ export declare const PolyxStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
42
42
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
43
43
  }>]>, t.TypeC<{
44
44
  stakingRequestId: t.StringC;
45
- }>]>, t.TypeC<{
46
- intentType: t.LiteralC<"stake">;
47
45
  }>]>, t.IntersectionC<[t.PartialC<{
48
46
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
49
47
  }>, t.PartialC<{
@@ -77,6 +75,8 @@ export declare const PolyxStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
77
75
  }>, t.PartialC<{
78
76
  data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
79
77
  }>]>>;
78
+ }>]>, t.TypeC<{
79
+ intentType: t.LiteralC<"stake">;
80
80
  }>, t.PartialC<{
81
81
  addToStake: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
82
82
  }>]>;
@@ -25,15 +25,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.PolyxStakeIntent = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
- const substrateAccountBaseBuildOptions_1 = require("./substrateAccountBaseBuildOptions");
29
- const stakeIntent_1 = require("./stakeIntent");
30
- const recipientEntry_1 = require("./recipientEntry");
28
+ const polyxBaseIntent_1 = require("./polyxBaseIntent");
29
+ const intentType_1 = require("./intentType");
31
30
  const utils_1 = require("../../../utils");
32
31
  exports.PolyxStakeIntent = t.intersection([
33
- stakeIntent_1.StakeIntent,
34
- substrateAccountBaseBuildOptions_1.SubstrateAccountBaseBuildOptions,
32
+ polyxBaseIntent_1.PolyxBaseIntent,
35
33
  t.type({
36
- recipients: t.array(recipientEntry_1.RecipientEntry),
34
+ intentType: intentType_1.intentTypes.stake,
37
35
  }),
38
36
  t.partial({
39
37
  addToStake: utils_1.optionalBoolean,
@@ -1 +1 @@
1
- {"version":3,"file":"polyxStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/polyxStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yFAAsF;AACtF,+CAA4C;AAC5C,qDAAkD;AAClD,0CAAiD;AAKpC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,yBAAW;IACX,mEAAgC;IAChC,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC;KACpC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,uBAAe;KAC5B,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"polyxStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/polyxStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,0CAAiD;AAKpC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,KAAK;KAC9B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,uBAAe;KAC5B,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,81 @@
1
+ import * as t from "io-ts";
2
+ export declare const PolyxUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
+ intentType: t.KeyofC<{
4
+ payment: t.LiteralC<"payment">;
5
+ transferToken: t.LiteralC<"transferToken">;
6
+ consolidate: t.LiteralC<"consolidate">;
7
+ consolidateToken: t.LiteralC<"consolidateToken">;
8
+ fanout: t.LiteralC<"fanout">;
9
+ stake: t.LiteralC<"stake">;
10
+ unstake: t.LiteralC<"unstake">;
11
+ delegate: t.LiteralC<"delegate">;
12
+ undelegate: t.LiteralC<"undelegate">;
13
+ switchValidator: t.LiteralC<"switchValidator">;
14
+ claim: t.LiteralC<"claim">;
15
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
16
+ pledge: t.LiteralC<"pledge">;
17
+ voteDelegation: t.LiteralC<"voteDelegation">;
18
+ vote: t.LiteralC<"vote">;
19
+ createAccount: t.LiteralC<"createAccount">;
20
+ updateAccount: t.LiteralC<"updateAccount">;
21
+ addTrustLine: t.LiteralC<"addTrustLine">;
22
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
23
+ signMessage: t.LiteralC<"signMessage">;
24
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
25
+ enableToken: t.LiteralC<"enableToken">;
26
+ authorize: t.LiteralC<"authorize">;
27
+ acceleration: t.LiteralC<"acceleration">;
28
+ fillNonce: t.LiteralC<"fillNonce">;
29
+ walletRecovery: t.LiteralC<"walletRecovery">;
30
+ contractCall: t.LiteralC<"contractCall">;
31
+ deactivate: t.LiteralC<"deactivate">;
32
+ customTx: t.LiteralC<"customTx">;
33
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
34
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
35
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
36
+ tokenApproval: t.LiteralC<"tokenApproval">;
37
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
38
+ }>;
39
+ }>, t.PartialC<{
40
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
41
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
42
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
43
+ }>]>, t.TypeC<{
44
+ stakingRequestId: t.StringC;
45
+ }>]>, t.IntersectionC<[t.PartialC<{
46
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
47
+ }>, t.PartialC<{
48
+ fee: t.UnionC<[t.Type<{
49
+ amount: string | number;
50
+ } & {
51
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
52
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
53
+ type?: "max" | "base" | "tip" | undefined;
54
+ }, {
55
+ amount: string | number;
56
+ } & {
57
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
58
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
59
+ type?: "max" | "base" | "tip" | undefined;
60
+ }, unknown>, t.UndefinedC]>;
61
+ }>]>, t.TypeC<{
62
+ recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
63
+ address: t.PartialC<{
64
+ address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
65
+ option: t.UnionC<[t.Type<{
66
+ [x: string]: unknown;
67
+ }, {
68
+ [x: string]: unknown;
69
+ }, unknown>, t.UndefinedC]>;
70
+ }>;
71
+ amount: t.TypeC<{
72
+ value: t.StringC;
73
+ symbol: t.StringC;
74
+ }>;
75
+ }>, t.PartialC<{
76
+ data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
77
+ }>]>>;
78
+ }>]>, t.TypeC<{
79
+ intentType: t.LiteralC<"unstake">;
80
+ }>]>;
81
+ export type PolyxUnstakeIntent = t.TypeOf<typeof PolyxUnstakeIntent>;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.PolyxUnstakeIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const polyxBaseIntent_1 = require("./polyxBaseIntent");
29
+ const intentType_1 = require("./intentType");
30
+ exports.PolyxUnstakeIntent = t.intersection([
31
+ polyxBaseIntent_1.PolyxBaseIntent,
32
+ t.type({
33
+ intentType: intentType_1.intentTypes.unstake,
34
+ }),
35
+ ]);
36
+ //# sourceMappingURL=polyxUnstakeIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polyxUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/polyxUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAK9B,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,OAAO;KAChC,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,81 @@
1
+ import * as t from "io-ts";
2
+ export declare const PolyxWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
+ intentType: t.KeyofC<{
4
+ payment: t.LiteralC<"payment">;
5
+ transferToken: t.LiteralC<"transferToken">;
6
+ consolidate: t.LiteralC<"consolidate">;
7
+ consolidateToken: t.LiteralC<"consolidateToken">;
8
+ fanout: t.LiteralC<"fanout">;
9
+ stake: t.LiteralC<"stake">;
10
+ unstake: t.LiteralC<"unstake">;
11
+ delegate: t.LiteralC<"delegate">;
12
+ undelegate: t.LiteralC<"undelegate">;
13
+ switchValidator: t.LiteralC<"switchValidator">;
14
+ claim: t.LiteralC<"claim">;
15
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
16
+ pledge: t.LiteralC<"pledge">;
17
+ voteDelegation: t.LiteralC<"voteDelegation">;
18
+ vote: t.LiteralC<"vote">;
19
+ createAccount: t.LiteralC<"createAccount">;
20
+ updateAccount: t.LiteralC<"updateAccount">;
21
+ addTrustLine: t.LiteralC<"addTrustLine">;
22
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
23
+ signMessage: t.LiteralC<"signMessage">;
24
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
25
+ enableToken: t.LiteralC<"enableToken">;
26
+ authorize: t.LiteralC<"authorize">;
27
+ acceleration: t.LiteralC<"acceleration">;
28
+ fillNonce: t.LiteralC<"fillNonce">;
29
+ walletRecovery: t.LiteralC<"walletRecovery">;
30
+ contractCall: t.LiteralC<"contractCall">;
31
+ deactivate: t.LiteralC<"deactivate">;
32
+ customTx: t.LiteralC<"customTx">;
33
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
34
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
35
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
36
+ tokenApproval: t.LiteralC<"tokenApproval">;
37
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
38
+ }>;
39
+ }>, t.PartialC<{
40
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
41
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
42
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
43
+ }>]>, t.TypeC<{
44
+ stakingRequestId: t.StringC;
45
+ }>]>, t.IntersectionC<[t.PartialC<{
46
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
47
+ }>, t.PartialC<{
48
+ fee: t.UnionC<[t.Type<{
49
+ amount: string | number;
50
+ } & {
51
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
52
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
53
+ type?: "max" | "base" | "tip" | undefined;
54
+ }, {
55
+ amount: string | number;
56
+ } & {
57
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
58
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
59
+ type?: "max" | "base" | "tip" | undefined;
60
+ }, unknown>, t.UndefinedC]>;
61
+ }>]>, t.TypeC<{
62
+ recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
63
+ address: t.PartialC<{
64
+ address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
65
+ option: t.UnionC<[t.Type<{
66
+ [x: string]: unknown;
67
+ }, {
68
+ [x: string]: unknown;
69
+ }, unknown>, t.UndefinedC]>;
70
+ }>;
71
+ amount: t.TypeC<{
72
+ value: t.StringC;
73
+ symbol: t.StringC;
74
+ }>;
75
+ }>, t.PartialC<{
76
+ data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
77
+ }>]>>;
78
+ }>]>, t.TypeC<{
79
+ intentType: t.LiteralC<"claim">;
80
+ }>]>;
81
+ export type PolyxWithdrawIntent = t.TypeOf<typeof PolyxWithdrawIntent>;