/** * 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 ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from "@solana/kit"; import { YVAULTS_PROGRAM_ADDRESS } from "../programs"; export declare const UPDATE_GLOBAL_CONFIG_DISCRIMINATOR: Uint8Array; export declare function getUpdateGlobalConfigDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateGlobalConfigInstruction = string, TAccountGlobalConfig extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdminAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdminAuthority, TAccountGlobalConfig extends string ? WritableAccount : TAccountGlobalConfig, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type UpdateGlobalConfigInstructionData = { discriminator: ReadonlyUint8Array; key: number; index: number; value: ReadonlyUint8Array; }; export type UpdateGlobalConfigInstructionDataArgs = { key: number; index: number; value: ReadonlyUint8Array; }; export declare function getUpdateGlobalConfigInstructionDataEncoder(): FixedSizeEncoder; export declare function getUpdateGlobalConfigInstructionDataDecoder(): FixedSizeDecoder; export declare function getUpdateGlobalConfigInstructionDataCodec(): FixedSizeCodec; export type UpdateGlobalConfigInput = { adminAuthority: TransactionSigner; globalConfig: Address; systemProgram?: Address; key: UpdateGlobalConfigInstructionDataArgs["key"]; index: UpdateGlobalConfigInstructionDataArgs["index"]; value: UpdateGlobalConfigInstructionDataArgs["value"]; }; export declare function getUpdateGlobalConfigInstruction(input: UpdateGlobalConfigInput, config?: { programAddress?: TProgramAddress; }): UpdateGlobalConfigInstruction; export type ParsedUpdateGlobalConfigInstruction = { programAddress: Address; accounts: { adminAuthority: TAccountMetas[0]; globalConfig: TAccountMetas[1]; systemProgram: TAccountMetas[2]; }; data: UpdateGlobalConfigInstructionData; }; export declare function parseUpdateGlobalConfigInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateGlobalConfigInstruction; //# sourceMappingURL=updateGlobalConfig.d.ts.map