@solana/token-acl-gate-sdk 0.0.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/src/index.js +932 -0
  2. package/dist/src/index.js.map +1 -0
  3. package/dist/src/index.mjs +838 -0
  4. package/dist/src/index.mjs.map +1 -0
  5. package/dist/types/generated/accounts/index.d.ts +10 -0
  6. package/dist/types/generated/accounts/index.d.ts.map +1 -0
  7. package/dist/types/generated/accounts/listConfig.d.ts +42 -0
  8. package/dist/types/generated/accounts/listConfig.d.ts.map +1 -0
  9. package/dist/types/generated/accounts/walletEntry.d.ts +38 -0
  10. package/dist/types/generated/accounts/walletEntry.d.ts.map +1 -0
  11. package/dist/types/generated/index.d.ts +13 -0
  12. package/dist/types/generated/index.d.ts.map +1 -0
  13. package/dist/types/generated/instructions/addWallet.d.ts +52 -0
  14. package/dist/types/generated/instructions/addWallet.d.ts.map +1 -0
  15. package/dist/types/generated/instructions/canFreezePermissionless.d.ts +52 -0
  16. package/dist/types/generated/instructions/canFreezePermissionless.d.ts.map +1 -0
  17. package/dist/types/generated/instructions/canThawPermissionless.d.ts +57 -0
  18. package/dist/types/generated/instructions/canThawPermissionless.d.ts.map +1 -0
  19. package/dist/types/generated/instructions/createList.d.ts +54 -0
  20. package/dist/types/generated/instructions/createList.d.ts.map +1 -0
  21. package/dist/types/generated/instructions/deleteList.d.ts +40 -0
  22. package/dist/types/generated/instructions/deleteList.d.ts.map +1 -0
  23. package/dist/types/generated/instructions/index.d.ts +16 -0
  24. package/dist/types/generated/instructions/index.d.ts.map +1 -0
  25. package/dist/types/generated/instructions/removeWallet.d.ts +43 -0
  26. package/dist/types/generated/instructions/removeWallet.d.ts.map +1 -0
  27. package/dist/types/generated/instructions/setupExtraMetas.d.ts +57 -0
  28. package/dist/types/generated/instructions/setupExtraMetas.d.ts.map +1 -0
  29. package/dist/types/generated/instructions/setupFreezeExtraMetas.d.ts +52 -0
  30. package/dist/types/generated/instructions/setupFreezeExtraMetas.d.ts.map +1 -0
  31. package/dist/types/generated/pdas/index.d.ts +10 -0
  32. package/dist/types/generated/pdas/index.d.ts.map +1 -0
  33. package/dist/types/generated/pdas/listConfig.d.ts +16 -0
  34. package/dist/types/generated/pdas/listConfig.d.ts.map +1 -0
  35. package/dist/types/generated/pdas/walletEntry.d.ts +16 -0
  36. package/dist/types/generated/pdas/walletEntry.d.ts.map +1 -0
  37. package/dist/types/generated/programs/index.d.ts +9 -0
  38. package/dist/types/generated/programs/index.d.ts.map +1 -0
  39. package/dist/types/generated/programs/tokenAclGateProgram.d.ts +48 -0
  40. package/dist/types/generated/programs/tokenAclGateProgram.d.ts.map +1 -0
  41. package/dist/types/generated/shared/index.d.ts +50 -0
  42. package/dist/types/generated/shared/index.d.ts.map +1 -0
  43. package/dist/types/generated/types/index.d.ts +9 -0
  44. package/dist/types/generated/types/index.d.ts.map +1 -0
  45. package/dist/types/generated/types/mode.d.ts +18 -0
  46. package/dist/types/generated/types/mode.d.ts.map +1 -0
  47. package/dist/types/index.d.ts +2 -0
  48. package/dist/types/index.d.ts.map +1 -0
  49. package/package.json +71 -7
@@ -0,0 +1,932 @@
1
+ 'use strict';
2
+
3
+ var kit = require('@solana/kit');
4
+
5
+ // src/generated/accounts/listConfig.ts
6
+ async function findListConfigPda(seeds, config = {}) {
7
+ const {
8
+ programAddress = "GATEzzqxhJnsWF6vHRsgtixxSB8PaQdcqGEVTEHWiULz"
9
+ } = config;
10
+ return await kit.getProgramDerivedAddress({
11
+ programAddress,
12
+ seeds: [
13
+ kit.getUtf8Encoder().encode("list_config"),
14
+ kit.getAddressEncoder().encode(seeds.authority),
15
+ kit.getAddressEncoder().encode(seeds.seed)
16
+ ]
17
+ });
18
+ }
19
+ async function findWalletEntryPda(seeds, config = {}) {
20
+ const {
21
+ programAddress = "GATEzzqxhJnsWF6vHRsgtixxSB8PaQdcqGEVTEHWiULz"
22
+ } = config;
23
+ return await kit.getProgramDerivedAddress({
24
+ programAddress,
25
+ seeds: [
26
+ kit.getUtf8Encoder().encode("wallet_entry"),
27
+ kit.getAddressEncoder().encode(seeds.listConfig),
28
+ kit.getAddressEncoder().encode(seeds.wallet)
29
+ ]
30
+ });
31
+ }
32
+
33
+ // src/generated/accounts/listConfig.ts
34
+ var LIST_CONFIG_DISCRIMINATOR = 1;
35
+ function getListConfigDiscriminatorBytes() {
36
+ return kit.getU8Encoder().encode(LIST_CONFIG_DISCRIMINATOR);
37
+ }
38
+ function getListConfigEncoder() {
39
+ return kit.transformEncoder(
40
+ kit.getStructEncoder([
41
+ ["discriminator", kit.getU8Encoder()],
42
+ ["authority", kit.getAddressEncoder()],
43
+ ["seed", kit.getAddressEncoder()],
44
+ ["mode", kit.getU8Encoder()],
45
+ ["walletsCount", kit.getU64Encoder()]
46
+ ]),
47
+ (value) => ({
48
+ ...value,
49
+ discriminator: value.discriminator ?? LIST_CONFIG_DISCRIMINATOR
50
+ })
51
+ );
52
+ }
53
+ function getListConfigDecoder() {
54
+ return kit.getStructDecoder([
55
+ ["discriminator", kit.getU8Decoder()],
56
+ ["authority", kit.getAddressDecoder()],
57
+ ["seed", kit.getAddressDecoder()],
58
+ ["mode", kit.getU8Decoder()],
59
+ ["walletsCount", kit.getU64Decoder()]
60
+ ]);
61
+ }
62
+ function getListConfigCodec() {
63
+ return kit.combineCodec(getListConfigEncoder(), getListConfigDecoder());
64
+ }
65
+ function decodeListConfig(encodedAccount) {
66
+ return kit.decodeAccount(
67
+ encodedAccount,
68
+ getListConfigDecoder()
69
+ );
70
+ }
71
+ async function fetchListConfig(rpc, address, config) {
72
+ const maybeAccount = await fetchMaybeListConfig(rpc, address, config);
73
+ kit.assertAccountExists(maybeAccount);
74
+ return maybeAccount;
75
+ }
76
+ async function fetchMaybeListConfig(rpc, address, config) {
77
+ const maybeAccount = await kit.fetchEncodedAccount(rpc, address, config);
78
+ return decodeListConfig(maybeAccount);
79
+ }
80
+ async function fetchAllListConfig(rpc, addresses, config) {
81
+ const maybeAccounts = await fetchAllMaybeListConfig(rpc, addresses, config);
82
+ kit.assertAccountsExist(maybeAccounts);
83
+ return maybeAccounts;
84
+ }
85
+ async function fetchAllMaybeListConfig(rpc, addresses, config) {
86
+ const maybeAccounts = await kit.fetchEncodedAccounts(rpc, addresses, config);
87
+ return maybeAccounts.map((maybeAccount) => decodeListConfig(maybeAccount));
88
+ }
89
+ function getListConfigSize() {
90
+ return 74;
91
+ }
92
+ async function fetchListConfigFromSeeds(rpc, seeds, config = {}) {
93
+ const maybeAccount = await fetchMaybeListConfigFromSeeds(rpc, seeds, config);
94
+ kit.assertAccountExists(maybeAccount);
95
+ return maybeAccount;
96
+ }
97
+ async function fetchMaybeListConfigFromSeeds(rpc, seeds, config = {}) {
98
+ const { programAddress, ...fetchConfig } = config;
99
+ const [address] = await findListConfigPda(seeds, { programAddress });
100
+ return await fetchMaybeListConfig(rpc, address, fetchConfig);
101
+ }
102
+ var WALLET_ENTRY_DISCRIMINATOR = 2;
103
+ function getWalletEntryDiscriminatorBytes() {
104
+ return kit.getU8Encoder().encode(WALLET_ENTRY_DISCRIMINATOR);
105
+ }
106
+ function getWalletEntryEncoder() {
107
+ return kit.transformEncoder(
108
+ kit.getStructEncoder([
109
+ ["discriminator", kit.getU8Encoder()],
110
+ ["walletAddress", kit.getAddressEncoder()],
111
+ ["listConfig", kit.getAddressEncoder()]
112
+ ]),
113
+ (value) => ({
114
+ ...value,
115
+ discriminator: value.discriminator ?? WALLET_ENTRY_DISCRIMINATOR
116
+ })
117
+ );
118
+ }
119
+ function getWalletEntryDecoder() {
120
+ return kit.getStructDecoder([
121
+ ["discriminator", kit.getU8Decoder()],
122
+ ["walletAddress", kit.getAddressDecoder()],
123
+ ["listConfig", kit.getAddressDecoder()]
124
+ ]);
125
+ }
126
+ function getWalletEntryCodec() {
127
+ return kit.combineCodec(getWalletEntryEncoder(), getWalletEntryDecoder());
128
+ }
129
+ function decodeWalletEntry(encodedAccount) {
130
+ return kit.decodeAccount(
131
+ encodedAccount,
132
+ getWalletEntryDecoder()
133
+ );
134
+ }
135
+ async function fetchWalletEntry(rpc, address, config) {
136
+ const maybeAccount = await fetchMaybeWalletEntry(rpc, address, config);
137
+ kit.assertAccountExists(maybeAccount);
138
+ return maybeAccount;
139
+ }
140
+ async function fetchMaybeWalletEntry(rpc, address, config) {
141
+ const maybeAccount = await kit.fetchEncodedAccount(rpc, address, config);
142
+ return decodeWalletEntry(maybeAccount);
143
+ }
144
+ async function fetchAllWalletEntry(rpc, addresses, config) {
145
+ const maybeAccounts = await fetchAllMaybeWalletEntry(rpc, addresses, config);
146
+ kit.assertAccountsExist(maybeAccounts);
147
+ return maybeAccounts;
148
+ }
149
+ async function fetchAllMaybeWalletEntry(rpc, addresses, config) {
150
+ const maybeAccounts = await kit.fetchEncodedAccounts(rpc, addresses, config);
151
+ return maybeAccounts.map((maybeAccount) => decodeWalletEntry(maybeAccount));
152
+ }
153
+ function getWalletEntrySize() {
154
+ return 65;
155
+ }
156
+ async function fetchWalletEntryFromSeeds(rpc, seeds, config = {}) {
157
+ const maybeAccount = await fetchMaybeWalletEntryFromSeeds(rpc, seeds, config);
158
+ kit.assertAccountExists(maybeAccount);
159
+ return maybeAccount;
160
+ }
161
+ async function fetchMaybeWalletEntryFromSeeds(rpc, seeds, config = {}) {
162
+ const { programAddress, ...fetchConfig } = config;
163
+ const [address] = await findWalletEntryPda(seeds, { programAddress });
164
+ return await fetchMaybeWalletEntry(rpc, address, fetchConfig);
165
+ }
166
+ var TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS = "GATEzzqxhJnsWF6vHRsgtixxSB8PaQdcqGEVTEHWiULz";
167
+ var TokenAclGateProgramAccount = /* @__PURE__ */ ((TokenAclGateProgramAccount2) => {
168
+ TokenAclGateProgramAccount2[TokenAclGateProgramAccount2["ListConfig"] = 0] = "ListConfig";
169
+ TokenAclGateProgramAccount2[TokenAclGateProgramAccount2["WalletEntry"] = 1] = "WalletEntry";
170
+ return TokenAclGateProgramAccount2;
171
+ })(TokenAclGateProgramAccount || {});
172
+ function identifyTokenAclGateProgramAccount(account) {
173
+ const data = "data" in account ? account.data : account;
174
+ if (kit.containsBytes(data, kit.getU8Encoder().encode(1), 0)) {
175
+ return 0 /* ListConfig */;
176
+ }
177
+ if (kit.containsBytes(data, kit.getU8Encoder().encode(2), 0)) {
178
+ return 1 /* WalletEntry */;
179
+ }
180
+ throw new Error(
181
+ "The provided account could not be identified as a tokenAclGateProgram account."
182
+ );
183
+ }
184
+ var TokenAclGateProgramInstruction = /* @__PURE__ */ ((TokenAclGateProgramInstruction2) => {
185
+ TokenAclGateProgramInstruction2[TokenAclGateProgramInstruction2["CreateList"] = 0] = "CreateList";
186
+ TokenAclGateProgramInstruction2[TokenAclGateProgramInstruction2["AddWallet"] = 1] = "AddWallet";
187
+ TokenAclGateProgramInstruction2[TokenAclGateProgramInstruction2["RemoveWallet"] = 2] = "RemoveWallet";
188
+ TokenAclGateProgramInstruction2[TokenAclGateProgramInstruction2["SetupExtraMetas"] = 3] = "SetupExtraMetas";
189
+ TokenAclGateProgramInstruction2[TokenAclGateProgramInstruction2["DeleteList"] = 4] = "DeleteList";
190
+ TokenAclGateProgramInstruction2[TokenAclGateProgramInstruction2["SetupFreezeExtraMetas"] = 5] = "SetupFreezeExtraMetas";
191
+ TokenAclGateProgramInstruction2[TokenAclGateProgramInstruction2["CanThawPermissionless"] = 6] = "CanThawPermissionless";
192
+ TokenAclGateProgramInstruction2[TokenAclGateProgramInstruction2["CanFreezePermissionless"] = 7] = "CanFreezePermissionless";
193
+ return TokenAclGateProgramInstruction2;
194
+ })(TokenAclGateProgramInstruction || {});
195
+ function identifyTokenAclGateProgramInstruction(instruction) {
196
+ const data = "data" in instruction ? instruction.data : instruction;
197
+ if (kit.containsBytes(data, kit.getU8Encoder().encode(1), 0)) {
198
+ return 0 /* CreateList */;
199
+ }
200
+ if (kit.containsBytes(data, kit.getU8Encoder().encode(2), 0)) {
201
+ return 1 /* AddWallet */;
202
+ }
203
+ if (kit.containsBytes(data, kit.getU8Encoder().encode(3), 0)) {
204
+ return 2 /* RemoveWallet */;
205
+ }
206
+ if (kit.containsBytes(data, kit.getU8Encoder().encode(4), 0)) {
207
+ return 3 /* SetupExtraMetas */;
208
+ }
209
+ if (kit.containsBytes(data, kit.getU8Encoder().encode(5), 0)) {
210
+ return 4 /* DeleteList */;
211
+ }
212
+ if (kit.containsBytes(data, kit.getU8Encoder().encode(6), 0)) {
213
+ return 5 /* SetupFreezeExtraMetas */;
214
+ }
215
+ if (kit.containsBytes(data, kit.getU8Encoder().encode(8), 0)) {
216
+ return 6 /* CanThawPermissionless */;
217
+ }
218
+ if (kit.containsBytes(data, kit.getU8Encoder().encode(214), 0)) {
219
+ return 7 /* CanFreezePermissionless */;
220
+ }
221
+ throw new Error(
222
+ "The provided instruction could not be identified as a tokenAclGateProgram instruction."
223
+ );
224
+ }
225
+ function expectAddress(value) {
226
+ if (!value) {
227
+ throw new Error("Expected a Address.");
228
+ }
229
+ if (typeof value === "object" && "address" in value) {
230
+ return value.address;
231
+ }
232
+ if (Array.isArray(value)) {
233
+ return value[0];
234
+ }
235
+ return value;
236
+ }
237
+ function getAccountMetaFactory(programAddress, optionalAccountStrategy) {
238
+ return (account) => {
239
+ if (!account.value) {
240
+ return Object.freeze({
241
+ address: programAddress,
242
+ role: kit.AccountRole.READONLY
243
+ });
244
+ }
245
+ const writableRole = account.isWritable ? kit.AccountRole.WRITABLE : kit.AccountRole.READONLY;
246
+ return Object.freeze({
247
+ address: expectAddress(account.value),
248
+ role: isTransactionSigner(account.value) ? kit.upgradeRoleToSigner(writableRole) : writableRole,
249
+ ...isTransactionSigner(account.value) ? { signer: account.value } : {}
250
+ });
251
+ };
252
+ }
253
+ function isTransactionSigner(value) {
254
+ return !!value && typeof value === "object" && "address" in value && kit.isTransactionSigner(value);
255
+ }
256
+
257
+ // src/generated/instructions/addWallet.ts
258
+ var ADD_WALLET_DISCRIMINATOR = 2;
259
+ function getAddWalletDiscriminatorBytes() {
260
+ return kit.getU8Encoder().encode(ADD_WALLET_DISCRIMINATOR);
261
+ }
262
+ function getAddWalletInstructionDataEncoder() {
263
+ return kit.transformEncoder(
264
+ kit.getStructEncoder([["discriminator", kit.getU8Encoder()]]),
265
+ (value) => ({ ...value, discriminator: ADD_WALLET_DISCRIMINATOR })
266
+ );
267
+ }
268
+ function getAddWalletInstructionDataDecoder() {
269
+ return kit.getStructDecoder([["discriminator", kit.getU8Decoder()]]);
270
+ }
271
+ function getAddWalletInstructionDataCodec() {
272
+ return kit.combineCodec(
273
+ getAddWalletInstructionDataEncoder(),
274
+ getAddWalletInstructionDataDecoder()
275
+ );
276
+ }
277
+ function getAddWalletInstruction(input, config) {
278
+ const programAddress = config?.programAddress ?? TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS;
279
+ const originalAccounts = {
280
+ authority: { value: input.authority ?? null, isWritable: false },
281
+ payer: { value: input.payer ?? null, isWritable: true },
282
+ listConfig: { value: input.listConfig ?? null, isWritable: true },
283
+ wallet: { value: input.wallet ?? null, isWritable: false },
284
+ walletEntry: { value: input.walletEntry ?? null, isWritable: true },
285
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
286
+ };
287
+ const accounts = originalAccounts;
288
+ if (!accounts.systemProgram.value) {
289
+ accounts.systemProgram.value = "11111111111111111111111111111111";
290
+ }
291
+ const getAccountMeta = getAccountMetaFactory(programAddress);
292
+ return Object.freeze({
293
+ accounts: [
294
+ getAccountMeta(accounts.authority),
295
+ getAccountMeta(accounts.payer),
296
+ getAccountMeta(accounts.listConfig),
297
+ getAccountMeta(accounts.wallet),
298
+ getAccountMeta(accounts.walletEntry),
299
+ getAccountMeta(accounts.systemProgram)
300
+ ],
301
+ data: getAddWalletInstructionDataEncoder().encode({}),
302
+ programAddress
303
+ });
304
+ }
305
+ function parseAddWalletInstruction(instruction) {
306
+ if (instruction.accounts.length < 6) {
307
+ throw new Error("Not enough accounts");
308
+ }
309
+ let accountIndex = 0;
310
+ const getNextAccount = () => {
311
+ const accountMeta = instruction.accounts[accountIndex];
312
+ accountIndex += 1;
313
+ return accountMeta;
314
+ };
315
+ return {
316
+ programAddress: instruction.programAddress,
317
+ accounts: {
318
+ authority: getNextAccount(),
319
+ payer: getNextAccount(),
320
+ listConfig: getNextAccount(),
321
+ wallet: getNextAccount(),
322
+ walletEntry: getNextAccount(),
323
+ systemProgram: getNextAccount()
324
+ },
325
+ data: getAddWalletInstructionDataDecoder().decode(instruction.data)
326
+ };
327
+ }
328
+ var CAN_FREEZE_PERMISSIONLESS_DISCRIMINATOR = 214;
329
+ function getCanFreezePermissionlessDiscriminatorBytes() {
330
+ return kit.getU8Encoder().encode(CAN_FREEZE_PERMISSIONLESS_DISCRIMINATOR);
331
+ }
332
+ function getCanFreezePermissionlessInstructionDataEncoder() {
333
+ return kit.transformEncoder(
334
+ kit.getStructEncoder([["discriminator", kit.getU8Encoder()]]),
335
+ (value) => ({
336
+ ...value,
337
+ discriminator: CAN_FREEZE_PERMISSIONLESS_DISCRIMINATOR
338
+ })
339
+ );
340
+ }
341
+ function getCanFreezePermissionlessInstructionDataDecoder() {
342
+ return kit.getStructDecoder([["discriminator", kit.getU8Decoder()]]);
343
+ }
344
+ function getCanFreezePermissionlessInstructionDataCodec() {
345
+ return kit.combineCodec(
346
+ getCanFreezePermissionlessInstructionDataEncoder(),
347
+ getCanFreezePermissionlessInstructionDataDecoder()
348
+ );
349
+ }
350
+ function getCanFreezePermissionlessInstruction(input, config) {
351
+ const programAddress = config?.programAddress ?? TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS;
352
+ const originalAccounts = {
353
+ authority: { value: input.authority ?? null, isWritable: false },
354
+ tokenAccount: { value: input.tokenAccount ?? null, isWritable: false },
355
+ mint: { value: input.mint ?? null, isWritable: false },
356
+ owner: { value: input.owner ?? null, isWritable: false },
357
+ flagAccount: { value: input.flagAccount ?? null, isWritable: false },
358
+ extraMetas: { value: input.extraMetas ?? null, isWritable: false }
359
+ };
360
+ const accounts = originalAccounts;
361
+ const getAccountMeta = getAccountMetaFactory(programAddress);
362
+ return Object.freeze({
363
+ accounts: [
364
+ getAccountMeta(accounts.authority),
365
+ getAccountMeta(accounts.tokenAccount),
366
+ getAccountMeta(accounts.mint),
367
+ getAccountMeta(accounts.owner),
368
+ getAccountMeta(accounts.flagAccount),
369
+ getAccountMeta(accounts.extraMetas)
370
+ ],
371
+ data: getCanFreezePermissionlessInstructionDataEncoder().encode({}),
372
+ programAddress
373
+ });
374
+ }
375
+ function parseCanFreezePermissionlessInstruction(instruction) {
376
+ if (instruction.accounts.length < 6) {
377
+ throw new Error("Not enough accounts");
378
+ }
379
+ let accountIndex = 0;
380
+ const getNextAccount = () => {
381
+ const accountMeta = instruction.accounts[accountIndex];
382
+ accountIndex += 1;
383
+ return accountMeta;
384
+ };
385
+ return {
386
+ programAddress: instruction.programAddress,
387
+ accounts: {
388
+ authority: getNextAccount(),
389
+ tokenAccount: getNextAccount(),
390
+ mint: getNextAccount(),
391
+ owner: getNextAccount(),
392
+ flagAccount: getNextAccount(),
393
+ extraMetas: getNextAccount()
394
+ },
395
+ data: getCanFreezePermissionlessInstructionDataDecoder().decode(
396
+ instruction.data
397
+ )
398
+ };
399
+ }
400
+ var CAN_THAW_PERMISSIONLESS_DISCRIMINATOR = 8;
401
+ function getCanThawPermissionlessDiscriminatorBytes() {
402
+ return kit.getU8Encoder().encode(CAN_THAW_PERMISSIONLESS_DISCRIMINATOR);
403
+ }
404
+ function getCanThawPermissionlessInstructionDataEncoder() {
405
+ return kit.transformEncoder(
406
+ kit.getStructEncoder([["discriminator", kit.getU8Encoder()]]),
407
+ (value) => ({
408
+ ...value,
409
+ discriminator: CAN_THAW_PERMISSIONLESS_DISCRIMINATOR
410
+ })
411
+ );
412
+ }
413
+ function getCanThawPermissionlessInstructionDataDecoder() {
414
+ return kit.getStructDecoder([["discriminator", kit.getU8Decoder()]]);
415
+ }
416
+ function getCanThawPermissionlessInstructionDataCodec() {
417
+ return kit.combineCodec(
418
+ getCanThawPermissionlessInstructionDataEncoder(),
419
+ getCanThawPermissionlessInstructionDataDecoder()
420
+ );
421
+ }
422
+ function getCanThawPermissionlessInstruction(input, config) {
423
+ const programAddress = config?.programAddress ?? TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS;
424
+ const originalAccounts = {
425
+ authority: { value: input.authority ?? null, isWritable: false },
426
+ tokenAccount: { value: input.tokenAccount ?? null, isWritable: false },
427
+ mint: { value: input.mint ?? null, isWritable: false },
428
+ owner: { value: input.owner ?? null, isWritable: false },
429
+ flagAccount: { value: input.flagAccount ?? null, isWritable: false },
430
+ extraMetas: { value: input.extraMetas ?? null, isWritable: false }
431
+ };
432
+ const accounts = originalAccounts;
433
+ const args = { ...input };
434
+ const remainingAccounts = args.addresses.map((address) => ({
435
+ address,
436
+ role: kit.AccountRole.READONLY
437
+ }));
438
+ const getAccountMeta = getAccountMetaFactory(programAddress);
439
+ return Object.freeze({
440
+ accounts: [
441
+ getAccountMeta(accounts.authority),
442
+ getAccountMeta(accounts.tokenAccount),
443
+ getAccountMeta(accounts.mint),
444
+ getAccountMeta(accounts.owner),
445
+ getAccountMeta(accounts.flagAccount),
446
+ getAccountMeta(accounts.extraMetas),
447
+ ...remainingAccounts
448
+ ],
449
+ data: getCanThawPermissionlessInstructionDataEncoder().encode({}),
450
+ programAddress
451
+ });
452
+ }
453
+ function parseCanThawPermissionlessInstruction(instruction) {
454
+ if (instruction.accounts.length < 6) {
455
+ throw new Error("Not enough accounts");
456
+ }
457
+ let accountIndex = 0;
458
+ const getNextAccount = () => {
459
+ const accountMeta = instruction.accounts[accountIndex];
460
+ accountIndex += 1;
461
+ return accountMeta;
462
+ };
463
+ return {
464
+ programAddress: instruction.programAddress,
465
+ accounts: {
466
+ authority: getNextAccount(),
467
+ tokenAccount: getNextAccount(),
468
+ mint: getNextAccount(),
469
+ owner: getNextAccount(),
470
+ flagAccount: getNextAccount(),
471
+ extraMetas: getNextAccount()
472
+ },
473
+ data: getCanThawPermissionlessInstructionDataDecoder().decode(
474
+ instruction.data
475
+ )
476
+ };
477
+ }
478
+ var Mode = /* @__PURE__ */ ((Mode2) => {
479
+ Mode2[Mode2["Allow"] = 0] = "Allow";
480
+ Mode2[Mode2["Unused"] = 1] = "Unused";
481
+ Mode2[Mode2["Block"] = 2] = "Block";
482
+ return Mode2;
483
+ })(Mode || {});
484
+ function getModeEncoder() {
485
+ return kit.getEnumEncoder(Mode);
486
+ }
487
+ function getModeDecoder() {
488
+ return kit.getEnumDecoder(Mode);
489
+ }
490
+ function getModeCodec() {
491
+ return kit.combineCodec(getModeEncoder(), getModeDecoder());
492
+ }
493
+
494
+ // src/generated/instructions/createList.ts
495
+ var CREATE_LIST_DISCRIMINATOR = 1;
496
+ function getCreateListDiscriminatorBytes() {
497
+ return kit.getU8Encoder().encode(CREATE_LIST_DISCRIMINATOR);
498
+ }
499
+ function getCreateListInstructionDataEncoder() {
500
+ return kit.transformEncoder(
501
+ kit.getStructEncoder([
502
+ ["discriminator", kit.getU8Encoder()],
503
+ ["mode", getModeEncoder()],
504
+ ["seed", kit.getAddressEncoder()]
505
+ ]),
506
+ (value) => ({ ...value, discriminator: CREATE_LIST_DISCRIMINATOR })
507
+ );
508
+ }
509
+ function getCreateListInstructionDataDecoder() {
510
+ return kit.getStructDecoder([
511
+ ["discriminator", kit.getU8Decoder()],
512
+ ["mode", getModeDecoder()],
513
+ ["seed", kit.getAddressDecoder()]
514
+ ]);
515
+ }
516
+ function getCreateListInstructionDataCodec() {
517
+ return kit.combineCodec(
518
+ getCreateListInstructionDataEncoder(),
519
+ getCreateListInstructionDataDecoder()
520
+ );
521
+ }
522
+ function getCreateListInstruction(input, config) {
523
+ const programAddress = config?.programAddress ?? TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS;
524
+ const originalAccounts = {
525
+ authority: { value: input.authority ?? null, isWritable: false },
526
+ payer: { value: input.payer ?? null, isWritable: true },
527
+ listConfig: { value: input.listConfig ?? null, isWritable: true },
528
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
529
+ };
530
+ const accounts = originalAccounts;
531
+ const args = { ...input };
532
+ if (!accounts.systemProgram.value) {
533
+ accounts.systemProgram.value = "11111111111111111111111111111111";
534
+ }
535
+ const getAccountMeta = getAccountMetaFactory(programAddress);
536
+ return Object.freeze({
537
+ accounts: [
538
+ getAccountMeta(accounts.authority),
539
+ getAccountMeta(accounts.payer),
540
+ getAccountMeta(accounts.listConfig),
541
+ getAccountMeta(accounts.systemProgram)
542
+ ],
543
+ data: getCreateListInstructionDataEncoder().encode(
544
+ args
545
+ ),
546
+ programAddress
547
+ });
548
+ }
549
+ function parseCreateListInstruction(instruction) {
550
+ if (instruction.accounts.length < 4) {
551
+ throw new Error("Not enough accounts");
552
+ }
553
+ let accountIndex = 0;
554
+ const getNextAccount = () => {
555
+ const accountMeta = instruction.accounts[accountIndex];
556
+ accountIndex += 1;
557
+ return accountMeta;
558
+ };
559
+ return {
560
+ programAddress: instruction.programAddress,
561
+ accounts: {
562
+ authority: getNextAccount(),
563
+ payer: getNextAccount(),
564
+ listConfig: getNextAccount(),
565
+ systemProgram: getNextAccount()
566
+ },
567
+ data: getCreateListInstructionDataDecoder().decode(instruction.data)
568
+ };
569
+ }
570
+ var DELETE_LIST_DISCRIMINATOR = 5;
571
+ function getDeleteListDiscriminatorBytes() {
572
+ return kit.getU8Encoder().encode(DELETE_LIST_DISCRIMINATOR);
573
+ }
574
+ function getDeleteListInstructionDataEncoder() {
575
+ return kit.transformEncoder(
576
+ kit.getStructEncoder([["discriminator", kit.getU8Encoder()]]),
577
+ (value) => ({ ...value, discriminator: DELETE_LIST_DISCRIMINATOR })
578
+ );
579
+ }
580
+ function getDeleteListInstructionDataDecoder() {
581
+ return kit.getStructDecoder([["discriminator", kit.getU8Decoder()]]);
582
+ }
583
+ function getDeleteListInstructionDataCodec() {
584
+ return kit.combineCodec(
585
+ getDeleteListInstructionDataEncoder(),
586
+ getDeleteListInstructionDataDecoder()
587
+ );
588
+ }
589
+ function getDeleteListInstruction(input, config) {
590
+ const programAddress = config?.programAddress ?? TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS;
591
+ const originalAccounts = {
592
+ authority: { value: input.authority ?? null, isWritable: true },
593
+ listConfig: { value: input.listConfig ?? null, isWritable: true }
594
+ };
595
+ const accounts = originalAccounts;
596
+ const getAccountMeta = getAccountMetaFactory(programAddress);
597
+ return Object.freeze({
598
+ accounts: [
599
+ getAccountMeta(accounts.authority),
600
+ getAccountMeta(accounts.listConfig)
601
+ ],
602
+ data: getDeleteListInstructionDataEncoder().encode({}),
603
+ programAddress
604
+ });
605
+ }
606
+ function parseDeleteListInstruction(instruction) {
607
+ if (instruction.accounts.length < 2) {
608
+ throw new Error("Not enough accounts");
609
+ }
610
+ let accountIndex = 0;
611
+ const getNextAccount = () => {
612
+ const accountMeta = instruction.accounts[accountIndex];
613
+ accountIndex += 1;
614
+ return accountMeta;
615
+ };
616
+ return {
617
+ programAddress: instruction.programAddress,
618
+ accounts: { authority: getNextAccount(), listConfig: getNextAccount() },
619
+ data: getDeleteListInstructionDataDecoder().decode(instruction.data)
620
+ };
621
+ }
622
+ var REMOVE_WALLET_DISCRIMINATOR = 3;
623
+ function getRemoveWalletDiscriminatorBytes() {
624
+ return kit.getU8Encoder().encode(REMOVE_WALLET_DISCRIMINATOR);
625
+ }
626
+ function getRemoveWalletInstructionDataEncoder() {
627
+ return kit.transformEncoder(
628
+ kit.getStructEncoder([["discriminator", kit.getU8Encoder()]]),
629
+ (value) => ({ ...value, discriminator: REMOVE_WALLET_DISCRIMINATOR })
630
+ );
631
+ }
632
+ function getRemoveWalletInstructionDataDecoder() {
633
+ return kit.getStructDecoder([["discriminator", kit.getU8Decoder()]]);
634
+ }
635
+ function getRemoveWalletInstructionDataCodec() {
636
+ return kit.combineCodec(
637
+ getRemoveWalletInstructionDataEncoder(),
638
+ getRemoveWalletInstructionDataDecoder()
639
+ );
640
+ }
641
+ function getRemoveWalletInstruction(input, config) {
642
+ const programAddress = config?.programAddress ?? TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS;
643
+ const originalAccounts = {
644
+ authority: { value: input.authority ?? null, isWritable: true },
645
+ listConfig: { value: input.listConfig ?? null, isWritable: true },
646
+ walletEntry: { value: input.walletEntry ?? null, isWritable: true }
647
+ };
648
+ const accounts = originalAccounts;
649
+ const getAccountMeta = getAccountMetaFactory(programAddress);
650
+ return Object.freeze({
651
+ accounts: [
652
+ getAccountMeta(accounts.authority),
653
+ getAccountMeta(accounts.listConfig),
654
+ getAccountMeta(accounts.walletEntry)
655
+ ],
656
+ data: getRemoveWalletInstructionDataEncoder().encode({}),
657
+ programAddress
658
+ });
659
+ }
660
+ function parseRemoveWalletInstruction(instruction) {
661
+ if (instruction.accounts.length < 3) {
662
+ throw new Error("Not enough accounts");
663
+ }
664
+ let accountIndex = 0;
665
+ const getNextAccount = () => {
666
+ const accountMeta = instruction.accounts[accountIndex];
667
+ accountIndex += 1;
668
+ return accountMeta;
669
+ };
670
+ return {
671
+ programAddress: instruction.programAddress,
672
+ accounts: {
673
+ authority: getNextAccount(),
674
+ listConfig: getNextAccount(),
675
+ walletEntry: getNextAccount()
676
+ },
677
+ data: getRemoveWalletInstructionDataDecoder().decode(instruction.data)
678
+ };
679
+ }
680
+ var SETUP_EXTRA_METAS_DISCRIMINATOR = 4;
681
+ function getSetupExtraMetasDiscriminatorBytes() {
682
+ return kit.getU8Encoder().encode(SETUP_EXTRA_METAS_DISCRIMINATOR);
683
+ }
684
+ function getSetupExtraMetasInstructionDataEncoder() {
685
+ return kit.transformEncoder(
686
+ kit.getStructEncoder([["discriminator", kit.getU8Encoder()]]),
687
+ (value) => ({ ...value, discriminator: SETUP_EXTRA_METAS_DISCRIMINATOR })
688
+ );
689
+ }
690
+ function getSetupExtraMetasInstructionDataDecoder() {
691
+ return kit.getStructDecoder([["discriminator", kit.getU8Decoder()]]);
692
+ }
693
+ function getSetupExtraMetasInstructionDataCodec() {
694
+ return kit.combineCodec(
695
+ getSetupExtraMetasInstructionDataEncoder(),
696
+ getSetupExtraMetasInstructionDataDecoder()
697
+ );
698
+ }
699
+ function getSetupExtraMetasInstruction(input, config) {
700
+ const programAddress = config?.programAddress ?? TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS;
701
+ const originalAccounts = {
702
+ authority: { value: input.authority ?? null, isWritable: false },
703
+ payer: { value: input.payer ?? null, isWritable: true },
704
+ tokenAclMintConfig: {
705
+ value: input.tokenAclMintConfig ?? null,
706
+ isWritable: false
707
+ },
708
+ mint: { value: input.mint ?? null, isWritable: false },
709
+ extraMetas: { value: input.extraMetas ?? null, isWritable: true },
710
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
711
+ };
712
+ const accounts = originalAccounts;
713
+ const args = { ...input };
714
+ if (!accounts.systemProgram.value) {
715
+ accounts.systemProgram.value = "11111111111111111111111111111111";
716
+ }
717
+ const remainingAccounts = args.addresses.map((address) => ({
718
+ address,
719
+ role: kit.AccountRole.READONLY
720
+ }));
721
+ const getAccountMeta = getAccountMetaFactory(programAddress);
722
+ return Object.freeze({
723
+ accounts: [
724
+ getAccountMeta(accounts.authority),
725
+ getAccountMeta(accounts.payer),
726
+ getAccountMeta(accounts.tokenAclMintConfig),
727
+ getAccountMeta(accounts.mint),
728
+ getAccountMeta(accounts.extraMetas),
729
+ getAccountMeta(accounts.systemProgram),
730
+ ...remainingAccounts
731
+ ],
732
+ data: getSetupExtraMetasInstructionDataEncoder().encode({}),
733
+ programAddress
734
+ });
735
+ }
736
+ function parseSetupExtraMetasInstruction(instruction) {
737
+ if (instruction.accounts.length < 6) {
738
+ throw new Error("Not enough accounts");
739
+ }
740
+ let accountIndex = 0;
741
+ const getNextAccount = () => {
742
+ const accountMeta = instruction.accounts[accountIndex];
743
+ accountIndex += 1;
744
+ return accountMeta;
745
+ };
746
+ return {
747
+ programAddress: instruction.programAddress,
748
+ accounts: {
749
+ authority: getNextAccount(),
750
+ payer: getNextAccount(),
751
+ tokenAclMintConfig: getNextAccount(),
752
+ mint: getNextAccount(),
753
+ extraMetas: getNextAccount(),
754
+ systemProgram: getNextAccount()
755
+ },
756
+ data: getSetupExtraMetasInstructionDataDecoder().decode(instruction.data)
757
+ };
758
+ }
759
+ var SETUP_FREEZE_EXTRA_METAS_DISCRIMINATOR = 6;
760
+ function getSetupFreezeExtraMetasDiscriminatorBytes() {
761
+ return kit.getU8Encoder().encode(SETUP_FREEZE_EXTRA_METAS_DISCRIMINATOR);
762
+ }
763
+ function getSetupFreezeExtraMetasInstructionDataEncoder() {
764
+ return kit.transformEncoder(
765
+ kit.getStructEncoder([["discriminator", kit.getU8Encoder()]]),
766
+ (value) => ({
767
+ ...value,
768
+ discriminator: SETUP_FREEZE_EXTRA_METAS_DISCRIMINATOR
769
+ })
770
+ );
771
+ }
772
+ function getSetupFreezeExtraMetasInstructionDataDecoder() {
773
+ return kit.getStructDecoder([["discriminator", kit.getU8Decoder()]]);
774
+ }
775
+ function getSetupFreezeExtraMetasInstructionDataCodec() {
776
+ return kit.combineCodec(
777
+ getSetupFreezeExtraMetasInstructionDataEncoder(),
778
+ getSetupFreezeExtraMetasInstructionDataDecoder()
779
+ );
780
+ }
781
+ function getSetupFreezeExtraMetasInstruction(input, config) {
782
+ const programAddress = config?.programAddress ?? TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS;
783
+ const originalAccounts = {
784
+ authority: { value: input.authority ?? null, isWritable: false },
785
+ payer: { value: input.payer ?? null, isWritable: true },
786
+ tokenAclMintConfig: {
787
+ value: input.tokenAclMintConfig ?? null,
788
+ isWritable: false
789
+ },
790
+ mint: { value: input.mint ?? null, isWritable: false },
791
+ extraMetas: { value: input.extraMetas ?? null, isWritable: true },
792
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false }
793
+ };
794
+ const accounts = originalAccounts;
795
+ if (!accounts.systemProgram.value) {
796
+ accounts.systemProgram.value = "11111111111111111111111111111111";
797
+ }
798
+ const getAccountMeta = getAccountMetaFactory(programAddress);
799
+ return Object.freeze({
800
+ accounts: [
801
+ getAccountMeta(accounts.authority),
802
+ getAccountMeta(accounts.payer),
803
+ getAccountMeta(accounts.tokenAclMintConfig),
804
+ getAccountMeta(accounts.mint),
805
+ getAccountMeta(accounts.extraMetas),
806
+ getAccountMeta(accounts.systemProgram)
807
+ ],
808
+ data: getSetupFreezeExtraMetasInstructionDataEncoder().encode({}),
809
+ programAddress
810
+ });
811
+ }
812
+ function parseSetupFreezeExtraMetasInstruction(instruction) {
813
+ if (instruction.accounts.length < 6) {
814
+ throw new Error("Not enough accounts");
815
+ }
816
+ let accountIndex = 0;
817
+ const getNextAccount = () => {
818
+ const accountMeta = instruction.accounts[accountIndex];
819
+ accountIndex += 1;
820
+ return accountMeta;
821
+ };
822
+ return {
823
+ programAddress: instruction.programAddress,
824
+ accounts: {
825
+ authority: getNextAccount(),
826
+ payer: getNextAccount(),
827
+ tokenAclMintConfig: getNextAccount(),
828
+ mint: getNextAccount(),
829
+ extraMetas: getNextAccount(),
830
+ systemProgram: getNextAccount()
831
+ },
832
+ data: getSetupFreezeExtraMetasInstructionDataDecoder().decode(
833
+ instruction.data
834
+ )
835
+ };
836
+ }
837
+
838
+ exports.ADD_WALLET_DISCRIMINATOR = ADD_WALLET_DISCRIMINATOR;
839
+ exports.CAN_FREEZE_PERMISSIONLESS_DISCRIMINATOR = CAN_FREEZE_PERMISSIONLESS_DISCRIMINATOR;
840
+ exports.CAN_THAW_PERMISSIONLESS_DISCRIMINATOR = CAN_THAW_PERMISSIONLESS_DISCRIMINATOR;
841
+ exports.CREATE_LIST_DISCRIMINATOR = CREATE_LIST_DISCRIMINATOR;
842
+ exports.DELETE_LIST_DISCRIMINATOR = DELETE_LIST_DISCRIMINATOR;
843
+ exports.LIST_CONFIG_DISCRIMINATOR = LIST_CONFIG_DISCRIMINATOR;
844
+ exports.Mode = Mode;
845
+ exports.REMOVE_WALLET_DISCRIMINATOR = REMOVE_WALLET_DISCRIMINATOR;
846
+ exports.SETUP_EXTRA_METAS_DISCRIMINATOR = SETUP_EXTRA_METAS_DISCRIMINATOR;
847
+ exports.SETUP_FREEZE_EXTRA_METAS_DISCRIMINATOR = SETUP_FREEZE_EXTRA_METAS_DISCRIMINATOR;
848
+ exports.TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS = TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS;
849
+ exports.TokenAclGateProgramAccount = TokenAclGateProgramAccount;
850
+ exports.TokenAclGateProgramInstruction = TokenAclGateProgramInstruction;
851
+ exports.WALLET_ENTRY_DISCRIMINATOR = WALLET_ENTRY_DISCRIMINATOR;
852
+ exports.decodeListConfig = decodeListConfig;
853
+ exports.decodeWalletEntry = decodeWalletEntry;
854
+ exports.fetchAllListConfig = fetchAllListConfig;
855
+ exports.fetchAllMaybeListConfig = fetchAllMaybeListConfig;
856
+ exports.fetchAllMaybeWalletEntry = fetchAllMaybeWalletEntry;
857
+ exports.fetchAllWalletEntry = fetchAllWalletEntry;
858
+ exports.fetchListConfig = fetchListConfig;
859
+ exports.fetchListConfigFromSeeds = fetchListConfigFromSeeds;
860
+ exports.fetchMaybeListConfig = fetchMaybeListConfig;
861
+ exports.fetchMaybeListConfigFromSeeds = fetchMaybeListConfigFromSeeds;
862
+ exports.fetchMaybeWalletEntry = fetchMaybeWalletEntry;
863
+ exports.fetchMaybeWalletEntryFromSeeds = fetchMaybeWalletEntryFromSeeds;
864
+ exports.fetchWalletEntry = fetchWalletEntry;
865
+ exports.fetchWalletEntryFromSeeds = fetchWalletEntryFromSeeds;
866
+ exports.findListConfigPda = findListConfigPda;
867
+ exports.findWalletEntryPda = findWalletEntryPda;
868
+ exports.getAddWalletDiscriminatorBytes = getAddWalletDiscriminatorBytes;
869
+ exports.getAddWalletInstruction = getAddWalletInstruction;
870
+ exports.getAddWalletInstructionDataCodec = getAddWalletInstructionDataCodec;
871
+ exports.getAddWalletInstructionDataDecoder = getAddWalletInstructionDataDecoder;
872
+ exports.getAddWalletInstructionDataEncoder = getAddWalletInstructionDataEncoder;
873
+ exports.getCanFreezePermissionlessDiscriminatorBytes = getCanFreezePermissionlessDiscriminatorBytes;
874
+ exports.getCanFreezePermissionlessInstruction = getCanFreezePermissionlessInstruction;
875
+ exports.getCanFreezePermissionlessInstructionDataCodec = getCanFreezePermissionlessInstructionDataCodec;
876
+ exports.getCanFreezePermissionlessInstructionDataDecoder = getCanFreezePermissionlessInstructionDataDecoder;
877
+ exports.getCanFreezePermissionlessInstructionDataEncoder = getCanFreezePermissionlessInstructionDataEncoder;
878
+ exports.getCanThawPermissionlessDiscriminatorBytes = getCanThawPermissionlessDiscriminatorBytes;
879
+ exports.getCanThawPermissionlessInstruction = getCanThawPermissionlessInstruction;
880
+ exports.getCanThawPermissionlessInstructionDataCodec = getCanThawPermissionlessInstructionDataCodec;
881
+ exports.getCanThawPermissionlessInstructionDataDecoder = getCanThawPermissionlessInstructionDataDecoder;
882
+ exports.getCanThawPermissionlessInstructionDataEncoder = getCanThawPermissionlessInstructionDataEncoder;
883
+ exports.getCreateListDiscriminatorBytes = getCreateListDiscriminatorBytes;
884
+ exports.getCreateListInstruction = getCreateListInstruction;
885
+ exports.getCreateListInstructionDataCodec = getCreateListInstructionDataCodec;
886
+ exports.getCreateListInstructionDataDecoder = getCreateListInstructionDataDecoder;
887
+ exports.getCreateListInstructionDataEncoder = getCreateListInstructionDataEncoder;
888
+ exports.getDeleteListDiscriminatorBytes = getDeleteListDiscriminatorBytes;
889
+ exports.getDeleteListInstruction = getDeleteListInstruction;
890
+ exports.getDeleteListInstructionDataCodec = getDeleteListInstructionDataCodec;
891
+ exports.getDeleteListInstructionDataDecoder = getDeleteListInstructionDataDecoder;
892
+ exports.getDeleteListInstructionDataEncoder = getDeleteListInstructionDataEncoder;
893
+ exports.getListConfigCodec = getListConfigCodec;
894
+ exports.getListConfigDecoder = getListConfigDecoder;
895
+ exports.getListConfigDiscriminatorBytes = getListConfigDiscriminatorBytes;
896
+ exports.getListConfigEncoder = getListConfigEncoder;
897
+ exports.getListConfigSize = getListConfigSize;
898
+ exports.getModeCodec = getModeCodec;
899
+ exports.getModeDecoder = getModeDecoder;
900
+ exports.getModeEncoder = getModeEncoder;
901
+ exports.getRemoveWalletDiscriminatorBytes = getRemoveWalletDiscriminatorBytes;
902
+ exports.getRemoveWalletInstruction = getRemoveWalletInstruction;
903
+ exports.getRemoveWalletInstructionDataCodec = getRemoveWalletInstructionDataCodec;
904
+ exports.getRemoveWalletInstructionDataDecoder = getRemoveWalletInstructionDataDecoder;
905
+ exports.getRemoveWalletInstructionDataEncoder = getRemoveWalletInstructionDataEncoder;
906
+ exports.getSetupExtraMetasDiscriminatorBytes = getSetupExtraMetasDiscriminatorBytes;
907
+ exports.getSetupExtraMetasInstruction = getSetupExtraMetasInstruction;
908
+ exports.getSetupExtraMetasInstructionDataCodec = getSetupExtraMetasInstructionDataCodec;
909
+ exports.getSetupExtraMetasInstructionDataDecoder = getSetupExtraMetasInstructionDataDecoder;
910
+ exports.getSetupExtraMetasInstructionDataEncoder = getSetupExtraMetasInstructionDataEncoder;
911
+ exports.getSetupFreezeExtraMetasDiscriminatorBytes = getSetupFreezeExtraMetasDiscriminatorBytes;
912
+ exports.getSetupFreezeExtraMetasInstruction = getSetupFreezeExtraMetasInstruction;
913
+ exports.getSetupFreezeExtraMetasInstructionDataCodec = getSetupFreezeExtraMetasInstructionDataCodec;
914
+ exports.getSetupFreezeExtraMetasInstructionDataDecoder = getSetupFreezeExtraMetasInstructionDataDecoder;
915
+ exports.getSetupFreezeExtraMetasInstructionDataEncoder = getSetupFreezeExtraMetasInstructionDataEncoder;
916
+ exports.getWalletEntryCodec = getWalletEntryCodec;
917
+ exports.getWalletEntryDecoder = getWalletEntryDecoder;
918
+ exports.getWalletEntryDiscriminatorBytes = getWalletEntryDiscriminatorBytes;
919
+ exports.getWalletEntryEncoder = getWalletEntryEncoder;
920
+ exports.getWalletEntrySize = getWalletEntrySize;
921
+ exports.identifyTokenAclGateProgramAccount = identifyTokenAclGateProgramAccount;
922
+ exports.identifyTokenAclGateProgramInstruction = identifyTokenAclGateProgramInstruction;
923
+ exports.parseAddWalletInstruction = parseAddWalletInstruction;
924
+ exports.parseCanFreezePermissionlessInstruction = parseCanFreezePermissionlessInstruction;
925
+ exports.parseCanThawPermissionlessInstruction = parseCanThawPermissionlessInstruction;
926
+ exports.parseCreateListInstruction = parseCreateListInstruction;
927
+ exports.parseDeleteListInstruction = parseDeleteListInstruction;
928
+ exports.parseRemoveWalletInstruction = parseRemoveWalletInstruction;
929
+ exports.parseSetupExtraMetasInstruction = parseSetupExtraMetasInstruction;
930
+ exports.parseSetupFreezeExtraMetasInstruction = parseSetupFreezeExtraMetasInstruction;
931
+ //# sourceMappingURL=index.js.map
932
+ //# sourceMappingURL=index.js.map