/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ 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"; import { MERKLE_DISTRIBUTOR_PROGRAM_ADDRESS } from "../programs/index.js"; export declare const SET_ADMIN_INSTRUCTION_ACCOUNTS: { readonly distributor: 0; readonly admin: 1; readonly newAdmin: 2; }; export type SetAdminInstructionAccountName = keyof typeof SET_ADMIN_INSTRUCTION_ACCOUNTS; export declare const SET_ADMIN_DISCRIMINATOR: Uint8Array; export declare function getSetAdminDiscriminatorBytes(): ReadonlyUint8Array; export type SetAdminInstruction = string, TAccountAdmin extends string | AccountMeta = string, TAccountNewAdmin extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountDistributor extends string ? WritableAccount : TAccountDistributor, TAccountAdmin extends string ? WritableSignerAccount & AccountSignerMeta : TAccountAdmin, TAccountNewAdmin extends string ? WritableAccount : TAccountNewAdmin, ...TRemainingAccounts ]>; export type SetAdminInstructionData = { discriminator: ReadonlyUint8Array; }; export type SetAdminInstructionDataArgs = {}; export declare function getSetAdminInstructionDataEncoder(): FixedSizeEncoder; export declare function getSetAdminInstructionDataDecoder(): FixedSizeDecoder; export declare function getSetAdminInstructionDataCodec(): FixedSizeCodec; export type SetAdminInput = { /** The [MerkleDistributor]. */ distributor: Address; /** Admin signer */ admin: TransactionSigner; /** New admin account */ newAdmin: Address; }; export declare function getSetAdminInstruction(input: SetAdminInput, config?: { programAddress?: TProgramAddress; }): SetAdminInstruction; export type ParsedSetAdminInstruction = { programAddress: Address; accounts: { /** The [MerkleDistributor]. */ distributor: TAccountMetas[0]; /** Admin signer */ admin: TAccountMetas[1]; /** New admin account */ newAdmin: TAccountMetas[2]; }; data: SetAdminInstructionData; }; export declare function parseSetAdminInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetAdminInstruction; //# sourceMappingURL=setAdmin.d.ts.map