UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

40 lines 4.33 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_COLLATERAL_INFO_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getInitializeCollateralInfoDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>; export type InitializeCollateralInfoInstruction<TProgram extends string = typeof YVAULTS_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountGlobalConfig extends string | AccountMeta<string> = string, TAccountCollInfo 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, TAccountCollInfo extends string ? WritableAccount<TAccountCollInfo> : TAccountCollInfo, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>; export type InitializeCollateralInfoInstructionData = { discriminator: ReadonlyUint8Array; }; export type InitializeCollateralInfoInstructionDataArgs = {}; export declare function getInitializeCollateralInfoInstructionDataEncoder(): FixedSizeEncoder<InitializeCollateralInfoInstructionDataArgs>; export declare function getInitializeCollateralInfoInstructionDataDecoder(): FixedSizeDecoder<InitializeCollateralInfoInstructionData>; export declare function getInitializeCollateralInfoInstructionDataCodec(): FixedSizeCodec<InitializeCollateralInfoInstructionDataArgs, InitializeCollateralInfoInstructionData>; export type InitializeCollateralInfoInput<TAccountAdminAuthority extends string = string, TAccountGlobalConfig extends string = string, TAccountCollInfo extends string = string, TAccountSystemProgram extends string = string> = { adminAuthority: TransactionSigner<TAccountAdminAuthority>; globalConfig: Address<TAccountGlobalConfig>; collInfo: Address<TAccountCollInfo>; systemProgram?: Address<TAccountSystemProgram>; }; export declare function getInitializeCollateralInfoInstruction<TAccountAdminAuthority extends string, TAccountGlobalConfig extends string, TAccountCollInfo extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof YVAULTS_PROGRAM_ADDRESS>(input: InitializeCollateralInfoInput<TAccountAdminAuthority, TAccountGlobalConfig, TAccountCollInfo, TAccountSystemProgram>, config?: { programAddress?: TProgramAddress; }): InitializeCollateralInfoInstruction<TProgramAddress, TAccountAdminAuthority, TAccountGlobalConfig, TAccountCollInfo, TAccountSystemProgram>; export type ParsedInitializeCollateralInfoInstruction<TProgram extends string = typeof YVAULTS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { adminAuthority: TAccountMetas[0]; globalConfig: TAccountMetas[1]; collInfo: TAccountMetas[2]; systemProgram: TAccountMetas[3]; }; data: InitializeCollateralInfoInstructionData; }; export declare function parseInitializeCollateralInfoInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeCollateralInfoInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=initializeCollateralInfo.d.ts.map