@solana-program/system 0.3.1 → 0.3.2

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.
Files changed (92) hide show
  1. package/dist/src/index.js +259 -162
  2. package/dist/src/{index.cjs → index.mjs} +163 -260
  3. package/dist/types/generated/accounts/index.d.ts.map +1 -0
  4. package/dist/types/generated/accounts/nonce.d.ts.map +1 -0
  5. package/dist/types/generated/errors/index.d.ts.map +1 -0
  6. package/dist/types/generated/errors/system.d.ts.map +1 -0
  7. package/dist/types/generated/index.d.ts.map +1 -0
  8. package/dist/types/generated/instructions/advanceNonceAccount.d.ts.map +1 -0
  9. package/dist/types/generated/instructions/allocate.d.ts.map +1 -0
  10. package/dist/types/generated/instructions/allocateWithSeed.d.ts.map +1 -0
  11. package/dist/types/generated/instructions/assign.d.ts.map +1 -0
  12. package/dist/types/generated/instructions/assignWithSeed.d.ts.map +1 -0
  13. package/dist/types/generated/instructions/authorizeNonceAccount.d.ts.map +1 -0
  14. package/dist/types/generated/instructions/createAccount.d.ts.map +1 -0
  15. package/dist/types/generated/instructions/createAccountWithSeed.d.ts.map +1 -0
  16. package/dist/types/generated/instructions/index.d.ts.map +1 -0
  17. package/dist/types/generated/instructions/initializeNonceAccount.d.ts.map +1 -0
  18. package/dist/types/generated/instructions/transferSol.d.ts.map +1 -0
  19. package/dist/types/generated/instructions/transferSolWithSeed.d.ts.map +1 -0
  20. package/dist/types/generated/instructions/upgradeNonceAccount.d.ts.map +1 -0
  21. package/dist/types/generated/instructions/withdrawNonceAccount.d.ts.map +1 -0
  22. package/dist/types/generated/programs/index.d.ts.map +1 -0
  23. package/dist/types/generated/programs/system.d.ts.map +1 -0
  24. package/dist/types/generated/shared/index.d.ts.map +1 -0
  25. package/dist/types/generated/types/index.d.ts.map +1 -0
  26. package/dist/types/generated/types/nonceState.d.ts.map +1 -0
  27. package/dist/types/generated/types/nonceVersion.d.ts.map +1 -0
  28. package/dist/types/index.d.ts.map +1 -0
  29. package/package.json +8 -8
  30. package/dist/types/src/generated/accounts/index.d.ts.map +0 -1
  31. package/dist/types/src/generated/accounts/nonce.d.ts.map +0 -1
  32. package/dist/types/src/generated/errors/index.d.ts.map +0 -1
  33. package/dist/types/src/generated/errors/system.d.ts.map +0 -1
  34. package/dist/types/src/generated/index.d.ts.map +0 -1
  35. package/dist/types/src/generated/instructions/advanceNonceAccount.d.ts.map +0 -1
  36. package/dist/types/src/generated/instructions/allocate.d.ts.map +0 -1
  37. package/dist/types/src/generated/instructions/allocateWithSeed.d.ts.map +0 -1
  38. package/dist/types/src/generated/instructions/assign.d.ts.map +0 -1
  39. package/dist/types/src/generated/instructions/assignWithSeed.d.ts.map +0 -1
  40. package/dist/types/src/generated/instructions/authorizeNonceAccount.d.ts.map +0 -1
  41. package/dist/types/src/generated/instructions/createAccount.d.ts.map +0 -1
  42. package/dist/types/src/generated/instructions/createAccountWithSeed.d.ts.map +0 -1
  43. package/dist/types/src/generated/instructions/index.d.ts.map +0 -1
  44. package/dist/types/src/generated/instructions/initializeNonceAccount.d.ts.map +0 -1
  45. package/dist/types/src/generated/instructions/transferSol.d.ts.map +0 -1
  46. package/dist/types/src/generated/instructions/transferSolWithSeed.d.ts.map +0 -1
  47. package/dist/types/src/generated/instructions/upgradeNonceAccount.d.ts.map +0 -1
  48. package/dist/types/src/generated/instructions/withdrawNonceAccount.d.ts.map +0 -1
  49. package/dist/types/src/generated/programs/index.d.ts.map +0 -1
  50. package/dist/types/src/generated/programs/system.d.ts.map +0 -1
  51. package/dist/types/src/generated/shared/index.d.ts.map +0 -1
  52. package/dist/types/src/generated/types/index.d.ts.map +0 -1
  53. package/dist/types/src/generated/types/nonceState.d.ts.map +0 -1
  54. package/dist/types/src/generated/types/nonceVersion.d.ts.map +0 -1
  55. package/dist/types/src/index.d.ts.map +0 -1
  56. package/dist/types/test/_setup.d.ts +0 -16
  57. package/dist/types/test/_setup.d.ts.map +0 -1
  58. package/dist/types/test/advanceNonceAccount.test.d.ts +0 -2
  59. package/dist/types/test/advanceNonceAccount.test.d.ts.map +0 -1
  60. package/dist/types/test/createAccount.test.d.ts +0 -2
  61. package/dist/types/test/createAccount.test.d.ts.map +0 -1
  62. package/dist/types/test/initializeNonceAccount.test.d.ts +0 -2
  63. package/dist/types/test/initializeNonceAccount.test.d.ts.map +0 -1
  64. package/dist/types/test/transferSol.test.d.ts +0 -2
  65. package/dist/types/test/transferSol.test.d.ts.map +0 -1
  66. /package/dist/src/{index.cjs.map → index.mjs.map} +0 -0
  67. /package/dist/types/{src/generated → generated}/accounts/index.d.ts +0 -0
  68. /package/dist/types/{src/generated → generated}/accounts/nonce.d.ts +0 -0
  69. /package/dist/types/{src/generated → generated}/errors/index.d.ts +0 -0
  70. /package/dist/types/{src/generated → generated}/errors/system.d.ts +0 -0
  71. /package/dist/types/{src/generated → generated}/index.d.ts +0 -0
  72. /package/dist/types/{src/generated → generated}/instructions/advanceNonceAccount.d.ts +0 -0
  73. /package/dist/types/{src/generated → generated}/instructions/allocate.d.ts +0 -0
  74. /package/dist/types/{src/generated → generated}/instructions/allocateWithSeed.d.ts +0 -0
  75. /package/dist/types/{src/generated → generated}/instructions/assign.d.ts +0 -0
  76. /package/dist/types/{src/generated → generated}/instructions/assignWithSeed.d.ts +0 -0
  77. /package/dist/types/{src/generated → generated}/instructions/authorizeNonceAccount.d.ts +0 -0
  78. /package/dist/types/{src/generated → generated}/instructions/createAccount.d.ts +0 -0
  79. /package/dist/types/{src/generated → generated}/instructions/createAccountWithSeed.d.ts +0 -0
  80. /package/dist/types/{src/generated → generated}/instructions/index.d.ts +0 -0
  81. /package/dist/types/{src/generated → generated}/instructions/initializeNonceAccount.d.ts +0 -0
  82. /package/dist/types/{src/generated → generated}/instructions/transferSol.d.ts +0 -0
  83. /package/dist/types/{src/generated → generated}/instructions/transferSolWithSeed.d.ts +0 -0
  84. /package/dist/types/{src/generated → generated}/instructions/upgradeNonceAccount.d.ts +0 -0
  85. /package/dist/types/{src/generated → generated}/instructions/withdrawNonceAccount.d.ts +0 -0
  86. /package/dist/types/{src/generated → generated}/programs/index.d.ts +0 -0
  87. /package/dist/types/{src/generated → generated}/programs/system.d.ts +0 -0
  88. /package/dist/types/{src/generated → generated}/shared/index.d.ts +0 -0
  89. /package/dist/types/{src/generated → generated}/types/index.d.ts +0 -0
  90. /package/dist/types/{src/generated → generated}/types/nonceState.d.ts +0 -0
  91. /package/dist/types/{src/generated → generated}/types/nonceVersion.d.ts +0 -0
  92. /package/dist/types/{src/index.d.ts → index.d.ts} +0 -0
@@ -1,6 +1,4 @@
1
- 'use strict';
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 web3_js.getEnumEncoder(NonceState, { size: web3_js.getU32Encoder() });
11
+ return getEnumEncoder(NonceState, { size: getU32Encoder() });
14
12
  }
15
13
  function getNonceStateDecoder() {
16
- return web3_js.getEnumDecoder(NonceState, { size: web3_js.getU32Decoder() });
14
+ return getEnumDecoder(NonceState, { size: getU32Decoder() });
17
15
  }
18
16
  function getNonceStateCodec() {
19
- return web3_js.combineCodec(getNonceStateEncoder(), getNonceStateDecoder());
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 web3_js.getEnumEncoder(NonceVersion, { size: web3_js.getU32Encoder() });
25
+ return getEnumEncoder(NonceVersion, { size: getU32Encoder() });
28
26
  }
29
27
  function getNonceVersionDecoder() {
30
- return web3_js.getEnumDecoder(NonceVersion, { size: web3_js.getU32Decoder() });
28
+ return getEnumDecoder(NonceVersion, { size: getU32Decoder() });
31
29
  }
32
30
  function getNonceVersionCodec() {
33
- return web3_js.combineCodec(getNonceVersionEncoder(), getNonceVersionDecoder());
31
+ return combineCodec(getNonceVersionEncoder(), getNonceVersionDecoder());
34
32
  }
35
33
 
36
34
  // src/generated/accounts/nonce.ts
37
35
  function getNonceEncoder() {
38
- return web3_js.getStructEncoder([
36
+ return getStructEncoder([
39
37
  ["version", getNonceVersionEncoder()],
40
38
  ["state", getNonceStateEncoder()],
41
- ["authority", web3_js.getAddressEncoder()],
42
- ["blockhash", web3_js.getAddressEncoder()],
43
- ["lamportsPerSignature", web3_js.getU64Encoder()]
39
+ ["authority", getAddressEncoder()],
40
+ ["blockhash", getAddressEncoder()],
41
+ ["lamportsPerSignature", getU64Encoder()]
44
42
  ]);
45
43
  }
46
44
  function getNonceDecoder() {
47
- return web3_js.getStructDecoder([
45
+ return getStructDecoder([
48
46
  ["version", getNonceVersionDecoder()],
49
47
  ["state", getNonceStateDecoder()],
50
- ["authority", web3_js.getAddressDecoder()],
51
- ["blockhash", web3_js.getAddressDecoder()],
52
- ["lamportsPerSignature", web3_js.getU64Decoder()]
48
+ ["authority", getAddressDecoder()],
49
+ ["blockhash", getAddressDecoder()],
50
+ ["lamportsPerSignature", getU64Decoder()]
53
51
  ]);
54
52
  }
55
53
  function getNonceCodec() {
56
- return web3_js.combineCodec(getNonceEncoder(), getNonceDecoder());
54
+ return combineCodec(getNonceEncoder(), getNonceDecoder());
57
55
  }
58
56
  function decodeNonce(encodedAccount) {
59
- return web3_js.decodeAccount(
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
- web3_js.assertAccountExists(maybeAccount);
64
+ assertAccountExists(maybeAccount);
67
65
  return maybeAccount;
68
66
  }
69
67
  async function fetchMaybeNonce(rpc, address, config) {
70
- const maybeAccount = await web3_js.fetchEncodedAccount(rpc, address, config);
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
- web3_js.assertAccountsExist(maybeAccounts);
73
+ assertAccountsExist(maybeAccounts);
76
74
  return maybeAccounts;
77
75
  }
78
76
  async function fetchAllMaybeNonce(rpc, addresses, config) {
79
- const maybeAccounts = await web3_js.fetchEncodedAccounts(rpc, addresses, config);
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 (web3_js.containsBytes(data, web3_js.getU32Encoder().encode(0), 0)) {
137
+ if (containsBytes(data, getU32Encoder().encode(0), 0)) {
140
138
  return 0 /* CreateAccount */;
141
139
  }
142
- if (web3_js.containsBytes(data, web3_js.getU32Encoder().encode(1), 0)) {
140
+ if (containsBytes(data, getU32Encoder().encode(1), 0)) {
143
141
  return 1 /* Assign */;
144
142
  }
145
- if (web3_js.containsBytes(data, web3_js.getU32Encoder().encode(2), 0)) {
143
+ if (containsBytes(data, getU32Encoder().encode(2), 0)) {
146
144
  return 2 /* TransferSol */;
147
145
  }
148
- if (web3_js.containsBytes(data, web3_js.getU32Encoder().encode(3), 0)) {
146
+ if (containsBytes(data, getU32Encoder().encode(3), 0)) {
149
147
  return 3 /* CreateAccountWithSeed */;
150
148
  }
151
- if (web3_js.containsBytes(data, web3_js.getU32Encoder().encode(4), 0)) {
149
+ if (containsBytes(data, getU32Encoder().encode(4), 0)) {
152
150
  return 4 /* AdvanceNonceAccount */;
153
151
  }
154
- if (web3_js.containsBytes(data, web3_js.getU32Encoder().encode(5), 0)) {
152
+ if (containsBytes(data, getU32Encoder().encode(5), 0)) {
155
153
  return 5 /* WithdrawNonceAccount */;
156
154
  }
157
- if (web3_js.containsBytes(data, web3_js.getU32Encoder().encode(6), 0)) {
155
+ if (containsBytes(data, getU32Encoder().encode(6), 0)) {
158
156
  return 6 /* InitializeNonceAccount */;
159
157
  }
160
- if (web3_js.containsBytes(data, web3_js.getU32Encoder().encode(7), 0)) {
158
+ if (containsBytes(data, getU32Encoder().encode(7), 0)) {
161
159
  return 7 /* AuthorizeNonceAccount */;
162
160
  }
163
- if (web3_js.containsBytes(data, web3_js.getU32Encoder().encode(8), 0)) {
161
+ if (containsBytes(data, getU32Encoder().encode(8), 0)) {
164
162
  return 8 /* Allocate */;
165
163
  }
166
- if (web3_js.containsBytes(data, web3_js.getU32Encoder().encode(9), 0)) {
164
+ if (containsBytes(data, getU32Encoder().encode(9), 0)) {
167
165
  return 9 /* AllocateWithSeed */;
168
166
  }
169
- if (web3_js.containsBytes(data, web3_js.getU32Encoder().encode(10), 0)) {
167
+ if (containsBytes(data, getU32Encoder().encode(10), 0)) {
170
168
  return 10 /* AssignWithSeed */;
171
169
  }
172
- if (web3_js.containsBytes(data, web3_js.getU32Encoder().encode(11), 0)) {
170
+ if (containsBytes(data, getU32Encoder().encode(11), 0)) {
173
171
  return 11 /* TransferSolWithSeed */;
174
172
  }
175
- if (web3_js.containsBytes(data, web3_js.getU32Encoder().encode(12), 0)) {
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: web3_js.AccountRole.READONLY
197
+ role: AccountRole.READONLY
200
198
  });
201
199
  }
202
- const writableRole = account.isWritable ? web3_js.AccountRole.WRITABLE : web3_js.AccountRole.READONLY;
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) ? web3_js.upgradeRoleToSigner(writableRole) : writableRole,
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 && web3_js.isTransactionSigner(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 web3_js.transformEncoder(
217
- web3_js.getStructEncoder([["discriminator", web3_js.getU32Encoder()]]),
214
+ return transformEncoder(
215
+ getStructEncoder([["discriminator", getU32Encoder()]]),
218
216
  (value) => ({ ...value, discriminator: 4 })
219
217
  );
220
218
  }
221
219
  function getAdvanceNonceAccountInstructionDataDecoder() {
222
- return web3_js.getStructDecoder([["discriminator", web3_js.getU32Decoder()]]);
220
+ return getStructDecoder([["discriminator", getU32Decoder()]]);
223
221
  }
224
222
  function getAdvanceNonceAccountInstructionDataCodec() {
225
- return web3_js.combineCodec(
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 web3_js.transformEncoder(
280
- web3_js.getStructEncoder([
281
- ["discriminator", web3_js.getU32Encoder()],
282
- ["space", web3_js.getU64Encoder()]
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 web3_js.getStructDecoder([
289
- ["discriminator", web3_js.getU32Decoder()],
290
- ["space", web3_js.getU64Decoder()]
286
+ return getStructDecoder([
287
+ ["discriminator", getU32Decoder()],
288
+ ["space", getU64Decoder()]
291
289
  ]);
292
290
  }
293
291
  function getAllocateInstructionDataCodec() {
294
- return web3_js.combineCodec(
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 web3_js.transformEncoder(
336
- web3_js.getStructEncoder([
337
- ["discriminator", web3_js.getU32Encoder()],
338
- ["base", web3_js.getAddressEncoder()],
339
- ["seed", web3_js.addEncoderSizePrefix(web3_js.getUtf8Encoder(), web3_js.getU32Encoder())],
340
- ["space", web3_js.getU64Encoder()],
341
- ["programAddress", web3_js.getAddressEncoder()]
333
+ return transformEncoder(
334
+ getStructEncoder([
335
+ ["discriminator", getU32Encoder()],
336
+ ["base", getAddressEncoder()],
337
+ ["seed", addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder())],
338
+ ["space", getU64Encoder()],
339
+ ["programAddress", getAddressEncoder()]
342
340
  ]),
343
341
  (value) => ({ ...value, discriminator: 9 })
344
342
  );
345
343
  }
346
344
  function getAllocateWithSeedInstructionDataDecoder() {
347
- return web3_js.getStructDecoder([
348
- ["discriminator", web3_js.getU32Decoder()],
349
- ["base", web3_js.getAddressDecoder()],
350
- ["seed", web3_js.addDecoderSizePrefix(web3_js.getUtf8Decoder(), web3_js.getU32Decoder())],
351
- ["space", web3_js.getU64Decoder()],
352
- ["programAddress", web3_js.getAddressDecoder()]
345
+ return getStructDecoder([
346
+ ["discriminator", getU32Decoder()],
347
+ ["base", getAddressDecoder()],
348
+ ["seed", addDecoderSizePrefix(getUtf8Decoder(), getU32Decoder())],
349
+ ["space", getU64Decoder()],
350
+ ["programAddress", getAddressDecoder()]
353
351
  ]);
354
352
  }
355
353
  function getAllocateWithSeedInstructionDataCodec() {
356
- return web3_js.combineCodec(
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 web3_js.transformEncoder(
403
- web3_js.getStructEncoder([
404
- ["discriminator", web3_js.getU32Encoder()],
405
- ["programAddress", web3_js.getAddressEncoder()]
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 web3_js.getStructDecoder([
412
- ["discriminator", web3_js.getU32Decoder()],
413
- ["programAddress", web3_js.getAddressDecoder()]
409
+ return getStructDecoder([
410
+ ["discriminator", getU32Decoder()],
411
+ ["programAddress", getAddressDecoder()]
414
412
  ]);
415
413
  }
416
414
  function getAssignInstructionDataCodec() {
417
- return web3_js.combineCodec(
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 web3_js.transformEncoder(
459
- web3_js.getStructEncoder([
460
- ["discriminator", web3_js.getU32Encoder()],
461
- ["base", web3_js.getAddressEncoder()],
462
- ["seed", web3_js.addEncoderSizePrefix(web3_js.getUtf8Encoder(), web3_js.getU32Encoder())],
463
- ["programAddress", web3_js.getAddressEncoder()]
456
+ return transformEncoder(
457
+ getStructEncoder([
458
+ ["discriminator", getU32Encoder()],
459
+ ["base", getAddressEncoder()],
460
+ ["seed", addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder())],
461
+ ["programAddress", getAddressEncoder()]
464
462
  ]),
465
463
  (value) => ({ ...value, discriminator: 10 })
466
464
  );
467
465
  }
468
466
  function getAssignWithSeedInstructionDataDecoder() {
469
- return web3_js.getStructDecoder([
470
- ["discriminator", web3_js.getU32Decoder()],
471
- ["base", web3_js.getAddressDecoder()],
472
- ["seed", web3_js.addDecoderSizePrefix(web3_js.getUtf8Decoder(), web3_js.getU32Decoder())],
473
- ["programAddress", web3_js.getAddressDecoder()]
467
+ return getStructDecoder([
468
+ ["discriminator", getU32Decoder()],
469
+ ["base", getAddressDecoder()],
470
+ ["seed", addDecoderSizePrefix(getUtf8Decoder(), getU32Decoder())],
471
+ ["programAddress", getAddressDecoder()]
474
472
  ]);
475
473
  }
476
474
  function getAssignWithSeedInstructionDataCodec() {
477
- return web3_js.combineCodec(
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 web3_js.transformEncoder(
524
- web3_js.getStructEncoder([
525
- ["discriminator", web3_js.getU32Encoder()],
526
- ["newNonceAuthority", web3_js.getAddressEncoder()]
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 web3_js.getStructDecoder([
533
- ["discriminator", web3_js.getU32Decoder()],
534
- ["newNonceAuthority", web3_js.getAddressDecoder()]
530
+ return getStructDecoder([
531
+ ["discriminator", getU32Decoder()],
532
+ ["newNonceAuthority", getAddressDecoder()]
535
533
  ]);
536
534
  }
537
535
  function getAuthorizeNonceAccountInstructionDataCodec() {
538
- return web3_js.combineCodec(
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 web3_js.transformEncoder(
587
- web3_js.getStructEncoder([
588
- ["discriminator", web3_js.getU32Encoder()],
589
- ["lamports", web3_js.getU64Encoder()],
590
- ["space", web3_js.getU64Encoder()],
591
- ["programAddress", web3_js.getAddressEncoder()]
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 web3_js.getStructDecoder([
598
- ["discriminator", web3_js.getU32Decoder()],
599
- ["lamports", web3_js.getU64Decoder()],
600
- ["space", web3_js.getU64Decoder()],
601
- ["programAddress", web3_js.getAddressDecoder()]
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 web3_js.combineCodec(
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) + web3_js.BASE_ACCOUNT_SIZE].reduce(
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 web3_js.transformEncoder(
656
- web3_js.getStructEncoder([
657
- ["discriminator", web3_js.getU32Encoder()],
658
- ["base", web3_js.getAddressEncoder()],
659
- ["seed", web3_js.addEncoderSizePrefix(web3_js.getUtf8Encoder(), web3_js.getU32Encoder())],
660
- ["amount", web3_js.getU64Encoder()],
661
- ["space", web3_js.getU64Encoder()],
662
- ["programAddress", web3_js.getAddressEncoder()]
653
+ return transformEncoder(
654
+ getStructEncoder([
655
+ ["discriminator", getU32Encoder()],
656
+ ["base", getAddressEncoder()],
657
+ ["seed", addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder())],
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 web3_js.getStructDecoder([
669
- ["discriminator", web3_js.getU32Decoder()],
670
- ["base", web3_js.getAddressDecoder()],
671
- ["seed", web3_js.addDecoderSizePrefix(web3_js.getUtf8Decoder(), web3_js.getU32Decoder())],
672
- ["amount", web3_js.getU64Decoder()],
673
- ["space", web3_js.getU64Decoder()],
674
- ["programAddress", web3_js.getAddressDecoder()]
666
+ return getStructDecoder([
667
+ ["discriminator", getU32Decoder()],
668
+ ["base", getAddressDecoder()],
669
+ ["seed", addDecoderSizePrefix(getUtf8Decoder(), getU32Decoder())],
670
+ ["amount", getU64Decoder()],
671
+ ["space", getU64Decoder()],
672
+ ["programAddress", getAddressDecoder()]
675
673
  ]);
676
674
  }
677
675
  function getCreateAccountWithSeedInstructionDataCodec() {
678
- return web3_js.combineCodec(
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 web3_js.transformEncoder(
730
- web3_js.getStructEncoder([
731
- ["discriminator", web3_js.getU32Encoder()],
732
- ["nonceAuthority", web3_js.getAddressEncoder()]
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 web3_js.getStructDecoder([
739
- ["discriminator", web3_js.getU32Decoder()],
740
- ["nonceAuthority", web3_js.getAddressDecoder()]
736
+ return getStructDecoder([
737
+ ["discriminator", getU32Decoder()],
738
+ ["nonceAuthority", getAddressDecoder()]
741
739
  ]);
742
740
  }
743
741
  function getInitializeNonceAccountInstructionDataCodec() {
744
- return web3_js.combineCodec(
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 web3_js.transformEncoder(
805
- web3_js.getStructEncoder([
806
- ["discriminator", web3_js.getU32Encoder()],
807
- ["amount", web3_js.getU64Encoder()]
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 web3_js.getStructDecoder([
814
- ["discriminator", web3_js.getU32Decoder()],
815
- ["amount", web3_js.getU64Decoder()]
811
+ return getStructDecoder([
812
+ ["discriminator", getU32Decoder()],
813
+ ["amount", getU64Decoder()]
816
814
  ]);
817
815
  }
818
816
  function getTransferSolInstructionDataCodec() {
819
- return web3_js.combineCodec(
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 web3_js.transformEncoder(
866
- web3_js.getStructEncoder([
867
- ["discriminator", web3_js.getU32Encoder()],
868
- ["amount", web3_js.getU64Encoder()],
869
- ["fromSeed", web3_js.addEncoderSizePrefix(web3_js.getUtf8Encoder(), web3_js.getU32Encoder())],
870
- ["fromOwner", web3_js.getAddressEncoder()]
863
+ return transformEncoder(
864
+ getStructEncoder([
865
+ ["discriminator", getU32Encoder()],
866
+ ["amount", getU64Encoder()],
867
+ ["fromSeed", addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder())],
868
+ ["fromOwner", getAddressEncoder()]
871
869
  ]),
872
870
  (value) => ({ ...value, discriminator: 11 })
873
871
  );
874
872
  }
875
873
  function getTransferSolWithSeedInstructionDataDecoder() {
876
- return web3_js.getStructDecoder([
877
- ["discriminator", web3_js.getU32Decoder()],
878
- ["amount", web3_js.getU64Decoder()],
879
- ["fromSeed", web3_js.addDecoderSizePrefix(web3_js.getUtf8Decoder(), web3_js.getU32Decoder())],
880
- ["fromOwner", web3_js.getAddressDecoder()]
874
+ return getStructDecoder([
875
+ ["discriminator", getU32Decoder()],
876
+ ["amount", getU64Decoder()],
877
+ ["fromSeed", addDecoderSizePrefix(getUtf8Decoder(), getU32Decoder())],
878
+ ["fromOwner", getAddressDecoder()]
881
879
  ]);
882
880
  }
883
881
  function getTransferSolWithSeedInstructionDataCodec() {
884
- return web3_js.combineCodec(
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 web3_js.transformEncoder(
936
- web3_js.getStructEncoder([["discriminator", web3_js.getU32Encoder()]]),
933
+ return transformEncoder(
934
+ getStructEncoder([["discriminator", getU32Encoder()]]),
937
935
  (value) => ({ ...value, discriminator: 12 })
938
936
  );
939
937
  }
940
938
  function getUpgradeNonceAccountInstructionDataDecoder() {
941
- return web3_js.getStructDecoder([["discriminator", web3_js.getU32Decoder()]]);
939
+ return getStructDecoder([["discriminator", getU32Decoder()]]);
942
940
  }
943
941
  function getUpgradeNonceAccountInstructionDataCodec() {
944
- return web3_js.combineCodec(
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 web3_js.transformEncoder(
985
- web3_js.getStructEncoder([
986
- ["discriminator", web3_js.getU32Encoder()],
987
- ["withdrawAmount", web3_js.getU64Encoder()]
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 web3_js.getStructDecoder([
994
- ["discriminator", web3_js.getU32Decoder()],
995
- ["withdrawAmount", web3_js.getU64Decoder()]
991
+ return getStructDecoder([
992
+ ["discriminator", getU32Decoder()],
993
+ ["withdrawAmount", getU64Decoder()]
996
994
  ]);
997
995
  }
998
996
  function getWithdrawNonceAccountInstructionDataCodec() {
999
- return web3_js.combineCodec(
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
- exports.NonceState = NonceState;
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.cjs.map
1068
+ //# sourceMappingURL=index.mjs.map