@bitgo/public-types 5.16.0 → 5.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,3 +59,70 @@ export declare const SolStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
59
59
  stakingType: t.UnionC<[t.LiteralC<"NATIVE">, t.LiteralC<"MARINADE">, t.LiteralC<"JITO">]>;
60
60
  }>]>;
61
61
  export type SolStakeIntent = t.TypeOf<typeof SolStakeIntent>;
62
+ export declare const SolJitoStakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
63
+ intentType: t.KeyofC<{
64
+ payment: t.LiteralC<"payment">;
65
+ transferToken: t.LiteralC<"transferToken">;
66
+ consolidate: t.LiteralC<"consolidate">;
67
+ consolidateToken: t.LiteralC<"consolidateToken">;
68
+ fanout: t.LiteralC<"fanout">;
69
+ stake: t.LiteralC<"stake">;
70
+ unstake: t.LiteralC<"unstake">;
71
+ delegate: t.LiteralC<"delegate">;
72
+ undelegate: t.LiteralC<"undelegate">;
73
+ switchValidator: t.LiteralC<"switchValidator">;
74
+ claim: t.LiteralC<"claim">;
75
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
76
+ pledge: t.LiteralC<"pledge">;
77
+ voteDelegation: t.LiteralC<"voteDelegation">;
78
+ vote: t.LiteralC<"vote">;
79
+ createAccount: t.LiteralC<"createAccount">;
80
+ updateAccount: t.LiteralC<"updateAccount">;
81
+ addTrustLine: t.LiteralC<"addTrustLine">;
82
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
83
+ signMessage: t.LiteralC<"signMessage">;
84
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
85
+ enableToken: t.LiteralC<"enableToken">;
86
+ authorize: t.LiteralC<"authorize">;
87
+ acceleration: t.LiteralC<"acceleration">;
88
+ fillNonce: t.LiteralC<"fillNonce">;
89
+ walletRecovery: t.LiteralC<"walletRecovery">;
90
+ contractCall: t.LiteralC<"contractCall">;
91
+ deactivate: t.LiteralC<"deactivate">;
92
+ customTx: t.LiteralC<"customTx">;
93
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
94
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
95
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
96
+ tokenApproval: t.LiteralC<"tokenApproval">;
97
+ goUnstake: t.LiteralC<"goUnstake">;
98
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
99
+ }>;
100
+ }>, t.PartialC<{
101
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
102
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
103
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
104
+ }>]>, t.TypeC<{
105
+ stakingRequestId: t.StringC;
106
+ }>]>, t.TypeC<{
107
+ intentType: t.LiteralC<"stake">;
108
+ }>]>, t.IntersectionC<[t.PartialC<{
109
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
110
+ }>, t.TypeC<{
111
+ memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
112
+ }>]>, t.TypeC<{
113
+ validatorAddress: t.StringC;
114
+ amount: t.TypeC<{
115
+ value: t.StringC;
116
+ symbol: t.StringC;
117
+ }>;
118
+ isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
119
+ stakingType: t.UnionC<[t.LiteralC<"NATIVE">, t.LiteralC<"MARINADE">, t.LiteralC<"JITO">]>;
120
+ }>]>, t.TypeC<{
121
+ stakingType: t.LiteralC<"JITO">;
122
+ stakePoolConfig: t.TypeC<{
123
+ poolMint: t.StringC;
124
+ reserveStake: t.StringC;
125
+ managerFeeAccount: t.StringC;
126
+ }>;
127
+ }>]>;
128
+ export type SolJitoStakeIntent = t.TypeOf<typeof SolJitoStakeIntent>;
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.SolStakeIntent = void 0;
26
+ exports.SolJitoStakeIntent = exports.SolStakeIntent = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
28
  const solBuildOptions_1 = require("./solBuildOptions");
29
29
  const stakeIntent_1 = require("./stakeIntent");
@@ -43,4 +43,15 @@ exports.SolStakeIntent = t.intersection([
43
43
  ]),
44
44
  }),
45
45
  ]);
46
+ exports.SolJitoStakeIntent = t.intersection([
47
+ exports.SolStakeIntent,
48
+ t.type({
49
+ stakingType: t.literal("JITO"),
50
+ stakePoolConfig: t.type({
51
+ poolMint: t.string,
52
+ reserveStake: t.string,
53
+ managerFeeAccount: t.string,
54
+ }),
55
+ }),
56
+ ]);
46
57
  //# sourceMappingURL=solStakeIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"solStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,+CAA4C;AAC5C,qCAAkC;AAClC,0CAA0C;AAK7B,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,yBAAW;IACX,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;QAId,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC;QAC/B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC;YACnB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;YACnB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;YACrB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;SAClB,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"solStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,+CAA4C;AAC5C,qCAAkC;AAClC,0CAA0C;AAK7B,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,yBAAW;IACX,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;QAId,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC;QAC/B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC;YACnB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;YACnB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;YACrB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;SAClB,CAAC;KACH,CAAC;CACH,CAAC,CAAC;AAOU,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,sBAAc;IACd,CAAC,CAAC,IAAI,CAAC;QACL,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;QAC9B,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC;YACtB,QAAQ,EAAE,CAAC,CAAC,MAAM;YAClB,YAAY,EAAE,CAAC,CAAC,MAAM;YACtB,iBAAiB,EAAE,CAAC,CAAC,MAAM;SAC5B,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -97,3 +97,109 @@ export declare const SolUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
97
97
  })[], unknown>, t.UndefinedC]>;
98
98
  }>]>;
99
99
  export type SolUnstakeIntent = t.TypeOf<typeof SolUnstakeIntent>;
100
+ export declare const SolJitoUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
101
+ intentType: t.KeyofC<{
102
+ payment: t.LiteralC<"payment">;
103
+ transferToken: t.LiteralC<"transferToken">;
104
+ consolidate: t.LiteralC<"consolidate">;
105
+ consolidateToken: t.LiteralC<"consolidateToken">;
106
+ fanout: t.LiteralC<"fanout">;
107
+ stake: t.LiteralC<"stake">;
108
+ unstake: t.LiteralC<"unstake">;
109
+ delegate: t.LiteralC<"delegate">;
110
+ undelegate: t.LiteralC<"undelegate">;
111
+ switchValidator: t.LiteralC<"switchValidator">;
112
+ claim: t.LiteralC<"claim">;
113
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
114
+ pledge: t.LiteralC<"pledge">;
115
+ voteDelegation: t.LiteralC<"voteDelegation">;
116
+ vote: t.LiteralC<"vote">;
117
+ createAccount: t.LiteralC<"createAccount">;
118
+ updateAccount: t.LiteralC<"updateAccount">;
119
+ addTrustLine: t.LiteralC<"addTrustLine">;
120
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
121
+ signMessage: t.LiteralC<"signMessage">;
122
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
123
+ enableToken: t.LiteralC<"enableToken">;
124
+ authorize: t.LiteralC<"authorize">;
125
+ acceleration: t.LiteralC<"acceleration">;
126
+ fillNonce: t.LiteralC<"fillNonce">;
127
+ walletRecovery: t.LiteralC<"walletRecovery">;
128
+ contractCall: t.LiteralC<"contractCall">;
129
+ deactivate: t.LiteralC<"deactivate">;
130
+ customTx: t.LiteralC<"customTx">;
131
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
132
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
133
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
134
+ tokenApproval: t.LiteralC<"tokenApproval">;
135
+ goUnstake: t.LiteralC<"goUnstake">;
136
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
137
+ }>;
138
+ }>, t.PartialC<{
139
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
140
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
141
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
142
+ }>]>, t.TypeC<{
143
+ stakingRequestId: t.StringC;
144
+ }>]>, t.TypeC<{
145
+ intentType: t.LiteralC<"unstake">;
146
+ }>]>, t.IntersectionC<[t.PartialC<{
147
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
148
+ }>, t.TypeC<{
149
+ memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
150
+ }>]>, t.TypeC<{
151
+ stakingAddress: t.StringC;
152
+ }>, t.PartialC<{
153
+ amount: t.UnionC<[t.Type<{
154
+ value: string;
155
+ symbol: string;
156
+ }, {
157
+ value: string;
158
+ symbol: string;
159
+ }, unknown>, t.UndefinedC]>;
160
+ remainingStakingAmount: t.UnionC<[t.Type<{
161
+ value: string;
162
+ symbol: string;
163
+ }, {
164
+ value: string;
165
+ symbol: string;
166
+ }, unknown>, t.UndefinedC]>;
167
+ isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
168
+ stakingType: t.UnionC<[t.LiteralC<"NATIVE">, t.LiteralC<"MARINADE">, t.LiteralC<"JITO">]>;
169
+ recipients: t.UnionC<[t.Type<({
170
+ address: {
171
+ address?: string | undefined;
172
+ option?: {
173
+ [x: string]: unknown;
174
+ } | undefined;
175
+ };
176
+ amount: {
177
+ value: string;
178
+ symbol: string;
179
+ };
180
+ } & {
181
+ data?: string | undefined;
182
+ })[], ({
183
+ address: {
184
+ address?: string | undefined;
185
+ option?: {
186
+ [x: string]: unknown;
187
+ } | undefined;
188
+ };
189
+ amount: {
190
+ value: string;
191
+ symbol: string;
192
+ };
193
+ } & {
194
+ data?: string | undefined;
195
+ })[], unknown>, t.UndefinedC]>;
196
+ }>]>, t.TypeC<{
197
+ stakingType: t.LiteralC<"JITO">;
198
+ stakePoolConfig: t.TypeC<{
199
+ poolMint: t.StringC;
200
+ validatorListAccount: t.StringC;
201
+ managerFeeAccount: t.StringC;
202
+ }>;
203
+ validatorAddress: t.StringC;
204
+ }>]>;
205
+ export type SolJitoUnstakeIntent = t.TypeOf<typeof SolJitoUnstakeIntent>;
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.SolUnstakeIntent = void 0;
26
+ exports.SolJitoUnstakeIntent = exports.SolUnstakeIntent = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
28
  const solBuildOptions_1 = require("./solBuildOptions");
29
29
  const amount_1 = require("./amount");
@@ -48,4 +48,16 @@ exports.SolUnstakeIntent = t.intersection([
48
48
  recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
49
49
  }),
50
50
  ]);
51
+ exports.SolJitoUnstakeIntent = t.intersection([
52
+ exports.SolUnstakeIntent,
53
+ t.type({
54
+ stakingType: t.literal("JITO"),
55
+ stakePoolConfig: t.type({
56
+ poolMint: t.string,
57
+ validatorListAccount: t.string,
58
+ managerFeeAccount: t.string,
59
+ }),
60
+ validatorAddress: t.string,
61
+ }),
62
+ ]);
51
63
  //# sourceMappingURL=solUnstakeIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"solUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,qCAAkC;AAClC,mDAAgD;AAChD,0CAA0C;AAC1C,qDAAkD;AAKrC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,cAAc,EAAE,CAAC,CAAC,MAAM;KACzB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,MAAM,EAAE,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C,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC;AAOU,QAAA,oBAAoB,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,wBAAgB;IAChB,CAAC,CAAC,IAAI,CAAC;QACL,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;QAC9B,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC;YACtB,QAAQ,EAAE,CAAC,CAAC,MAAM;YAClB,oBAAoB,EAAE,CAAC,CAAC,MAAM;YAC9B,iBAAiB,EAAE,CAAC,CAAC,MAAM;SAC5B,CAAC;QACF,gBAAgB,EAAE,CAAC,CAAC,MAAM;KAC3B,CAAC;CACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.16.0",
3
+ "version": "5.17.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -26,3 +26,20 @@ export const SolStakeIntent = t.intersection([
26
26
  ]);
27
27
 
28
28
  export type SolStakeIntent = t.TypeOf<typeof SolStakeIntent>;
29
+
30
+ /**
31
+ * @title SOL Stake Intent for Jito
32
+ */
33
+ export const SolJitoStakeIntent = t.intersection([
34
+ SolStakeIntent,
35
+ t.type({
36
+ stakingType: t.literal("JITO"),
37
+ stakePoolConfig: t.type({
38
+ poolMint: t.string,
39
+ reserveStake: t.string,
40
+ managerFeeAccount: t.string,
41
+ }),
42
+ }),
43
+ ]);
44
+
45
+ export type SolJitoStakeIntent = t.TypeOf<typeof SolJitoStakeIntent>;
@@ -31,3 +31,21 @@ export const SolUnstakeIntent = t.intersection([
31
31
  ]);
32
32
 
33
33
  export type SolUnstakeIntent = t.TypeOf<typeof SolUnstakeIntent>;
34
+
35
+ /**
36
+ * @title SOL Unstake Intent for Jito
37
+ */
38
+ export const SolJitoUnstakeIntent = t.intersection([
39
+ SolUnstakeIntent,
40
+ t.type({
41
+ stakingType: t.literal("JITO"),
42
+ stakePoolConfig: t.type({
43
+ poolMint: t.string,
44
+ validatorListAccount: t.string,
45
+ managerFeeAccount: t.string,
46
+ }),
47
+ validatorAddress: t.string,
48
+ }),
49
+ ]);
50
+
51
+ export type SolJitoUnstakeIntent = t.TypeOf<typeof SolJitoUnstakeIntent>;