@bitgo/public-types 5.10.0 → 5.12.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.
@@ -125,6 +125,7 @@ export * from "./tonUndelegateIntent";
125
125
  export * from "./transferTokenIntent";
126
126
  export * from "./unstakeIntent";
127
127
  export * from "./unsupportedTokenRecipientEntryItem";
128
+ export * from "./vetStakingIntent";
128
129
  export * from "./voteDelegationIntent";
129
130
  export * from "./walletRecoveryIntent";
130
131
  export * from "./walrusStakingIntent";
@@ -141,6 +141,7 @@ __exportStar(require("./tonUndelegateIntent"), exports);
141
141
  __exportStar(require("./transferTokenIntent"), exports);
142
142
  __exportStar(require("./unstakeIntent"), exports);
143
143
  __exportStar(require("./unsupportedTokenRecipientEntryItem"), exports);
144
+ __exportStar(require("./vetStakingIntent"), exports);
144
145
  __exportStar(require("./voteDelegationIntent"), exports);
145
146
  __exportStar(require("./walletRecoveryIntent"), exports);
146
147
  __exportStar(require("./walrusStakingIntent"), 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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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;AACjC,wDAAsC"}
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,wDAAsC;AACtC,sDAAoC;AACpC,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,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC"}
@@ -5023,6 +5023,60 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
5023
5023
  value: t.StringC;
5024
5024
  symbol: t.StringC;
5025
5025
  }>;
5026
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
5027
+ intentType: t.KeyofC<{
5028
+ payment: t.LiteralC<"payment">;
5029
+ transferToken: t.LiteralC<"transferToken">;
5030
+ consolidate: t.LiteralC<"consolidate">;
5031
+ consolidateToken: t.LiteralC<"consolidateToken">;
5032
+ fanout: t.LiteralC<"fanout">;
5033
+ stake: t.LiteralC<"stake">;
5034
+ unstake: t.LiteralC<"unstake">;
5035
+ delegate: t.LiteralC<"delegate">;
5036
+ undelegate: t.LiteralC<"undelegate">;
5037
+ switchValidator: t.LiteralC<"switchValidator">;
5038
+ claim: t.LiteralC<"claim">;
5039
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
5040
+ pledge: t.LiteralC<"pledge">;
5041
+ voteDelegation: t.LiteralC<"voteDelegation">;
5042
+ vote: t.LiteralC<"vote">;
5043
+ createAccount: t.LiteralC<"createAccount">;
5044
+ updateAccount: t.LiteralC<"updateAccount">;
5045
+ addTrustLine: t.LiteralC<"addTrustLine">;
5046
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
5047
+ signMessage: t.LiteralC<"signMessage">;
5048
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
5049
+ enableToken: t.LiteralC<"enableToken">;
5050
+ authorize: t.LiteralC<"authorize">;
5051
+ acceleration: t.LiteralC<"acceleration">;
5052
+ fillNonce: t.LiteralC<"fillNonce">;
5053
+ walletRecovery: t.LiteralC<"walletRecovery">;
5054
+ contractCall: t.LiteralC<"contractCall">;
5055
+ deactivate: t.LiteralC<"deactivate">;
5056
+ customTx: t.LiteralC<"customTx">;
5057
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
5058
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
5059
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
5060
+ tokenApproval: t.LiteralC<"tokenApproval">;
5061
+ goUnstake: t.LiteralC<"goUnstake">;
5062
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
5063
+ }>;
5064
+ }>, t.PartialC<{
5065
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
5066
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
5067
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
5068
+ }>]>, t.TypeC<{
5069
+ stakingRequestId: t.StringC;
5070
+ }>]>, t.TypeC<{
5071
+ intentType: t.LiteralC<"stake">;
5072
+ }>]>, t.TypeC<{
5073
+ amount: t.TypeC<{
5074
+ value: t.StringC;
5075
+ symbol: t.StringC;
5076
+ }>;
5077
+ stakingContractAddress: t.StringC;
5078
+ }>, t.PartialC<{
5079
+ nftTokenId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
5026
5080
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
5027
5081
  intentType: t.KeyofC<{
5028
5082
  payment: t.LiteralC<"payment">;
@@ -107,6 +107,7 @@ const walrusUndelegateIntent_1 = require("./walrusUndelegateIntent");
107
107
  const walrusWithdrawIntent_1 = require("./walrusWithdrawIntent");
108
108
  const solGoUnstakeIntent_1 = require("./solGoUnstakeIntent");
109
109
  const suiGoUnstakeIntent_1 = require("./suiGoUnstakeIntent");
110
+ const vetStakingIntent_1 = require("./vetStakingIntent");
110
111
  exports.TransactionIntent = t.union([
111
112
  adaConsolidateIntent_1.AdaConsolidateIntent,
112
113
  adaPaymentIntent_1.AdaPaymentIntent,
@@ -179,6 +180,7 @@ exports.TransactionIntent = t.union([
179
180
  tonDelegateIntent_1.TonDelegateIntent,
180
181
  tonPaymentIntent_1.TonPaymentIntent,
181
182
  tonUndelegateIntent_1.TonUndelegateIntent,
183
+ vetStakingIntent_1.VetStakingIntent,
182
184
  walletRecoveryIntent_1.WalletRecoveryIntent,
183
185
  baseStakeIntentWithCalldata_1.BaseStakeIntentWithCalldata,
184
186
  coredaoDelegateIntent_1.CoreDaoDelegateIntent,
@@ -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,+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,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,6EAA0E;AAC1E,qEAAkE;AAClE,qDAAkD;AAClD,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,iEAA8D;AAC9D,iGAA8F;AAC9F,+EAA4E;AAC5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ACpB,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,+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,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,6EAA0E;AAC1E,qEAAkE;AAClE,qDAAkD;AAClD,yDAAsD;AACtD,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4D;AAC5D,iEAA8D;AAC9D,iEAA8D;AAC9D,iEAA8D;AAC9D,6EAA0E;AAC1E,yDAAsD;AACtD,yDAAsD;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AClB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+BAAc;IACd,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,mCAAgB;IAChB,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,60 @@
1
+ import * as t from "io-ts";
2
+ export declare const SolCustomInstructionIntent: 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.IntersectionC<[t.PartialC<{
45
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
46
+ }>, t.TypeC<{
47
+ memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
48
+ }>]>, t.TypeC<{
49
+ intentType: t.LiteralC<"customTx">;
50
+ solInstructions: t.ArrayC<t.TypeC<{
51
+ programId: t.StringC;
52
+ keys: t.ArrayC<t.TypeC<{
53
+ pubkey: t.StringC;
54
+ isSigner: t.BooleanC;
55
+ isWritable: t.BooleanC;
56
+ }>>;
57
+ data: t.StringC;
58
+ }>>;
59
+ }>]>;
60
+ export type SolCustomInstructionIntent = t.TypeOf<typeof SolCustomInstructionIntent>;
@@ -0,0 +1,47 @@
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.SolCustomInstructionIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const solBuildOptions_1 = require("./solBuildOptions");
29
+ const baseIntent_1 = require("./baseIntent");
30
+ const intentType_1 = require("./intentType");
31
+ exports.SolCustomInstructionIntent = t.intersection([
32
+ baseIntent_1.BaseIntent,
33
+ solBuildOptions_1.SolBuildOptions,
34
+ t.type({
35
+ intentType: intentType_1.intentTypes.customTx,
36
+ solInstructions: t.array(t.type({
37
+ programId: t.string,
38
+ keys: t.array(t.type({
39
+ pubkey: t.string,
40
+ isSigner: t.boolean,
41
+ isWritable: t.boolean,
42
+ })),
43
+ data: t.string,
44
+ })),
45
+ }),
46
+ ]);
47
+ //# sourceMappingURL=solCustomInstructionIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solCustomInstructionIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solCustomInstructionIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA0C;AAC1C,6CAA2C;AAK9B,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,eAAe,EAAE,CAAC,CAAC,KAAK,CACtB,CAAC,CAAC,IAAI,CAAC;YACL,SAAS,EAAE,CAAC,CAAC,MAAM;YACnB,IAAI,EAAE,CAAC,CAAC,KAAK,CACX,CAAC,CAAC,IAAI,CAAC;gBACL,MAAM,EAAE,CAAC,CAAC,MAAM;gBAChB,QAAQ,EAAE,CAAC,CAAC,OAAO;gBACnB,UAAU,EAAE,CAAC,CAAC,OAAO;aACtB,CAAC,CACH;YACD,IAAI,EAAE,CAAC,CAAC,MAAM;SACf,CAAC,CACH;KACF,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,57 @@
1
+ import * as t from "io-ts";
2
+ export declare const VetStakingIntent: 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
+ 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.TypeC<{
47
+ intentType: t.LiteralC<"stake">;
48
+ }>]>, t.TypeC<{
49
+ amount: t.TypeC<{
50
+ value: t.StringC;
51
+ symbol: t.StringC;
52
+ }>;
53
+ stakingContractAddress: t.StringC;
54
+ }>, t.PartialC<{
55
+ nftTokenId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
56
+ }>]>;
57
+ export type VetStakingIntent = t.TypeOf<typeof VetStakingIntent>;
@@ -0,0 +1,41 @@
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.VetStakingIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const stakeIntent_1 = require("./stakeIntent");
29
+ const amount_1 = require("./amount");
30
+ const utils_1 = require("../../../utils");
31
+ exports.VetStakingIntent = t.intersection([
32
+ stakeIntent_1.StakeIntent,
33
+ t.type({
34
+ amount: amount_1.Amount,
35
+ stakingContractAddress: t.string,
36
+ }),
37
+ t.partial({
38
+ nftTokenId: utils_1.optionalString,
39
+ }),
40
+ ]);
41
+ //# sourceMappingURL=vetStakingIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vetStakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/vetStakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+CAA4C;AAC5C,qCAAkC;AAClC,0CAAgD;AAanC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,yBAAW;IACX,CAAC,CAAC,IAAI,CAAC;QACL,MAAM,EAAE,eAAM;QACd,sBAAsB,EAAE,CAAC,CAAC,MAAM;KACjC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,sBAAc;KAC3B,CAAC;CACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.10.0",
3
+ "version": "5.12.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -125,6 +125,7 @@ export * from "./tonUndelegateIntent";
125
125
  export * from "./transferTokenIntent";
126
126
  export * from "./unstakeIntent";
127
127
  export * from "./unsupportedTokenRecipientEntryItem";
128
+ export * from "./vetStakingIntent";
128
129
  export * from "./voteDelegationIntent";
129
130
  export * from "./walletRecoveryIntent";
130
131
  export * from "./walrusStakingIntent";
@@ -81,6 +81,7 @@ import { WalrusUndelegateIntent } from "./walrusUndelegateIntent";
81
81
  import { WalrusWithdrawIntent } from "./walrusWithdrawIntent";
82
82
  import { SolGoUnstakeIntent } from "./solGoUnstakeIntent";
83
83
  import { SuiGoUnstakeIntent } from "./suiGoUnstakeIntent";
84
+ import { VetStakingIntent } from "./vetStakingIntent";
84
85
 
85
86
  export const TransactionIntent = t.union([
86
87
  AdaConsolidateIntent,
@@ -154,6 +155,7 @@ export const TransactionIntent = t.union([
154
155
  TonDelegateIntent,
155
156
  TonPaymentIntent,
156
157
  TonUndelegateIntent,
158
+ VetStakingIntent,
157
159
  WalletRecoveryIntent,
158
160
  BaseStakeIntentWithCalldata,
159
161
  CoreDaoDelegateIntent,
@@ -0,0 +1,32 @@
1
+ import * as t from "io-ts";
2
+ import { SolBuildOptions } from "./solBuildOptions";
3
+ import { BaseIntent } from "./baseIntent";
4
+ import { intentTypes } from "./intentType";
5
+
6
+ /**
7
+ * @title SOL Custom Instruction Intent
8
+ */
9
+ export const SolCustomInstructionIntent = t.intersection([
10
+ BaseIntent,
11
+ SolBuildOptions,
12
+ t.type({
13
+ intentType: intentTypes.customTx,
14
+ solInstructions: t.array(
15
+ t.type({
16
+ programId: t.string,
17
+ keys: t.array(
18
+ t.type({
19
+ pubkey: t.string,
20
+ isSigner: t.boolean,
21
+ isWritable: t.boolean,
22
+ }),
23
+ ),
24
+ data: t.string,
25
+ }),
26
+ ),
27
+ }),
28
+ ]);
29
+
30
+ export type SolCustomInstructionIntent = t.TypeOf<
31
+ typeof SolCustomInstructionIntent
32
+ >;
@@ -0,0 +1,28 @@
1
+ import * as t from "io-ts";
2
+ import { StakeIntent } from "./stakeIntent";
3
+ import { Amount } from "./amount";
4
+ import { optionalString } from "../../../utils";
5
+
6
+ /**
7
+ * @title VET Staking Intent
8
+ *
9
+ * Intent for staking VeChain (VET) tokens
10
+ * VET staking involves locking VET in a contract and receiving an NFT that represents the stake.
11
+ * This NFT is locked in the delegation contract and accumulates VTHO rewards based on its level.
12
+ *
13
+ * @param {Amount} amount - The amount of VET to stake
14
+ * @param {string} stakingContractAddress - The address of the staking contract
15
+ * @param {string} [nftTokenId] - The ID of the NFT token representing the stake
16
+ */
17
+ export const VetStakingIntent = t.intersection([
18
+ StakeIntent,
19
+ t.type({
20
+ amount: Amount,
21
+ stakingContractAddress: t.string,
22
+ }),
23
+ t.partial({
24
+ nftTokenId: optionalString,
25
+ }),
26
+ ]);
27
+
28
+ export type VetStakingIntent = t.TypeOf<typeof VetStakingIntent>;