@bitgo/public-types 4.11.3 → 4.13.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/schema/transactionRequest/intents/index.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/index.js +1 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +79 -0
- package/dist/src/schema/transactionRequest/intents/intent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/walrusStakingIntent.d.ts +82 -0
- package/dist/src/schema/transactionRequest/intents/walrusStakingIntent.js +35 -0
- package/dist/src/schema/transactionRequest/intents/walrusStakingIntent.js.map +1 -0
- package/dist/src/schema/webhook/webhookType.d.ts +2 -1
- package/dist/src/schema/webhook/webhookType.js +1 -0
- package/dist/src/schema/webhook/webhookType.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/index.ts +1 -0
- package/src/schema/transactionRequest/intents/intent.ts +2 -0
- package/src/schema/transactionRequest/intents/walrusStakingIntent.ts +16 -0
- package/src/schema/webhook/webhookType.ts +1 -0
@@ -123,5 +123,6 @@ __exportStar(require("./unstakeIntent"), exports);
|
|
123
123
|
__exportStar(require("./unsupportedTokenRecipientEntryItem"), exports);
|
124
124
|
__exportStar(require("./voteDelegationIntent"), exports);
|
125
125
|
__exportStar(require("./walletRecoveryIntent"), exports);
|
126
|
+
__exportStar(require("./walrusStakingIntent"), exports);
|
126
127
|
__exportStar(require("./withdrawIntent"), exports);
|
127
128
|
//# 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;AAC7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ACnC,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,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,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"}
|
@@ -3778,6 +3778,85 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3778
3778
|
} & {
|
3779
3779
|
data?: string | undefined;
|
3780
3780
|
})[], unknown>, t.UndefinedC]>;
|
3781
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3782
|
+
intentType: t.KeyofC<{
|
3783
|
+
payment: t.LiteralC<"payment">;
|
3784
|
+
transferToken: t.LiteralC<"transferToken">;
|
3785
|
+
consolidate: t.LiteralC<"consolidate">;
|
3786
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
3787
|
+
fanout: t.LiteralC<"fanout">;
|
3788
|
+
stake: t.LiteralC<"stake">;
|
3789
|
+
unstake: t.LiteralC<"unstake">;
|
3790
|
+
delegate: t.LiteralC<"delegate">;
|
3791
|
+
undelegate: t.LiteralC<"undelegate">;
|
3792
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
3793
|
+
claim: t.LiteralC<"claim">;
|
3794
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
3795
|
+
pledge: t.LiteralC<"pledge">;
|
3796
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
3797
|
+
vote: t.LiteralC<"vote">;
|
3798
|
+
createAccount: t.LiteralC<"createAccount">;
|
3799
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
3800
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
3801
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
3802
|
+
signMessage: t.LiteralC<"signMessage">;
|
3803
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
3804
|
+
enableToken: t.LiteralC<"enableToken">;
|
3805
|
+
authorize: t.LiteralC<"authorize">;
|
3806
|
+
acceleration: t.LiteralC<"acceleration">;
|
3807
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
3808
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
3809
|
+
contractCall: t.LiteralC<"contractCall">;
|
3810
|
+
deactivate: t.LiteralC<"deactivate">;
|
3811
|
+
customTx: t.LiteralC<"customTx">;
|
3812
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
3813
|
+
}>;
|
3814
|
+
}>, t.PartialC<{
|
3815
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
3816
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
3817
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
3818
|
+
}>]>, t.TypeC<{
|
3819
|
+
stakingRequestId: t.StringC;
|
3820
|
+
}>]>, t.TypeC<{
|
3821
|
+
intentType: t.LiteralC<"stake">;
|
3822
|
+
}>]>, t.PartialC<{
|
3823
|
+
validatorAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
3824
|
+
amount: t.UnionC<[t.Type<{
|
3825
|
+
value: string;
|
3826
|
+
symbol: string;
|
3827
|
+
}, {
|
3828
|
+
value: string;
|
3829
|
+
symbol: string;
|
3830
|
+
}, unknown>, t.UndefinedC]>;
|
3831
|
+
recipients: t.UnionC<[t.Type<({
|
3832
|
+
address: {
|
3833
|
+
address?: string | undefined;
|
3834
|
+
option?: {
|
3835
|
+
[x: string]: unknown;
|
3836
|
+
} | undefined;
|
3837
|
+
};
|
3838
|
+
amount: {
|
3839
|
+
value: string;
|
3840
|
+
symbol: string;
|
3841
|
+
};
|
3842
|
+
} & {
|
3843
|
+
data?: string | undefined;
|
3844
|
+
})[], ({
|
3845
|
+
address: {
|
3846
|
+
address?: string | undefined;
|
3847
|
+
option?: {
|
3848
|
+
[x: string]: unknown;
|
3849
|
+
} | undefined;
|
3850
|
+
};
|
3851
|
+
amount: {
|
3852
|
+
value: string;
|
3853
|
+
symbol: string;
|
3854
|
+
};
|
3855
|
+
} & {
|
3856
|
+
data?: string | undefined;
|
3857
|
+
})[], unknown>, t.UndefinedC]>;
|
3858
|
+
}>]>, t.TypeC<{
|
3859
|
+
sharedStakingObjectId: t.StringC;
|
3781
3860
|
}>]>, t.IntersectionC<[t.TypeC<{
|
3782
3861
|
intentType: t.KeyofC<{
|
3783
3862
|
payment: t.LiteralC<"payment">;
|
@@ -89,6 +89,7 @@ const coredaoUndelegateIntent_1 = require("./coredaoUndelegateIntent");
|
|
89
89
|
const coredaoClaimIntent_1 = require("./coredaoClaimIntent");
|
90
90
|
const ethLikeStakeIntent_1 = require("./ethLikeStakeIntent");
|
91
91
|
const beraDelegateIntent_1 = require("./beraDelegateIntent");
|
92
|
+
const walrusStakingIntent_1 = require("./walrusStakingIntent");
|
92
93
|
exports.TransactionIntent = t.union([
|
93
94
|
adaConsolidateIntent_1.AdaConsolidateIntent,
|
94
95
|
adaPaymentIntent_1.AdaPaymentIntent,
|
@@ -153,6 +154,7 @@ exports.TransactionIntent = t.union([
|
|
153
154
|
coredaoClaimIntent_1.CoreDaoClaimIntent,
|
154
155
|
ethLikeStakeIntent_1.EthLikeStakeIntent,
|
155
156
|
beraDelegateIntent_1.BeraDelegateIntent,
|
157
|
+
walrusStakingIntent_1.WalrusStakingIntent,
|
156
158
|
baseIntent_1.BaseIntent,
|
157
159
|
]);
|
158
160
|
//# 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;
|
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;AAE/C,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,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;IAKnB,uBAAU;CACX,CAAC,CAAC"}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const WalrusStakingIntent: 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<"stake">;
|
43
|
+
}>]>, t.PartialC<{
|
44
|
+
validatorAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
45
|
+
amount: t.UnionC<[t.Type<{
|
46
|
+
value: string;
|
47
|
+
symbol: string;
|
48
|
+
}, {
|
49
|
+
value: string;
|
50
|
+
symbol: string;
|
51
|
+
}, unknown>, t.UndefinedC]>;
|
52
|
+
recipients: t.UnionC<[t.Type<({
|
53
|
+
address: {
|
54
|
+
address?: string | undefined;
|
55
|
+
option?: {
|
56
|
+
[x: string]: unknown;
|
57
|
+
} | undefined;
|
58
|
+
};
|
59
|
+
amount: {
|
60
|
+
value: string;
|
61
|
+
symbol: string;
|
62
|
+
};
|
63
|
+
} & {
|
64
|
+
data?: string | undefined;
|
65
|
+
})[], ({
|
66
|
+
address: {
|
67
|
+
address?: string | undefined;
|
68
|
+
option?: {
|
69
|
+
[x: string]: unknown;
|
70
|
+
} | undefined;
|
71
|
+
};
|
72
|
+
amount: {
|
73
|
+
value: string;
|
74
|
+
symbol: string;
|
75
|
+
};
|
76
|
+
} & {
|
77
|
+
data?: string | undefined;
|
78
|
+
})[], unknown>, t.UndefinedC]>;
|
79
|
+
}>]>, t.TypeC<{
|
80
|
+
sharedStakingObjectId: t.StringC;
|
81
|
+
}>]>;
|
82
|
+
export type WalrusStakingIntent = t.TypeOf<typeof WalrusStakingIntent>;
|
@@ -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.WalrusStakingIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const suiStakingIntent_1 = require("./suiStakingIntent");
|
29
|
+
exports.WalrusStakingIntent = t.intersection([
|
30
|
+
suiStakingIntent_1.SuiStakingIntent,
|
31
|
+
t.type({
|
32
|
+
sharedStakingObjectId: t.string,
|
33
|
+
}),
|
34
|
+
]);
|
35
|
+
//# sourceMappingURL=walrusStakingIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"walrusStakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/walrusStakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yDAAsD;AAOzC,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,mCAAgB;IAChB,CAAC,CAAC,IAAI,CAAC;QACL,qBAAqB,EAAE,CAAC,CAAC,MAAM;KAChC,CAAC;CACH,CAAC,CAAC"}
|
@@ -40,7 +40,8 @@ export declare enum WalletWebhookTypeEnum {
|
|
40
40
|
"address_confirmation" = "address_confirmation",
|
41
41
|
"lowFee" = "lowFee",
|
42
42
|
"circuitBreaker" = "circuitBreaker",
|
43
|
-
"transaction_finality_on_l1" = "transaction_finality_on_l1"
|
43
|
+
"transaction_finality_on_l1" = "transaction_finality_on_l1",
|
44
|
+
"fundsDeposited" = "fundsDeposited"
|
44
45
|
}
|
45
46
|
export declare const WalletWebhookType: t.KeyofC<typeof WalletWebhookTypeEnum>;
|
46
47
|
export type WalletWebhookType = t.TypeOf<typeof WalletWebhookType>;
|
@@ -68,6 +68,7 @@ var WalletWebhookTypeEnum;
|
|
68
68
|
WalletWebhookTypeEnum["lowFee"] = "lowFee";
|
69
69
|
WalletWebhookTypeEnum["circuitBreaker"] = "circuitBreaker";
|
70
70
|
WalletWebhookTypeEnum["transaction_finality_on_l1"] = "transaction_finality_on_l1";
|
71
|
+
WalletWebhookTypeEnum["fundsDeposited"] = "fundsDeposited";
|
71
72
|
})(WalletWebhookTypeEnum || (exports.WalletWebhookTypeEnum = WalletWebhookTypeEnum = {}));
|
72
73
|
exports.WalletWebhookType = t.keyof(WalletWebhookTypeEnum, "WalletWebhookType");
|
73
74
|
var EnterpriseWebhookTypeEnum;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webhookType.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,eAkCX;AAlCD,WAAY,eAAe;IAEzB,0CAAyB,CAAA;IAEzB,gEAA+C,CAAA;IAC/C,wCAAuB,CAAA;IACvB,8CAA6B,CAAA;IAC7B,4DAA2C,CAAA;IAC3C,0DAAyC,CAAA;IACzC,sDAAqC,CAAA;IACrC,kCAAiB,CAAA;IACjB,kCAA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KAAK,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAGnE,IAAY,qBAeX;AAfD,WAAY,qBAAqB;IAC/B,gDAAyB,CAAA;IACzB,sEAA+C,CAAA;IAC/C,8CAAuB,CAAA;IACvB,oDAA6B,CAAA;IAC7B,kEAA2C,CAAA;IAC3C,gEAAyC,CAAA;IACzC,4DAAqC,CAAA;IACrC,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,sEAA+C,CAAA;IAC/C,0CAAmB,CAAA;IACnB,0DAAmC,CAAA;IACnC,kFAA2D,CAAA;IAC3D,0DAAmC,CAAA;AACrC,CAAC,EAfW,qBAAqB,qCAArB,qBAAqB,QAehC;AAEY,QAAA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CACtC,qBAAqB,EACrB,mBAAmB,CACpB,CAAC;AAGF,IAAY,yBAIX;AAJD,WAAY,yBAAyB;IACnC,wDAA6B,CAAA;IAC7B,wDAA6B,CAAA;IAC7B,wEAA6C,CAAA;AAC/C,CAAC,EAJW,yBAAyB,yCAAzB,yBAAyB,QAIpC;AACY,QAAA,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAC1C,yBAAyB,EACzB,uBAAuB,CACxB,CAAC"}
|
package/package.json
CHANGED
@@ -63,6 +63,7 @@ import { CoreDaoUndelegateIntent } from "./coredaoUndelegateIntent";
|
|
63
63
|
import { CoreDaoClaimIntent } from "./coredaoClaimIntent";
|
64
64
|
import { EthLikeStakeIntent } from "./ethLikeStakeIntent";
|
65
65
|
import { BeraDelegateIntent } from "./beraDelegateIntent";
|
66
|
+
import { WalrusStakingIntent } from "./walrusStakingIntent";
|
66
67
|
|
67
68
|
export const TransactionIntent = t.union([
|
68
69
|
AdaConsolidateIntent,
|
@@ -128,6 +129,7 @@ export const TransactionIntent = t.union([
|
|
128
129
|
CoreDaoClaimIntent,
|
129
130
|
EthLikeStakeIntent,
|
130
131
|
BeraDelegateIntent,
|
132
|
+
WalrusStakingIntent,
|
131
133
|
|
132
134
|
/**
|
133
135
|
* Catch all for past intents that have not been converted to codecs
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { SuiStakingIntent } from "./suiStakingIntent";
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @title Walrus Stake Intent
|
6
|
+
*
|
7
|
+
* @param {string} sharedStakingObjectId - The staking object id
|
8
|
+
*/
|
9
|
+
export const WalrusStakingIntent = t.intersection([
|
10
|
+
SuiStakingIntent,
|
11
|
+
t.type({
|
12
|
+
sharedStakingObjectId: t.string,
|
13
|
+
}),
|
14
|
+
]);
|
15
|
+
|
16
|
+
export type WalrusStakingIntent = t.TypeOf<typeof WalrusStakingIntent>;
|