@bitgo/public-types 5.3.0 → 5.5.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/transactionRequest/intents/index.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/index.js +4 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +236 -0
- package/dist/src/schema/transactionRequest/intents/intent.js +6 -0
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/polyxBaseIntent.d.ts +79 -0
- package/dist/src/schema/transactionRequest/intents/polyxBaseIntent.js +38 -0
- package/dist/src/schema/transactionRequest/intents/polyxBaseIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.d.ts +83 -0
- package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.d.ts +81 -0
- package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxWithdrawIntent.d.ts +81 -0
- package/dist/src/schema/transactionRequest/intents/polyxWithdrawIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/polyxWithdrawIntent.js.map +1 -0
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/index.ts +4 -0
- package/src/schema/transactionRequest/intents/intent.ts +6 -0
- package/src/schema/transactionRequest/intents/polyxBaseIntent.ts +18 -0
- package/src/schema/transactionRequest/intents/polyxStakeIntent.ts +19 -0
- package/src/schema/transactionRequest/intents/polyxUnstakeIntent.ts +15 -0
- package/src/schema/transactionRequest/intents/polyxWithdrawIntent.ts +15 -0
@@ -74,6 +74,10 @@ export * from "./mmiSignTransactionIntent";
|
|
74
74
|
export * from "./nearStakeIntent";
|
75
75
|
export * from "./nearUnstakeIntent";
|
76
76
|
export * from "./nearWithdrawIntent";
|
77
|
+
export * from "./polyxBaseIntent";
|
78
|
+
export * from "./polyxStakeIntent";
|
79
|
+
export * from "./polyxUnstakeIntent";
|
80
|
+
export * from "./polyxWithdrawIntent";
|
77
81
|
export * from "./paymentIntent";
|
78
82
|
export * from "./recipientEntry";
|
79
83
|
export * from "./signMessageIntent";
|
@@ -90,6 +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);
|
94
|
+
__exportStar(require("./polyxStakeIntent"), exports);
|
95
|
+
__exportStar(require("./polyxUnstakeIntent"), exports);
|
96
|
+
__exportStar(require("./polyxWithdrawIntent"), exports);
|
93
97
|
__exportStar(require("./paymentIntent"), exports);
|
94
98
|
__exportStar(require("./recipientEntry"), exports);
|
95
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;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,kDAAgC;AAChC,qDAAmC;AACnC,6CAA2B;AAC3B,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,yDAAuC;AACvC,8DAA4C;AAC5C,uDAAqC;AACrC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,2DAAyC;AACzC,6DAA2C;AAC3C,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,qDAAmC;AACnC,kDAAgC;AAChC,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,yEAAuD;AACvD,yDAAuC;AACvC,0EAAwD;AACxD,wDAAsC;AACtC,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,+DAA6C;AAC7C,qEAAmD;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,kDAAgC;AAChC,qDAAmC;AACnC,6CAA2B;AAC3B,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,yDAAuC;AACvC,8DAA4C;AAC5C,uDAAqC;AACrC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,2DAAyC;AACzC,6DAA2C;AAC3C,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,qDAAmC;AACnC,kDAAgC;AAChC,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,yEAAuD;AACvD,yDAAuC;AACvC,0EAAwD;AACxD,wDAAsC;AACtC,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,+DAA6C;AAC7C,qEAAmD;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"}
|
@@ -2875,6 +2875,242 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
2875
2875
|
} & {
|
2876
2876
|
data?: string | undefined;
|
2877
2877
|
})[], unknown>, t.UndefinedC]>;
|
2878
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2879
|
+
intentType: t.KeyofC<{
|
2880
|
+
payment: t.LiteralC<"payment">;
|
2881
|
+
transferToken: t.LiteralC<"transferToken">;
|
2882
|
+
consolidate: t.LiteralC<"consolidate">;
|
2883
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
2884
|
+
fanout: t.LiteralC<"fanout">;
|
2885
|
+
stake: t.LiteralC<"stake">;
|
2886
|
+
unstake: t.LiteralC<"unstake">;
|
2887
|
+
delegate: t.LiteralC<"delegate">;
|
2888
|
+
undelegate: t.LiteralC<"undelegate">;
|
2889
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
2890
|
+
claim: t.LiteralC<"claim">;
|
2891
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
2892
|
+
pledge: t.LiteralC<"pledge">;
|
2893
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
2894
|
+
vote: t.LiteralC<"vote">;
|
2895
|
+
createAccount: t.LiteralC<"createAccount">;
|
2896
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
2897
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
2898
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
2899
|
+
signMessage: t.LiteralC<"signMessage">;
|
2900
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
2901
|
+
enableToken: t.LiteralC<"enableToken">;
|
2902
|
+
authorize: t.LiteralC<"authorize">;
|
2903
|
+
acceleration: t.LiteralC<"acceleration">;
|
2904
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
2905
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
2906
|
+
contractCall: t.LiteralC<"contractCall">;
|
2907
|
+
deactivate: t.LiteralC<"deactivate">;
|
2908
|
+
customTx: t.LiteralC<"customTx">;
|
2909
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
2910
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
2911
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
2912
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
2913
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
2914
|
+
}>;
|
2915
|
+
}>, t.PartialC<{
|
2916
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2917
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2918
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
2919
|
+
}>]>, t.TypeC<{
|
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
|
+
}>]>>;
|
2954
|
+
}>]>, t.TypeC<{
|
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;
|
3001
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
3002
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
3003
|
+
}>, t.PartialC<{
|
3004
|
+
fee: t.UnionC<[t.Type<{
|
3005
|
+
amount: string | number;
|
3006
|
+
} & {
|
3007
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
3008
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
3009
|
+
type?: "max" | "base" | "tip" | undefined;
|
3010
|
+
}, {
|
3011
|
+
amount: string | number;
|
3012
|
+
} & {
|
3013
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
3014
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
3015
|
+
type?: "max" | "base" | "tip" | undefined;
|
3016
|
+
}, unknown>, t.UndefinedC]>;
|
3017
|
+
}>]>, t.TypeC<{
|
3018
|
+
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
3019
|
+
address: t.PartialC<{
|
3020
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
3021
|
+
option: t.UnionC<[t.Type<{
|
3022
|
+
[x: string]: unknown;
|
3023
|
+
}, {
|
3024
|
+
[x: string]: unknown;
|
3025
|
+
}, unknown>, t.UndefinedC]>;
|
3026
|
+
}>;
|
3027
|
+
amount: t.TypeC<{
|
3028
|
+
value: t.StringC;
|
3029
|
+
symbol: t.StringC;
|
3030
|
+
}>;
|
3031
|
+
}>, t.PartialC<{
|
3032
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
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
|
+
}>;
|
3073
|
+
}>, t.PartialC<{
|
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">;
|
2878
3114
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2879
3115
|
intentType: t.KeyofC<{
|
2880
3116
|
payment: t.LiteralC<"payment">;
|
@@ -60,6 +60,9 @@ const nearStakeIntent_1 = require("./nearStakeIntent");
|
|
60
60
|
const nearUnstakeIntent_1 = require("./nearUnstakeIntent");
|
61
61
|
const nearWithdrawIntent_1 = require("./nearWithdrawIntent");
|
62
62
|
const polyxCreateAccountIntent_1 = require("./polyxCreateAccountIntent");
|
63
|
+
const polyxStakeIntent_1 = require("./polyxStakeIntent");
|
64
|
+
const polyxUnstakeIntent_1 = require("./polyxUnstakeIntent");
|
65
|
+
const polyxWithdrawIntent_1 = require("./polyxWithdrawIntent");
|
63
66
|
const solAuthorizeIntent_1 = require("./solAuthorizeIntent");
|
64
67
|
const solClaimIntent_1 = require("./solClaimIntent");
|
65
68
|
const solCreateAssociatedTokenAccountIntent_1 = require("./solCreateAssociatedTokenAccountIntent");
|
@@ -145,6 +148,9 @@ exports.TransactionIntent = t.union([
|
|
145
148
|
nearUnstakeIntent_1.NearUnstakeIntent,
|
146
149
|
nearWithdrawIntent_1.NearWithdrawIntent,
|
147
150
|
polyxCreateAccountIntent_1.PolyxCreateAccountIntent,
|
151
|
+
polyxStakeIntent_1.PolyxStakeIntent,
|
152
|
+
polyxUnstakeIntent_1.PolyxUnstakeIntent,
|
153
|
+
polyxWithdrawIntent_1.PolyxWithdrawIntent,
|
148
154
|
solAuthorizeIntent_1.SolAuthorizeIntent,
|
149
155
|
solClaimIntent_1.SolClaimIntent,
|
150
156
|
solCloseAssociatedTokenAccountIntent_1.SolCloseAssociatedTokenAccountIntent,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":"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"}
|
1
|
+
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":"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"}
|
@@ -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"}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const PolyxStakeIntent: 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<"stake">;
|
80
|
+
}>, t.PartialC<{
|
81
|
+
addToStake: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
82
|
+
}>]>;
|
83
|
+
export type PolyxStakeIntent = t.TypeOf<typeof PolyxStakeIntent>;
|
@@ -0,0 +1,40 @@
|
|
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.PolyxStakeIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const polyxBaseIntent_1 = require("./polyxBaseIntent");
|
29
|
+
const intentType_1 = require("./intentType");
|
30
|
+
const utils_1 = require("../../../utils");
|
31
|
+
exports.PolyxStakeIntent = t.intersection([
|
32
|
+
polyxBaseIntent_1.PolyxBaseIntent,
|
33
|
+
t.type({
|
34
|
+
intentType: intentType_1.intentTypes.stake,
|
35
|
+
}),
|
36
|
+
t.partial({
|
37
|
+
addToStake: utils_1.optionalBoolean,
|
38
|
+
}),
|
39
|
+
]);
|
40
|
+
//# sourceMappingURL=polyxStakeIntent.js.map
|
@@ -0,0 +1 @@
|
|
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>;
|
@@ -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.PolyxWithdrawIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const polyxBaseIntent_1 = require("./polyxBaseIntent");
|
29
|
+
const intentType_1 = require("./intentType");
|
30
|
+
exports.PolyxWithdrawIntent = t.intersection([
|
31
|
+
polyxBaseIntent_1.PolyxBaseIntent,
|
32
|
+
t.type({
|
33
|
+
intentType: intentType_1.intentTypes.claim,
|
34
|
+
}),
|
35
|
+
]);
|
36
|
+
//# sourceMappingURL=polyxWithdrawIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"polyxWithdrawIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/polyxWithdrawIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAK9B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,KAAK;KAC9B,CAAC;CACH,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -74,6 +74,10 @@ export * from "./mmiSignTransactionIntent";
|
|
74
74
|
export * from "./nearStakeIntent";
|
75
75
|
export * from "./nearUnstakeIntent";
|
76
76
|
export * from "./nearWithdrawIntent";
|
77
|
+
export * from "./polyxBaseIntent";
|
78
|
+
export * from "./polyxStakeIntent";
|
79
|
+
export * from "./polyxUnstakeIntent";
|
80
|
+
export * from "./polyxWithdrawIntent";
|
77
81
|
export * from "./paymentIntent";
|
78
82
|
export * from "./recipientEntry";
|
79
83
|
export * from "./signMessageIntent";
|
@@ -34,6 +34,9 @@ import { NearStakeIntent } from "./nearStakeIntent";
|
|
34
34
|
import { NearUnstakeIntent } from "./nearUnstakeIntent";
|
35
35
|
import { NearWithdrawIntent } from "./nearWithdrawIntent";
|
36
36
|
import { PolyxCreateAccountIntent } from "./polyxCreateAccountIntent";
|
37
|
+
import { PolyxStakeIntent } from "./polyxStakeIntent";
|
38
|
+
import { PolyxUnstakeIntent } from "./polyxUnstakeIntent";
|
39
|
+
import { PolyxWithdrawIntent } from "./polyxWithdrawIntent";
|
37
40
|
import { SolAuthorizeIntent } from "./solAuthorizeIntent";
|
38
41
|
import { SolClaimIntent } from "./solClaimIntent";
|
39
42
|
import { SolCreateAssociatedTokenAccountIntent } from "./solCreateAssociatedTokenAccountIntent";
|
@@ -120,6 +123,9 @@ export const TransactionIntent = t.union([
|
|
120
123
|
NearUnstakeIntent,
|
121
124
|
NearWithdrawIntent,
|
122
125
|
PolyxCreateAccountIntent,
|
126
|
+
PolyxStakeIntent,
|
127
|
+
PolyxUnstakeIntent,
|
128
|
+
PolyxWithdrawIntent,
|
123
129
|
SolAuthorizeIntent,
|
124
130
|
SolClaimIntent,
|
125
131
|
SolCloseAssociatedTokenAccountIntent,
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { SubstrateAccountBaseBuildOptions } from "./substrateAccountBaseBuildOptions";
|
3
|
+
import { RecipientEntry } from "./recipientEntry";
|
4
|
+
import { BaseStakeIntent } from "./baseStakeIntent";
|
5
|
+
|
6
|
+
/**
|
7
|
+
* @title POLYX Base Intent
|
8
|
+
* Common base for all POLYX staking-related intents
|
9
|
+
*/
|
10
|
+
export const PolyxBaseIntent = t.intersection([
|
11
|
+
BaseStakeIntent,
|
12
|
+
SubstrateAccountBaseBuildOptions,
|
13
|
+
t.type({
|
14
|
+
recipients: t.array(RecipientEntry),
|
15
|
+
}),
|
16
|
+
]);
|
17
|
+
|
18
|
+
export type PolyxBaseIntent = t.TypeOf<typeof PolyxBaseIntent>;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { PolyxBaseIntent } from "./polyxBaseIntent";
|
3
|
+
import { intentTypes } from "./intentType";
|
4
|
+
import { optionalBoolean } from "../../../utils";
|
5
|
+
|
6
|
+
/**
|
7
|
+
* @title POLYX Stake Intent
|
8
|
+
*/
|
9
|
+
export const PolyxStakeIntent = t.intersection([
|
10
|
+
PolyxBaseIntent,
|
11
|
+
t.type({
|
12
|
+
intentType: intentTypes.stake,
|
13
|
+
}),
|
14
|
+
t.partial({
|
15
|
+
addToStake: optionalBoolean,
|
16
|
+
}),
|
17
|
+
]);
|
18
|
+
|
19
|
+
export type PolyxStakeIntent = t.TypeOf<typeof PolyxStakeIntent>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { PolyxBaseIntent } from "./polyxBaseIntent";
|
3
|
+
import { intentTypes } from "./intentType";
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @title POLYX Unstake Intent
|
7
|
+
*/
|
8
|
+
export const PolyxUnstakeIntent = t.intersection([
|
9
|
+
PolyxBaseIntent,
|
10
|
+
t.type({
|
11
|
+
intentType: intentTypes.unstake,
|
12
|
+
}),
|
13
|
+
]);
|
14
|
+
|
15
|
+
export type PolyxUnstakeIntent = t.TypeOf<typeof PolyxUnstakeIntent>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { PolyxBaseIntent } from "./polyxBaseIntent";
|
3
|
+
import { intentTypes } from "./intentType";
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @title POLYX Withdraw Intent
|
7
|
+
*/
|
8
|
+
export const PolyxWithdrawIntent = t.intersection([
|
9
|
+
PolyxBaseIntent,
|
10
|
+
t.type({
|
11
|
+
intentType: intentTypes.claim,
|
12
|
+
}),
|
13
|
+
]);
|
14
|
+
|
15
|
+
export type PolyxWithdrawIntent = t.TypeOf<typeof PolyxWithdrawIntent>;
|