UNPKG

@kamino-finance/farms-sdk

Version:
40 lines 3.57 kB
/** * 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 { FARMS_PROGRAM_ADDRESS } from "../programs"; export declare const UPDATE_GLOBAL_CONFIG_ADMIN_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getUpdateGlobalConfigAdminDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateGlobalConfigAdminInstruction<TProgram extends string = typeof FARMS_PROGRAM_ADDRESS, TAccountPendingGlobalAdmin extends string | AccountMeta<string> = string, TAccountGlobalConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[ TAccountPendingGlobalAdmin extends string ? ReadonlySignerAccount<TAccountPendingGlobalAdmin> & AccountSignerMeta<TAccountPendingGlobalAdmin> : TAccountPendingGlobalAdmin, TAccountGlobalConfig extends string ? WritableAccount<TAccountGlobalConfig> : TAccountGlobalConfig, ...TRemainingAccounts ]>; export type UpdateGlobalConfigAdminInstructionData = { discriminator: ReadonlyUint8Array; }; export type UpdateGlobalConfigAdminInstructionDataArgs = {}; export declare function getUpdateGlobalConfigAdminInstructionDataEncoder(): FixedSizeEncoder<UpdateGlobalConfigAdminInstructionDataArgs>; export declare function getUpdateGlobalConfigAdminInstructionDataDecoder(): FixedSizeDecoder<UpdateGlobalConfigAdminInstructionData>; export declare function getUpdateGlobalConfigAdminInstructionDataCodec(): FixedSizeCodec<UpdateGlobalConfigAdminInstructionDataArgs, UpdateGlobalConfigAdminInstructionData>; export type UpdateGlobalConfigAdminInput<TAccountPendingGlobalAdmin extends string = string, TAccountGlobalConfig extends string = string> = { pendingGlobalAdmin: TransactionSigner<TAccountPendingGlobalAdmin>; globalConfig: Address<TAccountGlobalConfig>; }; export declare function getUpdateGlobalConfigAdminInstruction<TAccountPendingGlobalAdmin extends string, TAccountGlobalConfig extends string, TProgramAddress extends Address = typeof FARMS_PROGRAM_ADDRESS>(input: UpdateGlobalConfigAdminInput<TAccountPendingGlobalAdmin, TAccountGlobalConfig>, config?: { programAddress?: TProgramAddress; }): UpdateGlobalConfigAdminInstruction<TProgramAddress, TAccountPendingGlobalAdmin, TAccountGlobalConfig>; export type ParsedUpdateGlobalConfigAdminInstruction<TProgram extends string = typeof FARMS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { pendingGlobalAdmin: TAccountMetas[0]; globalConfig: TAccountMetas[1]; }; data: UpdateGlobalConfigAdminInstructionData; }; export declare function parseUpdateGlobalConfigAdminInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdateGlobalConfigAdminInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=updateGlobalConfigAdmin.d.ts.map