UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

36 lines 2.63 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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit'; import { type Tick, type TickArgs } from '../types'; export declare const TICK_ARRAY_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getTickArrayDiscriminatorBytes(): ReadonlyUint8Array; export type TickArray = { discriminator: ReadonlyUint8Array; startTickIndex: number; ticks: Array<Tick>; whirlpool: Address; }; export type TickArrayArgs = { startTickIndex: number; ticks: Array<TickArgs>; whirlpool: Address; }; /** Gets the encoder for {@link TickArrayArgs} account data. */ export declare function getTickArrayEncoder(): FixedSizeEncoder<TickArrayArgs>; /** Gets the decoder for {@link TickArray} account data. */ export declare function getTickArrayDecoder(): FixedSizeDecoder<TickArray>; /** Gets the codec for {@link TickArray} account data. */ export declare function getTickArrayCodec(): FixedSizeCodec<TickArrayArgs, TickArray>; export declare function decodeTickArray<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<TickArray, TAddress>; export declare function decodeTickArray<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<TickArray, TAddress>; export declare function fetchTickArray<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<TickArray, TAddress>>; export declare function fetchMaybeTickArray<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<TickArray, TAddress>>; export declare function fetchAllTickArray(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<TickArray>[]>; export declare function fetchAllMaybeTickArray(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<TickArray>[]>; export declare function getTickArraySize(): number; //# sourceMappingURL=tickArray.d.ts.map