/** * 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 ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from "@solana/kit"; import { PERPETUALS_PROGRAM_ADDRESS } from "../programs"; import { type Permissions, type PermissionsArgs } from "../types"; export declare const SET_PERPETUALS_CONFIG_DISCRIMINATOR: Uint8Array; export declare function getSetPerpetualsConfigDiscriminatorBytes(): ReadonlyUint8Array; export type SetPerpetualsConfigInstruction = string, TAccountPerpetuals extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, TAccountPerpetuals extends string ? WritableAccount : TAccountPerpetuals, ...TRemainingAccounts ]>; export type SetPerpetualsConfigInstructionData = { discriminator: ReadonlyUint8Array; permissions: Permissions; }; export type SetPerpetualsConfigInstructionDataArgs = { permissions: PermissionsArgs; }; export declare function getSetPerpetualsConfigInstructionDataEncoder(): FixedSizeEncoder; export declare function getSetPerpetualsConfigInstructionDataDecoder(): FixedSizeDecoder; export declare function getSetPerpetualsConfigInstructionDataCodec(): FixedSizeCodec; export type SetPerpetualsConfigInput = { admin: TransactionSigner; perpetuals: Address; permissions: SetPerpetualsConfigInstructionDataArgs["permissions"]; }; export declare function getSetPerpetualsConfigInstruction(input: SetPerpetualsConfigInput, config?: { programAddress?: TProgramAddress; }): SetPerpetualsConfigInstruction; export type ParsedSetPerpetualsConfigInstruction = { programAddress: Address; accounts: { admin: TAccountMetas[0]; perpetuals: TAccountMetas[1]; }; data: SetPerpetualsConfigInstructionData; }; export declare function parseSetPerpetualsConfigInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetPerpetualsConfigInstruction; //# sourceMappingURL=setPerpetualsConfig.d.ts.map