UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

43 lines 3.39 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 ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { AMM_V3_PROGRAM_ADDRESS } from '../programs'; export declare const UPDATE_AMM_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getUpdateAmmConfigDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateAmmConfigInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountAmmConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountOwner extends string ? ReadonlySignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner, TAccountAmmConfig extends string ? WritableAccount<TAccountAmmConfig> : TAccountAmmConfig, ...TRemainingAccounts]>; export type UpdateAmmConfigInstructionData = { discriminator: ReadonlyUint8Array; param: number; value: number; }; export type UpdateAmmConfigInstructionDataArgs = { param: number; value: number; }; export declare function getUpdateAmmConfigInstructionDataEncoder(): FixedSizeEncoder<UpdateAmmConfigInstructionDataArgs>; export declare function getUpdateAmmConfigInstructionDataDecoder(): FixedSizeDecoder<UpdateAmmConfigInstructionData>; export declare function getUpdateAmmConfigInstructionDataCodec(): FixedSizeCodec<UpdateAmmConfigInstructionDataArgs, UpdateAmmConfigInstructionData>; export type UpdateAmmConfigInput<TAccountOwner extends string = string, TAccountAmmConfig extends string = string> = { owner: TransactionSigner<TAccountOwner>; ammConfig: Address<TAccountAmmConfig>; param: UpdateAmmConfigInstructionDataArgs["param"]; value: UpdateAmmConfigInstructionDataArgs["value"]; }; export declare function getUpdateAmmConfigInstruction<TAccountOwner extends string, TAccountAmmConfig extends string, TProgramAddress extends Address = typeof AMM_V3_PROGRAM_ADDRESS>(input: UpdateAmmConfigInput<TAccountOwner, TAccountAmmConfig>, config?: { programAddress?: TProgramAddress; }): UpdateAmmConfigInstruction<TProgramAddress, TAccountOwner, TAccountAmmConfig>; export type ParsedUpdateAmmConfigInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { owner: TAccountMetas[0]; ammConfig: TAccountMetas[1]; }; data: UpdateAmmConfigInstructionData; }; export declare function parseUpdateAmmConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdateAmmConfigInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=updateAmmConfig.d.ts.map