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