@bitgo/public-types 5.21.0 → 5.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/schema/transactionRequest/intents/index.d.ts +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 +67 -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/taoSwitchValidatorIntent.d.ts +70 -0
- package/dist/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.js +43 -0
- package/dist/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.js.map +1 -0
- 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/taoSwitchValidatorIntent.ts +24 -0
@@ -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,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,6DAA2C;AAC3C,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,qDAAmC;AACnC,kDAAgC;AAChC,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,yEAAuD;AACvD,yDAAuC;AACvC,0EAAwD;AACxD,sDAAoC;AACpC,wDAAsC;AACtC,sDAAoC;AACpC,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,+DAA6C;AAC7C,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,8DAA4C;AAC5C,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,qDAAmC;AACnC,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,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,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;AACz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C,gDAA8B;AAC9B,+DAA6C;AAC7C,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,8DAA4C;AAC5C,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,6DAA2C;AAC3C,qDAAmC;AACnC,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,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,qDAAmC;AACnC,+DAA6C;AAC7C,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,uDAAqC"}
|
@@ -4691,6 +4691,73 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
4691
4691
|
netuid: t.StringC;
|
4692
4692
|
}>]>, t.TypeC<{
|
4693
4693
|
amountStaked: t.StringC;
|
4694
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
4695
|
+
intentType: t.KeyofC<{
|
4696
|
+
payment: t.LiteralC<"payment">;
|
4697
|
+
transferToken: t.LiteralC<"transferToken">;
|
4698
|
+
consolidate: t.LiteralC<"consolidate">;
|
4699
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
4700
|
+
fanout: t.LiteralC<"fanout">;
|
4701
|
+
stake: t.LiteralC<"stake">;
|
4702
|
+
unstake: t.LiteralC<"unstake">;
|
4703
|
+
delegate: t.LiteralC<"delegate">;
|
4704
|
+
undelegate: t.LiteralC<"undelegate">;
|
4705
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
4706
|
+
claim: t.LiteralC<"claim">;
|
4707
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
4708
|
+
pledge: t.LiteralC<"pledge">;
|
4709
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
4710
|
+
vote: t.LiteralC<"vote">;
|
4711
|
+
createAccount: t.LiteralC<"createAccount">;
|
4712
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
4713
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
4714
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
4715
|
+
signMessage: t.LiteralC<"signMessage">;
|
4716
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
4717
|
+
enableToken: t.LiteralC<"enableToken">;
|
4718
|
+
authorize: t.LiteralC<"authorize">;
|
4719
|
+
acceleration: t.LiteralC<"acceleration">;
|
4720
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
4721
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
4722
|
+
contractCall: t.LiteralC<"contractCall">;
|
4723
|
+
deactivate: t.LiteralC<"deactivate">;
|
4724
|
+
customTx: t.LiteralC<"customTx">;
|
4725
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
4726
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
4727
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
4728
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
4729
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
4730
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
4731
|
+
}>;
|
4732
|
+
}>, t.PartialC<{
|
4733
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
4734
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
4735
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
4736
|
+
}>]>, t.TypeC<{
|
4737
|
+
stakingRequestId: t.StringC;
|
4738
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
4739
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
4740
|
+
}>, t.PartialC<{
|
4741
|
+
fee: t.UnionC<[t.Type<{
|
4742
|
+
amount: string | number;
|
4743
|
+
} & {
|
4744
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
4745
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
4746
|
+
type?: "max" | "base" | "tip" | undefined;
|
4747
|
+
}, {
|
4748
|
+
amount: string | number;
|
4749
|
+
} & {
|
4750
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
4751
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
4752
|
+
type?: "max" | "base" | "tip" | undefined;
|
4753
|
+
}, unknown>, t.UndefinedC]>;
|
4754
|
+
}>]>, t.TypeC<{
|
4755
|
+
intentType: t.LiteralC<"switchValidator">;
|
4756
|
+
originHotkey: t.StringC;
|
4757
|
+
destinationHotkey: t.StringC;
|
4758
|
+
originNetuid: t.StringC;
|
4759
|
+
destinationNetuid: t.StringC;
|
4760
|
+
amount: t.StringC;
|
4694
4761
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
4695
4762
|
intentType: t.KeyofC<{
|
4696
4763
|
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,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,yDAA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;IACxB,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,+CAAsB;IACtB,2CAAoB;IACpB,qCAAiB;IACjB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+BAAc;IACd,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"}
|
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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+CAAsB;IACtB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+CAAsB;IACtB,6CAAqB;IACrB,2CAAoB;IACpB,qDAAyB;IACzB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,+CAAsB;IACtB,mDAAwB;IACxB,mCAAgB;IAChB,+CAAsB;IACtB,2CAAoB;IACpB,mDAAwB;IACxB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,mDAAwB;IACxB,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,+CAAsB;IACtB,2CAAoB;IACpB,qCAAiB;IACjB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+BAAc;IACd,mDAAwB;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"}
|
@@ -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
@@ -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,
|
@@ -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
|
+
>;
|