UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

36 lines 3.38 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 ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { YVAULTS_PROGRAM_ADDRESS } from '../programs'; export declare const UPDATE_STRATEGY_ADMIN_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getUpdateStrategyAdminDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>; export type UpdateStrategyAdminInstruction<TProgram extends string = typeof YVAULTS_PROGRAM_ADDRESS, TAccountPendingAdmin extends string | AccountMeta<string> = string, TAccountStrategy extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountPendingAdmin extends string ? WritableSignerAccount<TAccountPendingAdmin> & AccountSignerMeta<TAccountPendingAdmin> : TAccountPendingAdmin, TAccountStrategy extends string ? WritableAccount<TAccountStrategy> : TAccountStrategy, ...TRemainingAccounts]>; export type UpdateStrategyAdminInstructionData = { discriminator: ReadonlyUint8Array; }; export type UpdateStrategyAdminInstructionDataArgs = {}; export declare function getUpdateStrategyAdminInstructionDataEncoder(): FixedSizeEncoder<UpdateStrategyAdminInstructionDataArgs>; export declare function getUpdateStrategyAdminInstructionDataDecoder(): FixedSizeDecoder<UpdateStrategyAdminInstructionData>; export declare function getUpdateStrategyAdminInstructionDataCodec(): FixedSizeCodec<UpdateStrategyAdminInstructionDataArgs, UpdateStrategyAdminInstructionData>; export type UpdateStrategyAdminInput<TAccountPendingAdmin extends string = string, TAccountStrategy extends string = string> = { pendingAdmin: TransactionSigner<TAccountPendingAdmin>; strategy: Address<TAccountStrategy>; }; export declare function getUpdateStrategyAdminInstruction<TAccountPendingAdmin extends string, TAccountStrategy extends string, TProgramAddress extends Address = typeof YVAULTS_PROGRAM_ADDRESS>(input: UpdateStrategyAdminInput<TAccountPendingAdmin, TAccountStrategy>, config?: { programAddress?: TProgramAddress; }): UpdateStrategyAdminInstruction<TProgramAddress, TAccountPendingAdmin, TAccountStrategy>; export type ParsedUpdateStrategyAdminInstruction<TProgram extends string = typeof YVAULTS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { pendingAdmin: TAccountMetas[0]; strategy: TAccountMetas[1]; }; data: UpdateStrategyAdminInstructionData; }; export declare function parseUpdateStrategyAdminInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdateStrategyAdminInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=updateStrategyAdmin.d.ts.map