@solana-program/system 0.3.1 → 0.3.3
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.js +259 -162
- package/dist/src/index.js.map +1 -1
- package/dist/src/{index.cjs → index.mjs} +163 -260
- package/dist/src/index.mjs.map +1 -0
- package/dist/types/generated/accounts/index.d.ts.map +1 -0
- package/dist/types/generated/accounts/nonce.d.ts.map +1 -0
- package/dist/types/generated/errors/index.d.ts.map +1 -0
- package/dist/types/generated/errors/system.d.ts.map +1 -0
- package/dist/types/generated/index.d.ts.map +1 -0
- package/dist/types/generated/instructions/advanceNonceAccount.d.ts.map +1 -0
- package/dist/types/generated/instructions/allocate.d.ts.map +1 -0
- package/dist/types/generated/instructions/allocateWithSeed.d.ts.map +1 -0
- package/dist/types/generated/instructions/assign.d.ts.map +1 -0
- package/dist/types/generated/instructions/assignWithSeed.d.ts.map +1 -0
- package/dist/types/generated/instructions/authorizeNonceAccount.d.ts.map +1 -0
- package/dist/types/generated/instructions/createAccount.d.ts.map +1 -0
- package/dist/types/generated/instructions/createAccountWithSeed.d.ts.map +1 -0
- package/dist/types/generated/instructions/index.d.ts.map +1 -0
- package/dist/types/generated/instructions/initializeNonceAccount.d.ts.map +1 -0
- package/dist/types/generated/instructions/transferSol.d.ts.map +1 -0
- package/dist/types/generated/instructions/transferSolWithSeed.d.ts.map +1 -0
- package/dist/types/generated/instructions/upgradeNonceAccount.d.ts.map +1 -0
- package/dist/types/generated/instructions/withdrawNonceAccount.d.ts.map +1 -0
- package/dist/types/generated/programs/index.d.ts.map +1 -0
- package/dist/types/generated/programs/system.d.ts.map +1 -0
- package/dist/types/generated/shared/index.d.ts.map +1 -0
- package/dist/types/generated/types/index.d.ts.map +1 -0
- package/dist/types/generated/types/nonceState.d.ts.map +1 -0
- package/dist/types/generated/types/nonceVersion.d.ts.map +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +9 -10
- package/dist/src/index.cjs.map +0 -1
- package/dist/types/src/generated/accounts/index.d.ts.map +0 -1
- package/dist/types/src/generated/accounts/nonce.d.ts.map +0 -1
- package/dist/types/src/generated/errors/index.d.ts.map +0 -1
- package/dist/types/src/generated/errors/system.d.ts.map +0 -1
- package/dist/types/src/generated/index.d.ts.map +0 -1
- package/dist/types/src/generated/instructions/advanceNonceAccount.d.ts.map +0 -1
- package/dist/types/src/generated/instructions/allocate.d.ts.map +0 -1
- package/dist/types/src/generated/instructions/allocateWithSeed.d.ts.map +0 -1
- package/dist/types/src/generated/instructions/assign.d.ts.map +0 -1
- package/dist/types/src/generated/instructions/assignWithSeed.d.ts.map +0 -1
- package/dist/types/src/generated/instructions/authorizeNonceAccount.d.ts.map +0 -1
- package/dist/types/src/generated/instructions/createAccount.d.ts.map +0 -1
- package/dist/types/src/generated/instructions/createAccountWithSeed.d.ts.map +0 -1
- package/dist/types/src/generated/instructions/index.d.ts.map +0 -1
- package/dist/types/src/generated/instructions/initializeNonceAccount.d.ts.map +0 -1
- package/dist/types/src/generated/instructions/transferSol.d.ts.map +0 -1
- package/dist/types/src/generated/instructions/transferSolWithSeed.d.ts.map +0 -1
- package/dist/types/src/generated/instructions/upgradeNonceAccount.d.ts.map +0 -1
- package/dist/types/src/generated/instructions/withdrawNonceAccount.d.ts.map +0 -1
- package/dist/types/src/generated/programs/index.d.ts.map +0 -1
- package/dist/types/src/generated/programs/system.d.ts.map +0 -1
- package/dist/types/src/generated/shared/index.d.ts.map +0 -1
- package/dist/types/src/generated/types/index.d.ts.map +0 -1
- package/dist/types/src/generated/types/nonceState.d.ts.map +0 -1
- package/dist/types/src/generated/types/nonceVersion.d.ts.map +0 -1
- package/dist/types/src/index.d.ts.map +0 -1
- package/dist/types/test/_setup.d.ts +0 -16
- package/dist/types/test/_setup.d.ts.map +0 -1
- package/dist/types/test/advanceNonceAccount.test.d.ts +0 -2
- package/dist/types/test/advanceNonceAccount.test.d.ts.map +0 -1
- package/dist/types/test/createAccount.test.d.ts +0 -2
- package/dist/types/test/createAccount.test.d.ts.map +0 -1
- package/dist/types/test/initializeNonceAccount.test.d.ts +0 -2
- package/dist/types/test/initializeNonceAccount.test.d.ts.map +0 -1
- package/dist/types/test/transferSol.test.d.ts +0 -2
- package/dist/types/test/transferSol.test.d.ts.map +0 -1
- /package/dist/types/{src/generated → generated}/accounts/index.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/accounts/nonce.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/errors/index.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/errors/system.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/index.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/instructions/advanceNonceAccount.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/instructions/allocate.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/instructions/allocateWithSeed.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/instructions/assign.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/instructions/assignWithSeed.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/instructions/authorizeNonceAccount.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/instructions/createAccount.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/instructions/createAccountWithSeed.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/instructions/index.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/instructions/initializeNonceAccount.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/instructions/transferSol.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/instructions/transferSolWithSeed.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/instructions/upgradeNonceAccount.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/instructions/withdrawNonceAccount.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/programs/index.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/programs/system.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/shared/index.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/types/index.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/types/nonceState.d.ts +0 -0
- /package/dist/types/{src/generated → generated}/types/nonceVersion.d.ts +0 -0
- /package/dist/types/{src/index.d.ts → index.d.ts} +0 -0
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var web3_js = require('@solana/web3.js');
|
|
1
|
+
import { getEnumEncoder, getU32Encoder, getEnumDecoder, getU32Decoder, combineCodec, getStructEncoder, getAddressEncoder, getU64Encoder, getStructDecoder, getAddressDecoder, getU64Decoder, decodeAccount, assertAccountExists, fetchEncodedAccount, assertAccountsExist, fetchEncodedAccounts, containsBytes, transformEncoder, addEncoderSizePrefix, getUtf8Encoder, addDecoderSizePrefix, getUtf8Decoder, BASE_ACCOUNT_SIZE, AccountRole, upgradeRoleToSigner, isTransactionSigner as isTransactionSigner$1 } from '@solana/web3.js';
|
|
4
2
|
|
|
5
3
|
// env-shim.ts
|
|
6
4
|
var __DEV__ = /* @__PURE__ */ (() => process["env"].NODE_ENV === "development")();
|
|
@@ -10,13 +8,13 @@ var NonceState = /* @__PURE__ */ ((NonceState3) => {
|
|
|
10
8
|
return NonceState3;
|
|
11
9
|
})(NonceState || {});
|
|
12
10
|
function getNonceStateEncoder() {
|
|
13
|
-
return
|
|
11
|
+
return getEnumEncoder(NonceState, { size: getU32Encoder() });
|
|
14
12
|
}
|
|
15
13
|
function getNonceStateDecoder() {
|
|
16
|
-
return
|
|
14
|
+
return getEnumDecoder(NonceState, { size: getU32Decoder() });
|
|
17
15
|
}
|
|
18
16
|
function getNonceStateCodec() {
|
|
19
|
-
return
|
|
17
|
+
return combineCodec(getNonceStateEncoder(), getNonceStateDecoder());
|
|
20
18
|
}
|
|
21
19
|
var NonceVersion = /* @__PURE__ */ ((NonceVersion3) => {
|
|
22
20
|
NonceVersion3[NonceVersion3["Legacy"] = 0] = "Legacy";
|
|
@@ -24,59 +22,59 @@ var NonceVersion = /* @__PURE__ */ ((NonceVersion3) => {
|
|
|
24
22
|
return NonceVersion3;
|
|
25
23
|
})(NonceVersion || {});
|
|
26
24
|
function getNonceVersionEncoder() {
|
|
27
|
-
return
|
|
25
|
+
return getEnumEncoder(NonceVersion, { size: getU32Encoder() });
|
|
28
26
|
}
|
|
29
27
|
function getNonceVersionDecoder() {
|
|
30
|
-
return
|
|
28
|
+
return getEnumDecoder(NonceVersion, { size: getU32Decoder() });
|
|
31
29
|
}
|
|
32
30
|
function getNonceVersionCodec() {
|
|
33
|
-
return
|
|
31
|
+
return combineCodec(getNonceVersionEncoder(), getNonceVersionDecoder());
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
// src/generated/accounts/nonce.ts
|
|
37
35
|
function getNonceEncoder() {
|
|
38
|
-
return
|
|
36
|
+
return getStructEncoder([
|
|
39
37
|
["version", getNonceVersionEncoder()],
|
|
40
38
|
["state", getNonceStateEncoder()],
|
|
41
|
-
["authority",
|
|
42
|
-
["blockhash",
|
|
43
|
-
["lamportsPerSignature",
|
|
39
|
+
["authority", getAddressEncoder()],
|
|
40
|
+
["blockhash", getAddressEncoder()],
|
|
41
|
+
["lamportsPerSignature", getU64Encoder()]
|
|
44
42
|
]);
|
|
45
43
|
}
|
|
46
44
|
function getNonceDecoder() {
|
|
47
|
-
return
|
|
45
|
+
return getStructDecoder([
|
|
48
46
|
["version", getNonceVersionDecoder()],
|
|
49
47
|
["state", getNonceStateDecoder()],
|
|
50
|
-
["authority",
|
|
51
|
-
["blockhash",
|
|
52
|
-
["lamportsPerSignature",
|
|
48
|
+
["authority", getAddressDecoder()],
|
|
49
|
+
["blockhash", getAddressDecoder()],
|
|
50
|
+
["lamportsPerSignature", getU64Decoder()]
|
|
53
51
|
]);
|
|
54
52
|
}
|
|
55
53
|
function getNonceCodec() {
|
|
56
|
-
return
|
|
54
|
+
return combineCodec(getNonceEncoder(), getNonceDecoder());
|
|
57
55
|
}
|
|
58
56
|
function decodeNonce(encodedAccount) {
|
|
59
|
-
return
|
|
57
|
+
return decodeAccount(
|
|
60
58
|
encodedAccount,
|
|
61
59
|
getNonceDecoder()
|
|
62
60
|
);
|
|
63
61
|
}
|
|
64
62
|
async function fetchNonce(rpc, address, config) {
|
|
65
63
|
const maybeAccount = await fetchMaybeNonce(rpc, address, config);
|
|
66
|
-
|
|
64
|
+
assertAccountExists(maybeAccount);
|
|
67
65
|
return maybeAccount;
|
|
68
66
|
}
|
|
69
67
|
async function fetchMaybeNonce(rpc, address, config) {
|
|
70
|
-
const maybeAccount = await
|
|
68
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address, config);
|
|
71
69
|
return decodeNonce(maybeAccount);
|
|
72
70
|
}
|
|
73
71
|
async function fetchAllNonce(rpc, addresses, config) {
|
|
74
72
|
const maybeAccounts = await fetchAllMaybeNonce(rpc, addresses, config);
|
|
75
|
-
|
|
73
|
+
assertAccountsExist(maybeAccounts);
|
|
76
74
|
return maybeAccounts;
|
|
77
75
|
}
|
|
78
76
|
async function fetchAllMaybeNonce(rpc, addresses, config) {
|
|
79
|
-
const maybeAccounts = await
|
|
77
|
+
const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
|
|
80
78
|
return maybeAccounts.map((maybeAccount) => decodeNonce(maybeAccount));
|
|
81
79
|
}
|
|
82
80
|
function getNonceSize() {
|
|
@@ -136,43 +134,43 @@ var SystemInstruction = /* @__PURE__ */ ((SystemInstruction2) => {
|
|
|
136
134
|
})(SystemInstruction || {});
|
|
137
135
|
function identifySystemInstruction(instruction) {
|
|
138
136
|
const data = instruction instanceof Uint8Array ? instruction : instruction.data;
|
|
139
|
-
if (
|
|
137
|
+
if (containsBytes(data, getU32Encoder().encode(0), 0)) {
|
|
140
138
|
return 0 /* CreateAccount */;
|
|
141
139
|
}
|
|
142
|
-
if (
|
|
140
|
+
if (containsBytes(data, getU32Encoder().encode(1), 0)) {
|
|
143
141
|
return 1 /* Assign */;
|
|
144
142
|
}
|
|
145
|
-
if (
|
|
143
|
+
if (containsBytes(data, getU32Encoder().encode(2), 0)) {
|
|
146
144
|
return 2 /* TransferSol */;
|
|
147
145
|
}
|
|
148
|
-
if (
|
|
146
|
+
if (containsBytes(data, getU32Encoder().encode(3), 0)) {
|
|
149
147
|
return 3 /* CreateAccountWithSeed */;
|
|
150
148
|
}
|
|
151
|
-
if (
|
|
149
|
+
if (containsBytes(data, getU32Encoder().encode(4), 0)) {
|
|
152
150
|
return 4 /* AdvanceNonceAccount */;
|
|
153
151
|
}
|
|
154
|
-
if (
|
|
152
|
+
if (containsBytes(data, getU32Encoder().encode(5), 0)) {
|
|
155
153
|
return 5 /* WithdrawNonceAccount */;
|
|
156
154
|
}
|
|
157
|
-
if (
|
|
155
|
+
if (containsBytes(data, getU32Encoder().encode(6), 0)) {
|
|
158
156
|
return 6 /* InitializeNonceAccount */;
|
|
159
157
|
}
|
|
160
|
-
if (
|
|
158
|
+
if (containsBytes(data, getU32Encoder().encode(7), 0)) {
|
|
161
159
|
return 7 /* AuthorizeNonceAccount */;
|
|
162
160
|
}
|
|
163
|
-
if (
|
|
161
|
+
if (containsBytes(data, getU32Encoder().encode(8), 0)) {
|
|
164
162
|
return 8 /* Allocate */;
|
|
165
163
|
}
|
|
166
|
-
if (
|
|
164
|
+
if (containsBytes(data, getU32Encoder().encode(9), 0)) {
|
|
167
165
|
return 9 /* AllocateWithSeed */;
|
|
168
166
|
}
|
|
169
|
-
if (
|
|
167
|
+
if (containsBytes(data, getU32Encoder().encode(10), 0)) {
|
|
170
168
|
return 10 /* AssignWithSeed */;
|
|
171
169
|
}
|
|
172
|
-
if (
|
|
170
|
+
if (containsBytes(data, getU32Encoder().encode(11), 0)) {
|
|
173
171
|
return 11 /* TransferSolWithSeed */;
|
|
174
172
|
}
|
|
175
|
-
if (
|
|
173
|
+
if (containsBytes(data, getU32Encoder().encode(12), 0)) {
|
|
176
174
|
return 12 /* UpgradeNonceAccount */;
|
|
177
175
|
}
|
|
178
176
|
throw new Error(
|
|
@@ -196,33 +194,33 @@ function getAccountMetaFactory(programAddress, optionalAccountStrategy) {
|
|
|
196
194
|
if (!account.value) {
|
|
197
195
|
return Object.freeze({
|
|
198
196
|
address: programAddress,
|
|
199
|
-
role:
|
|
197
|
+
role: AccountRole.READONLY
|
|
200
198
|
});
|
|
201
199
|
}
|
|
202
|
-
const writableRole = account.isWritable ?
|
|
200
|
+
const writableRole = account.isWritable ? AccountRole.WRITABLE : AccountRole.READONLY;
|
|
203
201
|
return Object.freeze({
|
|
204
202
|
address: expectAddress(account.value),
|
|
205
|
-
role: isTransactionSigner(account.value) ?
|
|
203
|
+
role: isTransactionSigner(account.value) ? upgradeRoleToSigner(writableRole) : writableRole,
|
|
206
204
|
...isTransactionSigner(account.value) ? { signer: account.value } : {}
|
|
207
205
|
});
|
|
208
206
|
};
|
|
209
207
|
}
|
|
210
208
|
function isTransactionSigner(value) {
|
|
211
|
-
return !!value && typeof value === "object" && "address" in value &&
|
|
209
|
+
return !!value && typeof value === "object" && "address" in value && isTransactionSigner$1(value);
|
|
212
210
|
}
|
|
213
211
|
|
|
214
212
|
// src/generated/instructions/advanceNonceAccount.ts
|
|
215
213
|
function getAdvanceNonceAccountInstructionDataEncoder() {
|
|
216
|
-
return
|
|
217
|
-
|
|
214
|
+
return transformEncoder(
|
|
215
|
+
getStructEncoder([["discriminator", getU32Encoder()]]),
|
|
218
216
|
(value) => ({ ...value, discriminator: 4 })
|
|
219
217
|
);
|
|
220
218
|
}
|
|
221
219
|
function getAdvanceNonceAccountInstructionDataDecoder() {
|
|
222
|
-
return
|
|
220
|
+
return getStructDecoder([["discriminator", getU32Decoder()]]);
|
|
223
221
|
}
|
|
224
222
|
function getAdvanceNonceAccountInstructionDataCodec() {
|
|
225
|
-
return
|
|
223
|
+
return combineCodec(
|
|
226
224
|
getAdvanceNonceAccountInstructionDataEncoder(),
|
|
227
225
|
getAdvanceNonceAccountInstructionDataDecoder()
|
|
228
226
|
);
|
|
@@ -276,22 +274,22 @@ function parseAdvanceNonceAccountInstruction(instruction) {
|
|
|
276
274
|
};
|
|
277
275
|
}
|
|
278
276
|
function getAllocateInstructionDataEncoder() {
|
|
279
|
-
return
|
|
280
|
-
|
|
281
|
-
["discriminator",
|
|
282
|
-
["space",
|
|
277
|
+
return transformEncoder(
|
|
278
|
+
getStructEncoder([
|
|
279
|
+
["discriminator", getU32Encoder()],
|
|
280
|
+
["space", getU64Encoder()]
|
|
283
281
|
]),
|
|
284
282
|
(value) => ({ ...value, discriminator: 8 })
|
|
285
283
|
);
|
|
286
284
|
}
|
|
287
285
|
function getAllocateInstructionDataDecoder() {
|
|
288
|
-
return
|
|
289
|
-
["discriminator",
|
|
290
|
-
["space",
|
|
286
|
+
return getStructDecoder([
|
|
287
|
+
["discriminator", getU32Decoder()],
|
|
288
|
+
["space", getU64Decoder()]
|
|
291
289
|
]);
|
|
292
290
|
}
|
|
293
291
|
function getAllocateInstructionDataCodec() {
|
|
294
|
-
return
|
|
292
|
+
return combineCodec(
|
|
295
293
|
getAllocateInstructionDataEncoder(),
|
|
296
294
|
getAllocateInstructionDataDecoder()
|
|
297
295
|
);
|
|
@@ -332,28 +330,28 @@ function parseAllocateInstruction(instruction) {
|
|
|
332
330
|
};
|
|
333
331
|
}
|
|
334
332
|
function getAllocateWithSeedInstructionDataEncoder() {
|
|
335
|
-
return
|
|
336
|
-
|
|
337
|
-
["discriminator",
|
|
338
|
-
["base",
|
|
339
|
-
["seed",
|
|
340
|
-
["space",
|
|
341
|
-
["programAddress",
|
|
333
|
+
return transformEncoder(
|
|
334
|
+
getStructEncoder([
|
|
335
|
+
["discriminator", getU32Encoder()],
|
|
336
|
+
["base", getAddressEncoder()],
|
|
337
|
+
["seed", addEncoderSizePrefix(getUtf8Encoder(), getU64Encoder())],
|
|
338
|
+
["space", getU64Encoder()],
|
|
339
|
+
["programAddress", getAddressEncoder()]
|
|
342
340
|
]),
|
|
343
341
|
(value) => ({ ...value, discriminator: 9 })
|
|
344
342
|
);
|
|
345
343
|
}
|
|
346
344
|
function getAllocateWithSeedInstructionDataDecoder() {
|
|
347
|
-
return
|
|
348
|
-
["discriminator",
|
|
349
|
-
["base",
|
|
350
|
-
["seed",
|
|
351
|
-
["space",
|
|
352
|
-
["programAddress",
|
|
345
|
+
return getStructDecoder([
|
|
346
|
+
["discriminator", getU32Decoder()],
|
|
347
|
+
["base", getAddressDecoder()],
|
|
348
|
+
["seed", addDecoderSizePrefix(getUtf8Decoder(), getU64Decoder())],
|
|
349
|
+
["space", getU64Decoder()],
|
|
350
|
+
["programAddress", getAddressDecoder()]
|
|
353
351
|
]);
|
|
354
352
|
}
|
|
355
353
|
function getAllocateWithSeedInstructionDataCodec() {
|
|
356
|
-
return
|
|
354
|
+
return combineCodec(
|
|
357
355
|
getAllocateWithSeedInstructionDataEncoder(),
|
|
358
356
|
getAllocateWithSeedInstructionDataDecoder()
|
|
359
357
|
);
|
|
@@ -399,22 +397,22 @@ function parseAllocateWithSeedInstruction(instruction) {
|
|
|
399
397
|
};
|
|
400
398
|
}
|
|
401
399
|
function getAssignInstructionDataEncoder() {
|
|
402
|
-
return
|
|
403
|
-
|
|
404
|
-
["discriminator",
|
|
405
|
-
["programAddress",
|
|
400
|
+
return transformEncoder(
|
|
401
|
+
getStructEncoder([
|
|
402
|
+
["discriminator", getU32Encoder()],
|
|
403
|
+
["programAddress", getAddressEncoder()]
|
|
406
404
|
]),
|
|
407
405
|
(value) => ({ ...value, discriminator: 1 })
|
|
408
406
|
);
|
|
409
407
|
}
|
|
410
408
|
function getAssignInstructionDataDecoder() {
|
|
411
|
-
return
|
|
412
|
-
["discriminator",
|
|
413
|
-
["programAddress",
|
|
409
|
+
return getStructDecoder([
|
|
410
|
+
["discriminator", getU32Decoder()],
|
|
411
|
+
["programAddress", getAddressDecoder()]
|
|
414
412
|
]);
|
|
415
413
|
}
|
|
416
414
|
function getAssignInstructionDataCodec() {
|
|
417
|
-
return
|
|
415
|
+
return combineCodec(
|
|
418
416
|
getAssignInstructionDataEncoder(),
|
|
419
417
|
getAssignInstructionDataDecoder()
|
|
420
418
|
);
|
|
@@ -455,26 +453,26 @@ function parseAssignInstruction(instruction) {
|
|
|
455
453
|
};
|
|
456
454
|
}
|
|
457
455
|
function getAssignWithSeedInstructionDataEncoder() {
|
|
458
|
-
return
|
|
459
|
-
|
|
460
|
-
["discriminator",
|
|
461
|
-
["base",
|
|
462
|
-
["seed",
|
|
463
|
-
["programAddress",
|
|
456
|
+
return transformEncoder(
|
|
457
|
+
getStructEncoder([
|
|
458
|
+
["discriminator", getU32Encoder()],
|
|
459
|
+
["base", getAddressEncoder()],
|
|
460
|
+
["seed", addEncoderSizePrefix(getUtf8Encoder(), getU64Encoder())],
|
|
461
|
+
["programAddress", getAddressEncoder()]
|
|
464
462
|
]),
|
|
465
463
|
(value) => ({ ...value, discriminator: 10 })
|
|
466
464
|
);
|
|
467
465
|
}
|
|
468
466
|
function getAssignWithSeedInstructionDataDecoder() {
|
|
469
|
-
return
|
|
470
|
-
["discriminator",
|
|
471
|
-
["base",
|
|
472
|
-
["seed",
|
|
473
|
-
["programAddress",
|
|
467
|
+
return getStructDecoder([
|
|
468
|
+
["discriminator", getU32Decoder()],
|
|
469
|
+
["base", getAddressDecoder()],
|
|
470
|
+
["seed", addDecoderSizePrefix(getUtf8Decoder(), getU64Decoder())],
|
|
471
|
+
["programAddress", getAddressDecoder()]
|
|
474
472
|
]);
|
|
475
473
|
}
|
|
476
474
|
function getAssignWithSeedInstructionDataCodec() {
|
|
477
|
-
return
|
|
475
|
+
return combineCodec(
|
|
478
476
|
getAssignWithSeedInstructionDataEncoder(),
|
|
479
477
|
getAssignWithSeedInstructionDataDecoder()
|
|
480
478
|
);
|
|
@@ -520,22 +518,22 @@ function parseAssignWithSeedInstruction(instruction) {
|
|
|
520
518
|
};
|
|
521
519
|
}
|
|
522
520
|
function getAuthorizeNonceAccountInstructionDataEncoder() {
|
|
523
|
-
return
|
|
524
|
-
|
|
525
|
-
["discriminator",
|
|
526
|
-
["newNonceAuthority",
|
|
521
|
+
return transformEncoder(
|
|
522
|
+
getStructEncoder([
|
|
523
|
+
["discriminator", getU32Encoder()],
|
|
524
|
+
["newNonceAuthority", getAddressEncoder()]
|
|
527
525
|
]),
|
|
528
526
|
(value) => ({ ...value, discriminator: 7 })
|
|
529
527
|
);
|
|
530
528
|
}
|
|
531
529
|
function getAuthorizeNonceAccountInstructionDataDecoder() {
|
|
532
|
-
return
|
|
533
|
-
["discriminator",
|
|
534
|
-
["newNonceAuthority",
|
|
530
|
+
return getStructDecoder([
|
|
531
|
+
["discriminator", getU32Decoder()],
|
|
532
|
+
["newNonceAuthority", getAddressDecoder()]
|
|
535
533
|
]);
|
|
536
534
|
}
|
|
537
535
|
function getAuthorizeNonceAccountInstructionDataCodec() {
|
|
538
|
-
return
|
|
536
|
+
return combineCodec(
|
|
539
537
|
getAuthorizeNonceAccountInstructionDataEncoder(),
|
|
540
538
|
getAuthorizeNonceAccountInstructionDataDecoder()
|
|
541
539
|
);
|
|
@@ -583,26 +581,26 @@ function parseAuthorizeNonceAccountInstruction(instruction) {
|
|
|
583
581
|
};
|
|
584
582
|
}
|
|
585
583
|
function getCreateAccountInstructionDataEncoder() {
|
|
586
|
-
return
|
|
587
|
-
|
|
588
|
-
["discriminator",
|
|
589
|
-
["lamports",
|
|
590
|
-
["space",
|
|
591
|
-
["programAddress",
|
|
584
|
+
return transformEncoder(
|
|
585
|
+
getStructEncoder([
|
|
586
|
+
["discriminator", getU32Encoder()],
|
|
587
|
+
["lamports", getU64Encoder()],
|
|
588
|
+
["space", getU64Encoder()],
|
|
589
|
+
["programAddress", getAddressEncoder()]
|
|
592
590
|
]),
|
|
593
591
|
(value) => ({ ...value, discriminator: 0 })
|
|
594
592
|
);
|
|
595
593
|
}
|
|
596
594
|
function getCreateAccountInstructionDataDecoder() {
|
|
597
|
-
return
|
|
598
|
-
["discriminator",
|
|
599
|
-
["lamports",
|
|
600
|
-
["space",
|
|
601
|
-
["programAddress",
|
|
595
|
+
return getStructDecoder([
|
|
596
|
+
["discriminator", getU32Decoder()],
|
|
597
|
+
["lamports", getU64Decoder()],
|
|
598
|
+
["space", getU64Decoder()],
|
|
599
|
+
["programAddress", getAddressDecoder()]
|
|
602
600
|
]);
|
|
603
601
|
}
|
|
604
602
|
function getCreateAccountInstructionDataCodec() {
|
|
605
|
-
return
|
|
603
|
+
return combineCodec(
|
|
606
604
|
getCreateAccountInstructionDataEncoder(),
|
|
607
605
|
getCreateAccountInstructionDataDecoder()
|
|
608
606
|
);
|
|
@@ -615,7 +613,7 @@ function getCreateAccountInstruction(input) {
|
|
|
615
613
|
};
|
|
616
614
|
const accounts = originalAccounts;
|
|
617
615
|
const args = { ...input };
|
|
618
|
-
const byteDelta = [Number(args.space) +
|
|
616
|
+
const byteDelta = [Number(args.space) + BASE_ACCOUNT_SIZE].reduce(
|
|
619
617
|
(a, b) => a + b,
|
|
620
618
|
0
|
|
621
619
|
);
|
|
@@ -652,30 +650,30 @@ function parseCreateAccountInstruction(instruction) {
|
|
|
652
650
|
};
|
|
653
651
|
}
|
|
654
652
|
function getCreateAccountWithSeedInstructionDataEncoder() {
|
|
655
|
-
return
|
|
656
|
-
|
|
657
|
-
["discriminator",
|
|
658
|
-
["base",
|
|
659
|
-
["seed",
|
|
660
|
-
["amount",
|
|
661
|
-
["space",
|
|
662
|
-
["programAddress",
|
|
653
|
+
return transformEncoder(
|
|
654
|
+
getStructEncoder([
|
|
655
|
+
["discriminator", getU32Encoder()],
|
|
656
|
+
["base", getAddressEncoder()],
|
|
657
|
+
["seed", addEncoderSizePrefix(getUtf8Encoder(), getU64Encoder())],
|
|
658
|
+
["amount", getU64Encoder()],
|
|
659
|
+
["space", getU64Encoder()],
|
|
660
|
+
["programAddress", getAddressEncoder()]
|
|
663
661
|
]),
|
|
664
662
|
(value) => ({ ...value, discriminator: 3 })
|
|
665
663
|
);
|
|
666
664
|
}
|
|
667
665
|
function getCreateAccountWithSeedInstructionDataDecoder() {
|
|
668
|
-
return
|
|
669
|
-
["discriminator",
|
|
670
|
-
["base",
|
|
671
|
-
["seed",
|
|
672
|
-
["amount",
|
|
673
|
-
["space",
|
|
674
|
-
["programAddress",
|
|
666
|
+
return getStructDecoder([
|
|
667
|
+
["discriminator", getU32Decoder()],
|
|
668
|
+
["base", getAddressDecoder()],
|
|
669
|
+
["seed", addDecoderSizePrefix(getUtf8Decoder(), getU64Decoder())],
|
|
670
|
+
["amount", getU64Decoder()],
|
|
671
|
+
["space", getU64Decoder()],
|
|
672
|
+
["programAddress", getAddressDecoder()]
|
|
675
673
|
]);
|
|
676
674
|
}
|
|
677
675
|
function getCreateAccountWithSeedInstructionDataCodec() {
|
|
678
|
-
return
|
|
676
|
+
return combineCodec(
|
|
679
677
|
getCreateAccountWithSeedInstructionDataEncoder(),
|
|
680
678
|
getCreateAccountWithSeedInstructionDataDecoder()
|
|
681
679
|
);
|
|
@@ -726,22 +724,22 @@ function parseCreateAccountWithSeedInstruction(instruction) {
|
|
|
726
724
|
};
|
|
727
725
|
}
|
|
728
726
|
function getInitializeNonceAccountInstructionDataEncoder() {
|
|
729
|
-
return
|
|
730
|
-
|
|
731
|
-
["discriminator",
|
|
732
|
-
["nonceAuthority",
|
|
727
|
+
return transformEncoder(
|
|
728
|
+
getStructEncoder([
|
|
729
|
+
["discriminator", getU32Encoder()],
|
|
730
|
+
["nonceAuthority", getAddressEncoder()]
|
|
733
731
|
]),
|
|
734
732
|
(value) => ({ ...value, discriminator: 6 })
|
|
735
733
|
);
|
|
736
734
|
}
|
|
737
735
|
function getInitializeNonceAccountInstructionDataDecoder() {
|
|
738
|
-
return
|
|
739
|
-
["discriminator",
|
|
740
|
-
["nonceAuthority",
|
|
736
|
+
return getStructDecoder([
|
|
737
|
+
["discriminator", getU32Decoder()],
|
|
738
|
+
["nonceAuthority", getAddressDecoder()]
|
|
741
739
|
]);
|
|
742
740
|
}
|
|
743
741
|
function getInitializeNonceAccountInstructionDataCodec() {
|
|
744
|
-
return
|
|
742
|
+
return combineCodec(
|
|
745
743
|
getInitializeNonceAccountInstructionDataEncoder(),
|
|
746
744
|
getInitializeNonceAccountInstructionDataDecoder()
|
|
747
745
|
);
|
|
@@ -801,22 +799,22 @@ function parseInitializeNonceAccountInstruction(instruction) {
|
|
|
801
799
|
};
|
|
802
800
|
}
|
|
803
801
|
function getTransferSolInstructionDataEncoder() {
|
|
804
|
-
return
|
|
805
|
-
|
|
806
|
-
["discriminator",
|
|
807
|
-
["amount",
|
|
802
|
+
return transformEncoder(
|
|
803
|
+
getStructEncoder([
|
|
804
|
+
["discriminator", getU32Encoder()],
|
|
805
|
+
["amount", getU64Encoder()]
|
|
808
806
|
]),
|
|
809
807
|
(value) => ({ ...value, discriminator: 2 })
|
|
810
808
|
);
|
|
811
809
|
}
|
|
812
810
|
function getTransferSolInstructionDataDecoder() {
|
|
813
|
-
return
|
|
814
|
-
["discriminator",
|
|
815
|
-
["amount",
|
|
811
|
+
return getStructDecoder([
|
|
812
|
+
["discriminator", getU32Decoder()],
|
|
813
|
+
["amount", getU64Decoder()]
|
|
816
814
|
]);
|
|
817
815
|
}
|
|
818
816
|
function getTransferSolInstructionDataCodec() {
|
|
819
|
-
return
|
|
817
|
+
return combineCodec(
|
|
820
818
|
getTransferSolInstructionDataEncoder(),
|
|
821
819
|
getTransferSolInstructionDataDecoder()
|
|
822
820
|
);
|
|
@@ -862,26 +860,26 @@ function parseTransferSolInstruction(instruction) {
|
|
|
862
860
|
};
|
|
863
861
|
}
|
|
864
862
|
function getTransferSolWithSeedInstructionDataEncoder() {
|
|
865
|
-
return
|
|
866
|
-
|
|
867
|
-
["discriminator",
|
|
868
|
-
["amount",
|
|
869
|
-
["fromSeed",
|
|
870
|
-
["fromOwner",
|
|
863
|
+
return transformEncoder(
|
|
864
|
+
getStructEncoder([
|
|
865
|
+
["discriminator", getU32Encoder()],
|
|
866
|
+
["amount", getU64Encoder()],
|
|
867
|
+
["fromSeed", addEncoderSizePrefix(getUtf8Encoder(), getU64Encoder())],
|
|
868
|
+
["fromOwner", getAddressEncoder()]
|
|
871
869
|
]),
|
|
872
870
|
(value) => ({ ...value, discriminator: 11 })
|
|
873
871
|
);
|
|
874
872
|
}
|
|
875
873
|
function getTransferSolWithSeedInstructionDataDecoder() {
|
|
876
|
-
return
|
|
877
|
-
["discriminator",
|
|
878
|
-
["amount",
|
|
879
|
-
["fromSeed",
|
|
880
|
-
["fromOwner",
|
|
874
|
+
return getStructDecoder([
|
|
875
|
+
["discriminator", getU32Decoder()],
|
|
876
|
+
["amount", getU64Decoder()],
|
|
877
|
+
["fromSeed", addDecoderSizePrefix(getUtf8Decoder(), getU64Decoder())],
|
|
878
|
+
["fromOwner", getAddressDecoder()]
|
|
881
879
|
]);
|
|
882
880
|
}
|
|
883
881
|
function getTransferSolWithSeedInstructionDataCodec() {
|
|
884
|
-
return
|
|
882
|
+
return combineCodec(
|
|
885
883
|
getTransferSolWithSeedInstructionDataEncoder(),
|
|
886
884
|
getTransferSolWithSeedInstructionDataDecoder()
|
|
887
885
|
);
|
|
@@ -932,16 +930,16 @@ function parseTransferSolWithSeedInstruction(instruction) {
|
|
|
932
930
|
};
|
|
933
931
|
}
|
|
934
932
|
function getUpgradeNonceAccountInstructionDataEncoder() {
|
|
935
|
-
return
|
|
936
|
-
|
|
933
|
+
return transformEncoder(
|
|
934
|
+
getStructEncoder([["discriminator", getU32Encoder()]]),
|
|
937
935
|
(value) => ({ ...value, discriminator: 12 })
|
|
938
936
|
);
|
|
939
937
|
}
|
|
940
938
|
function getUpgradeNonceAccountInstructionDataDecoder() {
|
|
941
|
-
return
|
|
939
|
+
return getStructDecoder([["discriminator", getU32Decoder()]]);
|
|
942
940
|
}
|
|
943
941
|
function getUpgradeNonceAccountInstructionDataCodec() {
|
|
944
|
-
return
|
|
942
|
+
return combineCodec(
|
|
945
943
|
getUpgradeNonceAccountInstructionDataEncoder(),
|
|
946
944
|
getUpgradeNonceAccountInstructionDataDecoder()
|
|
947
945
|
);
|
|
@@ -981,22 +979,22 @@ function parseUpgradeNonceAccountInstruction(instruction) {
|
|
|
981
979
|
};
|
|
982
980
|
}
|
|
983
981
|
function getWithdrawNonceAccountInstructionDataEncoder() {
|
|
984
|
-
return
|
|
985
|
-
|
|
986
|
-
["discriminator",
|
|
987
|
-
["withdrawAmount",
|
|
982
|
+
return transformEncoder(
|
|
983
|
+
getStructEncoder([
|
|
984
|
+
["discriminator", getU32Encoder()],
|
|
985
|
+
["withdrawAmount", getU64Encoder()]
|
|
988
986
|
]),
|
|
989
987
|
(value) => ({ ...value, discriminator: 5 })
|
|
990
988
|
);
|
|
991
989
|
}
|
|
992
990
|
function getWithdrawNonceAccountInstructionDataDecoder() {
|
|
993
|
-
return
|
|
994
|
-
["discriminator",
|
|
995
|
-
["withdrawAmount",
|
|
991
|
+
return getStructDecoder([
|
|
992
|
+
["discriminator", getU32Decoder()],
|
|
993
|
+
["withdrawAmount", getU64Decoder()]
|
|
996
994
|
]);
|
|
997
995
|
}
|
|
998
996
|
function getWithdrawNonceAccountInstructionDataCodec() {
|
|
999
|
-
return
|
|
997
|
+
return combineCodec(
|
|
1000
998
|
getWithdrawNonceAccountInstructionDataEncoder(),
|
|
1001
999
|
getWithdrawNonceAccountInstructionDataDecoder()
|
|
1002
1000
|
);
|
|
@@ -1065,101 +1063,6 @@ function parseWithdrawNonceAccountInstruction(instruction) {
|
|
|
1065
1063
|
};
|
|
1066
1064
|
}
|
|
1067
1065
|
|
|
1068
|
-
|
|
1069
|
-
exports.NonceVersion = NonceVersion;
|
|
1070
|
-
exports.SYSTEM_ERROR__ACCOUNT_ALREADY_IN_USE = SYSTEM_ERROR__ACCOUNT_ALREADY_IN_USE;
|
|
1071
|
-
exports.SYSTEM_ERROR__ADDRESS_WITH_SEED_MISMATCH = SYSTEM_ERROR__ADDRESS_WITH_SEED_MISMATCH;
|
|
1072
|
-
exports.SYSTEM_ERROR__INVALID_ACCOUNT_DATA_LENGTH = SYSTEM_ERROR__INVALID_ACCOUNT_DATA_LENGTH;
|
|
1073
|
-
exports.SYSTEM_ERROR__INVALID_PROGRAM_ID = SYSTEM_ERROR__INVALID_PROGRAM_ID;
|
|
1074
|
-
exports.SYSTEM_ERROR__MAX_SEED_LENGTH_EXCEEDED = SYSTEM_ERROR__MAX_SEED_LENGTH_EXCEEDED;
|
|
1075
|
-
exports.SYSTEM_ERROR__NONCE_BLOCKHASH_NOT_EXPIRED = SYSTEM_ERROR__NONCE_BLOCKHASH_NOT_EXPIRED;
|
|
1076
|
-
exports.SYSTEM_ERROR__NONCE_NO_RECENT_BLOCKHASHES = SYSTEM_ERROR__NONCE_NO_RECENT_BLOCKHASHES;
|
|
1077
|
-
exports.SYSTEM_ERROR__NONCE_UNEXPECTED_BLOCKHASH_VALUE = SYSTEM_ERROR__NONCE_UNEXPECTED_BLOCKHASH_VALUE;
|
|
1078
|
-
exports.SYSTEM_ERROR__RESULT_WITH_NEGATIVE_LAMPORTS = SYSTEM_ERROR__RESULT_WITH_NEGATIVE_LAMPORTS;
|
|
1079
|
-
exports.SYSTEM_PROGRAM_ADDRESS = SYSTEM_PROGRAM_ADDRESS;
|
|
1080
|
-
exports.SystemAccount = SystemAccount;
|
|
1081
|
-
exports.SystemInstruction = SystemInstruction;
|
|
1082
|
-
exports.decodeNonce = decodeNonce;
|
|
1083
|
-
exports.fetchAllMaybeNonce = fetchAllMaybeNonce;
|
|
1084
|
-
exports.fetchAllNonce = fetchAllNonce;
|
|
1085
|
-
exports.fetchMaybeNonce = fetchMaybeNonce;
|
|
1086
|
-
exports.fetchNonce = fetchNonce;
|
|
1087
|
-
exports.getAdvanceNonceAccountInstruction = getAdvanceNonceAccountInstruction;
|
|
1088
|
-
exports.getAdvanceNonceAccountInstructionDataCodec = getAdvanceNonceAccountInstructionDataCodec;
|
|
1089
|
-
exports.getAdvanceNonceAccountInstructionDataDecoder = getAdvanceNonceAccountInstructionDataDecoder;
|
|
1090
|
-
exports.getAdvanceNonceAccountInstructionDataEncoder = getAdvanceNonceAccountInstructionDataEncoder;
|
|
1091
|
-
exports.getAllocateInstruction = getAllocateInstruction;
|
|
1092
|
-
exports.getAllocateInstructionDataCodec = getAllocateInstructionDataCodec;
|
|
1093
|
-
exports.getAllocateInstructionDataDecoder = getAllocateInstructionDataDecoder;
|
|
1094
|
-
exports.getAllocateInstructionDataEncoder = getAllocateInstructionDataEncoder;
|
|
1095
|
-
exports.getAllocateWithSeedInstruction = getAllocateWithSeedInstruction;
|
|
1096
|
-
exports.getAllocateWithSeedInstructionDataCodec = getAllocateWithSeedInstructionDataCodec;
|
|
1097
|
-
exports.getAllocateWithSeedInstructionDataDecoder = getAllocateWithSeedInstructionDataDecoder;
|
|
1098
|
-
exports.getAllocateWithSeedInstructionDataEncoder = getAllocateWithSeedInstructionDataEncoder;
|
|
1099
|
-
exports.getAssignInstruction = getAssignInstruction;
|
|
1100
|
-
exports.getAssignInstructionDataCodec = getAssignInstructionDataCodec;
|
|
1101
|
-
exports.getAssignInstructionDataDecoder = getAssignInstructionDataDecoder;
|
|
1102
|
-
exports.getAssignInstructionDataEncoder = getAssignInstructionDataEncoder;
|
|
1103
|
-
exports.getAssignWithSeedInstruction = getAssignWithSeedInstruction;
|
|
1104
|
-
exports.getAssignWithSeedInstructionDataCodec = getAssignWithSeedInstructionDataCodec;
|
|
1105
|
-
exports.getAssignWithSeedInstructionDataDecoder = getAssignWithSeedInstructionDataDecoder;
|
|
1106
|
-
exports.getAssignWithSeedInstructionDataEncoder = getAssignWithSeedInstructionDataEncoder;
|
|
1107
|
-
exports.getAuthorizeNonceAccountInstruction = getAuthorizeNonceAccountInstruction;
|
|
1108
|
-
exports.getAuthorizeNonceAccountInstructionDataCodec = getAuthorizeNonceAccountInstructionDataCodec;
|
|
1109
|
-
exports.getAuthorizeNonceAccountInstructionDataDecoder = getAuthorizeNonceAccountInstructionDataDecoder;
|
|
1110
|
-
exports.getAuthorizeNonceAccountInstructionDataEncoder = getAuthorizeNonceAccountInstructionDataEncoder;
|
|
1111
|
-
exports.getCreateAccountInstruction = getCreateAccountInstruction;
|
|
1112
|
-
exports.getCreateAccountInstructionDataCodec = getCreateAccountInstructionDataCodec;
|
|
1113
|
-
exports.getCreateAccountInstructionDataDecoder = getCreateAccountInstructionDataDecoder;
|
|
1114
|
-
exports.getCreateAccountInstructionDataEncoder = getCreateAccountInstructionDataEncoder;
|
|
1115
|
-
exports.getCreateAccountWithSeedInstruction = getCreateAccountWithSeedInstruction;
|
|
1116
|
-
exports.getCreateAccountWithSeedInstructionDataCodec = getCreateAccountWithSeedInstructionDataCodec;
|
|
1117
|
-
exports.getCreateAccountWithSeedInstructionDataDecoder = getCreateAccountWithSeedInstructionDataDecoder;
|
|
1118
|
-
exports.getCreateAccountWithSeedInstructionDataEncoder = getCreateAccountWithSeedInstructionDataEncoder;
|
|
1119
|
-
exports.getInitializeNonceAccountInstruction = getInitializeNonceAccountInstruction;
|
|
1120
|
-
exports.getInitializeNonceAccountInstructionDataCodec = getInitializeNonceAccountInstructionDataCodec;
|
|
1121
|
-
exports.getInitializeNonceAccountInstructionDataDecoder = getInitializeNonceAccountInstructionDataDecoder;
|
|
1122
|
-
exports.getInitializeNonceAccountInstructionDataEncoder = getInitializeNonceAccountInstructionDataEncoder;
|
|
1123
|
-
exports.getNonceCodec = getNonceCodec;
|
|
1124
|
-
exports.getNonceDecoder = getNonceDecoder;
|
|
1125
|
-
exports.getNonceEncoder = getNonceEncoder;
|
|
1126
|
-
exports.getNonceSize = getNonceSize;
|
|
1127
|
-
exports.getNonceStateCodec = getNonceStateCodec;
|
|
1128
|
-
exports.getNonceStateDecoder = getNonceStateDecoder;
|
|
1129
|
-
exports.getNonceStateEncoder = getNonceStateEncoder;
|
|
1130
|
-
exports.getNonceVersionCodec = getNonceVersionCodec;
|
|
1131
|
-
exports.getNonceVersionDecoder = getNonceVersionDecoder;
|
|
1132
|
-
exports.getNonceVersionEncoder = getNonceVersionEncoder;
|
|
1133
|
-
exports.getSystemErrorMessage = getSystemErrorMessage;
|
|
1134
|
-
exports.getTransferSolInstruction = getTransferSolInstruction;
|
|
1135
|
-
exports.getTransferSolInstructionDataCodec = getTransferSolInstructionDataCodec;
|
|
1136
|
-
exports.getTransferSolInstructionDataDecoder = getTransferSolInstructionDataDecoder;
|
|
1137
|
-
exports.getTransferSolInstructionDataEncoder = getTransferSolInstructionDataEncoder;
|
|
1138
|
-
exports.getTransferSolWithSeedInstruction = getTransferSolWithSeedInstruction;
|
|
1139
|
-
exports.getTransferSolWithSeedInstructionDataCodec = getTransferSolWithSeedInstructionDataCodec;
|
|
1140
|
-
exports.getTransferSolWithSeedInstructionDataDecoder = getTransferSolWithSeedInstructionDataDecoder;
|
|
1141
|
-
exports.getTransferSolWithSeedInstructionDataEncoder = getTransferSolWithSeedInstructionDataEncoder;
|
|
1142
|
-
exports.getUpgradeNonceAccountInstruction = getUpgradeNonceAccountInstruction;
|
|
1143
|
-
exports.getUpgradeNonceAccountInstructionDataCodec = getUpgradeNonceAccountInstructionDataCodec;
|
|
1144
|
-
exports.getUpgradeNonceAccountInstructionDataDecoder = getUpgradeNonceAccountInstructionDataDecoder;
|
|
1145
|
-
exports.getUpgradeNonceAccountInstructionDataEncoder = getUpgradeNonceAccountInstructionDataEncoder;
|
|
1146
|
-
exports.getWithdrawNonceAccountInstruction = getWithdrawNonceAccountInstruction;
|
|
1147
|
-
exports.getWithdrawNonceAccountInstructionDataCodec = getWithdrawNonceAccountInstructionDataCodec;
|
|
1148
|
-
exports.getWithdrawNonceAccountInstructionDataDecoder = getWithdrawNonceAccountInstructionDataDecoder;
|
|
1149
|
-
exports.getWithdrawNonceAccountInstructionDataEncoder = getWithdrawNonceAccountInstructionDataEncoder;
|
|
1150
|
-
exports.identifySystemInstruction = identifySystemInstruction;
|
|
1151
|
-
exports.parseAdvanceNonceAccountInstruction = parseAdvanceNonceAccountInstruction;
|
|
1152
|
-
exports.parseAllocateInstruction = parseAllocateInstruction;
|
|
1153
|
-
exports.parseAllocateWithSeedInstruction = parseAllocateWithSeedInstruction;
|
|
1154
|
-
exports.parseAssignInstruction = parseAssignInstruction;
|
|
1155
|
-
exports.parseAssignWithSeedInstruction = parseAssignWithSeedInstruction;
|
|
1156
|
-
exports.parseAuthorizeNonceAccountInstruction = parseAuthorizeNonceAccountInstruction;
|
|
1157
|
-
exports.parseCreateAccountInstruction = parseCreateAccountInstruction;
|
|
1158
|
-
exports.parseCreateAccountWithSeedInstruction = parseCreateAccountWithSeedInstruction;
|
|
1159
|
-
exports.parseInitializeNonceAccountInstruction = parseInitializeNonceAccountInstruction;
|
|
1160
|
-
exports.parseTransferSolInstruction = parseTransferSolInstruction;
|
|
1161
|
-
exports.parseTransferSolWithSeedInstruction = parseTransferSolWithSeedInstruction;
|
|
1162
|
-
exports.parseUpgradeNonceAccountInstruction = parseUpgradeNonceAccountInstruction;
|
|
1163
|
-
exports.parseWithdrawNonceAccountInstruction = parseWithdrawNonceAccountInstruction;
|
|
1066
|
+
export { NonceState, NonceVersion, SYSTEM_ERROR__ACCOUNT_ALREADY_IN_USE, SYSTEM_ERROR__ADDRESS_WITH_SEED_MISMATCH, SYSTEM_ERROR__INVALID_ACCOUNT_DATA_LENGTH, SYSTEM_ERROR__INVALID_PROGRAM_ID, SYSTEM_ERROR__MAX_SEED_LENGTH_EXCEEDED, SYSTEM_ERROR__NONCE_BLOCKHASH_NOT_EXPIRED, SYSTEM_ERROR__NONCE_NO_RECENT_BLOCKHASHES, SYSTEM_ERROR__NONCE_UNEXPECTED_BLOCKHASH_VALUE, SYSTEM_ERROR__RESULT_WITH_NEGATIVE_LAMPORTS, SYSTEM_PROGRAM_ADDRESS, SystemAccount, SystemInstruction, decodeNonce, fetchAllMaybeNonce, fetchAllNonce, fetchMaybeNonce, fetchNonce, getAdvanceNonceAccountInstruction, getAdvanceNonceAccountInstructionDataCodec, getAdvanceNonceAccountInstructionDataDecoder, getAdvanceNonceAccountInstructionDataEncoder, getAllocateInstruction, getAllocateInstructionDataCodec, getAllocateInstructionDataDecoder, getAllocateInstructionDataEncoder, getAllocateWithSeedInstruction, getAllocateWithSeedInstructionDataCodec, getAllocateWithSeedInstructionDataDecoder, getAllocateWithSeedInstructionDataEncoder, getAssignInstruction, getAssignInstructionDataCodec, getAssignInstructionDataDecoder, getAssignInstructionDataEncoder, getAssignWithSeedInstruction, getAssignWithSeedInstructionDataCodec, getAssignWithSeedInstructionDataDecoder, getAssignWithSeedInstructionDataEncoder, getAuthorizeNonceAccountInstruction, getAuthorizeNonceAccountInstructionDataCodec, getAuthorizeNonceAccountInstructionDataDecoder, getAuthorizeNonceAccountInstructionDataEncoder, getCreateAccountInstruction, getCreateAccountInstructionDataCodec, getCreateAccountInstructionDataDecoder, getCreateAccountInstructionDataEncoder, getCreateAccountWithSeedInstruction, getCreateAccountWithSeedInstructionDataCodec, getCreateAccountWithSeedInstructionDataDecoder, getCreateAccountWithSeedInstructionDataEncoder, getInitializeNonceAccountInstruction, getInitializeNonceAccountInstructionDataCodec, getInitializeNonceAccountInstructionDataDecoder, getInitializeNonceAccountInstructionDataEncoder, getNonceCodec, getNonceDecoder, getNonceEncoder, getNonceSize, getNonceStateCodec, getNonceStateDecoder, getNonceStateEncoder, getNonceVersionCodec, getNonceVersionDecoder, getNonceVersionEncoder, getSystemErrorMessage, getTransferSolInstruction, getTransferSolInstructionDataCodec, getTransferSolInstructionDataDecoder, getTransferSolInstructionDataEncoder, getTransferSolWithSeedInstruction, getTransferSolWithSeedInstructionDataCodec, getTransferSolWithSeedInstructionDataDecoder, getTransferSolWithSeedInstructionDataEncoder, getUpgradeNonceAccountInstruction, getUpgradeNonceAccountInstructionDataCodec, getUpgradeNonceAccountInstructionDataDecoder, getUpgradeNonceAccountInstructionDataEncoder, getWithdrawNonceAccountInstruction, getWithdrawNonceAccountInstructionDataCodec, getWithdrawNonceAccountInstructionDataDecoder, getWithdrawNonceAccountInstructionDataEncoder, identifySystemInstruction, parseAdvanceNonceAccountInstruction, parseAllocateInstruction, parseAllocateWithSeedInstruction, parseAssignInstruction, parseAssignWithSeedInstruction, parseAuthorizeNonceAccountInstruction, parseCreateAccountInstruction, parseCreateAccountWithSeedInstruction, parseInitializeNonceAccountInstruction, parseTransferSolInstruction, parseTransferSolWithSeedInstruction, parseUpgradeNonceAccountInstruction, parseWithdrawNonceAccountInstruction };
|
|
1164
1067
|
//# sourceMappingURL=out.js.map
|
|
1165
|
-
//# sourceMappingURL=index.
|
|
1068
|
+
//# sourceMappingURL=index.mjs.map
|