@bitgo/public-types 4.16.1 → 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.
@@ -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,y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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"}
@@ -3964,6 +3964,118 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
3964
3964
  })[], unknown>, t.UndefinedC]>;
3965
3965
  }>]>, t.TypeC<{
3966
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;
3967
4079
  }>]>, t.IntersectionC<[t.TypeC<{
3968
4080
  intentType: t.KeyofC<{
3969
4081
  payment: t.LiteralC<"payment">;
@@ -92,6 +92,8 @@ const coredaoClaimIntent_1 = require("./coredaoClaimIntent");
92
92
  const ethLikeStakeIntent_1 = require("./ethLikeStakeIntent");
93
93
  const beraDelegateIntent_1 = require("./beraDelegateIntent");
94
94
  const walrusStakingIntent_1 = require("./walrusStakingIntent");
95
+ const walrusUndelegateIntent_1 = require("./walrusUndelegateIntent");
96
+ const walrusWithdrawIntent_1 = require("./walrusWithdrawIntent");
95
97
  exports.TransactionIntent = t.union([
96
98
  adaConsolidateIntent_1.AdaConsolidateIntent,
97
99
  adaPaymentIntent_1.AdaPaymentIntent,
@@ -159,6 +161,8 @@ exports.TransactionIntent = t.union([
159
161
  ethLikeStakeIntent_1.EthLikeStakeIntent,
160
162
  beraDelegateIntent_1.BeraDelegateIntent,
161
163
  walrusStakingIntent_1.WalrusStakingIntent,
164
+ walrusUndelegateIntent_1.WalrusUndelegateIntent,
165
+ walrusWithdrawIntent_1.WalrusWithdrawIntent,
162
166
  baseIntent_1.BaseIntent,
163
167
  ]);
164
168
  //# sourceMappingURL=intent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;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AiB;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;IAKnB,uBAAU;CACX,CAAC,CAAC"}
1
+ {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAkD;AAClD,uEAAoE;AACpE,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAClE,yDAAsD;AAC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AChB,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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "4.16.1",
3
+ "version": "4.17.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -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";
@@ -66,6 +66,8 @@ import { CoreDaoClaimIntent } from "./coredaoClaimIntent";
66
66
  import { EthLikeStakeIntent } from "./ethLikeStakeIntent";
67
67
  import { BeraDelegateIntent } from "./beraDelegateIntent";
68
68
  import { WalrusStakingIntent } from "./walrusStakingIntent";
69
+ import { WalrusUndelegateIntent } from "./walrusUndelegateIntent";
70
+ import { WalrusWithdrawIntent } from "./walrusWithdrawIntent";
69
71
 
70
72
  export const TransactionIntent = t.union([
71
73
  AdaConsolidateIntent,
@@ -134,6 +136,8 @@ export const TransactionIntent = t.union([
134
136
  EthLikeStakeIntent,
135
137
  BeraDelegateIntent,
136
138
  WalrusStakingIntent,
139
+ WalrusUndelegateIntent,
140
+ WalrusWithdrawIntent,
137
141
 
138
142
  /**
139
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>;