/** * 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_ENABLE_SLOT_INSTRUCTION_ACCOUNTS: { readonly distributor: 0; readonly admin: 1; }; export type SetEnableSlotInstructionAccountName = keyof typeof SET_ENABLE_SLOT_INSTRUCTION_ACCOUNTS; export declare const SET_ENABLE_SLOT_DISCRIMINATOR: Uint8Array; export declare function getSetEnableSlotDiscriminatorBytes(): ReadonlyUint8Array; export type SetEnableSlotInstruction = string, TAccountAdmin extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountDistributor extends string ? WritableAccount : TAccountDistributor, TAccountAdmin extends string ? WritableSignerAccount & AccountSignerMeta : TAccountAdmin, ...TRemainingAccounts ]>; export type SetEnableSlotInstructionData = { discriminator: ReadonlyUint8Array; enableSlot: bigint; }; export type SetEnableSlotInstructionDataArgs = { enableSlot: number | bigint; }; export declare function getSetEnableSlotInstructionDataEncoder(): FixedSizeEncoder; export declare function getSetEnableSlotInstructionDataDecoder(): FixedSizeDecoder; export declare function getSetEnableSlotInstructionDataCodec(): FixedSizeCodec; export type SetEnableSlotInput = { /** [MerkleDistributor]. */ distributor: Address; /** Payer to create the distributor. */ admin: TransactionSigner; enableSlot: SetEnableSlotInstructionDataArgs["enableSlot"]; }; export declare function getSetEnableSlotInstruction(input: SetEnableSlotInput, config?: { programAddress?: TProgramAddress; }): SetEnableSlotInstruction; export type ParsedSetEnableSlotInstruction = { programAddress: Address; accounts: { /** [MerkleDistributor]. */ distributor: TAccountMetas[0]; /** Payer to create the distributor. */ admin: TAccountMetas[1]; }; data: SetEnableSlotInstructionData; }; export declare function parseSetEnableSlotInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetEnableSlotInstruction; //# sourceMappingURL=setEnableSlot.d.ts.map