UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

42 lines 4.02 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 DEPRECATE_COLLATERAL_INFO_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getDeprecateCollateralInfoDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>; export type DeprecateCollateralInfoInstruction<TProgram extends string = typeof YVAULTS_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountGlobalConfig extends string | AccountMeta<string> = string, TAccountTokenInfos extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountAdminAuthority extends string ? WritableSignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority, TAccountGlobalConfig extends string ? ReadonlyAccount<TAccountGlobalConfig> : TAccountGlobalConfig, TAccountTokenInfos extends string ? WritableAccount<TAccountTokenInfos> : TAccountTokenInfos, ...TRemainingAccounts]>; export type DeprecateCollateralInfoInstructionData = { discriminator: ReadonlyUint8Array; index: bigint; }; export type DeprecateCollateralInfoInstructionDataArgs = { index: number | bigint; }; export declare function getDeprecateCollateralInfoInstructionDataEncoder(): FixedSizeEncoder<DeprecateCollateralInfoInstructionDataArgs>; export declare function getDeprecateCollateralInfoInstructionDataDecoder(): FixedSizeDecoder<DeprecateCollateralInfoInstructionData>; export declare function getDeprecateCollateralInfoInstructionDataCodec(): FixedSizeCodec<DeprecateCollateralInfoInstructionDataArgs, DeprecateCollateralInfoInstructionData>; export type DeprecateCollateralInfoInput<TAccountAdminAuthority extends string = string, TAccountGlobalConfig extends string = string, TAccountTokenInfos extends string = string> = { adminAuthority: TransactionSigner<TAccountAdminAuthority>; globalConfig: Address<TAccountGlobalConfig>; tokenInfos: Address<TAccountTokenInfos>; index: DeprecateCollateralInfoInstructionDataArgs["index"]; }; export declare function getDeprecateCollateralInfoInstruction<TAccountAdminAuthority extends string, TAccountGlobalConfig extends string, TAccountTokenInfos extends string, TProgramAddress extends Address = typeof YVAULTS_PROGRAM_ADDRESS>(input: DeprecateCollateralInfoInput<TAccountAdminAuthority, TAccountGlobalConfig, TAccountTokenInfos>, config?: { programAddress?: TProgramAddress; }): DeprecateCollateralInfoInstruction<TProgramAddress, TAccountAdminAuthority, TAccountGlobalConfig, TAccountTokenInfos>; export type ParsedDeprecateCollateralInfoInstruction<TProgram extends string = typeof YVAULTS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { adminAuthority: TAccountMetas[0]; globalConfig: TAccountMetas[1]; tokenInfos: TAccountMetas[2]; }; data: DeprecateCollateralInfoInstructionData; }; export declare function parseDeprecateCollateralInfoInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedDeprecateCollateralInfoInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=deprecateCollateralInfo.d.ts.map