@bitgo/public-types 4.16.0 → 4.17.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 +2 -0
- package/dist/src/schema/transactionRequest/intents/index.js +2 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +220 -1
- package/dist/src/schema/transactionRequest/intents/intent.js +8 -0
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/walrusUndelegateIntent.d.ts +54 -0
- package/dist/src/schema/transactionRequest/intents/walrusUndelegateIntent.js +43 -0
- package/dist/src/schema/transactionRequest/intents/walrusUndelegateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/walrusWithdrawIntent.d.ts +64 -0
- package/dist/src/schema/transactionRequest/intents/walrusWithdrawIntent.js +35 -0
- package/dist/src/schema/transactionRequest/intents/walrusWithdrawIntent.js.map +1 -0
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/index.ts +2 -0
- package/src/schema/transactionRequest/intents/intent.ts +8 -0
- package/src/schema/transactionRequest/intents/walrusUndelegateIntent.ts +26 -0
- package/src/schema/transactionRequest/intents/walrusWithdrawIntent.ts +16 -0
@@ -114,4 +114,6 @@ export * from "./unsupportedTokenRecipientEntryItem";
|
|
114
114
|
export * from "./voteDelegationIntent";
|
115
115
|
export * from "./walletRecoveryIntent";
|
116
116
|
export * from "./walrusStakingIntent";
|
117
|
+
export * from "./walrusUndelegateIntent";
|
118
|
+
export * from "./walrusWithdrawIntent";
|
117
119
|
export * from "./withdrawIntent";
|
@@ -130,5 +130,7 @@ __exportStar(require("./unsupportedTokenRecipientEntryItem"), exports);
|
|
130
130
|
__exportStar(require("./voteDelegationIntent"), exports);
|
131
131
|
__exportStar(require("./walletRecoveryIntent"), exports);
|
132
132
|
__exportStar(require("./walrusStakingIntent"), exports);
|
133
|
+
__exportStar(require("./walrusUndelegateIntent"), exports);
|
134
|
+
__exportStar(require("./walrusWithdrawIntent"), exports);
|
133
135
|
__exportStar(require("./withdrawIntent"), exports);
|
134
136
|
//# sourceMappingURL=index.js.map
|
@@ -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,+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,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,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,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,mDAAiC"}
|
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,+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,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,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,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"}
|
@@ -2812,7 +2812,114 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
2812
2812
|
value: string;
|
2813
2813
|
symbol: string;
|
2814
2814
|
}, unknown>, t.UndefinedC]>;
|
2815
|
-
}>]>, t.IntersectionC<[t.
|
2815
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
2816
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
2817
|
+
}>, t.TypeC<{
|
2818
|
+
intentType: t.LiteralC<"consolidate">;
|
2819
|
+
receiveAddress: t.StringC;
|
2820
|
+
}>, t.PartialC<{
|
2821
|
+
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
2822
|
+
consolidateId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2823
|
+
recipients: t.UnionC<[t.Type<({
|
2824
|
+
address: {
|
2825
|
+
address?: string | undefined;
|
2826
|
+
option?: {
|
2827
|
+
[x: string]: unknown;
|
2828
|
+
} | undefined;
|
2829
|
+
};
|
2830
|
+
amount: {
|
2831
|
+
value: string;
|
2832
|
+
symbol: string;
|
2833
|
+
};
|
2834
|
+
} & {
|
2835
|
+
data?: string | undefined;
|
2836
|
+
})[], ({
|
2837
|
+
address: {
|
2838
|
+
address?: string | undefined;
|
2839
|
+
option?: {
|
2840
|
+
[x: string]: unknown;
|
2841
|
+
} | undefined;
|
2842
|
+
};
|
2843
|
+
amount: {
|
2844
|
+
value: string;
|
2845
|
+
symbol: string;
|
2846
|
+
};
|
2847
|
+
} & {
|
2848
|
+
data?: string | undefined;
|
2849
|
+
})[], unknown>, t.UndefinedC]>;
|
2850
|
+
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
2851
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2852
|
+
intentType: t.KeyofC<{
|
2853
|
+
payment: t.LiteralC<"payment">;
|
2854
|
+
transferToken: t.LiteralC<"transferToken">;
|
2855
|
+
consolidate: t.LiteralC<"consolidate">;
|
2856
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
2857
|
+
fanout: t.LiteralC<"fanout">;
|
2858
|
+
stake: t.LiteralC<"stake">;
|
2859
|
+
unstake: t.LiteralC<"unstake">;
|
2860
|
+
delegate: t.LiteralC<"delegate">;
|
2861
|
+
undelegate: t.LiteralC<"undelegate">;
|
2862
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
2863
|
+
claim: t.LiteralC<"claim">;
|
2864
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
2865
|
+
pledge: t.LiteralC<"pledge">;
|
2866
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
2867
|
+
vote: t.LiteralC<"vote">;
|
2868
|
+
createAccount: t.LiteralC<"createAccount">;
|
2869
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
2870
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
2871
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
2872
|
+
signMessage: t.LiteralC<"signMessage">;
|
2873
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
2874
|
+
enableToken: t.LiteralC<"enableToken">;
|
2875
|
+
authorize: t.LiteralC<"authorize">;
|
2876
|
+
acceleration: t.LiteralC<"acceleration">;
|
2877
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
2878
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
2879
|
+
contractCall: t.LiteralC<"contractCall">;
|
2880
|
+
deactivate: t.LiteralC<"deactivate">;
|
2881
|
+
customTx: t.LiteralC<"customTx">;
|
2882
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
2883
|
+
}>;
|
2884
|
+
}>, t.PartialC<{
|
2885
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2886
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2887
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
2888
|
+
}>]>, t.TypeC<{
|
2889
|
+
intentType: t.LiteralC<"payment">;
|
2890
|
+
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
2891
|
+
address: t.PartialC<{
|
2892
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2893
|
+
option: t.UnionC<[t.Type<{
|
2894
|
+
[x: string]: unknown;
|
2895
|
+
}, {
|
2896
|
+
[x: string]: unknown;
|
2897
|
+
}, unknown>, t.UndefinedC]>;
|
2898
|
+
}>;
|
2899
|
+
amount: t.TypeC<{
|
2900
|
+
value: t.StringC;
|
2901
|
+
symbol: t.StringC;
|
2902
|
+
}>;
|
2903
|
+
}>, t.PartialC<{
|
2904
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2905
|
+
}>]>>;
|
2906
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
2907
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
2908
|
+
}>, t.PartialC<{
|
2909
|
+
fee: t.UnionC<[t.Type<{
|
2910
|
+
amount: string | number;
|
2911
|
+
} & {
|
2912
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
2913
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
2914
|
+
type?: "max" | "base" | "tip" | undefined;
|
2915
|
+
}, {
|
2916
|
+
amount: string | number;
|
2917
|
+
} & {
|
2918
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
2919
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
2920
|
+
type?: "max" | "base" | "tip" | undefined;
|
2921
|
+
}, unknown>, t.UndefinedC]>;
|
2922
|
+
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.PartialC<{
|
2816
2923
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
2817
2924
|
}>, t.TypeC<{
|
2818
2925
|
intentType: t.LiteralC<"consolidate">;
|
@@ -3857,6 +3964,118 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3857
3964
|
})[], unknown>, t.UndefinedC]>;
|
3858
3965
|
}>]>, t.TypeC<{
|
3859
3966
|
sharedStakingObjectId: t.StringC;
|
3967
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3968
|
+
intentType: t.KeyofC<{
|
3969
|
+
payment: t.LiteralC<"payment">;
|
3970
|
+
transferToken: t.LiteralC<"transferToken">;
|
3971
|
+
consolidate: t.LiteralC<"consolidate">;
|
3972
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
3973
|
+
fanout: t.LiteralC<"fanout">;
|
3974
|
+
stake: t.LiteralC<"stake">;
|
3975
|
+
unstake: t.LiteralC<"unstake">;
|
3976
|
+
delegate: t.LiteralC<"delegate">;
|
3977
|
+
undelegate: t.LiteralC<"undelegate">;
|
3978
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
3979
|
+
claim: t.LiteralC<"claim">;
|
3980
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
3981
|
+
pledge: t.LiteralC<"pledge">;
|
3982
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
3983
|
+
vote: t.LiteralC<"vote">;
|
3984
|
+
createAccount: t.LiteralC<"createAccount">;
|
3985
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
3986
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
3987
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
3988
|
+
signMessage: t.LiteralC<"signMessage">;
|
3989
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
3990
|
+
enableToken: t.LiteralC<"enableToken">;
|
3991
|
+
authorize: t.LiteralC<"authorize">;
|
3992
|
+
acceleration: t.LiteralC<"acceleration">;
|
3993
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
3994
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
3995
|
+
contractCall: t.LiteralC<"contractCall">;
|
3996
|
+
deactivate: t.LiteralC<"deactivate">;
|
3997
|
+
customTx: t.LiteralC<"customTx">;
|
3998
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
3999
|
+
}>;
|
4000
|
+
}>, t.PartialC<{
|
4001
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
4002
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
4003
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
4004
|
+
}>]>, t.TypeC<{
|
4005
|
+
stakingRequestId: t.StringC;
|
4006
|
+
}>]>, t.TypeC<{
|
4007
|
+
intentType: t.LiteralC<"undelegate">;
|
4008
|
+
stakedSuiObjectId: t.StringC;
|
4009
|
+
sharedStakingObjectId: t.StringC;
|
4010
|
+
}>, t.PartialC<{
|
4011
|
+
amount: t.UnionC<[t.Type<{
|
4012
|
+
value: string;
|
4013
|
+
symbol: string;
|
4014
|
+
}, {
|
4015
|
+
value: string;
|
4016
|
+
symbol: string;
|
4017
|
+
}, unknown>, t.UndefinedC]>;
|
4018
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
4019
|
+
intentType: t.KeyofC<{
|
4020
|
+
payment: t.LiteralC<"payment">;
|
4021
|
+
transferToken: t.LiteralC<"transferToken">;
|
4022
|
+
consolidate: t.LiteralC<"consolidate">;
|
4023
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
4024
|
+
fanout: t.LiteralC<"fanout">;
|
4025
|
+
stake: t.LiteralC<"stake">;
|
4026
|
+
unstake: t.LiteralC<"unstake">;
|
4027
|
+
delegate: t.LiteralC<"delegate">;
|
4028
|
+
undelegate: t.LiteralC<"undelegate">;
|
4029
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
4030
|
+
claim: t.LiteralC<"claim">;
|
4031
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
4032
|
+
pledge: t.LiteralC<"pledge">;
|
4033
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
4034
|
+
vote: t.LiteralC<"vote">;
|
4035
|
+
createAccount: t.LiteralC<"createAccount">;
|
4036
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
4037
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
4038
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
4039
|
+
signMessage: t.LiteralC<"signMessage">;
|
4040
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
4041
|
+
enableToken: t.LiteralC<"enableToken">;
|
4042
|
+
authorize: t.LiteralC<"authorize">;
|
4043
|
+
acceleration: t.LiteralC<"acceleration">;
|
4044
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
4045
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
4046
|
+
contractCall: t.LiteralC<"contractCall">;
|
4047
|
+
deactivate: t.LiteralC<"deactivate">;
|
4048
|
+
customTx: t.LiteralC<"customTx">;
|
4049
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
4050
|
+
}>;
|
4051
|
+
}>, t.PartialC<{
|
4052
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
4053
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
4054
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
4055
|
+
}>]>, t.TypeC<{
|
4056
|
+
stakingRequestId: t.StringC;
|
4057
|
+
}>]>, t.TypeC<{
|
4058
|
+
intentType: t.LiteralC<"claim">;
|
4059
|
+
}>, t.PartialC<{
|
4060
|
+
amount: t.UnionC<[t.Type<{
|
4061
|
+
value: string;
|
4062
|
+
symbol: string;
|
4063
|
+
}, {
|
4064
|
+
value: string;
|
4065
|
+
symbol: string;
|
4066
|
+
}, unknown>, t.UndefinedC]>;
|
4067
|
+
}>]>, t.TypeC<{
|
4068
|
+
stakedSuiObjectId: t.StringC;
|
4069
|
+
}>, t.PartialC<{
|
4070
|
+
amount: t.UnionC<[t.Type<{
|
4071
|
+
value: string;
|
4072
|
+
symbol: string;
|
4073
|
+
}, {
|
4074
|
+
value: string;
|
4075
|
+
symbol: string;
|
4076
|
+
}, unknown>, t.UndefinedC]>;
|
4077
|
+
}>]>, t.TypeC<{
|
4078
|
+
sharedStakingObjectId: t.StringC;
|
3860
4079
|
}>]>, t.IntersectionC<[t.TypeC<{
|
3861
4080
|
intentType: t.KeyofC<{
|
3862
4081
|
payment: t.LiteralC<"payment">;
|
@@ -66,6 +66,8 @@ const solUnstakeIntent_1 = require("./solUnstakeIntent");
|
|
66
66
|
const suiCustomTxIntent_1 = require("./suiCustomTxIntent");
|
67
67
|
const suiStakingIntent_1 = require("./suiStakingIntent");
|
68
68
|
const suiUnstakingIntent_1 = require("./suiUnstakingIntent");
|
69
|
+
const substrateConsolidateIntent_1 = require("./substrateConsolidateIntent");
|
70
|
+
const substratePaymentIntent_1 = require("./substratePaymentIntent");
|
69
71
|
const tonDelegateIntent_1 = require("./tonDelegateIntent");
|
70
72
|
const tonPaymentIntent_1 = require("./tonPaymentIntent");
|
71
73
|
const tonUndelegateIntent_1 = require("./tonUndelegateIntent");
|
@@ -90,6 +92,8 @@ const coredaoClaimIntent_1 = require("./coredaoClaimIntent");
|
|
90
92
|
const ethLikeStakeIntent_1 = require("./ethLikeStakeIntent");
|
91
93
|
const beraDelegateIntent_1 = require("./beraDelegateIntent");
|
92
94
|
const walrusStakingIntent_1 = require("./walrusStakingIntent");
|
95
|
+
const walrusUndelegateIntent_1 = require("./walrusUndelegateIntent");
|
96
|
+
const walrusWithdrawIntent_1 = require("./walrusWithdrawIntent");
|
93
97
|
exports.TransactionIntent = t.union([
|
94
98
|
adaConsolidateIntent_1.AdaConsolidateIntent,
|
95
99
|
adaPaymentIntent_1.AdaPaymentIntent,
|
@@ -138,6 +142,8 @@ exports.TransactionIntent = t.union([
|
|
138
142
|
solPaymentIntent_1.SolPaymentIntent,
|
139
143
|
solStakeIntent_1.SolStakeIntent,
|
140
144
|
solUnstakeIntent_1.SolUnstakeIntent,
|
145
|
+
substrateConsolidateIntent_1.SubstrateConsolidateIntent,
|
146
|
+
substratePaymentIntent_1.SubstratePaymentIntent,
|
141
147
|
suiConsolidateIntent_1.SuiConsolidateIntent,
|
142
148
|
suiCustomTxIntent_1.SuiCustomTxIntent,
|
143
149
|
suiPaymentIntent_1.SuiPaymentIntent,
|
@@ -155,6 +161,8 @@ exports.TransactionIntent = t.union([
|
|
155
161
|
ethLikeStakeIntent_1.EthLikeStakeIntent,
|
156
162
|
beraDelegateIntent_1.BeraDelegateIntent,
|
157
163
|
walrusStakingIntent_1.WalrusStakingIntent,
|
164
|
+
walrusUndelegateIntent_1.WalrusUndelegateIntent,
|
165
|
+
walrusWithdrawIntent_1.WalrusWithdrawIntent,
|
158
166
|
baseIntent_1.BaseIntent,
|
159
167
|
]);
|
160
168
|
//# sourceMappingURL=intent.js.map
|
@@ -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,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,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4D;AAC5D,iEAA8D;AAC9D,iEAA8D;AAC9D,iEAA8D;AAC9D,6EAA0E;AAC1E,yDAAsD;AACtD,yDAAsD;AACtD,iEAA8D;AAC9D,yEAAsE;AACtE,iEAA8D;AAC9D,2EAAwE;AACxE,qEAAkE;AAClE,6CAA0C;AAC1C,iEAA8D;AAC9D,iGAA8F;AAC9F,+EAA4E;AAC5E,mEAAgE;AAChE,uEAAoE;AACpE,6DAA0D;AAC1D,6DAA0D;AAC1D,6DAA0D;AAC1D,+DAA4D;
|
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,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,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,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,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4D;AAC5D,iEAA8D;AAC9D,iEAA8D;AAC9D,iEAA8D;AAC9D,6EAA0E;AAC1E,yDAAsD;AACtD,yDAAsD;AACtD,iEAA8D;AAC9D,yEAAsE;AACtE,iEAA8D;AAC9D,2EAAwE;AACxE,qEAAkE;AAClE,6CAA0C;AAC1C,iEAA8D;AAC9D,iGAA8F;AAC9F,+EAA4E;AAC5E,mEAAgE;AAChE,uEAAoE;AACpE,6DAA0D;AAC1D,6DAA0D;AAC1D,6DAA0D;AAC1D,+DAA4D;AAC5D,qEAAkE;AAClE,iEAA8D;AAEjD,QAAA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC;IACvC,2CAAoB;IACpB,mCAAgB;IAChB,uDAA0B;IAC1B,+BAAc;IACd,mCAAgB;IAChB,iDAAuB;IACvB,qCAAiB;IACjB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,qCAAiB;IACjB,yCAAmB;IACnB,yDAA2B;IAC3B,yCAAmB;IACnB,qCAAiB;IACjB,yDAA2B;IAC3B,yCAAmB;IACnB,2CAAoB;IACpB,2CAAoB;IACpB,+CAAsB;IACtB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+CAAsB;IACtB,6CAAqB;IACrB,2CAAoB;IACpB,qDAAyB;IACzB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,+CAAsB;IACtB,+CAAsB;IACtB,2CAAoB;IACpB,mDAAwB;IACxB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,uCAAkB;IAClB,+BAAc;IACd,2EAAoC;IACpC,2CAAoB;IACpB,6EAAqC;IACrC,yCAAmB;IACnB,qCAAiB;IACjB,mCAAgB;IAChB,+BAAc;IACd,mCAAgB;IAChB,uDAA0B;IAC1B,+CAAsB;IACtB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,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,54 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const WalrusUndelegateIntent: 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
|
+
}>;
|
35
|
+
}>, t.PartialC<{
|
36
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
37
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
38
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
39
|
+
}>]>, t.TypeC<{
|
40
|
+
stakingRequestId: t.StringC;
|
41
|
+
}>]>, t.TypeC<{
|
42
|
+
intentType: t.LiteralC<"undelegate">;
|
43
|
+
stakedSuiObjectId: t.StringC;
|
44
|
+
sharedStakingObjectId: t.StringC;
|
45
|
+
}>, t.PartialC<{
|
46
|
+
amount: t.UnionC<[t.Type<{
|
47
|
+
value: string;
|
48
|
+
symbol: string;
|
49
|
+
}, {
|
50
|
+
value: string;
|
51
|
+
symbol: string;
|
52
|
+
}, unknown>, t.UndefinedC]>;
|
53
|
+
}>]>;
|
54
|
+
export type WalrusUndelegateIntent = t.TypeOf<typeof WalrusUndelegateIntent>;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
+
exports.WalrusUndelegateIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const intentType_1 = require("./intentType");
|
29
|
+
const amount_1 = require("./amount");
|
30
|
+
const baseStakeIntent_1 = require("./baseStakeIntent");
|
31
|
+
const utils_1 = require("../../../utils");
|
32
|
+
exports.WalrusUndelegateIntent = t.intersection([
|
33
|
+
baseStakeIntent_1.BaseStakeIntent,
|
34
|
+
t.type({
|
35
|
+
intentType: intentType_1.intentTypes.undelegate,
|
36
|
+
stakedSuiObjectId: t.string,
|
37
|
+
sharedStakingObjectId: t.string,
|
38
|
+
}),
|
39
|
+
t.partial({
|
40
|
+
amount: (0, utils_1.Optional)(amount_1.Amount),
|
41
|
+
}),
|
42
|
+
]);
|
43
|
+
//# sourceMappingURL=walrusUndelegateIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"walrusUndelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/walrusUndelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA2C;AAC3C,qCAAkC;AAClC,uDAAoD;AACpD,0CAA0C;AAS7B,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,UAAU;QAClC,iBAAiB,EAAE,CAAC,CAAC,MAAM;QAC3B,qBAAqB,EAAE,CAAC,CAAC,MAAM;KAChC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,MAAM,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;KACzB,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const WalrusWithdrawIntent: t.IntersectionC<[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
|
+
}>;
|
35
|
+
}>, t.PartialC<{
|
36
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
37
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
38
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
39
|
+
}>]>, t.TypeC<{
|
40
|
+
stakingRequestId: t.StringC;
|
41
|
+
}>]>, t.TypeC<{
|
42
|
+
intentType: t.LiteralC<"claim">;
|
43
|
+
}>, t.PartialC<{
|
44
|
+
amount: t.UnionC<[t.Type<{
|
45
|
+
value: string;
|
46
|
+
symbol: string;
|
47
|
+
}, {
|
48
|
+
value: string;
|
49
|
+
symbol: string;
|
50
|
+
}, unknown>, t.UndefinedC]>;
|
51
|
+
}>]>, t.TypeC<{
|
52
|
+
stakedSuiObjectId: t.StringC;
|
53
|
+
}>, t.PartialC<{
|
54
|
+
amount: t.UnionC<[t.Type<{
|
55
|
+
value: string;
|
56
|
+
symbol: string;
|
57
|
+
}, {
|
58
|
+
value: string;
|
59
|
+
symbol: string;
|
60
|
+
}, unknown>, t.UndefinedC]>;
|
61
|
+
}>]>, t.TypeC<{
|
62
|
+
sharedStakingObjectId: t.StringC;
|
63
|
+
}>]>;
|
64
|
+
export type WalrusWithdrawIntent = t.TypeOf<typeof WalrusWithdrawIntent>;
|
@@ -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.WalrusWithdrawIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const suiUnstakingIntent_1 = require("./suiUnstakingIntent");
|
29
|
+
exports.WalrusWithdrawIntent = t.intersection([
|
30
|
+
suiUnstakingIntent_1.SuiUnstakingIntent,
|
31
|
+
t.type({
|
32
|
+
sharedStakingObjectId: t.string,
|
33
|
+
}),
|
34
|
+
]);
|
35
|
+
//# sourceMappingURL=walrusWithdrawIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"walrusWithdrawIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/walrusWithdrawIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6DAA0D;AAO7C,QAAA,oBAAoB,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,uCAAkB;IAClB,CAAC,CAAC,IAAI,CAAC;QACL,qBAAqB,EAAE,CAAC,CAAC,MAAM;KAChC,CAAC;CACH,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -114,4 +114,6 @@ export * from "./unsupportedTokenRecipientEntryItem";
|
|
114
114
|
export * from "./voteDelegationIntent";
|
115
115
|
export * from "./walletRecoveryIntent";
|
116
116
|
export * from "./walrusStakingIntent";
|
117
|
+
export * from "./walrusUndelegateIntent";
|
118
|
+
export * from "./walrusWithdrawIntent";
|
117
119
|
export * from "./withdrawIntent";
|
@@ -40,6 +40,8 @@ import { SolUnstakeIntent } from "./solUnstakeIntent";
|
|
40
40
|
import { SuiCustomTxIntent } from "./suiCustomTxIntent";
|
41
41
|
import { SuiStakingIntent } from "./suiStakingIntent";
|
42
42
|
import { SuiUnstakingIntent } from "./suiUnstakingIntent";
|
43
|
+
import { SubstrateConsolidateIntent } from "./substrateConsolidateIntent";
|
44
|
+
import { SubstratePaymentIntent } from "./substratePaymentIntent";
|
43
45
|
import { TonDelegateIntent } from "./tonDelegateIntent";
|
44
46
|
import { TonPaymentIntent } from "./tonPaymentIntent";
|
45
47
|
import { TonUndelegateIntent } from "./tonUndelegateIntent";
|
@@ -64,6 +66,8 @@ import { CoreDaoClaimIntent } from "./coredaoClaimIntent";
|
|
64
66
|
import { EthLikeStakeIntent } from "./ethLikeStakeIntent";
|
65
67
|
import { BeraDelegateIntent } from "./beraDelegateIntent";
|
66
68
|
import { WalrusStakingIntent } from "./walrusStakingIntent";
|
69
|
+
import { WalrusUndelegateIntent } from "./walrusUndelegateIntent";
|
70
|
+
import { WalrusWithdrawIntent } from "./walrusWithdrawIntent";
|
67
71
|
|
68
72
|
export const TransactionIntent = t.union([
|
69
73
|
AdaConsolidateIntent,
|
@@ -113,6 +117,8 @@ export const TransactionIntent = t.union([
|
|
113
117
|
SolPaymentIntent,
|
114
118
|
SolStakeIntent,
|
115
119
|
SolUnstakeIntent,
|
120
|
+
SubstrateConsolidateIntent,
|
121
|
+
SubstratePaymentIntent,
|
116
122
|
SuiConsolidateIntent,
|
117
123
|
SuiCustomTxIntent,
|
118
124
|
SuiPaymentIntent,
|
@@ -130,6 +136,8 @@ export const TransactionIntent = t.union([
|
|
130
136
|
EthLikeStakeIntent,
|
131
137
|
BeraDelegateIntent,
|
132
138
|
WalrusStakingIntent,
|
139
|
+
WalrusUndelegateIntent,
|
140
|
+
WalrusWithdrawIntent,
|
133
141
|
|
134
142
|
/**
|
135
143
|
* Catch all for past intents that have not been converted to codecs
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { intentTypes } from "./intentType";
|
3
|
+
import { Amount } from "./amount";
|
4
|
+
import { BaseStakeIntent } from "./baseStakeIntent";
|
5
|
+
import { Optional } from "../../../utils";
|
6
|
+
|
7
|
+
/**
|
8
|
+
* @title Walrus Undelegate Intent
|
9
|
+
*
|
10
|
+
* @param {string} stakedSuiObjectId - The original StakedWal object id
|
11
|
+
* @param {Amount} amount - The amount to undelegate
|
12
|
+
* @param {string} sharedStakingObjectId - The staking object id
|
13
|
+
*/
|
14
|
+
export const WalrusUndelegateIntent = t.intersection([
|
15
|
+
BaseStakeIntent,
|
16
|
+
t.type({
|
17
|
+
intentType: intentTypes.undelegate,
|
18
|
+
stakedSuiObjectId: t.string,
|
19
|
+
sharedStakingObjectId: t.string,
|
20
|
+
}),
|
21
|
+
t.partial({
|
22
|
+
amount: Optional(Amount),
|
23
|
+
}),
|
24
|
+
]);
|
25
|
+
|
26
|
+
export type WalrusUndelegateIntent = t.TypeOf<typeof WalrusUndelegateIntent>;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { SuiUnstakingIntent } from "./suiUnstakingIntent";
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @title Walrus Withdraw Intent
|
6
|
+
*
|
7
|
+
* @param {string} sharedStakingObjectId - The staking object id
|
8
|
+
*/
|
9
|
+
export const WalrusWithdrawIntent = t.intersection([
|
10
|
+
SuiUnstakingIntent,
|
11
|
+
t.type({
|
12
|
+
sharedStakingObjectId: t.string,
|
13
|
+
}),
|
14
|
+
]);
|
15
|
+
|
16
|
+
export type WalrusWithdrawIntent = t.TypeOf<typeof WalrusWithdrawIntent>;
|