UNPKG

@kamino-finance/kliquidity-sdk

Version:

Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol

38 lines 3.94 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 ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { YVAULTS_PROGRAM_ADDRESS } from '../programs'; export declare const INITIALIZE_GLOBAL_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getInitializeGlobalConfigDiscriminatorBytes(): ReadonlyUint8Array; export type InitializeGlobalConfigInstruction<TProgram extends string = typeof YVAULTS_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountGlobalConfig extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountAdminAuthority extends string ? WritableSignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority, TAccountGlobalConfig extends string ? WritableAccount<TAccountGlobalConfig> : TAccountGlobalConfig, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>; export type InitializeGlobalConfigInstructionData = { discriminator: ReadonlyUint8Array; }; export type InitializeGlobalConfigInstructionDataArgs = {}; export declare function getInitializeGlobalConfigInstructionDataEncoder(): FixedSizeEncoder<InitializeGlobalConfigInstructionDataArgs>; export declare function getInitializeGlobalConfigInstructionDataDecoder(): FixedSizeDecoder<InitializeGlobalConfigInstructionData>; export declare function getInitializeGlobalConfigInstructionDataCodec(): FixedSizeCodec<InitializeGlobalConfigInstructionDataArgs, InitializeGlobalConfigInstructionData>; export type InitializeGlobalConfigInput<TAccountAdminAuthority extends string = string, TAccountGlobalConfig extends string = string, TAccountSystemProgram extends string = string> = { adminAuthority: TransactionSigner<TAccountAdminAuthority>; globalConfig: Address<TAccountGlobalConfig>; systemProgram?: Address<TAccountSystemProgram>; }; export declare function getInitializeGlobalConfigInstruction<TAccountAdminAuthority extends string, TAccountGlobalConfig extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof YVAULTS_PROGRAM_ADDRESS>(input: InitializeGlobalConfigInput<TAccountAdminAuthority, TAccountGlobalConfig, TAccountSystemProgram>, config?: { programAddress?: TProgramAddress; }): InitializeGlobalConfigInstruction<TProgramAddress, TAccountAdminAuthority, TAccountGlobalConfig, TAccountSystemProgram>; export type ParsedInitializeGlobalConfigInstruction<TProgram extends string = typeof YVAULTS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { adminAuthority: TAccountMetas[0]; globalConfig: TAccountMetas[1]; systemProgram: TAccountMetas[2]; }; data: InitializeGlobalConfigInstructionData; }; export declare function parseInitializeGlobalConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeGlobalConfigInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=initializeGlobalConfig.d.ts.map