@bitgo/public-types 5.54.0 → 5.55.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.
@@ -6044,6 +6044,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
6044
6044
  useSingleNominator: t.BooleanC;
6045
6045
  }>, t.PartialC<{
6046
6046
  ownerAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
6047
+ tonStakingType: t.KeyofC<typeof import("./tonStakingType").TonStakingTypeEnum>;
6047
6048
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
6048
6049
  intentType: t.KeyofC<{
6049
6050
  payment: t.LiteralC<"payment">;
@@ -6174,6 +6175,64 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
6174
6175
  value: t.StringC;
6175
6176
  symbol: t.StringC;
6176
6177
  }>;
6178
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
6179
+ intentType: t.KeyofC<{
6180
+ payment: t.LiteralC<"payment">;
6181
+ transferToken: t.LiteralC<"transferToken">;
6182
+ consolidate: t.LiteralC<"consolidate">;
6183
+ consolidateToken: t.LiteralC<"consolidateToken">;
6184
+ fanout: t.LiteralC<"fanout">;
6185
+ stake: t.LiteralC<"stake">;
6186
+ unstake: t.LiteralC<"unstake">;
6187
+ delegate: t.LiteralC<"delegate">;
6188
+ undelegate: t.LiteralC<"undelegate">;
6189
+ switchValidator: t.LiteralC<"switchValidator">;
6190
+ claim: t.LiteralC<"claim">;
6191
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
6192
+ pledge: t.LiteralC<"pledge">;
6193
+ voteDelegation: t.LiteralC<"voteDelegation">;
6194
+ vote: t.LiteralC<"vote">;
6195
+ createAccount: t.LiteralC<"createAccount">;
6196
+ updateAccount: t.LiteralC<"updateAccount">;
6197
+ addTrustLine: t.LiteralC<"addTrustLine">;
6198
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
6199
+ signMessage: t.LiteralC<"signMessage">;
6200
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
6201
+ enableToken: t.LiteralC<"enableToken">;
6202
+ authorize: t.LiteralC<"authorize">;
6203
+ acceleration: t.LiteralC<"acceleration">;
6204
+ fillNonce: t.LiteralC<"fillNonce">;
6205
+ walletRecovery: t.LiteralC<"walletRecovery">;
6206
+ contractCall: t.LiteralC<"contractCall">;
6207
+ deactivate: t.LiteralC<"deactivate">;
6208
+ customTx: t.LiteralC<"customTx">;
6209
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
6210
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
6211
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
6212
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
6213
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
6214
+ tokenApproval: t.LiteralC<"tokenApproval">;
6215
+ transferStake: t.LiteralC<"transferStake">;
6216
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
6217
+ goUnstake: t.LiteralC<"goUnstake">;
6218
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
6219
+ transferAccept: t.LiteralC<"transferAccept">;
6220
+ transferReject: t.LiteralC<"transferReject">;
6221
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
6222
+ }>;
6223
+ }>, t.PartialC<{
6224
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
6225
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
6226
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
6227
+ }>]>, t.TypeC<{
6228
+ amount: t.TypeC<{
6229
+ value: t.StringC;
6230
+ symbol: t.StringC;
6231
+ }>;
6232
+ }>, t.TypeC<{
6233
+ intentType: t.LiteralC<"delegate">;
6234
+ validatorAddress: t.StringC;
6235
+ tonStakingType: t.LiteralC<import("./tonStakingType").TonStakingTypeEnum.TON_WHALES>;
6177
6236
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
6178
6237
  intentType: t.KeyofC<{
6179
6238
  payment: t.LiteralC<"payment">;
@@ -121,6 +121,7 @@ const vetValidatorRegistrationIntent_1 = require("./vetValidatorRegistrationInte
121
121
  const cantonTransferAcceptIntent_1 = require("./cantonTransferAcceptIntent");
122
122
  const cantonTransferRejectIntent_1 = require("./cantonTransferRejectIntent");
123
123
  const cantonTransferAcknowledgeIntent_1 = require("./cantonTransferAcknowledgeIntent");
124
+ const tonWhalesDelegateIntent_1 = require("./tonWhalesDelegateIntent");
124
125
  exports.TransactionIntent = t.union([
125
126
  adaConsolidateIntent_1.AdaConsolidateIntent,
126
127
  adaPaymentIntent_1.AdaPaymentIntent,
@@ -202,6 +203,7 @@ exports.TransactionIntent = t.union([
202
203
  tonDelegateIntent_1.TonDelegateIntent,
203
204
  tonPaymentIntent_1.TonPaymentIntent,
204
205
  tonUndelegateIntent_1.TonUndelegateIntent,
206
+ tonWhalesDelegateIntent_1.TonWhalesDelegateIntent,
205
207
  vetStakingIntent_1.VetStakingIntent,
206
208
  vetDelegateIntent_1.VetDelegateIntent,
207
209
  vetUnstakingIntent_1.VetExitDelegationIntent,
@@ -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,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,mFAAgF;AAChF,yEAAsE;AACtE,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,6DAG8B;AAC9B,+DAA4D;AAC5D,2DAAwD;AACxD,+EA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8B;IAC9B,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IAKpB,uBAAU;CACX,CAAC,CAAC"}
1
+ {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAkD;AAClD,uEAAoE;AACpE,2DAAwD;AACxD,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,mFAAgF;AAChF,yEAAsE;AACtE,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,6DAG8B;AAC9B,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAClE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,qEAAkE;AAClE,mEAAgE;AAChE,6DAA0D;AAC1D,yDAAsD;AACtD,yDAAsD;AACtD,yEAAsE;AACtE,yDAAsD;AACtD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,yEAAsE;AACtE,6EAA0E;AAC1E,yDAAsD;AACtD,6DAA0D;AAC1D,+DAA4D;AAC5D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,2DAAwD;AACxD,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,6EAA0E;AAC1E,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,6EAA0E;AAC1E,qEAAkE;AAClE,qDAAkD;AAClD,yEAAsE;AACtE,qEAAkE;AAClE,yDAAsD;AACtD,+DAA4D;AAC5D,2DAA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AkB;IAClB,mDAAwB;IACxB,uDAA0B;IAC1B,mCAAgB;IAChB,uCAAkB;IAClB,yCAAmB;IACnB,uCAAkB;IAClB,+BAAc;IACd,2EAAoC;IACpC,2CAAoB;IACpB,6EAAqC;IACrC,qCAAiB;IACjB,yCAAmB;IACnB,qCAAiB;IACjB,uCAAkB;IAClB,mCAAgB;IAChB,+BAAc;IACd,mCAAgB;IAChB,uDAA0B;IAC1B,uDAA0B;IAC1B,+CAAsB;IACtB,2CAAoB;IACpB,qCAAiB;IACjB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+BAAc;IACd,mDAAwB;IACxB,+CAAsB;IACtB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,iDAAuB;IACvB,mCAAgB;IAChB,qCAAiB;IACjB,4CAAuB;IACvB,qCAAgB;IAChB,uDAA0B;IAC1B,+DAA8B;IAC9B,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IAKpB,uBAAU;CACX,CAAC,CAAC"}
@@ -59,5 +59,6 @@ export declare const TonDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Type
59
59
  useSingleNominator: t.BooleanC;
60
60
  }>, t.PartialC<{
61
61
  ownerAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
62
+ tonStakingType: t.KeyofC<typeof import("./tonStakingType").TonStakingTypeEnum>;
62
63
  }>]>;
63
64
  export type TonDelegateIntent = t.TypeOf<typeof TonDelegateIntent>;
@@ -28,6 +28,7 @@ const t = __importStar(require("io-ts"));
28
28
  const baseIntent_1 = require("./baseIntent");
29
29
  const intentType_1 = require("./intentType");
30
30
  const utils_1 = require("../../../utils");
31
+ const tonStakingType_1 = require("./tonStakingType");
31
32
  exports.TonDelegateIntent = t.intersection([
32
33
  baseIntent_1.BaseIntent,
33
34
  baseIntent_1.BaseIntentWithAmount,
@@ -38,6 +39,7 @@ exports.TonDelegateIntent = t.intersection([
38
39
  }),
39
40
  t.partial({
40
41
  ownerAddress: utils_1.optionalString,
42
+ tonStakingType: tonStakingType_1.TonStakingType,
41
43
  }),
42
44
  ]);
43
45
  //# sourceMappingURL=tonDelegateIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tonDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/tonDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAgE;AAChE,6CAA2C;AAC3C,0CAAgD;AAanC,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,kBAAkB,EAAE,CAAC,CAAC,OAAO;KAC9B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,YAAY,EAAE,sBAAc;KAC7B,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"tonDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/tonDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAgE;AAChE,6CAA2C;AAC3C,0CAAgD;AAChD,qDAAkD;AAarC,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAE1B,kBAAkB,EAAE,CAAC,CAAC,OAAO;KAC9B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QAER,YAAY,EAAE,sBAAc;QAE5B,cAAc,EAAE,+BAAc;KAC/B,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import * as t from "io-ts";
2
+ export declare enum TonStakingTypeEnum {
3
+ SINGLE_NOMINATOR = "SINGLE_NOMINATOR",
4
+ MULTI_NOMINATOR = "MULTI_NOMINATOR",
5
+ TON_WHALES = "TON_WHALES"
6
+ }
7
+ export declare const TonStakingType: t.KeyofC<typeof TonStakingTypeEnum>;
8
+ export type TonStakingType = t.TypeOf<typeof TonStakingType>;
@@ -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.TonStakingType = exports.TonStakingTypeEnum = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ var TonStakingTypeEnum;
29
+ (function (TonStakingTypeEnum) {
30
+ TonStakingTypeEnum["SINGLE_NOMINATOR"] = "SINGLE_NOMINATOR";
31
+ TonStakingTypeEnum["MULTI_NOMINATOR"] = "MULTI_NOMINATOR";
32
+ TonStakingTypeEnum["TON_WHALES"] = "TON_WHALES";
33
+ })(TonStakingTypeEnum || (exports.TonStakingTypeEnum = TonStakingTypeEnum = {}));
34
+ exports.TonStakingType = t.keyof(TonStakingTypeEnum);
35
+ //# sourceMappingURL=tonStakingType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tonStakingType.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/tonStakingType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,2DAAqC,CAAA;IACrC,yDAAmC,CAAA;IACnC,+CAAyB,CAAA;AAC3B,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAEY,QAAA,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,62 @@
1
+ import * as t from "io-ts";
2
+ import { TonStakingTypeEnum } from "./tonStakingType";
3
+ export declare const TonWhalesDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
4
+ intentType: t.KeyofC<{
5
+ payment: t.LiteralC<"payment">;
6
+ transferToken: t.LiteralC<"transferToken">;
7
+ consolidate: t.LiteralC<"consolidate">;
8
+ consolidateToken: t.LiteralC<"consolidateToken">;
9
+ fanout: t.LiteralC<"fanout">;
10
+ stake: t.LiteralC<"stake">;
11
+ unstake: t.LiteralC<"unstake">;
12
+ delegate: t.LiteralC<"delegate">;
13
+ undelegate: t.LiteralC<"undelegate">;
14
+ switchValidator: t.LiteralC<"switchValidator">;
15
+ claim: t.LiteralC<"claim">;
16
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
17
+ pledge: t.LiteralC<"pledge">;
18
+ voteDelegation: t.LiteralC<"voteDelegation">;
19
+ vote: t.LiteralC<"vote">;
20
+ createAccount: t.LiteralC<"createAccount">;
21
+ updateAccount: t.LiteralC<"updateAccount">;
22
+ addTrustLine: t.LiteralC<"addTrustLine">;
23
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
24
+ signMessage: t.LiteralC<"signMessage">;
25
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
26
+ enableToken: t.LiteralC<"enableToken">;
27
+ authorize: t.LiteralC<"authorize">;
28
+ acceleration: t.LiteralC<"acceleration">;
29
+ fillNonce: t.LiteralC<"fillNonce">;
30
+ walletRecovery: t.LiteralC<"walletRecovery">;
31
+ contractCall: t.LiteralC<"contractCall">;
32
+ deactivate: t.LiteralC<"deactivate">;
33
+ customTx: t.LiteralC<"customTx">;
34
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
35
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
36
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
37
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
38
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
39
+ tokenApproval: t.LiteralC<"tokenApproval">;
40
+ transferStake: t.LiteralC<"transferStake">;
41
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
42
+ goUnstake: t.LiteralC<"goUnstake">;
43
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
44
+ transferAccept: t.LiteralC<"transferAccept">;
45
+ transferReject: t.LiteralC<"transferReject">;
46
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
47
+ }>;
48
+ }>, t.PartialC<{
49
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
50
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
51
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
52
+ }>]>, t.TypeC<{
53
+ amount: t.TypeC<{
54
+ value: t.StringC;
55
+ symbol: t.StringC;
56
+ }>;
57
+ }>, t.TypeC<{
58
+ intentType: t.LiteralC<"delegate">;
59
+ validatorAddress: t.StringC;
60
+ tonStakingType: t.LiteralC<TonStakingTypeEnum.TON_WHALES>;
61
+ }>]>;
62
+ export type TonWhalesDelegateIntent = t.TypeOf<typeof TonWhalesDelegateIntent>;
@@ -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.TonWhalesDelegateIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const intentType_1 = require("./intentType");
29
+ const tonStakingType_1 = require("./tonStakingType");
30
+ const baseIntent_1 = require("./baseIntent");
31
+ exports.TonWhalesDelegateIntent = t.intersection([
32
+ baseIntent_1.BaseIntent,
33
+ baseIntent_1.BaseIntentWithAmount,
34
+ t.type({
35
+ intentType: intentType_1.intentTypes.delegate,
36
+ validatorAddress: t.string,
37
+ tonStakingType: t.literal(tonStakingType_1.TonStakingTypeEnum.TON_WHALES),
38
+ }),
39
+ ]);
40
+ //# sourceMappingURL=tonWhalesDelegateIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tonWhalesDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/tonWhalesDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA2C;AAC3C,qDAAsD;AACtD,6CAAgE;AAWnD,QAAA,uBAAuB,GAAG,CAAC,CAAC,YAAY,CAAC;IAEpD,uBAAU;IACV,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,mCAAkB,CAAC,UAAU,CAAC;KACzD,CAAC;CACH,CAAC,CAAC"}
@@ -6142,6 +6142,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
6142
6142
  useSingleNominator: t.BooleanC;
6143
6143
  }>, t.PartialC<{
6144
6144
  ownerAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
6145
+ tonStakingType: t.KeyofC<typeof import("./intents/tonStakingType").TonStakingTypeEnum>;
6145
6146
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
6146
6147
  intentType: t.KeyofC<{
6147
6148
  payment: t.LiteralC<"payment">;
@@ -6272,6 +6273,64 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
6272
6273
  value: t.StringC;
6273
6274
  symbol: t.StringC;
6274
6275
  }>;
6276
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
6277
+ intentType: t.KeyofC<{
6278
+ payment: t.LiteralC<"payment">;
6279
+ transferToken: t.LiteralC<"transferToken">;
6280
+ consolidate: t.LiteralC<"consolidate">;
6281
+ consolidateToken: t.LiteralC<"consolidateToken">;
6282
+ fanout: t.LiteralC<"fanout">;
6283
+ stake: t.LiteralC<"stake">;
6284
+ unstake: t.LiteralC<"unstake">;
6285
+ delegate: t.LiteralC<"delegate">;
6286
+ undelegate: t.LiteralC<"undelegate">;
6287
+ switchValidator: t.LiteralC<"switchValidator">;
6288
+ claim: t.LiteralC<"claim">;
6289
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
6290
+ pledge: t.LiteralC<"pledge">;
6291
+ voteDelegation: t.LiteralC<"voteDelegation">;
6292
+ vote: t.LiteralC<"vote">;
6293
+ createAccount: t.LiteralC<"createAccount">;
6294
+ updateAccount: t.LiteralC<"updateAccount">;
6295
+ addTrustLine: t.LiteralC<"addTrustLine">;
6296
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
6297
+ signMessage: t.LiteralC<"signMessage">;
6298
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
6299
+ enableToken: t.LiteralC<"enableToken">;
6300
+ authorize: t.LiteralC<"authorize">;
6301
+ acceleration: t.LiteralC<"acceleration">;
6302
+ fillNonce: t.LiteralC<"fillNonce">;
6303
+ walletRecovery: t.LiteralC<"walletRecovery">;
6304
+ contractCall: t.LiteralC<"contractCall">;
6305
+ deactivate: t.LiteralC<"deactivate">;
6306
+ customTx: t.LiteralC<"customTx">;
6307
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
6308
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
6309
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
6310
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
6311
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
6312
+ tokenApproval: t.LiteralC<"tokenApproval">;
6313
+ transferStake: t.LiteralC<"transferStake">;
6314
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
6315
+ goUnstake: t.LiteralC<"goUnstake">;
6316
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
6317
+ transferAccept: t.LiteralC<"transferAccept">;
6318
+ transferReject: t.LiteralC<"transferReject">;
6319
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
6320
+ }>;
6321
+ }>, t.PartialC<{
6322
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
6323
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
6324
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
6325
+ }>]>, t.TypeC<{
6326
+ amount: t.TypeC<{
6327
+ value: t.StringC;
6328
+ symbol: t.StringC;
6329
+ }>;
6330
+ }>, t.TypeC<{
6331
+ intentType: t.LiteralC<"delegate">;
6332
+ validatorAddress: t.StringC;
6333
+ tonStakingType: t.LiteralC<import("./intents/tonStakingType").TonStakingTypeEnum.TON_WHALES>;
6275
6334
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
6276
6335
  intentType: t.KeyofC<{
6277
6336
  payment: t.LiteralC<"payment">;
@@ -13808,6 +13867,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
13808
13867
  useSingleNominator: t.BooleanC;
13809
13868
  }>, t.PartialC<{
13810
13869
  ownerAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
13870
+ tonStakingType: t.KeyofC<typeof import("./intents/tonStakingType").TonStakingTypeEnum>;
13811
13871
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
13812
13872
  intentType: t.KeyofC<{
13813
13873
  payment: t.LiteralC<"payment">;
@@ -13938,6 +13998,64 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
13938
13998
  value: t.StringC;
13939
13999
  symbol: t.StringC;
13940
14000
  }>;
14001
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
14002
+ intentType: t.KeyofC<{
14003
+ payment: t.LiteralC<"payment">;
14004
+ transferToken: t.LiteralC<"transferToken">;
14005
+ consolidate: t.LiteralC<"consolidate">;
14006
+ consolidateToken: t.LiteralC<"consolidateToken">;
14007
+ fanout: t.LiteralC<"fanout">;
14008
+ stake: t.LiteralC<"stake">;
14009
+ unstake: t.LiteralC<"unstake">;
14010
+ delegate: t.LiteralC<"delegate">;
14011
+ undelegate: t.LiteralC<"undelegate">;
14012
+ switchValidator: t.LiteralC<"switchValidator">;
14013
+ claim: t.LiteralC<"claim">;
14014
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
14015
+ pledge: t.LiteralC<"pledge">;
14016
+ voteDelegation: t.LiteralC<"voteDelegation">;
14017
+ vote: t.LiteralC<"vote">;
14018
+ createAccount: t.LiteralC<"createAccount">;
14019
+ updateAccount: t.LiteralC<"updateAccount">;
14020
+ addTrustLine: t.LiteralC<"addTrustLine">;
14021
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
14022
+ signMessage: t.LiteralC<"signMessage">;
14023
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
14024
+ enableToken: t.LiteralC<"enableToken">;
14025
+ authorize: t.LiteralC<"authorize">;
14026
+ acceleration: t.LiteralC<"acceleration">;
14027
+ fillNonce: t.LiteralC<"fillNonce">;
14028
+ walletRecovery: t.LiteralC<"walletRecovery">;
14029
+ contractCall: t.LiteralC<"contractCall">;
14030
+ deactivate: t.LiteralC<"deactivate">;
14031
+ customTx: t.LiteralC<"customTx">;
14032
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
14033
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
14034
+ unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
14035
+ switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
14036
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
14037
+ tokenApproval: t.LiteralC<"tokenApproval">;
14038
+ transferStake: t.LiteralC<"transferStake">;
14039
+ validatorRegistration: t.LiteralC<"validatorRegistration">;
14040
+ goUnstake: t.LiteralC<"goUnstake">;
14041
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
14042
+ transferAccept: t.LiteralC<"transferAccept">;
14043
+ transferReject: t.LiteralC<"transferReject">;
14044
+ transferAcknowledge: t.LiteralC<"transferAcknowledge">;
14045
+ }>;
14046
+ }>, t.PartialC<{
14047
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
14048
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
14049
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
14050
+ }>]>, t.TypeC<{
14051
+ amount: t.TypeC<{
14052
+ value: t.StringC;
14053
+ symbol: t.StringC;
14054
+ }>;
14055
+ }>, t.TypeC<{
14056
+ intentType: t.LiteralC<"delegate">;
14057
+ validatorAddress: t.StringC;
14058
+ tonStakingType: t.LiteralC<import("./intents/tonStakingType").TonStakingTypeEnum.TON_WHALES>;
13941
14059
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
13942
14060
  intentType: t.KeyofC<{
13943
14061
  payment: t.LiteralC<"payment">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.54.0",
3
+ "version": "5.55.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -98,6 +98,7 @@ import { VetValidatorRegistrationIntent } from "./vetValidatorRegistrationIntent
98
98
  import { CantonTransferAcceptIntent } from "./cantonTransferAcceptIntent";
99
99
  import { CantonTransferRejectIntent } from "./cantonTransferRejectIntent";
100
100
  import { CantonTransferAcknowledgeIntent } from "./cantonTransferAcknowledgeIntent";
101
+ import { TonWhalesDelegateIntent } from "./tonWhalesDelegateIntent";
101
102
 
102
103
  export const TransactionIntent = t.union([
103
104
  AdaConsolidateIntent,
@@ -180,6 +181,7 @@ export const TransactionIntent = t.union([
180
181
  TonDelegateIntent,
181
182
  TonPaymentIntent,
182
183
  TonUndelegateIntent,
184
+ TonWhalesDelegateIntent,
183
185
  VetStakingIntent,
184
186
  VetDelegateIntent,
185
187
  VetExitDelegationIntent,
@@ -2,6 +2,7 @@ import * as t from "io-ts";
2
2
  import { BaseIntent, BaseIntentWithAmount } from "./baseIntent";
3
3
  import { intentTypes } from "./intentType";
4
4
  import { optionalString } from "../../../utils";
5
+ import { TonStakingType } from "./tonStakingType";
5
6
 
6
7
  /**
7
8
  * @title TON Delegate Intent
@@ -20,10 +21,14 @@ export const TonDelegateIntent = t.intersection([
20
21
  t.type({
21
22
  intentType: intentTypes.delegate,
22
23
  validatorAddress: t.string,
24
+ // TODO SC-4508: deprecate useSingleNominator in favor of tonStakingType
23
25
  useSingleNominator: t.boolean,
24
26
  }),
25
27
  t.partial({
28
+ // TODO SC-4508: move this to the TonSingleNominatorDelegateIntent
26
29
  ownerAddress: optionalString,
30
+ // TODO SC-4509: Make tonStakingType required by moving from partial to type
31
+ tonStakingType: TonStakingType,
27
32
  }),
28
33
  ]);
29
34
 
@@ -0,0 +1,11 @@
1
+ import * as t from "io-ts";
2
+
3
+ export enum TonStakingTypeEnum {
4
+ SINGLE_NOMINATOR = "SINGLE_NOMINATOR",
5
+ MULTI_NOMINATOR = "MULTI_NOMINATOR",
6
+ TON_WHALES = "TON_WHALES",
7
+ }
8
+
9
+ export const TonStakingType = t.keyof(TonStakingTypeEnum);
10
+
11
+ export type TonStakingType = t.TypeOf<typeof TonStakingType>;
@@ -0,0 +1,26 @@
1
+ import * as t from "io-ts";
2
+ import { intentTypes } from "./intentType";
3
+ import { TonStakingTypeEnum } from "./tonStakingType";
4
+ import { BaseIntent, BaseIntentWithAmount } from "./baseIntent";
5
+
6
+ /**
7
+ * @title TON Whales Delegate Intent
8
+ *
9
+ * @description The intent for delegate/stake requests to TON Whales validators
10
+ *
11
+ * @param {string} intentType The type of intent (always set to delegate)
12
+ * @param {string} validatorAddress The address of the validator
13
+ * @param {string} tonStakingType The type of TON staking (always set to TON_WHALES)
14
+ */
15
+ export const TonWhalesDelegateIntent = t.intersection([
16
+ // TODO SC-4508: Update to extend from TonDelegateIntent once deprecation is done
17
+ BaseIntent,
18
+ BaseIntentWithAmount,
19
+ t.type({
20
+ intentType: intentTypes.delegate,
21
+ validatorAddress: t.string,
22
+ tonStakingType: t.literal(TonStakingTypeEnum.TON_WHALES),
23
+ }),
24
+ ]);
25
+
26
+ export type TonWhalesDelegateIntent = t.TypeOf<typeof TonWhalesDelegateIntent>;