UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

48 lines 4.18 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 UPDATE_COLLATERAL_INFO_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getUpdateCollateralInfoDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>; export type UpdateCollateralInfoInstruction<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 UpdateCollateralInfoInstructionData = { discriminator: ReadonlyUint8Array; index: bigint; mode: bigint; value: ReadonlyUint8Array; }; export type UpdateCollateralInfoInstructionDataArgs = { index: number | bigint; mode: number | bigint; value: ReadonlyUint8Array; }; export declare function getUpdateCollateralInfoInstructionDataEncoder(): FixedSizeEncoder<UpdateCollateralInfoInstructionDataArgs>; export declare function getUpdateCollateralInfoInstructionDataDecoder(): FixedSizeDecoder<UpdateCollateralInfoInstructionData>; export declare function getUpdateCollateralInfoInstructionDataCodec(): FixedSizeCodec<UpdateCollateralInfoInstructionDataArgs, UpdateCollateralInfoInstructionData>; export type UpdateCollateralInfoInput<TAccountAdminAuthority extends string = string, TAccountGlobalConfig extends string = string, TAccountTokenInfos extends string = string> = { adminAuthority: TransactionSigner<TAccountAdminAuthority>; globalConfig: Address<TAccountGlobalConfig>; tokenInfos: Address<TAccountTokenInfos>; index: UpdateCollateralInfoInstructionDataArgs["index"]; mode: UpdateCollateralInfoInstructionDataArgs["mode"]; value: UpdateCollateralInfoInstructionDataArgs["value"]; }; export declare function getUpdateCollateralInfoInstruction<TAccountAdminAuthority extends string, TAccountGlobalConfig extends string, TAccountTokenInfos extends string, TProgramAddress extends Address = typeof YVAULTS_PROGRAM_ADDRESS>(input: UpdateCollateralInfoInput<TAccountAdminAuthority, TAccountGlobalConfig, TAccountTokenInfos>, config?: { programAddress?: TProgramAddress; }): UpdateCollateralInfoInstruction<TProgramAddress, TAccountAdminAuthority, TAccountGlobalConfig, TAccountTokenInfos>; export type ParsedUpdateCollateralInfoInstruction<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: UpdateCollateralInfoInstructionData; }; export declare function parseUpdateCollateralInfoInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdateCollateralInfoInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=updateCollateralInfo.d.ts.map