@solana-program/compute-budget 0.1.1 → 0.3.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/index.cjs +108 -224
- package/dist/src/index.cjs.map +1 -1
- package/dist/src/index.js +72 -174
- package/dist/src/index.js.map +1 -1
- package/dist/types/src/generated/index.d.ts +0 -1
- package/dist/types/src/generated/index.d.ts.map +1 -1
- package/dist/types/src/generated/instructions/requestHeapFrame.d.ts +5 -12
- package/dist/types/src/generated/instructions/requestHeapFrame.d.ts.map +1 -1
- package/dist/types/src/generated/instructions/requestUnits.d.ts +5 -13
- package/dist/types/src/generated/instructions/requestUnits.d.ts.map +1 -1
- package/dist/types/src/generated/instructions/setComputeUnitLimit.d.ts +5 -12
- package/dist/types/src/generated/instructions/setComputeUnitLimit.d.ts.map +1 -1
- package/dist/types/src/generated/instructions/setComputeUnitPrice.d.ts +5 -12
- package/dist/types/src/generated/instructions/setComputeUnitPrice.d.ts.map +1 -1
- package/dist/types/src/generated/instructions/setLoadedAccountsDataSizeLimit.d.ts +5 -12
- package/dist/types/src/generated/instructions/setLoadedAccountsDataSizeLimit.d.ts.map +1 -1
- package/dist/types/src/generated/programs/computeBudget.d.ts +1 -4
- package/dist/types/src/generated/programs/computeBudget.d.ts.map +1 -1
- package/dist/types/src/generated/shared/index.d.ts +2 -13
- package/dist/types/src/generated/shared/index.d.ts.map +1 -1
- package/dist/types/test/_setup.d.ts +4 -4
- package/dist/types/test/_setup.d.ts.map +1 -1
- package/package.json +13 -22
package/dist/src/index.js
CHANGED
|
@@ -1,11 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { containsBytes, getU8Encoder, transformEncoder, getStructEncoder, getU32Encoder, getStructDecoder, getU8Decoder, getU32Decoder, combineCodec, getU64Encoder, getU64Decoder } from '@solana/web3.js';
|
|
2
|
+
|
|
3
|
+
// src/generated/instructions/requestHeapFrame.ts
|
|
4
|
+
var COMPUTE_BUDGET_PROGRAM_ADDRESS = "ComputeBudget111111111111111111111111111111";
|
|
5
|
+
var ComputeBudgetInstruction = /* @__PURE__ */ ((ComputeBudgetInstruction2) => {
|
|
6
|
+
ComputeBudgetInstruction2[ComputeBudgetInstruction2["RequestUnits"] = 0] = "RequestUnits";
|
|
7
|
+
ComputeBudgetInstruction2[ComputeBudgetInstruction2["RequestHeapFrame"] = 1] = "RequestHeapFrame";
|
|
8
|
+
ComputeBudgetInstruction2[ComputeBudgetInstruction2["SetComputeUnitLimit"] = 2] = "SetComputeUnitLimit";
|
|
9
|
+
ComputeBudgetInstruction2[ComputeBudgetInstruction2["SetComputeUnitPrice"] = 3] = "SetComputeUnitPrice";
|
|
10
|
+
ComputeBudgetInstruction2[ComputeBudgetInstruction2["SetLoadedAccountsDataSizeLimit"] = 4] = "SetLoadedAccountsDataSizeLimit";
|
|
11
|
+
return ComputeBudgetInstruction2;
|
|
12
|
+
})(ComputeBudgetInstruction || {});
|
|
13
|
+
function identifyComputeBudgetInstruction(instruction) {
|
|
14
|
+
const data = instruction instanceof Uint8Array ? instruction : instruction.data;
|
|
15
|
+
if (containsBytes(data, getU8Encoder().encode(0), 0)) {
|
|
16
|
+
return 0 /* RequestUnits */;
|
|
17
|
+
}
|
|
18
|
+
if (containsBytes(data, getU8Encoder().encode(1), 0)) {
|
|
19
|
+
return 1 /* RequestHeapFrame */;
|
|
20
|
+
}
|
|
21
|
+
if (containsBytes(data, getU8Encoder().encode(2), 0)) {
|
|
22
|
+
return 2 /* SetComputeUnitLimit */;
|
|
23
|
+
}
|
|
24
|
+
if (containsBytes(data, getU8Encoder().encode(3), 0)) {
|
|
25
|
+
return 3 /* SetComputeUnitPrice */;
|
|
26
|
+
}
|
|
27
|
+
if (containsBytes(data, getU8Encoder().encode(4), 0)) {
|
|
28
|
+
return 4 /* SetLoadedAccountsDataSizeLimit */;
|
|
29
|
+
}
|
|
30
|
+
throw new Error(
|
|
31
|
+
"The provided instruction could not be identified as a computeBudget instruction."
|
|
32
|
+
);
|
|
33
|
+
}
|
|
5
34
|
|
|
6
35
|
// src/generated/instructions/requestHeapFrame.ts
|
|
7
36
|
function getRequestHeapFrameInstructionDataEncoder() {
|
|
8
|
-
return
|
|
37
|
+
return transformEncoder(
|
|
9
38
|
getStructEncoder([
|
|
10
39
|
["discriminator", getU8Encoder()],
|
|
11
40
|
["bytes", getU32Encoder()]
|
|
@@ -26,20 +55,15 @@ function getRequestHeapFrameInstructionDataCodec() {
|
|
|
26
55
|
);
|
|
27
56
|
}
|
|
28
57
|
function getRequestHeapFrameInstruction(input) {
|
|
29
|
-
const programAddress =
|
|
58
|
+
const programAddress = COMPUTE_BUDGET_PROGRAM_ADDRESS;
|
|
30
59
|
const args = { ...input };
|
|
31
|
-
const instruction =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
function getRequestHeapFrameInstructionRaw(args, programAddress = "ComputeBudget111111111111111111111111111111", remainingAccounts) {
|
|
38
|
-
return {
|
|
39
|
-
accounts: remainingAccounts ?? [],
|
|
40
|
-
data: getRequestHeapFrameInstructionDataEncoder().encode(args),
|
|
41
|
-
programAddress
|
|
60
|
+
const instruction = {
|
|
61
|
+
programAddress,
|
|
62
|
+
data: getRequestHeapFrameInstructionDataEncoder().encode(
|
|
63
|
+
args
|
|
64
|
+
)
|
|
42
65
|
};
|
|
66
|
+
return instruction;
|
|
43
67
|
}
|
|
44
68
|
function parseRequestHeapFrameInstruction(instruction) {
|
|
45
69
|
return {
|
|
@@ -48,7 +72,7 @@ function parseRequestHeapFrameInstruction(instruction) {
|
|
|
48
72
|
};
|
|
49
73
|
}
|
|
50
74
|
function getRequestUnitsInstructionDataEncoder() {
|
|
51
|
-
return
|
|
75
|
+
return transformEncoder(
|
|
52
76
|
getStructEncoder([
|
|
53
77
|
["discriminator", getU8Encoder()],
|
|
54
78
|
["units", getU32Encoder()],
|
|
@@ -71,20 +95,15 @@ function getRequestUnitsInstructionDataCodec() {
|
|
|
71
95
|
);
|
|
72
96
|
}
|
|
73
97
|
function getRequestUnitsInstruction(input) {
|
|
74
|
-
const programAddress =
|
|
98
|
+
const programAddress = COMPUTE_BUDGET_PROGRAM_ADDRESS;
|
|
75
99
|
const args = { ...input };
|
|
76
|
-
const instruction =
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
function getRequestUnitsInstructionRaw(args, programAddress = "ComputeBudget111111111111111111111111111111", remainingAccounts) {
|
|
83
|
-
return {
|
|
84
|
-
accounts: remainingAccounts ?? [],
|
|
85
|
-
data: getRequestUnitsInstructionDataEncoder().encode(args),
|
|
86
|
-
programAddress
|
|
100
|
+
const instruction = {
|
|
101
|
+
programAddress,
|
|
102
|
+
data: getRequestUnitsInstructionDataEncoder().encode(
|
|
103
|
+
args
|
|
104
|
+
)
|
|
87
105
|
};
|
|
106
|
+
return instruction;
|
|
88
107
|
}
|
|
89
108
|
function parseRequestUnitsInstruction(instruction) {
|
|
90
109
|
return {
|
|
@@ -93,7 +112,7 @@ function parseRequestUnitsInstruction(instruction) {
|
|
|
93
112
|
};
|
|
94
113
|
}
|
|
95
114
|
function getSetComputeUnitLimitInstructionDataEncoder() {
|
|
96
|
-
return
|
|
115
|
+
return transformEncoder(
|
|
97
116
|
getStructEncoder([
|
|
98
117
|
["discriminator", getU8Encoder()],
|
|
99
118
|
["units", getU32Encoder()]
|
|
@@ -114,20 +133,15 @@ function getSetComputeUnitLimitInstructionDataCodec() {
|
|
|
114
133
|
);
|
|
115
134
|
}
|
|
116
135
|
function getSetComputeUnitLimitInstruction(input) {
|
|
117
|
-
const programAddress =
|
|
136
|
+
const programAddress = COMPUTE_BUDGET_PROGRAM_ADDRESS;
|
|
118
137
|
const args = { ...input };
|
|
119
|
-
const instruction =
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
function getSetComputeUnitLimitInstructionRaw(args, programAddress = "ComputeBudget111111111111111111111111111111", remainingAccounts) {
|
|
126
|
-
return {
|
|
127
|
-
accounts: remainingAccounts ?? [],
|
|
128
|
-
data: getSetComputeUnitLimitInstructionDataEncoder().encode(args),
|
|
129
|
-
programAddress
|
|
138
|
+
const instruction = {
|
|
139
|
+
programAddress,
|
|
140
|
+
data: getSetComputeUnitLimitInstructionDataEncoder().encode(
|
|
141
|
+
args
|
|
142
|
+
)
|
|
130
143
|
};
|
|
144
|
+
return instruction;
|
|
131
145
|
}
|
|
132
146
|
function parseSetComputeUnitLimitInstruction(instruction) {
|
|
133
147
|
return {
|
|
@@ -138,7 +152,7 @@ function parseSetComputeUnitLimitInstruction(instruction) {
|
|
|
138
152
|
};
|
|
139
153
|
}
|
|
140
154
|
function getSetComputeUnitPriceInstructionDataEncoder() {
|
|
141
|
-
return
|
|
155
|
+
return transformEncoder(
|
|
142
156
|
getStructEncoder([
|
|
143
157
|
["discriminator", getU8Encoder()],
|
|
144
158
|
["microLamports", getU64Encoder()]
|
|
@@ -159,20 +173,15 @@ function getSetComputeUnitPriceInstructionDataCodec() {
|
|
|
159
173
|
);
|
|
160
174
|
}
|
|
161
175
|
function getSetComputeUnitPriceInstruction(input) {
|
|
162
|
-
const programAddress =
|
|
176
|
+
const programAddress = COMPUTE_BUDGET_PROGRAM_ADDRESS;
|
|
163
177
|
const args = { ...input };
|
|
164
|
-
const instruction =
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
function getSetComputeUnitPriceInstructionRaw(args, programAddress = "ComputeBudget111111111111111111111111111111", remainingAccounts) {
|
|
171
|
-
return {
|
|
172
|
-
accounts: remainingAccounts ?? [],
|
|
173
|
-
data: getSetComputeUnitPriceInstructionDataEncoder().encode(args),
|
|
174
|
-
programAddress
|
|
178
|
+
const instruction = {
|
|
179
|
+
programAddress,
|
|
180
|
+
data: getSetComputeUnitPriceInstructionDataEncoder().encode(
|
|
181
|
+
args
|
|
182
|
+
)
|
|
175
183
|
};
|
|
184
|
+
return instruction;
|
|
176
185
|
}
|
|
177
186
|
function parseSetComputeUnitPriceInstruction(instruction) {
|
|
178
187
|
return {
|
|
@@ -183,7 +192,7 @@ function parseSetComputeUnitPriceInstruction(instruction) {
|
|
|
183
192
|
};
|
|
184
193
|
}
|
|
185
194
|
function getSetLoadedAccountsDataSizeLimitInstructionDataEncoder() {
|
|
186
|
-
return
|
|
195
|
+
return transformEncoder(
|
|
187
196
|
getStructEncoder([
|
|
188
197
|
["discriminator", getU8Encoder()],
|
|
189
198
|
["accountDataSizeLimit", getU32Encoder()]
|
|
@@ -204,22 +213,15 @@ function getSetLoadedAccountsDataSizeLimitInstructionDataCodec() {
|
|
|
204
213
|
);
|
|
205
214
|
}
|
|
206
215
|
function getSetLoadedAccountsDataSizeLimitInstruction(input) {
|
|
207
|
-
const programAddress =
|
|
216
|
+
const programAddress = COMPUTE_BUDGET_PROGRAM_ADDRESS;
|
|
208
217
|
const args = { ...input };
|
|
209
|
-
const instruction =
|
|
210
|
-
|
|
211
|
-
programAddress
|
|
212
|
-
);
|
|
213
|
-
return instruction;
|
|
214
|
-
}
|
|
215
|
-
function getSetLoadedAccountsDataSizeLimitInstructionRaw(args, programAddress = "ComputeBudget111111111111111111111111111111", remainingAccounts) {
|
|
216
|
-
return {
|
|
217
|
-
accounts: remainingAccounts ?? [],
|
|
218
|
+
const instruction = {
|
|
219
|
+
programAddress,
|
|
218
220
|
data: getSetLoadedAccountsDataSizeLimitInstructionDataEncoder().encode(
|
|
219
221
|
args
|
|
220
|
-
)
|
|
221
|
-
programAddress
|
|
222
|
+
)
|
|
222
223
|
};
|
|
224
|
+
return instruction;
|
|
223
225
|
}
|
|
224
226
|
function parseSetLoadedAccountsDataSizeLimitInstruction(instruction) {
|
|
225
227
|
return {
|
|
@@ -229,111 +231,7 @@ function parseSetLoadedAccountsDataSizeLimitInstruction(instruction) {
|
|
|
229
231
|
)
|
|
230
232
|
};
|
|
231
233
|
}
|
|
232
|
-
function expectSome(value) {
|
|
233
|
-
if (value == null) {
|
|
234
|
-
throw new Error("Expected a value but received null or undefined.");
|
|
235
|
-
}
|
|
236
|
-
return value;
|
|
237
|
-
}
|
|
238
|
-
function expectAddress(value) {
|
|
239
|
-
if (!value) {
|
|
240
|
-
throw new Error("Expected a Address.");
|
|
241
|
-
}
|
|
242
|
-
if (typeof value === "object" && "address" in value) {
|
|
243
|
-
return value.address;
|
|
244
|
-
}
|
|
245
|
-
if (Array.isArray(value)) {
|
|
246
|
-
return value[0];
|
|
247
|
-
}
|
|
248
|
-
return value;
|
|
249
|
-
}
|
|
250
|
-
function expectProgramDerivedAddress(value) {
|
|
251
|
-
if (!value || !Array.isArray(value) || !isProgramDerivedAddress(value)) {
|
|
252
|
-
throw new Error("Expected a ProgramDerivedAddress.");
|
|
253
|
-
}
|
|
254
|
-
return value;
|
|
255
|
-
}
|
|
256
|
-
function expectTransactionSigner(value) {
|
|
257
|
-
if (!value || !isTransactionSigner(value)) {
|
|
258
|
-
throw new Error("Expected a TransactionSigner.");
|
|
259
|
-
}
|
|
260
|
-
return value;
|
|
261
|
-
}
|
|
262
|
-
function accountMetaWithDefault(account, role) {
|
|
263
|
-
if (account === void 0)
|
|
264
|
-
return void 0;
|
|
265
|
-
return typeof account === "string" ? { address: account, role } : account;
|
|
266
|
-
}
|
|
267
|
-
function getAccountMetasWithSigners(accounts, optionalAccountStrategy, programAddress) {
|
|
268
|
-
const accountMetas = {};
|
|
269
|
-
Object.keys(accounts).forEach((key) => {
|
|
270
|
-
const account = accounts[key];
|
|
271
|
-
if (!account.value) {
|
|
272
|
-
if (optionalAccountStrategy === "omitted")
|
|
273
|
-
return;
|
|
274
|
-
accountMetas[key] = {
|
|
275
|
-
address: programAddress,
|
|
276
|
-
role: AccountRole.READONLY
|
|
277
|
-
};
|
|
278
|
-
return;
|
|
279
|
-
}
|
|
280
|
-
const writableRole = account.isWritable ? AccountRole.WRITABLE : AccountRole.READONLY;
|
|
281
|
-
accountMetas[key] = Object.freeze({
|
|
282
|
-
address: expectAddress(account.value),
|
|
283
|
-
role: isTransactionSigner(account.value) ? upgradeRoleToSigner(writableRole) : writableRole,
|
|
284
|
-
...isTransactionSigner(account.value) ? { signer: account.value } : {}
|
|
285
|
-
});
|
|
286
|
-
});
|
|
287
|
-
return accountMetas;
|
|
288
|
-
}
|
|
289
|
-
function isTransactionSigner(value) {
|
|
290
|
-
return !!value && typeof value === "object" && "address" in value && isTransactionSigner$1(value);
|
|
291
|
-
}
|
|
292
|
-
function memcmp(data, bytes, offset) {
|
|
293
|
-
const slice = data.slice(offset, offset + bytes.length);
|
|
294
|
-
if (slice.length !== bytes.length)
|
|
295
|
-
return false;
|
|
296
|
-
return bytes.every((b, i) => b === slice[i]);
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
// src/generated/programs/computeBudget.ts
|
|
300
|
-
var COMPUTE_BUDGET_PROGRAM_ADDRESS = "ComputeBudget111111111111111111111111111111";
|
|
301
|
-
function getComputeBudgetProgram() {
|
|
302
|
-
return {
|
|
303
|
-
name: "computeBudget",
|
|
304
|
-
address: COMPUTE_BUDGET_PROGRAM_ADDRESS
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
var ComputeBudgetInstruction = /* @__PURE__ */ ((ComputeBudgetInstruction2) => {
|
|
308
|
-
ComputeBudgetInstruction2[ComputeBudgetInstruction2["RequestUnits"] = 0] = "RequestUnits";
|
|
309
|
-
ComputeBudgetInstruction2[ComputeBudgetInstruction2["RequestHeapFrame"] = 1] = "RequestHeapFrame";
|
|
310
|
-
ComputeBudgetInstruction2[ComputeBudgetInstruction2["SetComputeUnitLimit"] = 2] = "SetComputeUnitLimit";
|
|
311
|
-
ComputeBudgetInstruction2[ComputeBudgetInstruction2["SetComputeUnitPrice"] = 3] = "SetComputeUnitPrice";
|
|
312
|
-
ComputeBudgetInstruction2[ComputeBudgetInstruction2["SetLoadedAccountsDataSizeLimit"] = 4] = "SetLoadedAccountsDataSizeLimit";
|
|
313
|
-
return ComputeBudgetInstruction2;
|
|
314
|
-
})(ComputeBudgetInstruction || {});
|
|
315
|
-
function identifyComputeBudgetInstruction(instruction) {
|
|
316
|
-
const data = instruction instanceof Uint8Array ? instruction : instruction.data;
|
|
317
|
-
if (memcmp(data, getU8Encoder().encode(0), 0)) {
|
|
318
|
-
return 0 /* RequestUnits */;
|
|
319
|
-
}
|
|
320
|
-
if (memcmp(data, getU8Encoder().encode(1), 0)) {
|
|
321
|
-
return 1 /* RequestHeapFrame */;
|
|
322
|
-
}
|
|
323
|
-
if (memcmp(data, getU8Encoder().encode(2), 0)) {
|
|
324
|
-
return 2 /* SetComputeUnitLimit */;
|
|
325
|
-
}
|
|
326
|
-
if (memcmp(data, getU8Encoder().encode(3), 0)) {
|
|
327
|
-
return 3 /* SetComputeUnitPrice */;
|
|
328
|
-
}
|
|
329
|
-
if (memcmp(data, getU8Encoder().encode(4), 0)) {
|
|
330
|
-
return 4 /* SetLoadedAccountsDataSizeLimit */;
|
|
331
|
-
}
|
|
332
|
-
throw new Error(
|
|
333
|
-
"The provided instruction could not be identified as a computeBudget instruction."
|
|
334
|
-
);
|
|
335
|
-
}
|
|
336
234
|
|
|
337
|
-
export { COMPUTE_BUDGET_PROGRAM_ADDRESS, ComputeBudgetInstruction,
|
|
235
|
+
export { COMPUTE_BUDGET_PROGRAM_ADDRESS, ComputeBudgetInstruction, getRequestHeapFrameInstruction, getRequestHeapFrameInstructionDataCodec, getRequestHeapFrameInstructionDataDecoder, getRequestHeapFrameInstructionDataEncoder, getRequestUnitsInstruction, getRequestUnitsInstructionDataCodec, getRequestUnitsInstructionDataDecoder, getRequestUnitsInstructionDataEncoder, getSetComputeUnitLimitInstruction, getSetComputeUnitLimitInstructionDataCodec, getSetComputeUnitLimitInstructionDataDecoder, getSetComputeUnitLimitInstructionDataEncoder, getSetComputeUnitPriceInstruction, getSetComputeUnitPriceInstructionDataCodec, getSetComputeUnitPriceInstructionDataDecoder, getSetComputeUnitPriceInstructionDataEncoder, getSetLoadedAccountsDataSizeLimitInstruction, getSetLoadedAccountsDataSizeLimitInstructionDataCodec, getSetLoadedAccountsDataSizeLimitInstructionDataDecoder, getSetLoadedAccountsDataSizeLimitInstructionDataEncoder, identifyComputeBudgetInstruction, parseRequestHeapFrameInstruction, parseRequestUnitsInstruction, parseSetComputeUnitLimitInstruction, parseSetComputeUnitPriceInstruction, parseSetLoadedAccountsDataSizeLimitInstruction };
|
|
338
236
|
//# sourceMappingURL=out.js.map
|
|
339
237
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/generated/instructions/requestHeapFrame.ts","../../src/generated/instructions/requestUnits.ts","../../src/generated/instructions/setComputeUnitLimit.ts","../../src/generated/instructions/setComputeUnitPrice.ts","../../src/generated/instructions/setLoadedAccountsDataSizeLimit.ts","../../src/generated/programs/computeBudget.ts","../../src/generated/shared/index.ts"],"names":["combineCodec","getStructDecoder","getStructEncoder","getU32Decoder","getU32Encoder","getU8Decoder","getU8Encoder","mapEncoder","ComputeBudgetInstruction"],"mappings":";AASA;AAAA,EAIE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAuCA,SAAS,4CAA0F;AACxG,SAAO;AAAA,IACL,iBAAiB;AAAA,MACf,CAAC,iBAAiB,aAAa,CAAC;AAAA,MAChC,CAAC,SAAS,cAAc,CAAC;AAAA,IAC3B,CAAC;AAAA,IACD,CAAC,WAAW,EAAE,GAAG,OAAO,eAAe,EAAE;AAAA,EAC3C;AACF;AAEO,SAAS,4CAAsF;AACpG,SAAO,iBAAiB;AAAA,IACtB,CAAC,iBAAiB,aAAa,CAAC;AAAA,IAChC,CAAC,SAAS,cAAc,CAAC;AAAA,EAC3B,CAAC;AACH;AAEO,SAAS,0CAGd;AACA,SAAO;AAAA,IAC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AAC,GAAG;AAC7C,WAAO;AAAA,EACT;AACA,MAAI,OAAO,MAAMA,cAAa,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG;AAC7C,WAAO;AAAA,EACT;AACA,QAAM,IAAI;AAAA,IACR;AAAA,EACF;AACF","sourcesContent":["/**\n * This code was AUTOGENERATED using the kinobi library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun kinobi to update it.\n *\n * @see https://github.com/metaplex-foundation/kinobi\n */\n\nimport { Address } from '@solana/addresses';\nimport {\n Codec,\n Decoder,\n Encoder,\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU32Decoder,\n getU32Encoder,\n getU8Decoder,\n getU8Encoder,\n mapEncoder,\n} from '@solana/codecs';\nimport {\n IAccountMeta,\n IInstruction,\n IInstructionWithAccounts,\n IInstructionWithData,\n} from '@solana/instructions';\n\nexport type RequestHeapFrameInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111',\n TRemainingAccounts extends Array<IAccountMeta<string>> = []\n> = IInstruction<TProgram> &\n IInstructionWithData<Uint8Array> &\n IInstructionWithAccounts<TRemainingAccounts>;\n\nexport type RequestHeapFrameInstructionWithSigners<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111',\n TRemainingAccounts extends Array<IAccountMeta<string>> = []\n> = IInstruction<TProgram> &\n IInstructionWithData<Uint8Array> &\n IInstructionWithAccounts<TRemainingAccounts>;\n\nexport type RequestHeapFrameInstructionData = {\n discriminator: number;\n /**\n * Requested transaction-wide program heap size in bytes.\n * Must be multiple of 1024. Applies to each program, including CPIs.\n */\n bytes: number;\n};\n\nexport type RequestHeapFrameInstructionDataArgs = {\n /**\n * Requested transaction-wide program heap size in bytes.\n * Must be multiple of 1024. Applies to each program, including CPIs.\n */\n bytes: number;\n};\n\nexport function getRequestHeapFrameInstructionDataEncoder(): Encoder<RequestHeapFrameInstructionDataArgs> {\n return mapEncoder(\n getStructEncoder([\n ['discriminator', getU8Encoder()],\n ['bytes', getU32Encoder()],\n ]),\n (value) => ({ ...value, discriminator: 1 })\n );\n}\n\nexport function getRequestHeapFrameInstructionDataDecoder(): Decoder<RequestHeapFrameInstructionData> {\n return getStructDecoder([\n ['discriminator', getU8Decoder()],\n ['bytes', getU32Decoder()],\n ]);\n}\n\nexport function getRequestHeapFrameInstructionDataCodec(): Codec<\n RequestHeapFrameInstructionDataArgs,\n RequestHeapFrameInstructionData\n> {\n return combineCodec(\n getRequestHeapFrameInstructionDataEncoder(),\n getRequestHeapFrameInstructionDataDecoder()\n );\n}\n\nexport type RequestHeapFrameInput = {\n bytes: RequestHeapFrameInstructionDataArgs['bytes'];\n};\n\nexport type RequestHeapFrameInputWithSigners = {\n bytes: RequestHeapFrameInstructionDataArgs['bytes'];\n};\n\nexport function getRequestHeapFrameInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111'\n>(\n input: RequestHeapFrameInputWithSigners\n): RequestHeapFrameInstructionWithSigners<TProgram>;\nexport function getRequestHeapFrameInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111'\n>(input: RequestHeapFrameInput): RequestHeapFrameInstruction<TProgram>;\nexport function getRequestHeapFrameInstruction(\n input: RequestHeapFrameInput\n): IInstruction {\n // Program address.\n const programAddress =\n 'ComputeBudget111111111111111111111111111111' as Address<'ComputeBudget111111111111111111111111111111'>;\n\n // Original args.\n const args = { ...input };\n\n const instruction = getRequestHeapFrameInstructionRaw(\n args as RequestHeapFrameInstructionDataArgs,\n programAddress\n );\n\n return instruction;\n}\n\nexport function getRequestHeapFrameInstructionRaw<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111',\n TRemainingAccounts extends Array<IAccountMeta<string>> = []\n>(\n args: RequestHeapFrameInstructionDataArgs,\n programAddress: Address<TProgram> = 'ComputeBudget111111111111111111111111111111' as Address<TProgram>,\n remainingAccounts?: TRemainingAccounts\n) {\n return {\n accounts: remainingAccounts ?? [],\n data: getRequestHeapFrameInstructionDataEncoder().encode(args),\n programAddress,\n } as RequestHeapFrameInstruction<TProgram, TRemainingAccounts>;\n}\n\nexport type ParsedRequestHeapFrameInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111'\n> = {\n programAddress: Address<TProgram>;\n data: RequestHeapFrameInstructionData;\n};\n\nexport function parseRequestHeapFrameInstruction<TProgram extends string>(\n instruction: IInstruction<TProgram> & IInstructionWithData<Uint8Array>\n): ParsedRequestHeapFrameInstruction<TProgram> {\n return {\n programAddress: instruction.programAddress,\n data: getRequestHeapFrameInstructionDataDecoder().decode(instruction.data),\n };\n}\n","/**\n * This code was AUTOGENERATED using the kinobi library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun kinobi to update it.\n *\n * @see https://github.com/metaplex-foundation/kinobi\n */\n\nimport { Address } from '@solana/addresses';\nimport {\n Codec,\n Decoder,\n Encoder,\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU32Decoder,\n getU32Encoder,\n getU8Decoder,\n getU8Encoder,\n mapEncoder,\n} from '@solana/codecs';\nimport {\n IAccountMeta,\n IInstruction,\n IInstructionWithAccounts,\n IInstructionWithData,\n} from '@solana/instructions';\n\nexport type RequestUnitsInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111',\n TRemainingAccounts extends Array<IAccountMeta<string>> = []\n> = IInstruction<TProgram> &\n IInstructionWithData<Uint8Array> &\n IInstructionWithAccounts<TRemainingAccounts>;\n\nexport type RequestUnitsInstructionWithSigners<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111',\n TRemainingAccounts extends Array<IAccountMeta<string>> = []\n> = IInstruction<TProgram> &\n IInstructionWithData<Uint8Array> &\n IInstructionWithAccounts<TRemainingAccounts>;\n\nexport type RequestUnitsInstructionData = {\n discriminator: number;\n /** Units to request for transaction-wide compute. */\n units: number;\n /** Prioritization fee lamports. */\n additionalFee: number;\n};\n\nexport type RequestUnitsInstructionDataArgs = {\n /** Units to request for transaction-wide compute. */\n units: number;\n /** Prioritization fee lamports. */\n additionalFee: number;\n};\n\nexport function getRequestUnitsInstructionDataEncoder(): Encoder<RequestUnitsInstructionDataArgs> {\n return mapEncoder(\n getStructEncoder([\n ['discriminator', getU8Encoder()],\n ['units', getU32Encoder()],\n ['additionalFee', getU32Encoder()],\n ]),\n (value) => ({ ...value, discriminator: 0 })\n );\n}\n\nexport function getRequestUnitsInstructionDataDecoder(): Decoder<RequestUnitsInstructionData> {\n return getStructDecoder([\n ['discriminator', getU8Decoder()],\n ['units', getU32Decoder()],\n ['additionalFee', getU32Decoder()],\n ]);\n}\n\nexport function getRequestUnitsInstructionDataCodec(): Codec<\n RequestUnitsInstructionDataArgs,\n RequestUnitsInstructionData\n> {\n return combineCodec(\n getRequestUnitsInstructionDataEncoder(),\n getRequestUnitsInstructionDataDecoder()\n );\n}\n\nexport type RequestUnitsInput = {\n units: RequestUnitsInstructionDataArgs['units'];\n additionalFee: RequestUnitsInstructionDataArgs['additionalFee'];\n};\n\nexport type RequestUnitsInputWithSigners = {\n units: RequestUnitsInstructionDataArgs['units'];\n additionalFee: RequestUnitsInstructionDataArgs['additionalFee'];\n};\n\nexport function getRequestUnitsInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111'\n>(\n input: RequestUnitsInputWithSigners\n): RequestUnitsInstructionWithSigners<TProgram>;\nexport function getRequestUnitsInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111'\n>(input: RequestUnitsInput): RequestUnitsInstruction<TProgram>;\nexport function getRequestUnitsInstruction(\n input: RequestUnitsInput\n): IInstruction {\n // Program address.\n const programAddress =\n 'ComputeBudget111111111111111111111111111111' as Address<'ComputeBudget111111111111111111111111111111'>;\n\n // Original args.\n const args = { ...input };\n\n const instruction = getRequestUnitsInstructionRaw(\n args as RequestUnitsInstructionDataArgs,\n programAddress\n );\n\n return instruction;\n}\n\nexport function getRequestUnitsInstructionRaw<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111',\n TRemainingAccounts extends Array<IAccountMeta<string>> = []\n>(\n args: RequestUnitsInstructionDataArgs,\n programAddress: Address<TProgram> = 'ComputeBudget111111111111111111111111111111' as Address<TProgram>,\n remainingAccounts?: TRemainingAccounts\n) {\n return {\n accounts: remainingAccounts ?? [],\n data: getRequestUnitsInstructionDataEncoder().encode(args),\n programAddress,\n } as RequestUnitsInstruction<TProgram, TRemainingAccounts>;\n}\n\nexport type ParsedRequestUnitsInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111'\n> = {\n programAddress: Address<TProgram>;\n data: RequestUnitsInstructionData;\n};\n\nexport function parseRequestUnitsInstruction<TProgram extends string>(\n instruction: IInstruction<TProgram> & IInstructionWithData<Uint8Array>\n): ParsedRequestUnitsInstruction<TProgram> {\n return {\n programAddress: instruction.programAddress,\n data: getRequestUnitsInstructionDataDecoder().decode(instruction.data),\n };\n}\n","/**\n * This code was AUTOGENERATED using the kinobi library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun kinobi to update it.\n *\n * @see https://github.com/metaplex-foundation/kinobi\n */\n\nimport { Address } from '@solana/addresses';\nimport {\n Codec,\n Decoder,\n Encoder,\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU32Decoder,\n getU32Encoder,\n getU8Decoder,\n getU8Encoder,\n mapEncoder,\n} from '@solana/codecs';\nimport {\n IAccountMeta,\n IInstruction,\n IInstructionWithAccounts,\n IInstructionWithData,\n} from '@solana/instructions';\n\nexport type SetComputeUnitLimitInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111',\n TRemainingAccounts extends Array<IAccountMeta<string>> = []\n> = IInstruction<TProgram> &\n IInstructionWithData<Uint8Array> &\n IInstructionWithAccounts<TRemainingAccounts>;\n\nexport type SetComputeUnitLimitInstructionWithSigners<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111',\n TRemainingAccounts extends Array<IAccountMeta<string>> = []\n> = IInstruction<TProgram> &\n IInstructionWithData<Uint8Array> &\n IInstructionWithAccounts<TRemainingAccounts>;\n\nexport type SetComputeUnitLimitInstructionData = {\n discriminator: number;\n /** Transaction-wide compute unit limit. */\n units: number;\n};\n\nexport type SetComputeUnitLimitInstructionDataArgs = {\n /** Transaction-wide compute unit limit. */\n units: number;\n};\n\nexport function getSetComputeUnitLimitInstructionDataEncoder(): Encoder<SetComputeUnitLimitInstructionDataArgs> {\n return mapEncoder(\n getStructEncoder([\n ['discriminator', getU8Encoder()],\n ['units', getU32Encoder()],\n ]),\n (value) => ({ ...value, discriminator: 2 })\n );\n}\n\nexport function getSetComputeUnitLimitInstructionDataDecoder(): Decoder<SetComputeUnitLimitInstructionData> {\n return getStructDecoder([\n ['discriminator', getU8Decoder()],\n ['units', getU32Decoder()],\n ]);\n}\n\nexport function getSetComputeUnitLimitInstructionDataCodec(): Codec<\n SetComputeUnitLimitInstructionDataArgs,\n SetComputeUnitLimitInstructionData\n> {\n return combineCodec(\n getSetComputeUnitLimitInstructionDataEncoder(),\n getSetComputeUnitLimitInstructionDataDecoder()\n );\n}\n\nexport type SetComputeUnitLimitInput = {\n units: SetComputeUnitLimitInstructionDataArgs['units'];\n};\n\nexport type SetComputeUnitLimitInputWithSigners = {\n units: SetComputeUnitLimitInstructionDataArgs['units'];\n};\n\nexport function getSetComputeUnitLimitInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111'\n>(\n input: SetComputeUnitLimitInputWithSigners\n): SetComputeUnitLimitInstructionWithSigners<TProgram>;\nexport function getSetComputeUnitLimitInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111'\n>(input: SetComputeUnitLimitInput): SetComputeUnitLimitInstruction<TProgram>;\nexport function getSetComputeUnitLimitInstruction(\n input: SetComputeUnitLimitInput\n): IInstruction {\n // Program address.\n const programAddress =\n 'ComputeBudget111111111111111111111111111111' as Address<'ComputeBudget111111111111111111111111111111'>;\n\n // Original args.\n const args = { ...input };\n\n const instruction = getSetComputeUnitLimitInstructionRaw(\n args as SetComputeUnitLimitInstructionDataArgs,\n programAddress\n );\n\n return instruction;\n}\n\nexport function getSetComputeUnitLimitInstructionRaw<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111',\n TRemainingAccounts extends Array<IAccountMeta<string>> = []\n>(\n args: SetComputeUnitLimitInstructionDataArgs,\n programAddress: Address<TProgram> = 'ComputeBudget111111111111111111111111111111' as Address<TProgram>,\n remainingAccounts?: TRemainingAccounts\n) {\n return {\n accounts: remainingAccounts ?? [],\n data: getSetComputeUnitLimitInstructionDataEncoder().encode(args),\n programAddress,\n } as SetComputeUnitLimitInstruction<TProgram, TRemainingAccounts>;\n}\n\nexport type ParsedSetComputeUnitLimitInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111'\n> = {\n programAddress: Address<TProgram>;\n data: SetComputeUnitLimitInstructionData;\n};\n\nexport function parseSetComputeUnitLimitInstruction<TProgram extends string>(\n instruction: IInstruction<TProgram> & IInstructionWithData<Uint8Array>\n): ParsedSetComputeUnitLimitInstruction<TProgram> {\n return {\n programAddress: instruction.programAddress,\n data: getSetComputeUnitLimitInstructionDataDecoder().decode(\n instruction.data\n ),\n };\n}\n","/**\n * This code was AUTOGENERATED using the kinobi library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun kinobi to update it.\n *\n * @see https://github.com/metaplex-foundation/kinobi\n */\n\nimport { Address } from '@solana/addresses';\nimport {\n Codec,\n Decoder,\n Encoder,\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU64Decoder,\n getU64Encoder,\n getU8Decoder,\n getU8Encoder,\n mapEncoder,\n} from '@solana/codecs';\nimport {\n IAccountMeta,\n IInstruction,\n IInstructionWithAccounts,\n IInstructionWithData,\n} from '@solana/instructions';\n\nexport type SetComputeUnitPriceInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111',\n TRemainingAccounts extends Array<IAccountMeta<string>> = []\n> = IInstruction<TProgram> &\n IInstructionWithData<Uint8Array> &\n IInstructionWithAccounts<TRemainingAccounts>;\n\nexport type SetComputeUnitPriceInstructionWithSigners<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111',\n TRemainingAccounts extends Array<IAccountMeta<string>> = []\n> = IInstruction<TProgram> &\n IInstructionWithData<Uint8Array> &\n IInstructionWithAccounts<TRemainingAccounts>;\n\nexport type SetComputeUnitPriceInstructionData = {\n discriminator: number;\n /** Transaction compute unit price used for prioritization fees. */\n microLamports: bigint;\n};\n\nexport type SetComputeUnitPriceInstructionDataArgs = {\n /** Transaction compute unit price used for prioritization fees. */\n microLamports: number | bigint;\n};\n\nexport function getSetComputeUnitPriceInstructionDataEncoder(): Encoder<SetComputeUnitPriceInstructionDataArgs> {\n return mapEncoder(\n getStructEncoder([\n ['discriminator', getU8Encoder()],\n ['microLamports', getU64Encoder()],\n ]),\n (value) => ({ ...value, discriminator: 3 })\n );\n}\n\nexport function getSetComputeUnitPriceInstructionDataDecoder(): Decoder<SetComputeUnitPriceInstructionData> {\n return getStructDecoder([\n ['discriminator', getU8Decoder()],\n ['microLamports', getU64Decoder()],\n ]);\n}\n\nexport function getSetComputeUnitPriceInstructionDataCodec(): Codec<\n SetComputeUnitPriceInstructionDataArgs,\n SetComputeUnitPriceInstructionData\n> {\n return combineCodec(\n getSetComputeUnitPriceInstructionDataEncoder(),\n getSetComputeUnitPriceInstructionDataDecoder()\n );\n}\n\nexport type SetComputeUnitPriceInput = {\n microLamports: SetComputeUnitPriceInstructionDataArgs['microLamports'];\n};\n\nexport type SetComputeUnitPriceInputWithSigners = {\n microLamports: SetComputeUnitPriceInstructionDataArgs['microLamports'];\n};\n\nexport function getSetComputeUnitPriceInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111'\n>(\n input: SetComputeUnitPriceInputWithSigners\n): SetComputeUnitPriceInstructionWithSigners<TProgram>;\nexport function getSetComputeUnitPriceInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111'\n>(input: SetComputeUnitPriceInput): SetComputeUnitPriceInstruction<TProgram>;\nexport function getSetComputeUnitPriceInstruction(\n input: SetComputeUnitPriceInput\n): IInstruction {\n // Program address.\n const programAddress =\n 'ComputeBudget111111111111111111111111111111' as Address<'ComputeBudget111111111111111111111111111111'>;\n\n // Original args.\n const args = { ...input };\n\n const instruction = getSetComputeUnitPriceInstructionRaw(\n args as SetComputeUnitPriceInstructionDataArgs,\n programAddress\n );\n\n return instruction;\n}\n\nexport function getSetComputeUnitPriceInstructionRaw<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111',\n TRemainingAccounts extends Array<IAccountMeta<string>> = []\n>(\n args: SetComputeUnitPriceInstructionDataArgs,\n programAddress: Address<TProgram> = 'ComputeBudget111111111111111111111111111111' as Address<TProgram>,\n remainingAccounts?: TRemainingAccounts\n) {\n return {\n accounts: remainingAccounts ?? [],\n data: getSetComputeUnitPriceInstructionDataEncoder().encode(args),\n programAddress,\n } as SetComputeUnitPriceInstruction<TProgram, TRemainingAccounts>;\n}\n\nexport type ParsedSetComputeUnitPriceInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111'\n> = {\n programAddress: Address<TProgram>;\n data: SetComputeUnitPriceInstructionData;\n};\n\nexport function parseSetComputeUnitPriceInstruction<TProgram extends string>(\n instruction: IInstruction<TProgram> & IInstructionWithData<Uint8Array>\n): ParsedSetComputeUnitPriceInstruction<TProgram> {\n return {\n programAddress: instruction.programAddress,\n data: getSetComputeUnitPriceInstructionDataDecoder().decode(\n instruction.data\n ),\n };\n}\n","/**\n * This code was AUTOGENERATED using the kinobi library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun kinobi to update it.\n *\n * @see https://github.com/metaplex-foundation/kinobi\n */\n\nimport { Address } from '@solana/addresses';\nimport {\n Codec,\n Decoder,\n Encoder,\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU32Decoder,\n getU32Encoder,\n getU8Decoder,\n getU8Encoder,\n mapEncoder,\n} from '@solana/codecs';\nimport {\n IAccountMeta,\n IInstruction,\n IInstructionWithAccounts,\n IInstructionWithData,\n} from '@solana/instructions';\n\nexport type SetLoadedAccountsDataSizeLimitInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111',\n TRemainingAccounts extends Array<IAccountMeta<string>> = []\n> = IInstruction<TProgram> &\n IInstructionWithData<Uint8Array> &\n IInstructionWithAccounts<TRemainingAccounts>;\n\nexport type SetLoadedAccountsDataSizeLimitInstructionWithSigners<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111',\n TRemainingAccounts extends Array<IAccountMeta<string>> = []\n> = IInstruction<TProgram> &\n IInstructionWithData<Uint8Array> &\n IInstructionWithAccounts<TRemainingAccounts>;\n\nexport type SetLoadedAccountsDataSizeLimitInstructionData = {\n discriminator: number;\n accountDataSizeLimit: number;\n};\n\nexport type SetLoadedAccountsDataSizeLimitInstructionDataArgs = {\n accountDataSizeLimit: number;\n};\n\nexport function getSetLoadedAccountsDataSizeLimitInstructionDataEncoder(): Encoder<SetLoadedAccountsDataSizeLimitInstructionDataArgs> {\n return mapEncoder(\n getStructEncoder([\n ['discriminator', getU8Encoder()],\n ['accountDataSizeLimit', getU32Encoder()],\n ]),\n (value) => ({ ...value, discriminator: 4 })\n );\n}\n\nexport function getSetLoadedAccountsDataSizeLimitInstructionDataDecoder(): Decoder<SetLoadedAccountsDataSizeLimitInstructionData> {\n return getStructDecoder([\n ['discriminator', getU8Decoder()],\n ['accountDataSizeLimit', getU32Decoder()],\n ]);\n}\n\nexport function getSetLoadedAccountsDataSizeLimitInstructionDataCodec(): Codec<\n SetLoadedAccountsDataSizeLimitInstructionDataArgs,\n SetLoadedAccountsDataSizeLimitInstructionData\n> {\n return combineCodec(\n getSetLoadedAccountsDataSizeLimitInstructionDataEncoder(),\n getSetLoadedAccountsDataSizeLimitInstructionDataDecoder()\n );\n}\n\nexport type SetLoadedAccountsDataSizeLimitInput = {\n accountDataSizeLimit: SetLoadedAccountsDataSizeLimitInstructionDataArgs['accountDataSizeLimit'];\n};\n\nexport type SetLoadedAccountsDataSizeLimitInputWithSigners = {\n accountDataSizeLimit: SetLoadedAccountsDataSizeLimitInstructionDataArgs['accountDataSizeLimit'];\n};\n\nexport function getSetLoadedAccountsDataSizeLimitInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111'\n>(\n input: SetLoadedAccountsDataSizeLimitInputWithSigners\n): SetLoadedAccountsDataSizeLimitInstructionWithSigners<TProgram>;\nexport function getSetLoadedAccountsDataSizeLimitInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111'\n>(\n input: SetLoadedAccountsDataSizeLimitInput\n): SetLoadedAccountsDataSizeLimitInstruction<TProgram>;\nexport function getSetLoadedAccountsDataSizeLimitInstruction(\n input: SetLoadedAccountsDataSizeLimitInput\n): IInstruction {\n // Program address.\n const programAddress =\n 'ComputeBudget111111111111111111111111111111' as Address<'ComputeBudget111111111111111111111111111111'>;\n\n // Original args.\n const args = { ...input };\n\n const instruction = getSetLoadedAccountsDataSizeLimitInstructionRaw(\n args as SetLoadedAccountsDataSizeLimitInstructionDataArgs,\n programAddress\n );\n\n return instruction;\n}\n\nexport function getSetLoadedAccountsDataSizeLimitInstructionRaw<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111',\n TRemainingAccounts extends Array<IAccountMeta<string>> = []\n>(\n args: SetLoadedAccountsDataSizeLimitInstructionDataArgs,\n programAddress: Address<TProgram> = 'ComputeBudget111111111111111111111111111111' as Address<TProgram>,\n remainingAccounts?: TRemainingAccounts\n) {\n return {\n accounts: remainingAccounts ?? [],\n data: getSetLoadedAccountsDataSizeLimitInstructionDataEncoder().encode(\n args\n ),\n programAddress,\n } as SetLoadedAccountsDataSizeLimitInstruction<TProgram, TRemainingAccounts>;\n}\n\nexport type ParsedSetLoadedAccountsDataSizeLimitInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111'\n> = {\n programAddress: Address<TProgram>;\n data: SetLoadedAccountsDataSizeLimitInstructionData;\n};\n\nexport function parseSetLoadedAccountsDataSizeLimitInstruction<\n TProgram extends string\n>(\n instruction: IInstruction<TProgram> & IInstructionWithData<Uint8Array>\n): ParsedSetLoadedAccountsDataSizeLimitInstruction<TProgram> {\n return {\n programAddress: instruction.programAddress,\n data: getSetLoadedAccountsDataSizeLimitInstructionDataDecoder().decode(\n instruction.data\n ),\n };\n}\n","/**\n * This code was AUTOGENERATED using the kinobi library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun kinobi to update it.\n *\n * @see https://github.com/metaplex-foundation/kinobi\n */\n\nimport { Address } from '@solana/addresses';\nimport { getU8Encoder } from '@solana/codecs';\nimport { Program } from '@solana/programs';\nimport {\n ParsedRequestHeapFrameInstruction,\n ParsedRequestUnitsInstruction,\n ParsedSetComputeUnitLimitInstruction,\n ParsedSetComputeUnitPriceInstruction,\n ParsedSetLoadedAccountsDataSizeLimitInstruction,\n} from '../instructions';\nimport { memcmp } from '../shared';\n\nexport const COMPUTE_BUDGET_PROGRAM_ADDRESS =\n 'ComputeBudget111111111111111111111111111111' as Address<'ComputeBudget111111111111111111111111111111'>;\n\nexport type ComputeBudgetProgram =\n Program<'ComputeBudget111111111111111111111111111111'>;\n\nexport function getComputeBudgetProgram(): ComputeBudgetProgram {\n return {\n name: 'computeBudget',\n address: COMPUTE_BUDGET_PROGRAM_ADDRESS,\n };\n}\n\nexport enum ComputeBudgetInstruction {\n RequestUnits,\n RequestHeapFrame,\n SetComputeUnitLimit,\n SetComputeUnitPrice,\n SetLoadedAccountsDataSizeLimit,\n}\n\nexport function identifyComputeBudgetInstruction(\n instruction: { data: Uint8Array } | Uint8Array\n): ComputeBudgetInstruction {\n const data =\n instruction instanceof Uint8Array ? instruction : instruction.data;\n if (memcmp(data, getU8Encoder().encode(0), 0)) {\n return ComputeBudgetInstruction.RequestUnits;\n }\n if (memcmp(data, getU8Encoder().encode(1), 0)) {\n return ComputeBudgetInstruction.RequestHeapFrame;\n }\n if (memcmp(data, getU8Encoder().encode(2), 0)) {\n return ComputeBudgetInstruction.SetComputeUnitLimit;\n }\n if (memcmp(data, getU8Encoder().encode(3), 0)) {\n return ComputeBudgetInstruction.SetComputeUnitPrice;\n }\n if (memcmp(data, getU8Encoder().encode(4), 0)) {\n return ComputeBudgetInstruction.SetLoadedAccountsDataSizeLimit;\n }\n throw new Error(\n 'The provided instruction could not be identified as a computeBudget instruction.'\n );\n}\n\nexport type ParsedComputeBudgetInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111'\n> =\n | ({\n instructionType: ComputeBudgetInstruction.RequestUnits;\n } & ParsedRequestUnitsInstruction<TProgram>)\n | ({\n instructionType: ComputeBudgetInstruction.RequestHeapFrame;\n } & ParsedRequestHeapFrameInstruction<TProgram>)\n | ({\n instructionType: ComputeBudgetInstruction.SetComputeUnitLimit;\n } & ParsedSetComputeUnitLimitInstruction<TProgram>)\n | ({\n instructionType: ComputeBudgetInstruction.SetComputeUnitPrice;\n } & ParsedSetComputeUnitPriceInstruction<TProgram>)\n | ({\n instructionType: ComputeBudgetInstruction.SetLoadedAccountsDataSizeLimit;\n } & ParsedSetLoadedAccountsDataSizeLimitInstruction<TProgram>);\n","/**\n * This code was AUTOGENERATED using the kinobi library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun kinobi to update it.\n *\n * @see https://github.com/metaplex-foundation/kinobi\n */\n\nimport {\n Address,\n isProgramDerivedAddress,\n ProgramDerivedAddress,\n} from '@solana/addresses';\nimport {\n AccountRole,\n IAccountMeta,\n upgradeRoleToSigner,\n} from '@solana/instructions';\nimport {\n IAccountSignerMeta,\n isTransactionSigner as web3JsIsTransactionSigner,\n TransactionSigner,\n} from '@solana/signers';\n\n/**\n * Asserts that the given value is not null or undefined.\n * @internal\n */\nexport function expectSome<T>(value: T | null | undefined): T {\n if (value == null) {\n throw new Error('Expected a value but received null or undefined.');\n }\n return value;\n}\n\n/**\n * Asserts that the given value is a PublicKey.\n * @internal\n */\nexport function expectAddress<T extends string = string>(\n value:\n | Address<T>\n | ProgramDerivedAddress<T>\n | TransactionSigner<T>\n | null\n | undefined\n): Address<T> {\n if (!value) {\n throw new Error('Expected a Address.');\n }\n if (typeof value === 'object' && 'address' in value) {\n return value.address;\n }\n if (Array.isArray(value)) {\n return value[0];\n }\n return value as Address<T>;\n}\n\n/**\n * Asserts that the given value is a PDA.\n * @internal\n */\nexport function expectProgramDerivedAddress<T extends string = string>(\n value:\n | Address<T>\n | ProgramDerivedAddress<T>\n | TransactionSigner<T>\n | null\n | undefined\n): ProgramDerivedAddress<T> {\n if (!value || !Array.isArray(value) || !isProgramDerivedAddress(value)) {\n throw new Error('Expected a ProgramDerivedAddress.');\n }\n return value;\n}\n\n/**\n * Asserts that the given value is a TransactionSigner.\n * @internal\n */\nexport function expectTransactionSigner<T extends string = string>(\n value:\n | Address<T>\n | ProgramDerivedAddress<T>\n | TransactionSigner<T>\n | null\n | undefined\n): TransactionSigner<T> {\n if (!value || !isTransactionSigner(value)) {\n throw new Error('Expected a TransactionSigner.');\n }\n return value;\n}\n\n/**\n * Defines an instruction account to resolve.\n * @internal\n */\nexport type ResolvedAccount<\n T extends string = string,\n U extends\n | Address<T>\n | ProgramDerivedAddress<T>\n | TransactionSigner<T>\n | null = Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null\n> = {\n isWritable: boolean;\n value: U;\n};\n\n/**\n * Add an account meta with a default role if only an address is provided.\n * @internal\n */\nexport function accountMetaWithDefault<\n TAccount extends string | IAccountMeta<string>,\n TRole extends AccountRole\n>(account: TAccount | undefined, role: TRole) {\n if (account === undefined) return undefined;\n return (\n typeof account === 'string' ? { address: account, role } : account\n ) as TAccount extends string\n ? { address: Address<TAccount>; role: TRole }\n : TAccount;\n}\n\n/**\n * Defines an instruction that stores additional bytes on-chain.\n * @internal\n */\nexport type IInstructionWithByteDelta = {\n byteDelta: number;\n};\n\n/**\n * Get account metas and signers from resolved accounts.\n * @internal\n */\nexport function getAccountMetasWithSigners<TKey extends string = string>(\n accounts: Record<TKey, ResolvedAccount>,\n optionalAccountStrategy: 'omitted' | 'programId',\n programAddress: Address\n): Record<TKey, IAccountMeta | IAccountSignerMeta> {\n const accountMetas: Record<string, IAccountMeta | IAccountSignerMeta> = {};\n\n Object.keys(accounts).forEach((key) => {\n const account = accounts[key as TKey] as ResolvedAccount;\n if (!account.value) {\n if (optionalAccountStrategy === 'omitted') return;\n accountMetas[key] = {\n address: programAddress,\n role: AccountRole.READONLY,\n };\n return;\n }\n\n const writableRole = account.isWritable\n ? AccountRole.WRITABLE\n : AccountRole.READONLY;\n accountMetas[key] = Object.freeze({\n address: expectAddress(account.value),\n role: isTransactionSigner(account.value)\n ? upgradeRoleToSigner(writableRole)\n : writableRole,\n ...(isTransactionSigner(account.value) ? { signer: account.value } : {}),\n });\n });\n\n return accountMetas;\n}\n\nexport function isTransactionSigner<TAddress extends string = string>(\n value:\n | Address<TAddress>\n | ProgramDerivedAddress<TAddress>\n | TransactionSigner<TAddress>\n): value is TransactionSigner<TAddress> {\n return (\n !!value &&\n typeof value === 'object' &&\n 'address' in value &&\n web3JsIsTransactionSigner(value)\n );\n}\n\nexport function memcmp(data: Uint8Array, bytes: Uint8Array, offset: number) {\n const slice = data.slice(offset, offset + bytes.length);\n if (slice.length !== bytes.length) return false;\n return bytes.every((b, i) => b === slice[i]);\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/generated/instructions/requestHeapFrame.ts","../../src/generated/programs/computeBudget.ts","../../src/generated/instructions/requestUnits.ts","../../src/generated/instructions/setComputeUnitLimit.ts","../../src/generated/instructions/setComputeUnitPrice.ts","../../src/generated/instructions/setLoadedAccountsDataSizeLimit.ts"],"names":["getU8Encoder","ComputeBudgetInstruction","combineCodec","getStructDecoder","getStructEncoder","getU32Decoder","getU32Encoder","getU8Decoder","transformEncoder"],"mappings":";AAQA;AAAA,EASE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,gBAAAA;AAAA,EACA;AAAA,OACK;;;ACjBP,SAAkB,eAAe,oBAAoB;AAS9C,IAAM,iCACX;AAEK,IAAK,2BAAL,kBAAKC,8BAAL;AACL,EA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CAAC;AACH;AAEO,SAAS,wDAGd;AACA,SAAOH;AAAA,IACL,wDAAwD;AAAA,IACxD,wDAAwD;AAAA,EAC1D;AACF;AAMO,SAAS,6CACd,OAGA;AAEA,QAAM,iBAAiB;AAGvB,QAAM,OAAO,EAAE,GAAG,MAAM;AAExB,QAAM,cAAc;AAAA,IAClB;AAAA,IACA,MAAM,wDAAwD,EAAE;AAAA,MAC9D;AAAA,IACF;AAAA,EACF;AAIA,SAAO;AACT;AASO,SAAS,+CAGd,aAC2D;AAC3D,SAAO;AAAA,IACL,gBAAgB,YAAY;AAAA,IAC5B,MAAM,wDAAwD,EAAE;AAAA,MAC9D,YAAY;AAAA,IACd;AAAA,EACF;AACF","sourcesContent":["/**\n * This code was AUTOGENERATED using the kinobi library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun kinobi to update it.\n *\n * @see https://github.com/metaplex-foundation/kinobi\n */\n\nimport {\n Address,\n Codec,\n Decoder,\n Encoder,\n IAccountMeta,\n IInstruction,\n IInstructionWithAccounts,\n IInstructionWithData,\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU32Decoder,\n getU32Encoder,\n getU8Decoder,\n getU8Encoder,\n transformEncoder,\n} from '@solana/web3.js';\nimport { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';\n\nexport type RequestHeapFrameInstruction<\n TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS,\n TRemainingAccounts extends readonly IAccountMeta<string>[] = [],\n> = IInstruction<TProgram> &\n IInstructionWithData<Uint8Array> &\n IInstructionWithAccounts<TRemainingAccounts>;\n\nexport type RequestHeapFrameInstructionData = {\n discriminator: number;\n /**\n * Requested transaction-wide program heap size in bytes.\n * Must be multiple of 1024. Applies to each program, including CPIs.\n */\n bytes: number;\n};\n\nexport type RequestHeapFrameInstructionDataArgs = {\n /**\n * Requested transaction-wide program heap size in bytes.\n * Must be multiple of 1024. Applies to each program, including CPIs.\n */\n bytes: number;\n};\n\nexport function getRequestHeapFrameInstructionDataEncoder(): Encoder<RequestHeapFrameInstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n ['discriminator', getU8Encoder()],\n ['bytes', getU32Encoder()],\n ]),\n (value) => ({ ...value, discriminator: 1 })\n );\n}\n\nexport function getRequestHeapFrameInstructionDataDecoder(): Decoder<RequestHeapFrameInstructionData> {\n return getStructDecoder([\n ['discriminator', getU8Decoder()],\n ['bytes', getU32Decoder()],\n ]);\n}\n\nexport function getRequestHeapFrameInstructionDataCodec(): Codec<\n RequestHeapFrameInstructionDataArgs,\n RequestHeapFrameInstructionData\n> {\n return combineCodec(\n getRequestHeapFrameInstructionDataEncoder(),\n getRequestHeapFrameInstructionDataDecoder()\n );\n}\n\nexport type RequestHeapFrameInput = {\n bytes: RequestHeapFrameInstructionDataArgs['bytes'];\n};\n\nexport function getRequestHeapFrameInstruction(\n input: RequestHeapFrameInput\n): RequestHeapFrameInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS> {\n // Program address.\n const programAddress = COMPUTE_BUDGET_PROGRAM_ADDRESS;\n\n // Original args.\n const args = { ...input };\n\n const instruction = {\n programAddress,\n data: getRequestHeapFrameInstructionDataEncoder().encode(\n args as RequestHeapFrameInstructionDataArgs\n ),\n } as RequestHeapFrameInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS>;\n\n return instruction;\n}\n\nexport type ParsedRequestHeapFrameInstruction<\n TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS,\n> = {\n programAddress: Address<TProgram>;\n data: RequestHeapFrameInstructionData;\n};\n\nexport function parseRequestHeapFrameInstruction<TProgram extends string>(\n instruction: IInstruction<TProgram> & IInstructionWithData<Uint8Array>\n): ParsedRequestHeapFrameInstruction<TProgram> {\n return {\n programAddress: instruction.programAddress,\n data: getRequestHeapFrameInstructionDataDecoder().decode(instruction.data),\n };\n}\n","/**\n * This code was AUTOGENERATED using the kinobi library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun kinobi to update it.\n *\n * @see https://github.com/metaplex-foundation/kinobi\n */\n\nimport { Address, containsBytes, getU8Encoder } from '@solana/web3.js';\nimport {\n ParsedRequestHeapFrameInstruction,\n ParsedRequestUnitsInstruction,\n ParsedSetComputeUnitLimitInstruction,\n ParsedSetComputeUnitPriceInstruction,\n ParsedSetLoadedAccountsDataSizeLimitInstruction,\n} from '../instructions';\n\nexport const COMPUTE_BUDGET_PROGRAM_ADDRESS =\n 'ComputeBudget111111111111111111111111111111' as Address<'ComputeBudget111111111111111111111111111111'>;\n\nexport enum ComputeBudgetInstruction {\n RequestUnits,\n RequestHeapFrame,\n SetComputeUnitLimit,\n SetComputeUnitPrice,\n SetLoadedAccountsDataSizeLimit,\n}\n\nexport function identifyComputeBudgetInstruction(\n instruction: { data: Uint8Array } | Uint8Array\n): ComputeBudgetInstruction {\n const data =\n instruction instanceof Uint8Array ? instruction : instruction.data;\n if (containsBytes(data, getU8Encoder().encode(0), 0)) {\n return ComputeBudgetInstruction.RequestUnits;\n }\n if (containsBytes(data, getU8Encoder().encode(1), 0)) {\n return ComputeBudgetInstruction.RequestHeapFrame;\n }\n if (containsBytes(data, getU8Encoder().encode(2), 0)) {\n return ComputeBudgetInstruction.SetComputeUnitLimit;\n }\n if (containsBytes(data, getU8Encoder().encode(3), 0)) {\n return ComputeBudgetInstruction.SetComputeUnitPrice;\n }\n if (containsBytes(data, getU8Encoder().encode(4), 0)) {\n return ComputeBudgetInstruction.SetLoadedAccountsDataSizeLimit;\n }\n throw new Error(\n 'The provided instruction could not be identified as a computeBudget instruction.'\n );\n}\n\nexport type ParsedComputeBudgetInstruction<\n TProgram extends string = 'ComputeBudget111111111111111111111111111111',\n> =\n | ({\n instructionType: ComputeBudgetInstruction.RequestUnits;\n } & ParsedRequestUnitsInstruction<TProgram>)\n | ({\n instructionType: ComputeBudgetInstruction.RequestHeapFrame;\n } & ParsedRequestHeapFrameInstruction<TProgram>)\n | ({\n instructionType: ComputeBudgetInstruction.SetComputeUnitLimit;\n } & ParsedSetComputeUnitLimitInstruction<TProgram>)\n | ({\n instructionType: ComputeBudgetInstruction.SetComputeUnitPrice;\n } & ParsedSetComputeUnitPriceInstruction<TProgram>)\n | ({\n instructionType: ComputeBudgetInstruction.SetLoadedAccountsDataSizeLimit;\n } & ParsedSetLoadedAccountsDataSizeLimitInstruction<TProgram>);\n","/**\n * This code was AUTOGENERATED using the kinobi library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun kinobi to update it.\n *\n * @see https://github.com/metaplex-foundation/kinobi\n */\n\nimport {\n Address,\n Codec,\n Decoder,\n Encoder,\n IAccountMeta,\n IInstruction,\n IInstructionWithAccounts,\n IInstructionWithData,\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU32Decoder,\n getU32Encoder,\n getU8Decoder,\n getU8Encoder,\n transformEncoder,\n} from '@solana/web3.js';\nimport { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';\n\nexport type RequestUnitsInstruction<\n TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS,\n TRemainingAccounts extends readonly IAccountMeta<string>[] = [],\n> = IInstruction<TProgram> &\n IInstructionWithData<Uint8Array> &\n IInstructionWithAccounts<TRemainingAccounts>;\n\nexport type RequestUnitsInstructionData = {\n discriminator: number;\n /** Units to request for transaction-wide compute. */\n units: number;\n /** Prioritization fee lamports. */\n additionalFee: number;\n};\n\nexport type RequestUnitsInstructionDataArgs = {\n /** Units to request for transaction-wide compute. */\n units: number;\n /** Prioritization fee lamports. */\n additionalFee: number;\n};\n\nexport function getRequestUnitsInstructionDataEncoder(): Encoder<RequestUnitsInstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n ['discriminator', getU8Encoder()],\n ['units', getU32Encoder()],\n ['additionalFee', getU32Encoder()],\n ]),\n (value) => ({ ...value, discriminator: 0 })\n );\n}\n\nexport function getRequestUnitsInstructionDataDecoder(): Decoder<RequestUnitsInstructionData> {\n return getStructDecoder([\n ['discriminator', getU8Decoder()],\n ['units', getU32Decoder()],\n ['additionalFee', getU32Decoder()],\n ]);\n}\n\nexport function getRequestUnitsInstructionDataCodec(): Codec<\n RequestUnitsInstructionDataArgs,\n RequestUnitsInstructionData\n> {\n return combineCodec(\n getRequestUnitsInstructionDataEncoder(),\n getRequestUnitsInstructionDataDecoder()\n );\n}\n\nexport type RequestUnitsInput = {\n units: RequestUnitsInstructionDataArgs['units'];\n additionalFee: RequestUnitsInstructionDataArgs['additionalFee'];\n};\n\nexport function getRequestUnitsInstruction(\n input: RequestUnitsInput\n): RequestUnitsInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS> {\n // Program address.\n const programAddress = COMPUTE_BUDGET_PROGRAM_ADDRESS;\n\n // Original args.\n const args = { ...input };\n\n const instruction = {\n programAddress,\n data: getRequestUnitsInstructionDataEncoder().encode(\n args as RequestUnitsInstructionDataArgs\n ),\n } as RequestUnitsInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS>;\n\n return instruction;\n}\n\nexport type ParsedRequestUnitsInstruction<\n TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS,\n> = {\n programAddress: Address<TProgram>;\n data: RequestUnitsInstructionData;\n};\n\nexport function parseRequestUnitsInstruction<TProgram extends string>(\n instruction: IInstruction<TProgram> & IInstructionWithData<Uint8Array>\n): ParsedRequestUnitsInstruction<TProgram> {\n return {\n programAddress: instruction.programAddress,\n data: getRequestUnitsInstructionDataDecoder().decode(instruction.data),\n };\n}\n","/**\n * This code was AUTOGENERATED using the kinobi library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun kinobi to update it.\n *\n * @see https://github.com/metaplex-foundation/kinobi\n */\n\nimport {\n Address,\n Codec,\n Decoder,\n Encoder,\n IAccountMeta,\n IInstruction,\n IInstructionWithAccounts,\n IInstructionWithData,\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU32Decoder,\n getU32Encoder,\n getU8Decoder,\n getU8Encoder,\n transformEncoder,\n} from '@solana/web3.js';\nimport { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';\n\nexport type SetComputeUnitLimitInstruction<\n TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS,\n TRemainingAccounts extends readonly IAccountMeta<string>[] = [],\n> = IInstruction<TProgram> &\n IInstructionWithData<Uint8Array> &\n IInstructionWithAccounts<TRemainingAccounts>;\n\nexport type SetComputeUnitLimitInstructionData = {\n discriminator: number;\n /** Transaction-wide compute unit limit. */\n units: number;\n};\n\nexport type SetComputeUnitLimitInstructionDataArgs = {\n /** Transaction-wide compute unit limit. */\n units: number;\n};\n\nexport function getSetComputeUnitLimitInstructionDataEncoder(): Encoder<SetComputeUnitLimitInstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n ['discriminator', getU8Encoder()],\n ['units', getU32Encoder()],\n ]),\n (value) => ({ ...value, discriminator: 2 })\n );\n}\n\nexport function getSetComputeUnitLimitInstructionDataDecoder(): Decoder<SetComputeUnitLimitInstructionData> {\n return getStructDecoder([\n ['discriminator', getU8Decoder()],\n ['units', getU32Decoder()],\n ]);\n}\n\nexport function getSetComputeUnitLimitInstructionDataCodec(): Codec<\n SetComputeUnitLimitInstructionDataArgs,\n SetComputeUnitLimitInstructionData\n> {\n return combineCodec(\n getSetComputeUnitLimitInstructionDataEncoder(),\n getSetComputeUnitLimitInstructionDataDecoder()\n );\n}\n\nexport type SetComputeUnitLimitInput = {\n units: SetComputeUnitLimitInstructionDataArgs['units'];\n};\n\nexport function getSetComputeUnitLimitInstruction(\n input: SetComputeUnitLimitInput\n): SetComputeUnitLimitInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS> {\n // Program address.\n const programAddress = COMPUTE_BUDGET_PROGRAM_ADDRESS;\n\n // Original args.\n const args = { ...input };\n\n const instruction = {\n programAddress,\n data: getSetComputeUnitLimitInstructionDataEncoder().encode(\n args as SetComputeUnitLimitInstructionDataArgs\n ),\n } as SetComputeUnitLimitInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS>;\n\n return instruction;\n}\n\nexport type ParsedSetComputeUnitLimitInstruction<\n TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS,\n> = {\n programAddress: Address<TProgram>;\n data: SetComputeUnitLimitInstructionData;\n};\n\nexport function parseSetComputeUnitLimitInstruction<TProgram extends string>(\n instruction: IInstruction<TProgram> & IInstructionWithData<Uint8Array>\n): ParsedSetComputeUnitLimitInstruction<TProgram> {\n return {\n programAddress: instruction.programAddress,\n data: getSetComputeUnitLimitInstructionDataDecoder().decode(\n instruction.data\n ),\n };\n}\n","/**\n * This code was AUTOGENERATED using the kinobi library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun kinobi to update it.\n *\n * @see https://github.com/metaplex-foundation/kinobi\n */\n\nimport {\n Address,\n Codec,\n Decoder,\n Encoder,\n IAccountMeta,\n IInstruction,\n IInstructionWithAccounts,\n IInstructionWithData,\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU64Decoder,\n getU64Encoder,\n getU8Decoder,\n getU8Encoder,\n transformEncoder,\n} from '@solana/web3.js';\nimport { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';\n\nexport type SetComputeUnitPriceInstruction<\n TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS,\n TRemainingAccounts extends readonly IAccountMeta<string>[] = [],\n> = IInstruction<TProgram> &\n IInstructionWithData<Uint8Array> &\n IInstructionWithAccounts<TRemainingAccounts>;\n\nexport type SetComputeUnitPriceInstructionData = {\n discriminator: number;\n /** Transaction compute unit price used for prioritization fees. */\n microLamports: bigint;\n};\n\nexport type SetComputeUnitPriceInstructionDataArgs = {\n /** Transaction compute unit price used for prioritization fees. */\n microLamports: number | bigint;\n};\n\nexport function getSetComputeUnitPriceInstructionDataEncoder(): Encoder<SetComputeUnitPriceInstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n ['discriminator', getU8Encoder()],\n ['microLamports', getU64Encoder()],\n ]),\n (value) => ({ ...value, discriminator: 3 })\n );\n}\n\nexport function getSetComputeUnitPriceInstructionDataDecoder(): Decoder<SetComputeUnitPriceInstructionData> {\n return getStructDecoder([\n ['discriminator', getU8Decoder()],\n ['microLamports', getU64Decoder()],\n ]);\n}\n\nexport function getSetComputeUnitPriceInstructionDataCodec(): Codec<\n SetComputeUnitPriceInstructionDataArgs,\n SetComputeUnitPriceInstructionData\n> {\n return combineCodec(\n getSetComputeUnitPriceInstructionDataEncoder(),\n getSetComputeUnitPriceInstructionDataDecoder()\n );\n}\n\nexport type SetComputeUnitPriceInput = {\n microLamports: SetComputeUnitPriceInstructionDataArgs['microLamports'];\n};\n\nexport function getSetComputeUnitPriceInstruction(\n input: SetComputeUnitPriceInput\n): SetComputeUnitPriceInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS> {\n // Program address.\n const programAddress = COMPUTE_BUDGET_PROGRAM_ADDRESS;\n\n // Original args.\n const args = { ...input };\n\n const instruction = {\n programAddress,\n data: getSetComputeUnitPriceInstructionDataEncoder().encode(\n args as SetComputeUnitPriceInstructionDataArgs\n ),\n } as SetComputeUnitPriceInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS>;\n\n return instruction;\n}\n\nexport type ParsedSetComputeUnitPriceInstruction<\n TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS,\n> = {\n programAddress: Address<TProgram>;\n data: SetComputeUnitPriceInstructionData;\n};\n\nexport function parseSetComputeUnitPriceInstruction<TProgram extends string>(\n instruction: IInstruction<TProgram> & IInstructionWithData<Uint8Array>\n): ParsedSetComputeUnitPriceInstruction<TProgram> {\n return {\n programAddress: instruction.programAddress,\n data: getSetComputeUnitPriceInstructionDataDecoder().decode(\n instruction.data\n ),\n };\n}\n","/**\n * This code was AUTOGENERATED using the kinobi library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun kinobi to update it.\n *\n * @see https://github.com/metaplex-foundation/kinobi\n */\n\nimport {\n Address,\n Codec,\n Decoder,\n Encoder,\n IAccountMeta,\n IInstruction,\n IInstructionWithAccounts,\n IInstructionWithData,\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU32Decoder,\n getU32Encoder,\n getU8Decoder,\n getU8Encoder,\n transformEncoder,\n} from '@solana/web3.js';\nimport { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';\n\nexport type SetLoadedAccountsDataSizeLimitInstruction<\n TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS,\n TRemainingAccounts extends readonly IAccountMeta<string>[] = [],\n> = IInstruction<TProgram> &\n IInstructionWithData<Uint8Array> &\n IInstructionWithAccounts<TRemainingAccounts>;\n\nexport type SetLoadedAccountsDataSizeLimitInstructionData = {\n discriminator: number;\n accountDataSizeLimit: number;\n};\n\nexport type SetLoadedAccountsDataSizeLimitInstructionDataArgs = {\n accountDataSizeLimit: number;\n};\n\nexport function getSetLoadedAccountsDataSizeLimitInstructionDataEncoder(): Encoder<SetLoadedAccountsDataSizeLimitInstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n ['discriminator', getU8Encoder()],\n ['accountDataSizeLimit', getU32Encoder()],\n ]),\n (value) => ({ ...value, discriminator: 4 })\n );\n}\n\nexport function getSetLoadedAccountsDataSizeLimitInstructionDataDecoder(): Decoder<SetLoadedAccountsDataSizeLimitInstructionData> {\n return getStructDecoder([\n ['discriminator', getU8Decoder()],\n ['accountDataSizeLimit', getU32Decoder()],\n ]);\n}\n\nexport function getSetLoadedAccountsDataSizeLimitInstructionDataCodec(): Codec<\n SetLoadedAccountsDataSizeLimitInstructionDataArgs,\n SetLoadedAccountsDataSizeLimitInstructionData\n> {\n return combineCodec(\n getSetLoadedAccountsDataSizeLimitInstructionDataEncoder(),\n getSetLoadedAccountsDataSizeLimitInstructionDataDecoder()\n );\n}\n\nexport type SetLoadedAccountsDataSizeLimitInput = {\n accountDataSizeLimit: SetLoadedAccountsDataSizeLimitInstructionDataArgs['accountDataSizeLimit'];\n};\n\nexport function getSetLoadedAccountsDataSizeLimitInstruction(\n input: SetLoadedAccountsDataSizeLimitInput\n): SetLoadedAccountsDataSizeLimitInstruction<\n typeof COMPUTE_BUDGET_PROGRAM_ADDRESS\n> {\n // Program address.\n const programAddress = COMPUTE_BUDGET_PROGRAM_ADDRESS;\n\n // Original args.\n const args = { ...input };\n\n const instruction = {\n programAddress,\n data: getSetLoadedAccountsDataSizeLimitInstructionDataEncoder().encode(\n args as SetLoadedAccountsDataSizeLimitInstructionDataArgs\n ),\n } as SetLoadedAccountsDataSizeLimitInstruction<\n typeof COMPUTE_BUDGET_PROGRAM_ADDRESS\n >;\n\n return instruction;\n}\n\nexport type ParsedSetLoadedAccountsDataSizeLimitInstruction<\n TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS,\n> = {\n programAddress: Address<TProgram>;\n data: SetLoadedAccountsDataSizeLimitInstructionData;\n};\n\nexport function parseSetLoadedAccountsDataSizeLimitInstruction<\n TProgram extends string,\n>(\n instruction: IInstruction<TProgram> & IInstructionWithData<Uint8Array>\n): ParsedSetLoadedAccountsDataSizeLimitInstruction<TProgram> {\n return {\n programAddress: instruction.programAddress,\n data: getSetLoadedAccountsDataSizeLimitInstructionDataDecoder().decode(\n instruction.data\n ),\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
|
|
@@ -5,11 +5,9 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/metaplex-foundation/kinobi
|
|
7
7
|
*/
|
|
8
|
-
import { Address } from '@solana/
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
export type RequestHeapFrameInstruction<TProgram extends string = 'ComputeBudget111111111111111111111111111111', TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<TRemainingAccounts>;
|
|
12
|
-
export type RequestHeapFrameInstructionWithSigners<TProgram extends string = 'ComputeBudget111111111111111111111111111111', TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<TRemainingAccounts>;
|
|
8
|
+
import { Address, Codec, Decoder, Encoder, IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData } from '@solana/web3.js';
|
|
9
|
+
import { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export type RequestHeapFrameInstruction<TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<TRemainingAccounts>;
|
|
13
11
|
export type RequestHeapFrameInstructionData = {
|
|
14
12
|
discriminator: number;
|
|
15
13
|
/**
|
|
@@ -31,13 +29,8 @@ export declare function getRequestHeapFrameInstructionDataCodec(): Codec<Request
|
|
|
31
29
|
export type RequestHeapFrameInput = {
|
|
32
30
|
bytes: RequestHeapFrameInstructionDataArgs['bytes'];
|
|
33
31
|
};
|
|
34
|
-
export
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
export declare function getRequestHeapFrameInstruction<TProgram extends string = 'ComputeBudget111111111111111111111111111111'>(input: RequestHeapFrameInputWithSigners): RequestHeapFrameInstructionWithSigners<TProgram>;
|
|
38
|
-
export declare function getRequestHeapFrameInstruction<TProgram extends string = 'ComputeBudget111111111111111111111111111111'>(input: RequestHeapFrameInput): RequestHeapFrameInstruction<TProgram>;
|
|
39
|
-
export declare function getRequestHeapFrameInstructionRaw<TProgram extends string = 'ComputeBudget111111111111111111111111111111', TRemainingAccounts extends Array<IAccountMeta<string>> = []>(args: RequestHeapFrameInstructionDataArgs, programAddress?: Address<TProgram>, remainingAccounts?: TRemainingAccounts): RequestHeapFrameInstruction<TProgram, TRemainingAccounts>;
|
|
40
|
-
export type ParsedRequestHeapFrameInstruction<TProgram extends string = 'ComputeBudget111111111111111111111111111111'> = {
|
|
32
|
+
export declare function getRequestHeapFrameInstruction(input: RequestHeapFrameInput): RequestHeapFrameInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS>;
|
|
33
|
+
export type ParsedRequestHeapFrameInstruction<TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS> = {
|
|
41
34
|
programAddress: Address<TProgram>;
|
|
42
35
|
data: RequestHeapFrameInstructionData;
|
|
43
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestHeapFrame.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/requestHeapFrame.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"requestHeapFrame.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/requestHeapFrame.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EASrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAE7D,MAAM,MAAM,2BAA2B,CACrC,QAAQ,SAAS,MAAM,GAAG,OAAO,8BAA8B,EAC/D,kBAAkB,SAAS,SAAS,YAAY,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAC7D,YAAY,CAAC,QAAQ,CAAC,GACxB,oBAAoB,CAAC,UAAU,CAAC,GAChC,wBAAwB,CAAC,kBAAkB,CAAC,CAAC;AAE/C,MAAM,MAAM,+BAA+B,GAAG;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,yCAAyC,IAAI,OAAO,CAAC,mCAAmC,CAAC,CAQxG;AAED,wBAAgB,yCAAyC,IAAI,OAAO,CAAC,+BAA+B,CAAC,CAKpG;AAED,wBAAgB,uCAAuC,IAAI,KAAK,CAC9D,mCAAmC,EACnC,+BAA+B,CAChC,CAKA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,mCAAmC,CAAC,OAAO,CAAC,CAAC;CACrD,CAAC;AAEF,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,qBAAqB,GAC3B,2BAA2B,CAAC,OAAO,8BAA8B,CAAC,CAepE;AAED,MAAM,MAAM,iCAAiC,CAC3C,QAAQ,SAAS,MAAM,GAAG,OAAO,8BAA8B,IAC7D;IACF,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,IAAI,EAAE,+BAA+B,CAAC;CACvC,CAAC;AAEF,wBAAgB,gCAAgC,CAAC,QAAQ,SAAS,MAAM,EACtE,WAAW,EAAE,YAAY,CAAC,QAAQ,CAAC,GAAG,oBAAoB,CAAC,UAAU,CAAC,GACrE,iCAAiC,CAAC,QAAQ,CAAC,CAK7C"}
|
|
@@ -5,11 +5,9 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/metaplex-foundation/kinobi
|
|
7
7
|
*/
|
|
8
|
-
import { Address } from '@solana/
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
export type RequestUnitsInstruction<TProgram extends string = 'ComputeBudget111111111111111111111111111111', TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<TRemainingAccounts>;
|
|
12
|
-
export type RequestUnitsInstructionWithSigners<TProgram extends string = 'ComputeBudget111111111111111111111111111111', TRemainingAccounts extends Array<IAccountMeta<string>> = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<TRemainingAccounts>;
|
|
8
|
+
import { Address, Codec, Decoder, Encoder, IAccountMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData } from '@solana/web3.js';
|
|
9
|
+
import { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export type RequestUnitsInstruction<TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<TRemainingAccounts>;
|
|
13
11
|
export type RequestUnitsInstructionData = {
|
|
14
12
|
discriminator: number;
|
|
15
13
|
/** Units to request for transaction-wide compute. */
|
|
@@ -30,14 +28,8 @@ export type RequestUnitsInput = {
|
|
|
30
28
|
units: RequestUnitsInstructionDataArgs['units'];
|
|
31
29
|
additionalFee: RequestUnitsInstructionDataArgs['additionalFee'];
|
|
32
30
|
};
|
|
33
|
-
export
|
|
34
|
-
|
|
35
|
-
additionalFee: RequestUnitsInstructionDataArgs['additionalFee'];
|
|
36
|
-
};
|
|
37
|
-
export declare function getRequestUnitsInstruction<TProgram extends string = 'ComputeBudget111111111111111111111111111111'>(input: RequestUnitsInputWithSigners): RequestUnitsInstructionWithSigners<TProgram>;
|
|
38
|
-
export declare function getRequestUnitsInstruction<TProgram extends string = 'ComputeBudget111111111111111111111111111111'>(input: RequestUnitsInput): RequestUnitsInstruction<TProgram>;
|
|
39
|
-
export declare function getRequestUnitsInstructionRaw<TProgram extends string = 'ComputeBudget111111111111111111111111111111', TRemainingAccounts extends Array<IAccountMeta<string>> = []>(args: RequestUnitsInstructionDataArgs, programAddress?: Address<TProgram>, remainingAccounts?: TRemainingAccounts): RequestUnitsInstruction<TProgram, TRemainingAccounts>;
|
|
40
|
-
export type ParsedRequestUnitsInstruction<TProgram extends string = 'ComputeBudget111111111111111111111111111111'> = {
|
|
31
|
+
export declare function getRequestUnitsInstruction(input: RequestUnitsInput): RequestUnitsInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS>;
|
|
32
|
+
export type ParsedRequestUnitsInstruction<TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS> = {
|
|
41
33
|
programAddress: Address<TProgram>;
|
|
42
34
|
data: RequestUnitsInstructionData;
|
|
43
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestUnits.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/requestUnits.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"requestUnits.d.ts","sourceRoot":"","sources":["../../../../../src/generated/instructions/requestUnits.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EASrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAE7D,MAAM,MAAM,uBAAuB,CACjC,QAAQ,SAAS,MAAM,GAAG,OAAO,8BAA8B,EAC/D,kBAAkB,SAAS,SAAS,YAAY,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAC7D,YAAY,CAAC,QAAQ,CAAC,GACxB,oBAAoB,CAAC,UAAU,CAAC,GAChC,wBAAwB,CAAC,kBAAkB,CAAC,CAAC;AAE/C,MAAM,MAAM,2BAA2B,GAAG;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,aAAa,EAAE,MAAM,C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