@solana/token-acl-gate-sdk 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.js +740 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/index.mjs +665 -0
- package/dist/src/index.mjs.map +1 -0
- package/dist/types/generated/accounts/index.d.ts +10 -0
- package/dist/types/generated/accounts/index.d.ts.map +1 -0
- package/dist/types/generated/accounts/listConfig.d.ts +41 -0
- package/dist/types/generated/accounts/listConfig.d.ts.map +1 -0
- package/dist/types/generated/accounts/walletEntry.d.ts +37 -0
- package/dist/types/generated/accounts/walletEntry.d.ts.map +1 -0
- package/dist/types/generated/index.d.ts +13 -0
- package/dist/types/generated/index.d.ts.map +1 -0
- package/dist/types/generated/instructions/addWallet.d.ts +63 -0
- package/dist/types/generated/instructions/addWallet.d.ts.map +1 -0
- package/dist/types/generated/instructions/createList.d.ts +65 -0
- package/dist/types/generated/instructions/createList.d.ts.map +1 -0
- package/dist/types/generated/instructions/deleteList.d.ts +40 -0
- package/dist/types/generated/instructions/deleteList.d.ts.map +1 -0
- package/dist/types/generated/instructions/index.d.ts +13 -0
- package/dist/types/generated/instructions/index.d.ts.map +1 -0
- package/dist/types/generated/instructions/removeWallet.d.ts +43 -0
- package/dist/types/generated/instructions/removeWallet.d.ts.map +1 -0
- package/dist/types/generated/instructions/setupExtraMetas.d.ts +53 -0
- package/dist/types/generated/instructions/setupExtraMetas.d.ts.map +1 -0
- package/dist/types/generated/pdas/index.d.ts +10 -0
- package/dist/types/generated/pdas/index.d.ts.map +1 -0
- package/dist/types/generated/pdas/listConfig.d.ts +16 -0
- package/dist/types/generated/pdas/listConfig.d.ts.map +1 -0
- package/dist/types/generated/pdas/walletEntry.d.ts +16 -0
- package/dist/types/generated/pdas/walletEntry.d.ts.map +1 -0
- package/dist/types/generated/programs/index.d.ts +9 -0
- package/dist/types/generated/programs/index.d.ts.map +1 -0
- package/dist/types/generated/programs/tokenAclGateProgram.d.ts +39 -0
- package/dist/types/generated/programs/tokenAclGateProgram.d.ts.map +1 -0
- package/dist/types/generated/shared/index.d.ts +50 -0
- package/dist/types/generated/shared/index.d.ts.map +1 -0
- package/dist/types/generated/types/index.d.ts +9 -0
- package/dist/types/generated/types/index.d.ts.map +1 -0
- package/dist/types/generated/types/mode.d.ts +18 -0
- package/dist/types/generated/types/mode.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +71 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/generated/pdas/listConfig.ts","../../src/generated/pdas/walletEntry.ts","../../src/generated/accounts/listConfig.ts","../../src/generated/accounts/walletEntry.ts","../../src/generated/programs/tokenAclGateProgram.ts","../../src/generated/shared/index.ts","../../src/generated/instructions/addWallet.ts","../../src/generated/types/mode.ts","../../src/generated/instructions/createList.ts","../../src/generated/instructions/deleteList.ts","../../src/generated/instructions/removeWallet.ts","../../src/generated/instructions/setupExtraMetas.ts"],"names":["getProgramDerivedAddress","getUtf8Encoder","getAddressEncoder","getU8Encoder","transformEncoder","getStructEncoder","getStructDecoder","getU8Decoder","getAddressDecoder","combineCodec","decodeAccount","assertAccountExists","fetchEncodedAccount","assertAccountsExist","fetchEncodedAccounts","TokenAclGateProgramAccount","TokenAclGateProgramInstruction","kitIsTransactionSigner","Mode","AccountRole"],"mappings":";;;AAqBA,eAAsB,iBAAA,CACpB,KAAA,EACA,MAAA,GAAmD,EAAC,EACpB;AAChC,EAAA,MAAM;AAAA,IACJ,cAAA,GAAiB;AAAA,GACnB,GAAI,MAAA;AACJ,EAAA,OAAO,MAAM,wBAAA,CAAyB;AAAA,IACpC,cAAA;AAAA,IACA,KAAA,EAAO;AAAA,MACL,cAAA,EAAe,CAAE,MAAA,CAAO,aAAa,CAAA;AAAA,MACrC,iBAAA,EAAkB,CAAE,MAAA,CAAO,KAAA,CAAM,SAAS,CAAA;AAAA,MA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;AAAA,KACL;AAAA,IACA,IAAA,EAAM,wCAAA,EAAyC,CAAE,MAAA,CAAO,EAAE,CAAA;AAAA,IAC1D;AAAA,GASD,CAAA;AACH;AAkBO,SAAS,gCAId,WAAA,EAG2D;AAC3D,EAAA,IAAI,WAAA,CAAY,QAAA,CAAS,MAAA,GAAS,CAAA,EAAG;AAEnC,IAAA,MAAM,IAAI,MAAM,qBAAqB,CAAA;AAAA,EACvC;AACA,EAAA,IAAI,YAAA,GAAe,CAAA;AACnB,EAAA,MAAM,iBAAiB,MAAM;AAC3B,IAAA,MAAM,WAAA,GAAe,WAAA,CAAY,QAAA,CAA2B,YAAY,CAAA;AACxE,IAAA,YAAA,IAAgB,CAAA;AAChB,IAAA,OAAO,WAAA;AAAA,EACT,CAAA;AACA,EAAA,OAAO;AAAA,IACL,gBAAgB,WAAA,CAAY,cAAA;AAAA,IAC5B,QAAA,EAAU;AAAA,MACR,WAAW,cAAA,EAAe;AAAA,MAC1B,OAAO,cAAA,EAAe;AAAA,MACtB,oBAAoB,cAAA,EAAe;AAAA,MACnC,MAAM,cAAA,EAAe;AAAA,MACrB,YAAY,cAAA,EAAe;AAAA,MAC3B,eAAe,cAAA;AAAe,KAChC;AAAA,IACA,IAAA,EAAM,wCAAA,EAAyC,CAAE,MAAA,CAAO,YAAY,IAAI;AAAA,GAC1E;AACF","file":"index.mjs","sourcesContent":["/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport {\n getAddressEncoder,\n getProgramDerivedAddress,\n getUtf8Encoder,\n type Address,\n type ProgramDerivedAddress,\n} from '@solana/kit';\n\nexport type ListConfigSeeds = {\n authority: Address;\n seed: Address;\n};\n\nexport async function findListConfigPda(\n seeds: ListConfigSeeds,\n config: { programAddress?: Address | undefined } = {}\n): Promise<ProgramDerivedAddress> {\n const {\n programAddress = 'GATEzzqxhJnsWF6vHRsgtixxSB8PaQdcqGEVTEHWiULz' as Address<'GATEzzqxhJnsWF6vHRsgtixxSB8PaQdcqGEVTEHWiULz'>,\n } = config;\n return await getProgramDerivedAddress({\n programAddress,\n seeds: [\n getUtf8Encoder().encode('list_config'),\n getAddressEncoder().encode(seeds.authority),\n getAddressEncoder().encode(seeds.seed),\n ],\n });\n}\n","/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport {\n getAddressEncoder,\n getProgramDerivedAddress,\n getUtf8Encoder,\n type Address,\n type ProgramDerivedAddress,\n} from '@solana/kit';\n\nexport type WalletEntrySeeds = {\n listConfig: Address;\n wallet: Address;\n};\n\nexport async function findWalletEntryPda(\n seeds: WalletEntrySeeds,\n config: { programAddress?: Address | undefined } = {}\n): Promise<ProgramDerivedAddress> {\n const {\n programAddress = 'GATEzzqxhJnsWF6vHRsgtixxSB8PaQdcqGEVTEHWiULz' as Address<'GATEzzqxhJnsWF6vHRsgtixxSB8PaQdcqGEVTEHWiULz'>,\n } = config;\n return await getProgramDerivedAddress({\n programAddress,\n seeds: [\n getUtf8Encoder().encode('wallet_entry'),\n getAddressEncoder().encode(seeds.listConfig),\n getAddressEncoder().encode(seeds.wallet),\n ],\n });\n}\n","/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport {\n assertAccountExists,\n assertAccountsExist,\n combineCodec,\n decodeAccount,\n fetchEncodedAccount,\n fetchEncodedAccounts,\n getAddressDecoder,\n getAddressEncoder,\n getStructDecoder,\n getStructEncoder,\n getU64Decoder,\n getU64Encoder,\n getU8Decoder,\n getU8Encoder,\n transformEncoder,\n type Account,\n type Address,\n type EncodedAccount,\n type FetchAccountConfig,\n type FetchAccountsConfig,\n type FixedSizeCodec,\n type FixedSizeDecoder,\n type FixedSizeEncoder,\n type MaybeAccount,\n type MaybeEncodedAccount,\n} from '@solana/kit';\nimport { findListConfigPda, ListConfigSeeds } from '../pdas';\n\nexport const LIST_CONFIG_DISCRIMINATOR = 1;\n\nexport function getListConfigDiscriminatorBytes() {\n return getU8Encoder().encode(LIST_CONFIG_DISCRIMINATOR);\n}\n\nexport type ListConfig = {\n discriminator: number;\n authority: Address;\n seed: Address;\n mode: number;\n walletsCount: bigint;\n};\n\nexport type ListConfigArgs = {\n authority: Address;\n seed: Address;\n mode: number;\n walletsCount: number | bigint;\n};\n\nexport function getListConfigEncoder(): FixedSizeEncoder<ListConfigArgs> {\n return transformEncoder(\n getStructEncoder([\n ['discriminator', getU8Encoder()],\n ['authority', getAddressEncoder()],\n ['seed', getAddressEncoder()],\n ['mode', getU8Encoder()],\n ['walletsCount', getU64Encoder()],\n ]),\n (value) => ({ ...value, discriminator: LIST_CONFIG_DISCRIMINATOR })\n );\n}\n\nexport function getListConfigDecoder(): FixedSizeDecoder<ListConfig> {\n return getStructDecoder([\n ['discriminator', getU8Decoder()],\n ['authority', getAddressDecoder()],\n ['seed', getAddressDecoder()],\n ['mode', getU8Decoder()],\n ['walletsCount', getU64Decoder()],\n ]);\n}\n\nexport function getListConfigCodec(): FixedSizeCodec<\n ListConfigArgs,\n ListConfig\n> {\n return combineCodec(getListConfigEncoder(), getListConfigDecoder());\n}\n\nexport function decodeListConfig<TAddress extends string = string>(\n encodedAccount: EncodedAccount<TAddress>\n): Account<ListConfig, TAddress>;\nexport function decodeListConfig<TAddress extends string = string>(\n encodedAccount: MaybeEncodedAccount<TAddress>\n): MaybeAccount<ListConfig, TAddress>;\nexport function decodeListConfig<TAddress extends string = string>(\n encodedAccount: EncodedAccount<TAddress> | MaybeEncodedAccount<TAddress>\n): Account<ListConfig, TAddress> | MaybeAccount<ListConfig, TAddress> {\n return decodeAccount(\n encodedAccount as MaybeEncodedAccount<TAddress>,\n getListConfigDecoder()\n );\n}\n\nexport async function fetchListConfig<TAddress extends string = string>(\n rpc: Parameters<typeof fetchEncodedAccount>[0],\n address: Address<TAddress>,\n config?: FetchAccountConfig\n): Promise<Account<ListConfig, TAddress>> {\n const maybeAccount = await fetchMaybeListConfig(rpc, address, config);\n assertAccountExists(maybeAccount);\n return maybeAccount;\n}\n\nexport async function fetchMaybeListConfig<TAddress extends string = string>(\n rpc: Parameters<typeof fetchEncodedAccount>[0],\n address: Address<TAddress>,\n config?: FetchAccountConfig\n): Promise<MaybeAccount<ListConfig, TAddress>> {\n const maybeAccount = await fetchEncodedAccount(rpc, address, config);\n return decodeListConfig(maybeAccount);\n}\n\nexport async function fetchAllListConfig(\n rpc: Parameters<typeof fetchEncodedAccounts>[0],\n addresses: Array<Address>,\n config?: FetchAccountsConfig\n): Promise<Account<ListConfig>[]> {\n const maybeAccounts = await fetchAllMaybeListConfig(rpc, addresses, config);\n assertAccountsExist(maybeAccounts);\n return maybeAccounts;\n}\n\nexport async function fetchAllMaybeListConfig(\n rpc: Parameters<typeof fetchEncodedAccounts>[0],\n addresses: Array<Address>,\n config?: FetchAccountsConfig\n): Promise<MaybeAccount<ListConfig>[]> {\n const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);\n return maybeAccounts.map((maybeAccount) => decodeListConfig(maybeAccount));\n}\n\nexport function getListConfigSize(): number {\n return 74;\n}\n\nexport async function fetchListConfigFromSeeds(\n rpc: Parameters<typeof fetchEncodedAccount>[0],\n seeds: ListConfigSeeds,\n config: FetchAccountConfig & { programAddress?: Address } = {}\n): Promise<Account<ListConfig>> {\n const maybeAccount = await fetchMaybeListConfigFromSeeds(rpc, seeds, config);\n assertAccountExists(maybeAccount);\n return maybeAccount;\n}\n\nexport async function fetchMaybeListConfigFromSeeds(\n rpc: Parameters<typeof fetchEncodedAccount>[0],\n seeds: ListConfigSeeds,\n config: FetchAccountConfig & { programAddress?: Address } = {}\n): Promise<MaybeAccount<ListConfig>> {\n const { programAddress, ...fetchConfig } = config;\n const [address] = await findListConfigPda(seeds, { programAddress });\n return await fetchMaybeListConfig(rpc, address, fetchConfig);\n}\n","/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport {\n assertAccountExists,\n assertAccountsExist,\n combineCodec,\n decodeAccount,\n fetchEncodedAccount,\n fetchEncodedAccounts,\n getAddressDecoder,\n getAddressEncoder,\n getStructDecoder,\n getStructEncoder,\n getU8Decoder,\n getU8Encoder,\n transformEncoder,\n type Account,\n type Address,\n type EncodedAccount,\n type FetchAccountConfig,\n type FetchAccountsConfig,\n type FixedSizeCodec,\n type FixedSizeDecoder,\n type FixedSizeEncoder,\n type MaybeAccount,\n type MaybeEncodedAccount,\n} from '@solana/kit';\nimport { findWalletEntryPda, WalletEntrySeeds } from '../pdas';\n\nexport const WALLET_ENTRY_DISCRIMINATOR = 2;\n\nexport function getWalletEntryDiscriminatorBytes() {\n return getU8Encoder().encode(WALLET_ENTRY_DISCRIMINATOR);\n}\n\nexport type WalletEntry = {\n discriminator: number;\n walletAddress: Address;\n listConfig: Address;\n};\n\nexport type WalletEntryArgs = { walletAddress: Address; listConfig: Address };\n\nexport function getWalletEntryEncoder(): FixedSizeEncoder<WalletEntryArgs> {\n return transformEncoder(\n getStructEncoder([\n ['discriminator', getU8Encoder()],\n ['walletAddress', getAddressEncoder()],\n ['listConfig', getAddressEncoder()],\n ]),\n (value) => ({ ...value, discriminator: WALLET_ENTRY_DISCRIMINATOR })\n );\n}\n\nexport function getWalletEntryDecoder(): FixedSizeDecoder<WalletEntry> {\n return getStructDecoder([\n ['discriminator', getU8Decoder()],\n ['walletAddress', getAddressDecoder()],\n ['listConfig', getAddressDecoder()],\n ]);\n}\n\nexport function getWalletEntryCodec(): FixedSizeCodec<\n WalletEntryArgs,\n WalletEntry\n> {\n return combineCodec(getWalletEntryEncoder(), getWalletEntryDecoder());\n}\n\nexport function decodeWalletEntry<TAddress extends string = string>(\n encodedAccount: EncodedAccount<TAddress>\n): Account<WalletEntry, TAddress>;\nexport function decodeWalletEntry<TAddress extends string = string>(\n encodedAccount: MaybeEncodedAccount<TAddress>\n): MaybeAccount<WalletEntry, TAddress>;\nexport function decodeWalletEntry<TAddress extends string = string>(\n encodedAccount: EncodedAccount<TAddress> | MaybeEncodedAccount<TAddress>\n): Account<WalletEntry, TAddress> | MaybeAccount<WalletEntry, TAddress> {\n return decodeAccount(\n encodedAccount as MaybeEncodedAccount<TAddress>,\n getWalletEntryDecoder()\n );\n}\n\nexport async function fetchWalletEntry<TAddress extends string = string>(\n rpc: Parameters<typeof fetchEncodedAccount>[0],\n address: Address<TAddress>,\n config?: FetchAccountConfig\n): Promise<Account<WalletEntry, TAddress>> {\n const maybeAccount = await fetchMaybeWalletEntry(rpc, address, config);\n assertAccountExists(maybeAccount);\n return maybeAccount;\n}\n\nexport async function fetchMaybeWalletEntry<TAddress extends string = string>(\n rpc: Parameters<typeof fetchEncodedAccount>[0],\n address: Address<TAddress>,\n config?: FetchAccountConfig\n): Promise<MaybeAccount<WalletEntry, TAddress>> {\n const maybeAccount = await fetchEncodedAccount(rpc, address, config);\n return decodeWalletEntry(maybeAccount);\n}\n\nexport async function fetchAllWalletEntry(\n rpc: Parameters<typeof fetchEncodedAccounts>[0],\n addresses: Array<Address>,\n config?: FetchAccountsConfig\n): Promise<Account<WalletEntry>[]> {\n const maybeAccounts = await fetchAllMaybeWalletEntry(rpc, addresses, config);\n assertAccountsExist(maybeAccounts);\n return maybeAccounts;\n}\n\nexport async function fetchAllMaybeWalletEntry(\n rpc: Parameters<typeof fetchEncodedAccounts>[0],\n addresses: Array<Address>,\n config?: FetchAccountsConfig\n): Promise<MaybeAccount<WalletEntry>[]> {\n const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);\n return maybeAccounts.map((maybeAccount) => decodeWalletEntry(maybeAccount));\n}\n\nexport function getWalletEntrySize(): number {\n return 65;\n}\n\nexport async function fetchWalletEntryFromSeeds(\n rpc: Parameters<typeof fetchEncodedAccount>[0],\n seeds: WalletEntrySeeds,\n config: FetchAccountConfig & { programAddress?: Address } = {}\n): Promise<Account<WalletEntry>> {\n const maybeAccount = await fetchMaybeWalletEntryFromSeeds(rpc, seeds, config);\n assertAccountExists(maybeAccount);\n return maybeAccount;\n}\n\nexport async function fetchMaybeWalletEntryFromSeeds(\n rpc: Parameters<typeof fetchEncodedAccount>[0],\n seeds: WalletEntrySeeds,\n config: FetchAccountConfig & { programAddress?: Address } = {}\n): Promise<MaybeAccount<WalletEntry>> {\n const { programAddress, ...fetchConfig } = config;\n const [address] = await findWalletEntryPda(seeds, { programAddress });\n return await fetchMaybeWalletEntry(rpc, address, fetchConfig);\n}\n","/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport {\n containsBytes,\n getU8Encoder,\n type Address,\n type ReadonlyUint8Array,\n} from '@solana/kit';\nimport {\n type ParsedAddWalletInstruction,\n type ParsedCreateListInstruction,\n type ParsedDeleteListInstruction,\n type ParsedRemoveWalletInstruction,\n type ParsedSetupExtraMetasInstruction,\n} from '../instructions';\n\nexport const TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS =\n 'GATEzzqxhJnsWF6vHRsgtixxSB8PaQdcqGEVTEHWiULz' as Address<'GATEzzqxhJnsWF6vHRsgtixxSB8PaQdcqGEVTEHWiULz'>;\n\nexport enum TokenAclGateProgramAccount {\n ListConfig,\n WalletEntry,\n}\n\nexport function identifyTokenAclGateProgramAccount(\n account: { data: ReadonlyUint8Array } | ReadonlyUint8Array\n): TokenAclGateProgramAccount {\n const data = 'data' in account ? account.data : account;\n if (containsBytes(data, getU8Encoder().encode(1), 0)) {\n return TokenAclGateProgramAccount.ListConfig;\n }\n if (containsBytes(data, getU8Encoder().encode(2), 0)) {\n return TokenAclGateProgramAccount.WalletEntry;\n }\n throw new Error(\n 'The provided account could not be identified as a token-acl-gate-program account.'\n );\n}\n\nexport enum TokenAclGateProgramInstruction {\n CreateList,\n AddWallet,\n RemoveWallet,\n SetupExtraMetas,\n DeleteList,\n}\n\nexport function identifyTokenAclGateProgramInstruction(\n instruction: { data: ReadonlyUint8Array } | ReadonlyUint8Array\n): TokenAclGateProgramInstruction {\n const data = 'data' in instruction ? instruction.data : instruction;\n if (containsBytes(data, getU8Encoder().encode(1), 0)) {\n return TokenAclGateProgramInstruction.CreateList;\n }\n if (containsBytes(data, getU8Encoder().encode(2), 0)) {\n return TokenAclGateProgramInstruction.AddWallet;\n }\n if (containsBytes(data, getU8Encoder().encode(3), 0)) {\n return TokenAclGateProgramInstruction.RemoveWallet;\n }\n if (containsBytes(data, getU8Encoder().encode(4), 0)) {\n return TokenAclGateProgramInstruction.SetupExtraMetas;\n }\n if (containsBytes(data, getU8Encoder().encode(5), 0)) {\n return TokenAclGateProgramInstruction.DeleteList;\n }\n throw new Error(\n 'The provided instruction could not be identified as a token-acl-gate-program instruction.'\n );\n}\n\nexport type ParsedTokenAclGateProgramInstruction<\n TProgram extends string = 'GATEzzqxhJnsWF6vHRsgtixxSB8PaQdcqGEVTEHWiULz',\n> =\n | ({\n instructionType: TokenAclGateProgramInstruction.CreateList;\n } & ParsedCreateListInstruction<TProgram>)\n | ({\n instructionType: TokenAclGateProgramInstruction.AddWallet;\n } & ParsedAddWalletInstruction<TProgram>)\n | ({\n instructionType: TokenAclGateProgramInstruction.RemoveWallet;\n } & ParsedRemoveWalletInstruction<TProgram>)\n | ({\n instructionType: TokenAclGateProgramInstruction.SetupExtraMetas;\n } & ParsedSetupExtraMetasInstruction<TProgram>)\n | ({\n instructionType: TokenAclGateProgramInstruction.DeleteList;\n } & ParsedDeleteListInstruction<TProgram>);\n","/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport {\n AccountRole,\n isProgramDerivedAddress,\n isTransactionSigner as kitIsTransactionSigner,\n type AccountMeta,\n type AccountSignerMeta,\n type Address,\n type ProgramDerivedAddress,\n type TransactionSigner,\n upgradeRoleToSigner,\n} from '@solana/kit';\n\n/**\n * Asserts that the given value is not null or undefined.\n * @internal\n */\nexport function expectSome<T>(value: T | null | undefined): T {\n if (value === null || value === undefined) {\n throw new Error('Expected a value but received null or undefined.');\n }\n return value;\n}\n\n/**\n * Asserts that the given value is a PublicKey.\n * @internal\n */\nexport function expectAddress<T extends string = string>(\n value:\n | Address<T>\n | ProgramDerivedAddress<T>\n | TransactionSigner<T>\n | null\n | undefined\n): Address<T> {\n if (!value) {\n throw new Error('Expected a Address.');\n }\n if (typeof value === 'object' && 'address' in value) {\n return value.address;\n }\n if (Array.isArray(value)) {\n return value[0] as Address<T>;\n }\n return value as Address<T>;\n}\n\n/**\n * Asserts that the given value is a PDA.\n * @internal\n */\nexport function expectProgramDerivedAddress<T extends string = string>(\n value:\n | Address<T>\n | ProgramDerivedAddress<T>\n | TransactionSigner<T>\n | null\n | undefined\n): ProgramDerivedAddress<T> {\n if (!value || !Array.isArray(value) || !isProgramDerivedAddress(value)) {\n throw new Error('Expected a ProgramDerivedAddress.');\n }\n return value;\n}\n\n/**\n * Asserts that the given value is a TransactionSigner.\n * @internal\n */\nexport function expectTransactionSigner<T extends string = string>(\n value:\n | Address<T>\n | ProgramDerivedAddress<T>\n | TransactionSigner<T>\n | null\n | undefined\n): TransactionSigner<T> {\n if (!value || !isTransactionSigner(value)) {\n throw new Error('Expected a TransactionSigner.');\n }\n return value;\n}\n\n/**\n * Defines an instruction account to resolve.\n * @internal\n */\nexport type ResolvedAccount<\n T extends string = string,\n U extends\n | Address<T>\n | ProgramDerivedAddress<T>\n | TransactionSigner<T>\n | null =\n | Address<T>\n | ProgramDerivedAddress<T>\n | TransactionSigner<T>\n | null,\n> = {\n isWritable: boolean;\n value: U;\n};\n\n/**\n * Defines an instruction that stores additional bytes on-chain.\n * @internal\n */\nexport type InstructionWithByteDelta = {\n byteDelta: number;\n};\n\n/**\n * Get account metas and signers from resolved accounts.\n * @internal\n */\nexport function getAccountMetaFactory(\n programAddress: Address,\n optionalAccountStrategy: 'omitted' | 'programId'\n) {\n return (\n account: ResolvedAccount\n ): AccountMeta | AccountSignerMeta | undefined => {\n if (!account.value) {\n if (optionalAccountStrategy === 'omitted') return;\n return Object.freeze({\n address: programAddress,\n role: AccountRole.READONLY,\n });\n }\n\n const writableRole = account.isWritable\n ? AccountRole.WRITABLE\n : AccountRole.READONLY;\n return Object.freeze({\n address: expectAddress(account.value),\n role: isTransactionSigner(account.value)\n ? upgradeRoleToSigner(writableRole)\n : writableRole,\n ...(isTransactionSigner(account.value) ? { signer: account.value } : {}),\n });\n };\n}\n\nexport function isTransactionSigner<TAddress extends string = string>(\n value:\n | Address<TAddress>\n | ProgramDerivedAddress<TAddress>\n | TransactionSigner<TAddress>\n): value is TransactionSigner<TAddress> {\n return (\n !!value &&\n typeof value === 'object' &&\n 'address' in value &&\n kitIsTransactionSigner(value)\n );\n}\n","/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport {\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU8Decoder,\n getU8Encoder,\n transformEncoder,\n type AccountMeta,\n type AccountSignerMeta,\n type Address,\n type FixedSizeCodec,\n type FixedSizeDecoder,\n type FixedSizeEncoder,\n type Instruction,\n type InstructionWithAccounts,\n type InstructionWithData,\n type ReadonlyAccount,\n type ReadonlySignerAccount,\n type ReadonlyUint8Array,\n type TransactionSigner,\n type WritableAccount,\n type WritableSignerAccount,\n} from '@solana/kit';\nimport { findWalletEntryPda } from '../pdas';\nimport { TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS } from '../programs';\nimport {\n expectAddress,\n getAccountMetaFactory,\n type ResolvedAccount,\n} from '../shared';\n\nexport const ADD_WALLET_DISCRIMINATOR = 2;\n\nexport function getAddWalletDiscriminatorBytes() {\n return getU8Encoder().encode(ADD_WALLET_DISCRIMINATOR);\n}\n\nexport type AddWalletInstruction<\n TProgram extends string = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n TAccountAuthority extends string | AccountMeta<string> = string,\n TAccountPayer extends string | AccountMeta<string> = string,\n TAccountListConfig extends string | AccountMeta<string> = string,\n TAccountWallet extends string | AccountMeta<string> = string,\n TAccountWalletEntry extends string | AccountMeta<string> = string,\n TAccountSystemProgram extends\n | string\n | AccountMeta<string> = '11111111111111111111111111111111',\n TRemainingAccounts extends readonly AccountMeta<string>[] = [],\n> = Instruction<TProgram> &\n InstructionWithData<ReadonlyUint8Array> &\n InstructionWithAccounts<\n [\n TAccountAuthority extends string\n ? ReadonlySignerAccount<TAccountAuthority> &\n AccountSignerMeta<TAccountAuthority>\n : TAccountAuthority,\n TAccountPayer extends string\n ? WritableSignerAccount<TAccountPayer> &\n AccountSignerMeta<TAccountPayer>\n : TAccountPayer,\n TAccountListConfig extends string\n ? WritableAccount<TAccountListConfig>\n : TAccountListConfig,\n TAccountWallet extends string\n ? ReadonlyAccount<TAccountWallet>\n : TAccountWallet,\n TAccountWalletEntry extends string\n ? WritableAccount<TAccountWalletEntry>\n : TAccountWalletEntry,\n TAccountSystemProgram extends string\n ? ReadonlyAccount<TAccountSystemProgram>\n : TAccountSystemProgram,\n ...TRemainingAccounts,\n ]\n >;\n\nexport type AddWalletInstructionData = { discriminator: number };\n\nexport type AddWalletInstructionDataArgs = {};\n\nexport function getAddWalletInstructionDataEncoder(): FixedSizeEncoder<AddWalletInstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([['discriminator', getU8Encoder()]]),\n (value) => ({ ...value, discriminator: ADD_WALLET_DISCRIMINATOR })\n );\n}\n\nexport function getAddWalletInstructionDataDecoder(): FixedSizeDecoder<AddWalletInstructionData> {\n return getStructDecoder([['discriminator', getU8Decoder()]]);\n}\n\nexport function getAddWalletInstructionDataCodec(): FixedSizeCodec<\n AddWalletInstructionDataArgs,\n AddWalletInstructionData\n> {\n return combineCodec(\n getAddWalletInstructionDataEncoder(),\n getAddWalletInstructionDataDecoder()\n );\n}\n\nexport type AddWalletAsyncInput<\n TAccountAuthority extends string = string,\n TAccountPayer extends string = string,\n TAccountListConfig extends string = string,\n TAccountWallet extends string = string,\n TAccountWalletEntry extends string = string,\n TAccountSystemProgram extends string = string,\n> = {\n authority: TransactionSigner<TAccountAuthority>;\n payer: TransactionSigner<TAccountPayer>;\n listConfig: Address<TAccountListConfig>;\n wallet: Address<TAccountWallet>;\n walletEntry?: Address<TAccountWalletEntry>;\n systemProgram?: Address<TAccountSystemProgram>;\n};\n\nexport async function getAddWalletInstructionAsync<\n TAccountAuthority extends string,\n TAccountPayer extends string,\n TAccountListConfig extends string,\n TAccountWallet extends string,\n TAccountWalletEntry extends string,\n TAccountSystemProgram extends string,\n TProgramAddress extends\n Address = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n>(\n input: AddWalletAsyncInput<\n TAccountAuthority,\n TAccountPayer,\n TAccountListConfig,\n TAccountWallet,\n TAccountWalletEntry,\n TAccountSystemProgram\n >,\n config?: { programAddress?: TProgramAddress }\n): Promise<\n AddWalletInstruction<\n TProgramAddress,\n TAccountAuthority,\n TAccountPayer,\n TAccountListConfig,\n TAccountWallet,\n TAccountWalletEntry,\n TAccountSystemProgram\n >\n> {\n // Program address.\n const programAddress =\n config?.programAddress ?? TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n authority: { value: input.authority ?? null, isWritable: false },\n payer: { value: input.payer ?? null, isWritable: true },\n listConfig: { value: input.listConfig ?? null, isWritable: true },\n wallet: { value: input.wallet ?? null, isWritable: false },\n walletEntry: { value: input.walletEntry ?? null, isWritable: true },\n systemProgram: { value: input.systemProgram ?? null, isWritable: false },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedAccount\n >;\n\n // Resolve default values.\n if (!accounts.walletEntry.value) {\n accounts.walletEntry.value = await findWalletEntryPda({\n listConfig: expectAddress(accounts.listConfig.value),\n wallet: expectAddress(accounts.wallet.value),\n });\n }\n if (!accounts.systemProgram.value) {\n accounts.systemProgram.value =\n '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;\n }\n\n const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');\n return Object.freeze({\n accounts: [\n getAccountMeta(accounts.authority),\n getAccountMeta(accounts.payer),\n getAccountMeta(accounts.listConfig),\n getAccountMeta(accounts.wallet),\n getAccountMeta(accounts.walletEntry),\n getAccountMeta(accounts.systemProgram),\n ],\n data: getAddWalletInstructionDataEncoder().encode({}),\n programAddress,\n } as AddWalletInstruction<\n TProgramAddress,\n TAccountAuthority,\n TAccountPayer,\n TAccountListConfig,\n TAccountWallet,\n TAccountWalletEntry,\n TAccountSystemProgram\n >);\n}\n\nexport type AddWalletInput<\n TAccountAuthority extends string = string,\n TAccountPayer extends string = string,\n TAccountListConfig extends string = string,\n TAccountWallet extends string = string,\n TAccountWalletEntry extends string = string,\n TAccountSystemProgram extends string = string,\n> = {\n authority: TransactionSigner<TAccountAuthority>;\n payer: TransactionSigner<TAccountPayer>;\n listConfig: Address<TAccountListConfig>;\n wallet: Address<TAccountWallet>;\n walletEntry: Address<TAccountWalletEntry>;\n systemProgram?: Address<TAccountSystemProgram>;\n};\n\nexport function getAddWalletInstruction<\n TAccountAuthority extends string,\n TAccountPayer extends string,\n TAccountListConfig extends string,\n TAccountWallet extends string,\n TAccountWalletEntry extends string,\n TAccountSystemProgram extends string,\n TProgramAddress extends\n Address = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n>(\n input: AddWalletInput<\n TAccountAuthority,\n TAccountPayer,\n TAccountListConfig,\n TAccountWallet,\n TAccountWalletEntry,\n TAccountSystemProgram\n >,\n config?: { programAddress?: TProgramAddress }\n): AddWalletInstruction<\n TProgramAddress,\n TAccountAuthority,\n TAccountPayer,\n TAccountListConfig,\n TAccountWallet,\n TAccountWalletEntry,\n TAccountSystemProgram\n> {\n // Program address.\n const programAddress =\n config?.programAddress ?? TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n authority: { value: input.authority ?? null, isWritable: false },\n payer: { value: input.payer ?? null, isWritable: true },\n listConfig: { value: input.listConfig ?? null, isWritable: true },\n wallet: { value: input.wallet ?? null, isWritable: false },\n walletEntry: { value: input.walletEntry ?? null, isWritable: true },\n systemProgram: { value: input.systemProgram ?? null, isWritable: false },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedAccount\n >;\n\n // Resolve default values.\n if (!accounts.systemProgram.value) {\n accounts.systemProgram.value =\n '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;\n }\n\n const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');\n return Object.freeze({\n accounts: [\n getAccountMeta(accounts.authority),\n getAccountMeta(accounts.payer),\n getAccountMeta(accounts.listConfig),\n getAccountMeta(accounts.wallet),\n getAccountMeta(accounts.walletEntry),\n getAccountMeta(accounts.systemProgram),\n ],\n data: getAddWalletInstructionDataEncoder().encode({}),\n programAddress,\n } as AddWalletInstruction<\n TProgramAddress,\n TAccountAuthority,\n TAccountPayer,\n TAccountListConfig,\n TAccountWallet,\n TAccountWalletEntry,\n TAccountSystemProgram\n >);\n}\n\nexport type ParsedAddWalletInstruction<\n TProgram extends string = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],\n> = {\n programAddress: Address<TProgram>;\n accounts: {\n authority: TAccountMetas[0];\n payer: TAccountMetas[1];\n listConfig: TAccountMetas[2];\n wallet: TAccountMetas[3];\n walletEntry: TAccountMetas[4];\n systemProgram: TAccountMetas[5];\n };\n data: AddWalletInstructionData;\n};\n\nexport function parseAddWalletInstruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>\n): ParsedAddWalletInstruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 6) {\n // TODO: Coded error.\n throw new Error('Not enough accounts');\n }\n let accountIndex = 0;\n const getNextAccount = () => {\n const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;\n accountIndex += 1;\n return accountMeta;\n };\n return {\n programAddress: instruction.programAddress,\n accounts: {\n authority: getNextAccount(),\n payer: getNextAccount(),\n listConfig: getNextAccount(),\n wallet: getNextAccount(),\n walletEntry: getNextAccount(),\n systemProgram: getNextAccount(),\n },\n data: getAddWalletInstructionDataDecoder().decode(instruction.data),\n };\n}\n","/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport {\n combineCodec,\n getEnumDecoder,\n getEnumEncoder,\n type FixedSizeCodec,\n type FixedSizeDecoder,\n type FixedSizeEncoder,\n} from '@solana/kit';\n\nexport enum Mode {\n Allow,\n AllowAllEoas,\n Block,\n}\n\nexport type ModeArgs = Mode;\n\nexport function getModeEncoder(): FixedSizeEncoder<ModeArgs> {\n return getEnumEncoder(Mode);\n}\n\nexport function getModeDecoder(): FixedSizeDecoder<Mode> {\n return getEnumDecoder(Mode);\n}\n\nexport function getModeCodec(): FixedSizeCodec<ModeArgs, Mode> {\n return combineCodec(getModeEncoder(), getModeDecoder());\n}\n","/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport {\n combineCodec,\n getAddressDecoder,\n getAddressEncoder,\n getStructDecoder,\n getStructEncoder,\n getU8Decoder,\n getU8Encoder,\n transformEncoder,\n type AccountMeta,\n type AccountSignerMeta,\n type Address,\n type FixedSizeCodec,\n type FixedSizeDecoder,\n type FixedSizeEncoder,\n type Instruction,\n type InstructionWithAccounts,\n type InstructionWithData,\n type ReadonlyAccount,\n type ReadonlySignerAccount,\n type ReadonlyUint8Array,\n type TransactionSigner,\n type WritableAccount,\n type WritableSignerAccount,\n} from '@solana/kit';\nimport { findListConfigPda } from '../pdas';\nimport { TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS } from '../programs';\nimport {\n expectAddress,\n expectSome,\n getAccountMetaFactory,\n type ResolvedAccount,\n} from '../shared';\nimport {\n getModeDecoder,\n getModeEncoder,\n type Mode,\n type ModeArgs,\n} from '../types';\n\nexport const CREATE_LIST_DISCRIMINATOR = 1;\n\nexport function getCreateListDiscriminatorBytes() {\n return getU8Encoder().encode(CREATE_LIST_DISCRIMINATOR);\n}\n\nexport type CreateListInstruction<\n TProgram extends string = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n TAccountAuthority extends string | AccountMeta<string> = string,\n TAccountPayer extends string | AccountMeta<string> = string,\n TAccountListConfig extends string | AccountMeta<string> = string,\n TAccountSystemProgram extends\n | string\n | AccountMeta<string> = '11111111111111111111111111111111',\n TRemainingAccounts extends readonly AccountMeta<string>[] = [],\n> = Instruction<TProgram> &\n InstructionWithData<ReadonlyUint8Array> &\n InstructionWithAccounts<\n [\n TAccountAuthority extends string\n ? ReadonlySignerAccount<TAccountAuthority> &\n AccountSignerMeta<TAccountAuthority>\n : TAccountAuthority,\n TAccountPayer extends string\n ? WritableSignerAccount<TAccountPayer> &\n AccountSignerMeta<TAccountPayer>\n : TAccountPayer,\n TAccountListConfig extends string\n ? WritableAccount<TAccountListConfig>\n : TAccountListConfig,\n TAccountSystemProgram extends string\n ? ReadonlyAccount<TAccountSystemProgram>\n : TAccountSystemProgram,\n ...TRemainingAccounts,\n ]\n >;\n\nexport type CreateListInstructionData = {\n discriminator: number;\n mode: Mode;\n seed: Address;\n};\n\nexport type CreateListInstructionDataArgs = { mode: ModeArgs; seed: Address };\n\nexport function getCreateListInstructionDataEncoder(): FixedSizeEncoder<CreateListInstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([\n ['discriminator', getU8Encoder()],\n ['mode', getModeEncoder()],\n ['seed', getAddressEncoder()],\n ]),\n (value) => ({ ...value, discriminator: CREATE_LIST_DISCRIMINATOR })\n );\n}\n\nexport function getCreateListInstructionDataDecoder(): FixedSizeDecoder<CreateListInstructionData> {\n return getStructDecoder([\n ['discriminator', getU8Decoder()],\n ['mode', getModeDecoder()],\n ['seed', getAddressDecoder()],\n ]);\n}\n\nexport function getCreateListInstructionDataCodec(): FixedSizeCodec<\n CreateListInstructionDataArgs,\n CreateListInstructionData\n> {\n return combineCodec(\n getCreateListInstructionDataEncoder(),\n getCreateListInstructionDataDecoder()\n );\n}\n\nexport type CreateListAsyncInput<\n TAccountAuthority extends string = string,\n TAccountPayer extends string = string,\n TAccountListConfig extends string = string,\n TAccountSystemProgram extends string = string,\n> = {\n authority: TransactionSigner<TAccountAuthority>;\n payer: TransactionSigner<TAccountPayer>;\n listConfig?: Address<TAccountListConfig>;\n systemProgram?: Address<TAccountSystemProgram>;\n mode: CreateListInstructionDataArgs['mode'];\n seed: CreateListInstructionDataArgs['seed'];\n};\n\nexport async function getCreateListInstructionAsync<\n TAccountAuthority extends string,\n TAccountPayer extends string,\n TAccountListConfig extends string,\n TAccountSystemProgram extends string,\n TProgramAddress extends\n Address = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n>(\n input: CreateListAsyncInput<\n TAccountAuthority,\n TAccountPayer,\n TAccountListConfig,\n TAccountSystemProgram\n >,\n config?: { programAddress?: TProgramAddress }\n): Promise<\n CreateListInstruction<\n TProgramAddress,\n TAccountAuthority,\n TAccountPayer,\n TAccountListConfig,\n TAccountSystemProgram\n >\n> {\n // Program address.\n const programAddress =\n config?.programAddress ?? TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n authority: { value: input.authority ?? null, isWritable: false },\n payer: { value: input.payer ?? null, isWritable: true },\n listConfig: { value: input.listConfig ?? null, isWritable: true },\n systemProgram: { value: input.systemProgram ?? null, isWritable: false },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedAccount\n >;\n\n // Original args.\n const args = { ...input };\n\n // Resolve default values.\n if (!accounts.listConfig.value) {\n accounts.listConfig.value = await findListConfigPda({\n authority: expectAddress(accounts.authority.value),\n seed: expectSome(args.seed),\n });\n }\n if (!accounts.systemProgram.value) {\n accounts.systemProgram.value =\n '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;\n }\n\n const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');\n return Object.freeze({\n accounts: [\n getAccountMeta(accounts.authority),\n getAccountMeta(accounts.payer),\n getAccountMeta(accounts.listConfig),\n getAccountMeta(accounts.systemProgram),\n ],\n data: getCreateListInstructionDataEncoder().encode(\n args as CreateListInstructionDataArgs\n ),\n programAddress,\n } as CreateListInstruction<\n TProgramAddress,\n TAccountAuthority,\n TAccountPayer,\n TAccountListConfig,\n TAccountSystemProgram\n >);\n}\n\nexport type CreateListInput<\n TAccountAuthority extends string = string,\n TAccountPayer extends string = string,\n TAccountListConfig extends string = string,\n TAccountSystemProgram extends string = string,\n> = {\n authority: TransactionSigner<TAccountAuthority>;\n payer: TransactionSigner<TAccountPayer>;\n listConfig: Address<TAccountListConfig>;\n systemProgram?: Address<TAccountSystemProgram>;\n mode: CreateListInstructionDataArgs['mode'];\n seed: CreateListInstructionDataArgs['seed'];\n};\n\nexport function getCreateListInstruction<\n TAccountAuthority extends string,\n TAccountPayer extends string,\n TAccountListConfig extends string,\n TAccountSystemProgram extends string,\n TProgramAddress extends\n Address = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n>(\n input: CreateListInput<\n TAccountAuthority,\n TAccountPayer,\n TAccountListConfig,\n TAccountSystemProgram\n >,\n config?: { programAddress?: TProgramAddress }\n): CreateListInstruction<\n TProgramAddress,\n TAccountAuthority,\n TAccountPayer,\n TAccountListConfig,\n TAccountSystemProgram\n> {\n // Program address.\n const programAddress =\n config?.programAddress ?? TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n authority: { value: input.authority ?? null, isWritable: false },\n payer: { value: input.payer ?? null, isWritable: true },\n listConfig: { value: input.listConfig ?? null, isWritable: true },\n systemProgram: { value: input.systemProgram ?? null, isWritable: false },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedAccount\n >;\n\n // Original args.\n const args = { ...input };\n\n // Resolve default values.\n if (!accounts.systemProgram.value) {\n accounts.systemProgram.value =\n '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;\n }\n\n const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');\n return Object.freeze({\n accounts: [\n getAccountMeta(accounts.authority),\n getAccountMeta(accounts.payer),\n getAccountMeta(accounts.listConfig),\n getAccountMeta(accounts.systemProgram),\n ],\n data: getCreateListInstructionDataEncoder().encode(\n args as CreateListInstructionDataArgs\n ),\n programAddress,\n } as CreateListInstruction<\n TProgramAddress,\n TAccountAuthority,\n TAccountPayer,\n TAccountListConfig,\n TAccountSystemProgram\n >);\n}\n\nexport type ParsedCreateListInstruction<\n TProgram extends string = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],\n> = {\n programAddress: Address<TProgram>;\n accounts: {\n authority: TAccountMetas[0];\n payer: TAccountMetas[1];\n listConfig: TAccountMetas[2];\n systemProgram: TAccountMetas[3];\n };\n data: CreateListInstructionData;\n};\n\nexport function parseCreateListInstruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>\n): ParsedCreateListInstruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 4) {\n // TODO: Coded error.\n throw new Error('Not enough accounts');\n }\n let accountIndex = 0;\n const getNextAccount = () => {\n const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;\n accountIndex += 1;\n return accountMeta;\n };\n return {\n programAddress: instruction.programAddress,\n accounts: {\n authority: getNextAccount(),\n payer: getNextAccount(),\n listConfig: getNextAccount(),\n systemProgram: getNextAccount(),\n },\n data: getCreateListInstructionDataDecoder().decode(instruction.data),\n };\n}\n","/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport {\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU8Decoder,\n getU8Encoder,\n transformEncoder,\n type AccountMeta,\n type AccountSignerMeta,\n type Address,\n type FixedSizeCodec,\n type FixedSizeDecoder,\n type FixedSizeEncoder,\n type Instruction,\n type InstructionWithAccounts,\n type InstructionWithData,\n type ReadonlyUint8Array,\n type TransactionSigner,\n type WritableAccount,\n type WritableSignerAccount,\n} from '@solana/kit';\nimport { TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS } from '../programs';\nimport { getAccountMetaFactory, type ResolvedAccount } from '../shared';\n\nexport const DELETE_LIST_DISCRIMINATOR = 5;\n\nexport function getDeleteListDiscriminatorBytes() {\n return getU8Encoder().encode(DELETE_LIST_DISCRIMINATOR);\n}\n\nexport type DeleteListInstruction<\n TProgram extends string = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n TAccountAuthority extends string | AccountMeta<string> = string,\n TAccountListConfig extends string | AccountMeta<string> = string,\n TRemainingAccounts extends readonly AccountMeta<string>[] = [],\n> = Instruction<TProgram> &\n InstructionWithData<ReadonlyUint8Array> &\n InstructionWithAccounts<\n [\n TAccountAuthority extends string\n ? WritableSignerAccount<TAccountAuthority> &\n AccountSignerMeta<TAccountAuthority>\n : TAccountAuthority,\n TAccountListConfig extends string\n ? WritableAccount<TAccountListConfig>\n : TAccountListConfig,\n ...TRemainingAccounts,\n ]\n >;\n\nexport type DeleteListInstructionData = { discriminator: number };\n\nexport type DeleteListInstructionDataArgs = {};\n\nexport function getDeleteListInstructionDataEncoder(): FixedSizeEncoder<DeleteListInstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([['discriminator', getU8Encoder()]]),\n (value) => ({ ...value, discriminator: DELETE_LIST_DISCRIMINATOR })\n );\n}\n\nexport function getDeleteListInstructionDataDecoder(): FixedSizeDecoder<DeleteListInstructionData> {\n return getStructDecoder([['discriminator', getU8Decoder()]]);\n}\n\nexport function getDeleteListInstructionDataCodec(): FixedSizeCodec<\n DeleteListInstructionDataArgs,\n DeleteListInstructionData\n> {\n return combineCodec(\n getDeleteListInstructionDataEncoder(),\n getDeleteListInstructionDataDecoder()\n );\n}\n\nexport type DeleteListInput<\n TAccountAuthority extends string = string,\n TAccountListConfig extends string = string,\n> = {\n authority: TransactionSigner<TAccountAuthority>;\n listConfig: Address<TAccountListConfig>;\n};\n\nexport function getDeleteListInstruction<\n TAccountAuthority extends string,\n TAccountListConfig extends string,\n TProgramAddress extends\n Address = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n>(\n input: DeleteListInput<TAccountAuthority, TAccountListConfig>,\n config?: { programAddress?: TProgramAddress }\n): DeleteListInstruction<\n TProgramAddress,\n TAccountAuthority,\n TAccountListConfig\n> {\n // Program address.\n const programAddress =\n config?.programAddress ?? TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n authority: { value: input.authority ?? null, isWritable: true },\n listConfig: { value: input.listConfig ?? null, isWritable: true },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedAccount\n >;\n\n const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');\n return Object.freeze({\n accounts: [\n getAccountMeta(accounts.authority),\n getAccountMeta(accounts.listConfig),\n ],\n data: getDeleteListInstructionDataEncoder().encode({}),\n programAddress,\n } as DeleteListInstruction<\n TProgramAddress,\n TAccountAuthority,\n TAccountListConfig\n >);\n}\n\nexport type ParsedDeleteListInstruction<\n TProgram extends string = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],\n> = {\n programAddress: Address<TProgram>;\n accounts: {\n authority: TAccountMetas[0];\n listConfig: TAccountMetas[1];\n };\n data: DeleteListInstructionData;\n};\n\nexport function parseDeleteListInstruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>\n): ParsedDeleteListInstruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 2) {\n // TODO: Coded error.\n throw new Error('Not enough accounts');\n }\n let accountIndex = 0;\n const getNextAccount = () => {\n const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;\n accountIndex += 1;\n return accountMeta;\n };\n return {\n programAddress: instruction.programAddress,\n accounts: { authority: getNextAccount(), listConfig: getNextAccount() },\n data: getDeleteListInstructionDataDecoder().decode(instruction.data),\n };\n}\n","/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport {\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU8Decoder,\n getU8Encoder,\n transformEncoder,\n type AccountMeta,\n type AccountSignerMeta,\n type Address,\n type FixedSizeCodec,\n type FixedSizeDecoder,\n type FixedSizeEncoder,\n type Instruction,\n type InstructionWithAccounts,\n type InstructionWithData,\n type ReadonlyUint8Array,\n type TransactionSigner,\n type WritableAccount,\n type WritableSignerAccount,\n} from '@solana/kit';\nimport { TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS } from '../programs';\nimport { getAccountMetaFactory, type ResolvedAccount } from '../shared';\n\nexport const REMOVE_WALLET_DISCRIMINATOR = 3;\n\nexport function getRemoveWalletDiscriminatorBytes() {\n return getU8Encoder().encode(REMOVE_WALLET_DISCRIMINATOR);\n}\n\nexport type RemoveWalletInstruction<\n TProgram extends string = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n TAccountAuthority extends string | AccountMeta<string> = string,\n TAccountListConfig extends string | AccountMeta<string> = string,\n TAccountWalletEntry extends string | AccountMeta<string> = string,\n TRemainingAccounts extends readonly AccountMeta<string>[] = [],\n> = Instruction<TProgram> &\n InstructionWithData<ReadonlyUint8Array> &\n InstructionWithAccounts<\n [\n TAccountAuthority extends string\n ? WritableSignerAccount<TAccountAuthority> &\n AccountSignerMeta<TAccountAuthority>\n : TAccountAuthority,\n TAccountListConfig extends string\n ? WritableAccount<TAccountListConfig>\n : TAccountListConfig,\n TAccountWalletEntry extends string\n ? WritableAccount<TAccountWalletEntry>\n : TAccountWalletEntry,\n ...TRemainingAccounts,\n ]\n >;\n\nexport type RemoveWalletInstructionData = { discriminator: number };\n\nexport type RemoveWalletInstructionDataArgs = {};\n\nexport function getRemoveWalletInstructionDataEncoder(): FixedSizeEncoder<RemoveWalletInstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([['discriminator', getU8Encoder()]]),\n (value) => ({ ...value, discriminator: REMOVE_WALLET_DISCRIMINATOR })\n );\n}\n\nexport function getRemoveWalletInstructionDataDecoder(): FixedSizeDecoder<RemoveWalletInstructionData> {\n return getStructDecoder([['discriminator', getU8Decoder()]]);\n}\n\nexport function getRemoveWalletInstructionDataCodec(): FixedSizeCodec<\n RemoveWalletInstructionDataArgs,\n RemoveWalletInstructionData\n> {\n return combineCodec(\n getRemoveWalletInstructionDataEncoder(),\n getRemoveWalletInstructionDataDecoder()\n );\n}\n\nexport type RemoveWalletInput<\n TAccountAuthority extends string = string,\n TAccountListConfig extends string = string,\n TAccountWalletEntry extends string = string,\n> = {\n authority: TransactionSigner<TAccountAuthority>;\n listConfig: Address<TAccountListConfig>;\n walletEntry: Address<TAccountWalletEntry>;\n};\n\nexport function getRemoveWalletInstruction<\n TAccountAuthority extends string,\n TAccountListConfig extends string,\n TAccountWalletEntry extends string,\n TProgramAddress extends\n Address = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n>(\n input: RemoveWalletInput<\n TAccountAuthority,\n TAccountListConfig,\n TAccountWalletEntry\n >,\n config?: { programAddress?: TProgramAddress }\n): RemoveWalletInstruction<\n TProgramAddress,\n TAccountAuthority,\n TAccountListConfig,\n TAccountWalletEntry\n> {\n // Program address.\n const programAddress =\n config?.programAddress ?? TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n authority: { value: input.authority ?? null, isWritable: true },\n listConfig: { value: input.listConfig ?? null, isWritable: true },\n walletEntry: { value: input.walletEntry ?? null, isWritable: true },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedAccount\n >;\n\n const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');\n return Object.freeze({\n accounts: [\n getAccountMeta(accounts.authority),\n getAccountMeta(accounts.listConfig),\n getAccountMeta(accounts.walletEntry),\n ],\n data: getRemoveWalletInstructionDataEncoder().encode({}),\n programAddress,\n } as RemoveWalletInstruction<\n TProgramAddress,\n TAccountAuthority,\n TAccountListConfig,\n TAccountWalletEntry\n >);\n}\n\nexport type ParsedRemoveWalletInstruction<\n TProgram extends string = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],\n> = {\n programAddress: Address<TProgram>;\n accounts: {\n authority: TAccountMetas[0];\n listConfig: TAccountMetas[1];\n walletEntry: TAccountMetas[2];\n };\n data: RemoveWalletInstructionData;\n};\n\nexport function parseRemoveWalletInstruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>\n): ParsedRemoveWalletInstruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 3) {\n // TODO: Coded error.\n throw new Error('Not enough accounts');\n }\n let accountIndex = 0;\n const getNextAccount = () => {\n const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;\n accountIndex += 1;\n return accountMeta;\n };\n return {\n programAddress: instruction.programAddress,\n accounts: {\n authority: getNextAccount(),\n listConfig: getNextAccount(),\n walletEntry: getNextAccount(),\n },\n data: getRemoveWalletInstructionDataDecoder().decode(instruction.data),\n };\n}\n","/**\n * This code was AUTOGENERATED using the Codama library.\n * Please DO NOT EDIT THIS FILE, instead use visitors\n * to add features, then rerun Codama to update it.\n *\n * @see https://github.com/codama-idl/codama\n */\n\nimport {\n AccountRole,\n combineCodec,\n getStructDecoder,\n getStructEncoder,\n getU8Decoder,\n getU8Encoder,\n transformEncoder,\n type AccountMeta,\n type AccountSignerMeta,\n type Address,\n type FixedSizeCodec,\n type FixedSizeDecoder,\n type FixedSizeEncoder,\n type Instruction,\n type InstructionWithAccounts,\n type InstructionWithData,\n type ReadonlyAccount,\n type ReadonlySignerAccount,\n type ReadonlyUint8Array,\n type TransactionSigner,\n type WritableAccount,\n type WritableSignerAccount,\n} from '@solana/kit';\nimport { TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS } from '../programs';\nimport { getAccountMetaFactory, type ResolvedAccount } from '../shared';\n\nexport const SETUP_EXTRA_METAS_DISCRIMINATOR = 4;\n\nexport function getSetupExtraMetasDiscriminatorBytes() {\n return getU8Encoder().encode(SETUP_EXTRA_METAS_DISCRIMINATOR);\n}\n\nexport type SetupExtraMetasInstruction<\n TProgram extends string = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n TAccountAuthority extends string | AccountMeta<string> = string,\n TAccountPayer extends string | AccountMeta<string> = string,\n TAccountTokenAclMintConfig extends string | AccountMeta<string> = string,\n TAccountMint extends string | AccountMeta<string> = string,\n TAccountExtraMetas extends string | AccountMeta<string> = string,\n TAccountSystemProgram extends\n | string\n | AccountMeta<string> = '11111111111111111111111111111111',\n TRemainingAccounts extends readonly AccountMeta<string>[] = [],\n> = Instruction<TProgram> &\n InstructionWithData<ReadonlyUint8Array> &\n InstructionWithAccounts<\n [\n TAccountAuthority extends string\n ? ReadonlySignerAccount<TAccountAuthority> &\n AccountSignerMeta<TAccountAuthority>\n : TAccountAuthority,\n TAccountPayer extends string\n ? WritableSignerAccount<TAccountPayer> &\n AccountSignerMeta<TAccountPayer>\n : TAccountPayer,\n TAccountTokenAclMintConfig extends string\n ? ReadonlyAccount<TAccountTokenAclMintConfig>\n : TAccountTokenAclMintConfig,\n TAccountMint extends string\n ? ReadonlyAccount<TAccountMint>\n : TAccountMint,\n TAccountExtraMetas extends string\n ? WritableAccount<TAccountExtraMetas>\n : TAccountExtraMetas,\n TAccountSystemProgram extends string\n ? ReadonlyAccount<TAccountSystemProgram>\n : TAccountSystemProgram,\n ...TRemainingAccounts,\n ]\n >;\n\nexport type SetupExtraMetasInstructionData = { discriminator: number };\n\nexport type SetupExtraMetasInstructionDataArgs = {};\n\nexport function getSetupExtraMetasInstructionDataEncoder(): FixedSizeEncoder<SetupExtraMetasInstructionDataArgs> {\n return transformEncoder(\n getStructEncoder([['discriminator', getU8Encoder()]]),\n (value) => ({ ...value, discriminator: SETUP_EXTRA_METAS_DISCRIMINATOR })\n );\n}\n\nexport function getSetupExtraMetasInstructionDataDecoder(): FixedSizeDecoder<SetupExtraMetasInstructionData> {\n return getStructDecoder([['discriminator', getU8Decoder()]]);\n}\n\nexport function getSetupExtraMetasInstructionDataCodec(): FixedSizeCodec<\n SetupExtraMetasInstructionDataArgs,\n SetupExtraMetasInstructionData\n> {\n return combineCodec(\n getSetupExtraMetasInstructionDataEncoder(),\n getSetupExtraMetasInstructionDataDecoder()\n );\n}\n\nexport type SetupExtraMetasInput<\n TAccountAuthority extends string = string,\n TAccountPayer extends string = string,\n TAccountTokenAclMintConfig extends string = string,\n TAccountMint extends string = string,\n TAccountExtraMetas extends string = string,\n TAccountSystemProgram extends string = string,\n> = {\n authority: TransactionSigner<TAccountAuthority>;\n payer: TransactionSigner<TAccountPayer>;\n tokenAclMintConfig: Address<TAccountTokenAclMintConfig>;\n mint: Address<TAccountMint>;\n extraMetas: Address<TAccountExtraMetas>;\n systemProgram?: Address<TAccountSystemProgram>;\n lists: Array<Address>;\n};\n\nexport function getSetupExtraMetasInstruction<\n TAccountAuthority extends string,\n TAccountPayer extends string,\n TAccountTokenAclMintConfig extends string,\n TAccountMint extends string,\n TAccountExtraMetas extends string,\n TAccountSystemProgram extends string,\n TProgramAddress extends\n Address = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n>(\n input: SetupExtraMetasInput<\n TAccountAuthority,\n TAccountPayer,\n TAccountTokenAclMintConfig,\n TAccountMint,\n TAccountExtraMetas,\n TAccountSystemProgram\n >,\n config?: { programAddress?: TProgramAddress }\n): SetupExtraMetasInstruction<\n TProgramAddress,\n TAccountAuthority,\n TAccountPayer,\n TAccountTokenAclMintConfig,\n TAccountMint,\n TAccountExtraMetas,\n TAccountSystemProgram\n> {\n // Program address.\n const programAddress =\n config?.programAddress ?? TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS;\n\n // Original accounts.\n const originalAccounts = {\n authority: { value: input.authority ?? null, isWritable: false },\n payer: { value: input.payer ?? null, isWritable: true },\n tokenAclMintConfig: {\n value: input.tokenAclMintConfig ?? null,\n isWritable: false,\n },\n mint: { value: input.mint ?? null, isWritable: false },\n extraMetas: { value: input.extraMetas ?? null, isWritable: true },\n systemProgram: { value: input.systemProgram ?? null, isWritable: false },\n };\n const accounts = originalAccounts as Record<\n keyof typeof originalAccounts,\n ResolvedAccount\n >;\n\n // Original args.\n const args = { ...input };\n\n // Resolve default values.\n if (!accounts.systemProgram.value) {\n accounts.systemProgram.value =\n '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;\n }\n\n // Remaining accounts.\n const remainingAccounts: AccountMeta[] = args.lists.map((address) => ({\n address,\n role: AccountRole.READONLY,\n }));\n\n const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');\n return Object.freeze({\n accounts: [\n getAccountMeta(accounts.authority),\n getAccountMeta(accounts.payer),\n getAccountMeta(accounts.tokenAclMintConfig),\n getAccountMeta(accounts.mint),\n getAccountMeta(accounts.extraMetas),\n getAccountMeta(accounts.systemProgram),\n ...remainingAccounts,\n ],\n data: getSetupExtraMetasInstructionDataEncoder().encode({}),\n programAddress,\n } as SetupExtraMetasInstruction<\n TProgramAddress,\n TAccountAuthority,\n TAccountPayer,\n TAccountTokenAclMintConfig,\n TAccountMint,\n TAccountExtraMetas,\n TAccountSystemProgram\n >);\n}\n\nexport type ParsedSetupExtraMetasInstruction<\n TProgram extends string = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS,\n TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],\n> = {\n programAddress: Address<TProgram>;\n accounts: {\n authority: TAccountMetas[0];\n payer: TAccountMetas[1];\n tokenAclMintConfig: TAccountMetas[2];\n mint: TAccountMetas[3];\n extraMetas: TAccountMetas[4];\n systemProgram: TAccountMetas[5];\n };\n data: SetupExtraMetasInstructionData;\n};\n\nexport function parseSetupExtraMetasInstruction<\n TProgram extends string,\n TAccountMetas extends readonly AccountMeta[],\n>(\n instruction: Instruction<TProgram> &\n InstructionWithAccounts<TAccountMetas> &\n InstructionWithData<ReadonlyUint8Array>\n): ParsedSetupExtraMetasInstruction<TProgram, TAccountMetas> {\n if (instruction.accounts.length < 6) {\n // TODO: Coded error.\n throw new Error('Not enough accounts');\n }\n let accountIndex = 0;\n const getNextAccount = () => {\n const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;\n accountIndex += 1;\n return accountMeta;\n };\n return {\n programAddress: instruction.programAddress,\n accounts: {\n authority: getNextAccount(),\n payer: getNextAccount(),\n tokenAclMintConfig: getNextAccount(),\n mint: getNextAccount(),\n extraMetas: getNextAccount(),\n systemProgram: getNextAccount(),\n },\n data: getSetupExtraMetasInstructionDataDecoder().decode(instruction.data),\n };\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
export * from './listConfig';
|
|
9
|
+
export * from './walletEntry';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/accounts/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount } from '@solana/kit';
|
|
9
|
+
import { ListConfigSeeds } from '../pdas';
|
|
10
|
+
export declare const LIST_CONFIG_DISCRIMINATOR = 1;
|
|
11
|
+
export declare function getListConfigDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array;
|
|
12
|
+
export type ListConfig = {
|
|
13
|
+
discriminator: number;
|
|
14
|
+
authority: Address;
|
|
15
|
+
seed: Address;
|
|
16
|
+
mode: number;
|
|
17
|
+
walletsCount: bigint;
|
|
18
|
+
};
|
|
19
|
+
export type ListConfigArgs = {
|
|
20
|
+
authority: Address;
|
|
21
|
+
seed: Address;
|
|
22
|
+
mode: number;
|
|
23
|
+
walletsCount: number | bigint;
|
|
24
|
+
};
|
|
25
|
+
export declare function getListConfigEncoder(): FixedSizeEncoder<ListConfigArgs>;
|
|
26
|
+
export declare function getListConfigDecoder(): FixedSizeDecoder<ListConfig>;
|
|
27
|
+
export declare function getListConfigCodec(): FixedSizeCodec<ListConfigArgs, ListConfig>;
|
|
28
|
+
export declare function decodeListConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<ListConfig, TAddress>;
|
|
29
|
+
export declare function decodeListConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<ListConfig, TAddress>;
|
|
30
|
+
export declare function fetchListConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<ListConfig, TAddress>>;
|
|
31
|
+
export declare function fetchMaybeListConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<ListConfig, TAddress>>;
|
|
32
|
+
export declare function fetchAllListConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<ListConfig>[]>;
|
|
33
|
+
export declare function fetchAllMaybeListConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<ListConfig>[]>;
|
|
34
|
+
export declare function getListConfigSize(): number;
|
|
35
|
+
export declare function fetchListConfigFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0], seeds: ListConfigSeeds, config?: FetchAccountConfig & {
|
|
36
|
+
programAddress?: Address;
|
|
37
|
+
}): Promise<Account<ListConfig>>;
|
|
38
|
+
export declare function fetchMaybeListConfigFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0], seeds: ListConfigSeeds, config?: FetchAccountConfig & {
|
|
39
|
+
programAddress?: Address;
|
|
40
|
+
}): Promise<MaybeAccount<ListConfig>>;
|
|
41
|
+
//# sourceMappingURL=listConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listConfig.d.ts","sourceRoot":"","sources":["../../../../src/generated/accounts/listConfig.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAUpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAqB,eAAe,EAAE,MAAM,SAAS,CAAC;AAE7D,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAE3C,wBAAgB,+BAA+B,6CAE9C;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;CAC/B,CAAC;AAEF,wBAAgB,oBAAoB,IAAI,gBAAgB,CAAC,cAAc,CAAC,CAWvE;AAED,wBAAgB,oBAAoB,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAQnE;AAED,wBAAgB,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AC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC,CAGrC;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAsB,wBAAwB,CAC5C,GAAG,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAC9C,KAAK,EAAE,eAAe,EACtB,MAAM,GAAE,kBAAkB,GAAG;IAAE,cAAc,CAAC,EAAE,OAAO,CAAA;CAAO,GAC7D,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAI9B;AAED,wBAAsB,6BAA6B,CACjD,GAAG,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAC9C,KAAK,EAAE,eAAe,EACtB,MAAM,GAAE,kBAAkB,GAAG;IAAE,cAAc,CAAC,EAAE,OAAO,CAAA;CAAO,GAC7D,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAInC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount } from '@solana/kit';
|
|
9
|
+
import { WalletEntrySeeds } from '../pdas';
|
|
10
|
+
export declare const WALLET_ENTRY_DISCRIMINATOR = 2;
|
|
11
|
+
export declare function getWalletEntryDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array;
|
|
12
|
+
export type WalletEntry = {
|
|
13
|
+
discriminator: number;
|
|
14
|
+
walletAddress: Address;
|
|
15
|
+
listConfig: Address;
|
|
16
|
+
};
|
|
17
|
+
export type WalletEntryArgs = {
|
|
18
|
+
walletAddress: Address;
|
|
19
|
+
listConfig: Address;
|
|
20
|
+
};
|
|
21
|
+
export declare function getWalletEntryEncoder(): FixedSizeEncoder<WalletEntryArgs>;
|
|
22
|
+
export declare function getWalletEntryDecoder(): FixedSizeDecoder<WalletEntry>;
|
|
23
|
+
export declare function getWalletEntryCodec(): FixedSizeCodec<WalletEntryArgs, WalletEntry>;
|
|
24
|
+
export declare function decodeWalletEntry<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<WalletEntry, TAddress>;
|
|
25
|
+
export declare function decodeWalletEntry<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<WalletEntry, TAddress>;
|
|
26
|
+
export declare function fetchWalletEntry<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<WalletEntry, TAddress>>;
|
|
27
|
+
export declare function fetchMaybeWalletEntry<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<WalletEntry, TAddress>>;
|
|
28
|
+
export declare function fetchAllWalletEntry(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<WalletEntry>[]>;
|
|
29
|
+
export declare function fetchAllMaybeWalletEntry(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<WalletEntry>[]>;
|
|
30
|
+
export declare function getWalletEntrySize(): number;
|
|
31
|
+
export declare function fetchWalletEntryFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0], seeds: WalletEntrySeeds, config?: FetchAccountConfig & {
|
|
32
|
+
programAddress?: Address;
|
|
33
|
+
}): Promise<Account<WalletEntry>>;
|
|
34
|
+
export declare function fetchMaybeWalletEntryFromSeeds(rpc: Parameters<typeof fetchEncodedAccount>[0], seeds: WalletEntrySeeds, config?: FetchAccountConfig & {
|
|
35
|
+
programAddress?: Address;
|
|
36
|
+
}): Promise<MaybeAccount<WalletEntry>>;
|
|
37
|
+
//# sourceMappingURL=walletEntry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletEntry.d.ts","sourceRoot":"","sources":["../../../../src/generated/accounts/walletEntry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAQpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAsB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE/D,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C,wBAAgB,gCAAgC,6CAE/C;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAAE,aAAa,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE,CAAC;AAE9E,wBAAgB,qBAAqB,IAAI,gBAAgB,CAAC,eAAe,CAAC,CASzE;AAED,wBAAgB,qBAAqB,IAAI,gBAAgB,CAAC,WAAW,CAAC,CAMrE;AAED,wBAAgB,mBAAmB,IAAI,cAAc,CACnD,eAAe,EACf,WAAW,CACZ,CAEA;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,SAAS,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AAC,YAAY,CAAC,WAAW,CAAC,EAAE,CAAC,CAGtC;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED,wBAAsB,yBAAyB,CAC7C,GAAG,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAC9C,KAAK,EAAE,gBAAgB,EACvB,MAAM,GAAE,kBAAkB,GAAG;IAAE,cAAc,CAAC,EAAE,OAAO,CAAA;CAAO,GAC7D,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAI/B;AAED,wBAAsB,8BAA8B,CAClD,GAAG,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAC9C,KAAK,EAAE,gBAAgB,EACvB,MAAM,GAAE,kBAAkB,GAAG;IAAE,cAAc,CAAC,EAAE,OAAO,CAAA;CAAO,GAC7D,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAIpC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
export * from './accounts';
|
|
9
|
+
export * from './instructions';
|
|
10
|
+
export * from './pdas';
|
|
11
|
+
export * from './programs';
|
|
12
|
+
export * from './types';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
9
|
+
import { TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const ADD_WALLET_DISCRIMINATOR = 2;
|
|
11
|
+
export declare function getAddWalletDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type AddWalletInstruction<TProgram extends string = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountListConfig extends string | AccountMeta<string> = string, TAccountWallet extends string | AccountMeta<string> = string, TAccountWalletEntry extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
14
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
15
|
+
TAccountListConfig extends string ? WritableAccount<TAccountListConfig> : TAccountListConfig,
|
|
16
|
+
TAccountWallet extends string ? ReadonlyAccount<TAccountWallet> : TAccountWallet,
|
|
17
|
+
TAccountWalletEntry extends string ? WritableAccount<TAccountWalletEntry> : TAccountWalletEntry,
|
|
18
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
19
|
+
...TRemainingAccounts
|
|
20
|
+
]>;
|
|
21
|
+
export type AddWalletInstructionData = {
|
|
22
|
+
discriminator: number;
|
|
23
|
+
};
|
|
24
|
+
export type AddWalletInstructionDataArgs = {};
|
|
25
|
+
export declare function getAddWalletInstructionDataEncoder(): FixedSizeEncoder<AddWalletInstructionDataArgs>;
|
|
26
|
+
export declare function getAddWalletInstructionDataDecoder(): FixedSizeDecoder<AddWalletInstructionData>;
|
|
27
|
+
export declare function getAddWalletInstructionDataCodec(): FixedSizeCodec<AddWalletInstructionDataArgs, AddWalletInstructionData>;
|
|
28
|
+
export type AddWalletAsyncInput<TAccountAuthority extends string = string, TAccountPayer extends string = string, TAccountListConfig extends string = string, TAccountWallet extends string = string, TAccountWalletEntry extends string = string, TAccountSystemProgram extends string = string> = {
|
|
29
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
30
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
31
|
+
listConfig: Address<TAccountListConfig>;
|
|
32
|
+
wallet: Address<TAccountWallet>;
|
|
33
|
+
walletEntry?: Address<TAccountWalletEntry>;
|
|
34
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
35
|
+
};
|
|
36
|
+
export declare function getAddWalletInstructionAsync<TAccountAuthority extends string, TAccountPayer extends string, TAccountListConfig extends string, TAccountWallet extends string, TAccountWalletEntry extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS>(input: AddWalletAsyncInput<TAccountAuthority, TAccountPayer, TAccountListConfig, TAccountWallet, TAccountWalletEntry, TAccountSystemProgram>, config?: {
|
|
37
|
+
programAddress?: TProgramAddress;
|
|
38
|
+
}): Promise<AddWalletInstruction<TProgramAddress, TAccountAuthority, TAccountPayer, TAccountListConfig, TAccountWallet, TAccountWalletEntry, TAccountSystemProgram>>;
|
|
39
|
+
export type AddWalletInput<TAccountAuthority extends string = string, TAccountPayer extends string = string, TAccountListConfig extends string = string, TAccountWallet extends string = string, TAccountWalletEntry extends string = string, TAccountSystemProgram extends string = string> = {
|
|
40
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
41
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
42
|
+
listConfig: Address<TAccountListConfig>;
|
|
43
|
+
wallet: Address<TAccountWallet>;
|
|
44
|
+
walletEntry: Address<TAccountWalletEntry>;
|
|
45
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
46
|
+
};
|
|
47
|
+
export declare function getAddWalletInstruction<TAccountAuthority extends string, TAccountPayer extends string, TAccountListConfig extends string, TAccountWallet extends string, TAccountWalletEntry extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS>(input: AddWalletInput<TAccountAuthority, TAccountPayer, TAccountListConfig, TAccountWallet, TAccountWalletEntry, TAccountSystemProgram>, config?: {
|
|
48
|
+
programAddress?: TProgramAddress;
|
|
49
|
+
}): AddWalletInstruction<TProgramAddress, TAccountAuthority, TAccountPayer, TAccountListConfig, TAccountWallet, TAccountWalletEntry, TAccountSystemProgram>;
|
|
50
|
+
export type ParsedAddWalletInstruction<TProgram extends string = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
51
|
+
programAddress: Address<TProgram>;
|
|
52
|
+
accounts: {
|
|
53
|
+
authority: TAccountMetas[0];
|
|
54
|
+
payer: TAccountMetas[1];
|
|
55
|
+
listConfig: TAccountMetas[2];
|
|
56
|
+
wallet: TAccountMetas[3];
|
|
57
|
+
walletEntry: TAccountMetas[4];
|
|
58
|
+
systemProgram: TAccountMetas[5];
|
|
59
|
+
};
|
|
60
|
+
data: AddWalletInstructionData;
|
|
61
|
+
};
|
|
62
|
+
export declare function parseAddWalletInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAddWalletInstruction<TProgram, TAccountMetas>;
|
|
63
|
+
//# sourceMappingURL=addWallet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addWallet.d.ts","sourceRoot":"","sources":["../../../../src/generated/instructions/addWallet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAOL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,sCAAsC,EAAE,MAAM,aAAa,CAAC;AAOrE,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C,wBAAgB,8BAA8B,uBAE7C;AAED,MAAM,MAAM,oBAAoB,CAC9B,QAAQ,SAAS,MAAM,GAAG,OAAO,sCAAsC,EACvE,iBAAiB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC/D,aAAa,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC3D,kBAAkB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAChE,cAAc,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC5D,mBAAmB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EACjE,qBAA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,CAAC;QACzB,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC9B,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KACjC,CAAC;IACF,IAAI,EAAE,wBAAwB,CAAC;CAChC,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,0BAA0B,CAAC,QAAQ,EAAE,aAAa,CAAC,CAuBrD"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
9
|
+
import { TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
import { type Mode, type ModeArgs } from '../types';
|
|
11
|
+
export declare const CREATE_LIST_DISCRIMINATOR = 1;
|
|
12
|
+
export declare function getCreateListDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
+
export type CreateListInstruction<TProgram extends string = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountListConfig extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
15
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
16
|
+
TAccountListConfig extends string ? WritableAccount<TAccountListConfig> : TAccountListConfig,
|
|
17
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
18
|
+
...TRemainingAccounts
|
|
19
|
+
]>;
|
|
20
|
+
export type CreateListInstructionData = {
|
|
21
|
+
discriminator: number;
|
|
22
|
+
mode: Mode;
|
|
23
|
+
seed: Address;
|
|
24
|
+
};
|
|
25
|
+
export type CreateListInstructionDataArgs = {
|
|
26
|
+
mode: ModeArgs;
|
|
27
|
+
seed: Address;
|
|
28
|
+
};
|
|
29
|
+
export declare function getCreateListInstructionDataEncoder(): FixedSizeEncoder<CreateListInstructionDataArgs>;
|
|
30
|
+
export declare function getCreateListInstructionDataDecoder(): FixedSizeDecoder<CreateListInstructionData>;
|
|
31
|
+
export declare function getCreateListInstructionDataCodec(): FixedSizeCodec<CreateListInstructionDataArgs, CreateListInstructionData>;
|
|
32
|
+
export type CreateListAsyncInput<TAccountAuthority extends string = string, TAccountPayer extends string = string, TAccountListConfig extends string = string, TAccountSystemProgram extends string = string> = {
|
|
33
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
34
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
35
|
+
listConfig?: Address<TAccountListConfig>;
|
|
36
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
37
|
+
mode: CreateListInstructionDataArgs['mode'];
|
|
38
|
+
seed: CreateListInstructionDataArgs['seed'];
|
|
39
|
+
};
|
|
40
|
+
export declare function getCreateListInstructionAsync<TAccountAuthority extends string, TAccountPayer extends string, TAccountListConfig extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS>(input: CreateListAsyncInput<TAccountAuthority, TAccountPayer, TAccountListConfig, TAccountSystemProgram>, config?: {
|
|
41
|
+
programAddress?: TProgramAddress;
|
|
42
|
+
}): Promise<CreateListInstruction<TProgramAddress, TAccountAuthority, TAccountPayer, TAccountListConfig, TAccountSystemProgram>>;
|
|
43
|
+
export type CreateListInput<TAccountAuthority extends string = string, TAccountPayer extends string = string, TAccountListConfig extends string = string, TAccountSystemProgram extends string = string> = {
|
|
44
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
45
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
46
|
+
listConfig: Address<TAccountListConfig>;
|
|
47
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
48
|
+
mode: CreateListInstructionDataArgs['mode'];
|
|
49
|
+
seed: CreateListInstructionDataArgs['seed'];
|
|
50
|
+
};
|
|
51
|
+
export declare function getCreateListInstruction<TAccountAuthority extends string, TAccountPayer extends string, TAccountListConfig extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS>(input: CreateListInput<TAccountAuthority, TAccountPayer, TAccountListConfig, TAccountSystemProgram>, config?: {
|
|
52
|
+
programAddress?: TProgramAddress;
|
|
53
|
+
}): CreateListInstruction<TProgramAddress, TAccountAuthority, TAccountPayer, TAccountListConfig, TAccountSystemProgram>;
|
|
54
|
+
export type ParsedCreateListInstruction<TProgram extends string = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
55
|
+
programAddress: Address<TProgram>;
|
|
56
|
+
accounts: {
|
|
57
|
+
authority: TAccountMetas[0];
|
|
58
|
+
payer: TAccountMetas[1];
|
|
59
|
+
listConfig: TAccountMetas[2];
|
|
60
|
+
systemProgram: TAccountMetas[3];
|
|
61
|
+
};
|
|
62
|
+
data: CreateListInstructionData;
|
|
63
|
+
};
|
|
64
|
+
export declare function parseCreateListInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateListInstruction<TProgram, TAccountMetas>;
|
|
65
|
+
//# sourceMappingURL=createList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createList.d.ts","sourceRoot":"","sources":["../../../../src/generated/instructions/createList.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EASL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,sCAAsC,EAAE,MAAM,aAAa,CAAC;AAOrE,OAAO,EAGL,KAAK,IAAI,EACT,KAAK,QAAQ,EACd,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAE3C,wBAAgB,+BAA+B,uBAE9C;AAED,MAAM,MAAM,qBAAqB,CAC/B,QAAQ,SAAS,MAAM,GAAG,OAAO,sCAAsC,EACvE,iBAAiB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC/D,aAAa,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC3D,kBAAkB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,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/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
9
|
+
import { TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const DELETE_LIST_DISCRIMINATOR = 5;
|
|
11
|
+
export declare function getDeleteListDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type DeleteListInstruction<TProgram extends string = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountListConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
14
|
+
TAccountListConfig extends string ? WritableAccount<TAccountListConfig> : TAccountListConfig,
|
|
15
|
+
...TRemainingAccounts
|
|
16
|
+
]>;
|
|
17
|
+
export type DeleteListInstructionData = {
|
|
18
|
+
discriminator: number;
|
|
19
|
+
};
|
|
20
|
+
export type DeleteListInstructionDataArgs = {};
|
|
21
|
+
export declare function getDeleteListInstructionDataEncoder(): FixedSizeEncoder<DeleteListInstructionDataArgs>;
|
|
22
|
+
export declare function getDeleteListInstructionDataDecoder(): FixedSizeDecoder<DeleteListInstructionData>;
|
|
23
|
+
export declare function getDeleteListInstructionDataCodec(): FixedSizeCodec<DeleteListInstructionDataArgs, DeleteListInstructionData>;
|
|
24
|
+
export type DeleteListInput<TAccountAuthority extends string = string, TAccountListConfig extends string = string> = {
|
|
25
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
26
|
+
listConfig: Address<TAccountListConfig>;
|
|
27
|
+
};
|
|
28
|
+
export declare function getDeleteListInstruction<TAccountAuthority extends string, TAccountListConfig extends string, TProgramAddress extends Address = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS>(input: DeleteListInput<TAccountAuthority, TAccountListConfig>, config?: {
|
|
29
|
+
programAddress?: TProgramAddress;
|
|
30
|
+
}): DeleteListInstruction<TProgramAddress, TAccountAuthority, TAccountListConfig>;
|
|
31
|
+
export type ParsedDeleteListInstruction<TProgram extends string = typeof TOKEN_ACL_GATE_PROGRAM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
32
|
+
programAddress: Address<TProgram>;
|
|
33
|
+
accounts: {
|
|
34
|
+
authority: TAccountMetas[0];
|
|
35
|
+
listConfig: TAccountMetas[1];
|
|
36
|
+
};
|
|
37
|
+
data: DeleteListInstructionData;
|
|
38
|
+
};
|
|
39
|
+
export declare function parseDeleteListInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedDeleteListInstruction<TProgram, TAccountMetas>;
|
|
40
|
+
//# sourceMappingURL=deleteList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteList.d.ts","sourceRoot":"","sources":["../../../../src/generated/instructions/deleteList.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAOL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK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AAM,EACzC,kBAAkB,SAAS,MAAM,GAAG,MAAM,IACxC;IACF,SAAS,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAChD,UAAU,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACzC,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,iBAAiB,SAAS,MAAM,EAChC,kBAAkB,SAAS,MAAM,EACjC,eAAe,SACb,OAAO,GAAG,OAAO,sCAAsC,EAEzD,KAAK,EAAE,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,EAC7D,MAAM,CAAC,EAAE;IAAE,cAAc,CAAC,EAAE,eAAe,CAAA;CAAE,GAC5C,qBAAqB,CACtB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,CACnB,CA4BA;AAED,MAAM,MAAM,2BAA2B,CACrC,QAAQ,SAAS,MAAM,GAAG,OAAO,sCAAsC,EACvE,aAAa,SAAS,SAAS,WAAW,EAAE,GAAG,SAAS,WAAW,EAAE,IACnE;IACF,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACR,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC5B,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAC9B,CAAC;IACF,IAAI,EAAE,yBAAyB,CAAC;CACjC,CAAC;AAEF,wBAAgB,0BAA0B,CACxC,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,2BAA2B,CAAC,QAAQ,EAAE,aAAa,CAAC,CAgBtD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
export * from './addWallet';
|
|
9
|
+
export * from './createList';
|
|
10
|
+
export * from './deleteList';
|
|
11
|
+
export * from './removeWallet';
|
|
12
|
+
export * from './setupExtraMetas';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC"}
|