@bitgo/public-types 5.21.0 → 5.23.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.
@@ -106,6 +106,7 @@ export * from "./substrateFeeOptions";
106
106
  export * from "./substratePaymentIntent";
107
107
  export * from "./taoStakingBaseIntent";
108
108
  export * from "./taoStakeIntent";
109
+ export * from "./taoSwitchValidatorIntent";
109
110
  export * from "./taoUnstakeIntent";
110
111
  export * from "./suiBuildOptions";
111
112
  export * from "./suiConsolidateIntent";
@@ -122,6 +122,7 @@ __exportStar(require("./substrateFeeOptions"), exports);
122
122
  __exportStar(require("./substratePaymentIntent"), exports);
123
123
  __exportStar(require("./taoStakingBaseIntent"), exports);
124
124
  __exportStar(require("./taoStakeIntent"), exports);
125
+ __exportStar(require("./taoSwitchValidatorIntent"), exports);
125
126
  __exportStar(require("./taoUnstakeIntent"), exports);
126
127
  __exportStar(require("./suiBuildOptions"), exports);
127
128
  __exportStar(require("./suiConsolidateIntent"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,+DAA6C;AAC7C,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kEAAgD;AAChD,6DAA2C;AAC3C,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,uDAAqC;AACrC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAs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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,qDAAmC;AACnC,+DAA6C;AAC7C,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,+DAA6C;AAC7C,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kEAAgD;AAChD,6DAA2C;AAC3C,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,uDAAqC;AACrC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,gEAA8C;AAC9C,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,kDAAgC;AAChC,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,kDAAgC;AAChC,qDAAmC;AACnC,6CAA2B;AAC3B,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,yDAAuC;AACvC,8DAA4C;AAC5C,uDAA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;AACtC,uDAAqC"}
@@ -2559,6 +2559,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
2559
2559
  messageRaw: t.StringC;
2560
2560
  messageEncoded: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2561
2561
  messageStandardType: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2562
+ signerAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2562
2563
  }>]>, t.TypeC<{
2563
2564
  custodianMessageId: t.StringC;
2564
2565
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
@@ -4691,6 +4692,73 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
4691
4692
  netuid: t.StringC;
4692
4693
  }>]>, t.TypeC<{
4693
4694
  amountStaked: t.StringC;
4695
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
4696
+ intentType: t.KeyofC<{
4697
+ payment: t.LiteralC<"payment">;
4698
+ transferToken: t.LiteralC<"transferToken">;
4699
+ consolidate: t.LiteralC<"consolidate">;
4700
+ consolidateToken: t.LiteralC<"consolidateToken">;
4701
+ fanout: t.LiteralC<"fanout">;
4702
+ stake: t.LiteralC<"stake">;
4703
+ unstake: t.LiteralC<"unstake">;
4704
+ delegate: t.LiteralC<"delegate">;
4705
+ undelegate: t.LiteralC<"undelegate">;
4706
+ switchValidator: t.LiteralC<"switchValidator">;
4707
+ claim: t.LiteralC<"claim">;
4708
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
4709
+ pledge: t.LiteralC<"pledge">;
4710
+ voteDelegation: t.LiteralC<"voteDelegation">;
4711
+ vote: t.LiteralC<"vote">;
4712
+ createAccount: t.LiteralC<"createAccount">;
4713
+ updateAccount: t.LiteralC<"updateAccount">;
4714
+ addTrustLine: t.LiteralC<"addTrustLine">;
4715
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
4716
+ signMessage: t.LiteralC<"signMessage">;
4717
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
4718
+ enableToken: t.LiteralC<"enableToken">;
4719
+ authorize: t.LiteralC<"authorize">;
4720
+ acceleration: t.LiteralC<"acceleration">;
4721
+ fillNonce: t.LiteralC<"fillNonce">;
4722
+ walletRecovery: t.LiteralC<"walletRecovery">;
4723
+ contractCall: t.LiteralC<"contractCall">;
4724
+ deactivate: t.LiteralC<"deactivate">;
4725
+ customTx: t.LiteralC<"customTx">;
4726
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
4727
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
4728
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
4729
+ tokenApproval: t.LiteralC<"tokenApproval">;
4730
+ goUnstake: t.LiteralC<"goUnstake">;
4731
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
4732
+ }>;
4733
+ }>, t.PartialC<{
4734
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
4735
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
4736
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
4737
+ }>]>, t.TypeC<{
4738
+ stakingRequestId: t.StringC;
4739
+ }>]>, t.IntersectionC<[t.PartialC<{
4740
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
4741
+ }>, t.PartialC<{
4742
+ fee: t.UnionC<[t.Type<{
4743
+ amount: string | number;
4744
+ } & {
4745
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
4746
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
4747
+ type?: "max" | "base" | "tip" | undefined;
4748
+ }, {
4749
+ amount: string | number;
4750
+ } & {
4751
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
4752
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
4753
+ type?: "max" | "base" | "tip" | undefined;
4754
+ }, unknown>, t.UndefinedC]>;
4755
+ }>]>, t.TypeC<{
4756
+ intentType: t.LiteralC<"switchValidator">;
4757
+ originHotkey: t.StringC;
4758
+ destinationHotkey: t.StringC;
4759
+ originNetuid: t.StringC;
4760
+ destinationNetuid: t.StringC;
4761
+ amount: t.StringC;
4694
4762
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
4695
4763
  intentType: t.KeyofC<{
4696
4764
  payment: t.LiteralC<"payment">;
@@ -79,6 +79,7 @@ const suiUnstakingIntent_1 = require("./suiUnstakingIntent");
79
79
  const substrateConsolidateIntent_1 = require("./substrateConsolidateIntent");
80
80
  const substratePaymentIntent_1 = require("./substratePaymentIntent");
81
81
  const taoStakeIntent_1 = require("./taoStakeIntent");
82
+ const taoSwitchValidatorIntent_1 = require("./taoSwitchValidatorIntent");
82
83
  const taoUnstakeIntent_1 = require("./taoUnstakeIntent");
83
84
  const tokenApprovalIntent_1 = require("./tokenApprovalIntent");
84
85
  const tonDelegateIntent_1 = require("./tonDelegateIntent");
@@ -178,6 +179,7 @@ exports.TransactionIntent = t.union([
178
179
  suiStakingIntent_1.SuiStakingIntent,
179
180
  suiUnstakingIntent_1.SuiUnstakingIntent,
180
181
  taoStakeIntent_1.TaoStakeIntent,
182
+ taoSwitchValidatorIntent_1.TaoSwitchValidatorIntent,
181
183
  taoUnstakeIntent_1.TaoUnstakeIntent,
182
184
  tokenApprovalIntent_1.TokenApprovalIntent,
183
185
  tonConsolidateIntent_1.TonConsolidateIntent,
@@ -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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U;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,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,yDAAsD;AACtD,6DAA0D;AAC1D,+DAA4D;AAC5D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,2DAAwD;AACxD,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,6EAA0E;AAC1E,qEAAkE;AAClE,qDAAkD;AAClD,yEAAsE;AACtE,yDAAsD;AACtD,+DAA4D;AAC5D,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,i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IACxB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,mCAAgB;IAChB,4CAAuB;IACvB,qCAAgB;IAChB,uDAA0B;IAC1B,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IAKpB,uBAAU;CACX,CAAC,CAAC"}
@@ -46,6 +46,7 @@ export declare const MmiSignMessageIntent: t.IntersectionC<[t.IntersectionC<[t.I
46
46
  messageRaw: t.StringC;
47
47
  messageEncoded: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
48
48
  messageStandardType: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
49
+ signerAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
49
50
  }>]>, t.TypeC<{
50
51
  custodianMessageId: t.StringC;
51
52
  }>]>;
@@ -46,5 +46,6 @@ export declare const SignMessageIntent: t.IntersectionC<[t.IntersectionC<[t.Type
46
46
  messageRaw: t.StringC;
47
47
  messageEncoded: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
48
48
  messageStandardType: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
49
+ signerAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
49
50
  }>]>;
50
51
  export type SignMessageIntent = t.TypeOf<typeof SignMessageIntent>;
@@ -35,6 +35,7 @@ exports.SignMessageIntent = t.intersection([
35
35
  messageRaw: t.string,
36
36
  messageEncoded: utils_1.optionalString,
37
37
  messageStandardType: utils_1.optionalString,
38
+ signerAddress: utils_1.optionalString,
38
39
  }),
39
40
  ]);
40
41
  //# sourceMappingURL=signMessageIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"signMessageIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/signMessageIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAC3C,0CAAgD;AAEnC,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,WAAW;QAKnC,UAAU,EAAE,CAAC,CAAC,MAAM;QAKpB,cAAc,EAAE,sBAAc;QAK9B,mBAAmB,EAAE,sBAAc;KACpC,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"signMessageIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/signMessageIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAC3C,0CAAgD;AAEnC,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,WAAW;QAKnC,UAAU,EAAE,CAAC,CAAC,MAAM;QAKpB,cAAc,EAAE,sBAAc;QAK9B,mBAAmB,EAAE,sBAAc;QAInC,aAAa,EAAE,sBAAc;KAC9B,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,70 @@
1
+ import * as t from "io-ts";
2
+ export declare const TaoSwitchValidatorIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
+ intentType: t.KeyofC<{
4
+ payment: t.LiteralC<"payment">;
5
+ transferToken: t.LiteralC<"transferToken">;
6
+ consolidate: t.LiteralC<"consolidate">;
7
+ consolidateToken: t.LiteralC<"consolidateToken">;
8
+ fanout: t.LiteralC<"fanout">;
9
+ stake: t.LiteralC<"stake">;
10
+ unstake: t.LiteralC<"unstake">;
11
+ delegate: t.LiteralC<"delegate">;
12
+ undelegate: t.LiteralC<"undelegate">;
13
+ switchValidator: t.LiteralC<"switchValidator">;
14
+ claim: t.LiteralC<"claim">;
15
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
16
+ pledge: t.LiteralC<"pledge">;
17
+ voteDelegation: t.LiteralC<"voteDelegation">;
18
+ vote: t.LiteralC<"vote">;
19
+ createAccount: t.LiteralC<"createAccount">;
20
+ updateAccount: t.LiteralC<"updateAccount">;
21
+ addTrustLine: t.LiteralC<"addTrustLine">;
22
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
23
+ signMessage: t.LiteralC<"signMessage">;
24
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
25
+ enableToken: t.LiteralC<"enableToken">;
26
+ authorize: t.LiteralC<"authorize">;
27
+ acceleration: t.LiteralC<"acceleration">;
28
+ fillNonce: t.LiteralC<"fillNonce">;
29
+ walletRecovery: t.LiteralC<"walletRecovery">;
30
+ contractCall: t.LiteralC<"contractCall">;
31
+ deactivate: t.LiteralC<"deactivate">;
32
+ customTx: t.LiteralC<"customTx">;
33
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
34
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
35
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
36
+ tokenApproval: t.LiteralC<"tokenApproval">;
37
+ goUnstake: t.LiteralC<"goUnstake">;
38
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
39
+ }>;
40
+ }>, t.PartialC<{
41
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
42
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
43
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
44
+ }>]>, t.TypeC<{
45
+ stakingRequestId: t.StringC;
46
+ }>]>, t.IntersectionC<[t.PartialC<{
47
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
48
+ }>, t.PartialC<{
49
+ fee: t.UnionC<[t.Type<{
50
+ amount: string | number;
51
+ } & {
52
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
53
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
54
+ type?: "max" | "base" | "tip" | undefined;
55
+ }, {
56
+ amount: string | number;
57
+ } & {
58
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
59
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
60
+ type?: "max" | "base" | "tip" | undefined;
61
+ }, unknown>, t.UndefinedC]>;
62
+ }>]>, t.TypeC<{
63
+ intentType: t.LiteralC<"switchValidator">;
64
+ originHotkey: t.StringC;
65
+ destinationHotkey: t.StringC;
66
+ originNetuid: t.StringC;
67
+ destinationNetuid: t.StringC;
68
+ amount: t.StringC;
69
+ }>]>;
70
+ export type TaoSwitchValidatorIntent = t.TypeOf<typeof TaoSwitchValidatorIntent>;
@@ -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.TaoSwitchValidatorIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const baseStakeIntent_1 = require("./baseStakeIntent");
29
+ const substrateAccountBaseBuildOptions_1 = require("./substrateAccountBaseBuildOptions");
30
+ const intentType_1 = require("./intentType");
31
+ exports.TaoSwitchValidatorIntent = t.intersection([
32
+ baseStakeIntent_1.BaseStakeIntent,
33
+ substrateAccountBaseBuildOptions_1.SubstrateAccountBaseBuildOptions,
34
+ t.type({
35
+ intentType: intentType_1.intentTypes.switchValidator,
36
+ originHotkey: t.string,
37
+ destinationHotkey: t.string,
38
+ originNetuid: t.string,
39
+ destinationNetuid: t.string,
40
+ amount: t.string,
41
+ }),
42
+ ]);
43
+ //# sourceMappingURL=taoSwitchValidatorIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taoSwitchValidatorIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoSwitchValidatorIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,yFAAsF;AACtF,6CAA2C;AAK9B,QAAA,wBAAwB,GAAG,CAAC,CAAC,YAAY,CAAC;IACrD,iCAAe;IACf,mEAAgC;IAChC,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,eAAe;QACvC,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,iBAAiB,EAAE,CAAC,CAAC,MAAM;QAC3B,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,iBAAiB,EAAE,CAAC,CAAC,MAAM;QAC3B,MAAM,EAAE,CAAC,CAAC,MAAM;KACjB,CAAC;CACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.21.0",
3
+ "version": "5.23.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -106,6 +106,7 @@ export * from "./substrateFeeOptions";
106
106
  export * from "./substratePaymentIntent";
107
107
  export * from "./taoStakingBaseIntent";
108
108
  export * from "./taoStakeIntent";
109
+ export * from "./taoSwitchValidatorIntent";
109
110
  export * from "./taoUnstakeIntent";
110
111
  export * from "./suiBuildOptions";
111
112
  export * from "./suiConsolidateIntent";
@@ -56,6 +56,7 @@ import { SuiUnstakingIntent } from "./suiUnstakingIntent";
56
56
  import { SubstrateConsolidateIntent } from "./substrateConsolidateIntent";
57
57
  import { SubstratePaymentIntent } from "./substratePaymentIntent";
58
58
  import { TaoStakeIntent } from "./taoStakeIntent";
59
+ import { TaoSwitchValidatorIntent } from "./taoSwitchValidatorIntent";
59
60
  import { TaoUnstakeIntent } from "./taoUnstakeIntent";
60
61
  import { TokenApprovalIntent } from "./tokenApprovalIntent";
61
62
  import { TonDelegateIntent } from "./tonDelegateIntent";
@@ -156,6 +157,7 @@ export const TransactionIntent = t.union([
156
157
  SuiStakingIntent,
157
158
  SuiUnstakingIntent,
158
159
  TaoStakeIntent,
160
+ TaoSwitchValidatorIntent,
159
161
  TaoUnstakeIntent,
160
162
  TokenApprovalIntent,
161
163
  TonConsolidateIntent,
@@ -22,6 +22,10 @@ export const SignMessageIntent = t.intersection([
22
22
  * @example for EVM: EIP191
23
23
  */
24
24
  messageStandardType: optionalString,
25
+ /**
26
+ * The address of the signer, could be the root address or a receive address of the wallet
27
+ */
28
+ signerAddress: optionalString,
25
29
  }),
26
30
  ]);
27
31
 
@@ -0,0 +1,24 @@
1
+ import * as t from "io-ts";
2
+ import { BaseStakeIntent } from "./baseStakeIntent";
3
+ import { SubstrateAccountBaseBuildOptions } from "./substrateAccountBaseBuildOptions";
4
+ import { intentTypes } from "./intentType";
5
+
6
+ /**
7
+ * @title Tao Switch Validator Intent
8
+ */
9
+ export const TaoSwitchValidatorIntent = t.intersection([
10
+ BaseStakeIntent,
11
+ SubstrateAccountBaseBuildOptions,
12
+ t.type({
13
+ intentType: intentTypes.switchValidator,
14
+ originHotkey: t.string,
15
+ destinationHotkey: t.string,
16
+ originNetuid: t.string,
17
+ destinationNetuid: t.string,
18
+ amount: t.string,
19
+ }),
20
+ ]);
21
+
22
+ export type TaoSwitchValidatorIntent = t.TypeOf<
23
+ typeof TaoSwitchValidatorIntent
24
+ >;