UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

40 lines 2.91 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 TickState, type TickStateArgs } from '../types'; export declare const TICK_ARRAY_STATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getTickArrayStateDiscriminatorBytes(): ReadonlyUint8Array; export type TickArrayState = { discriminator: ReadonlyUint8Array; poolId: Address; startTickIndex: number; ticks: Array<TickState>; initializedTickCount: number; padding: ReadonlyUint8Array; }; export type TickArrayStateArgs = { poolId: Address; startTickIndex: number; ticks: Array<TickStateArgs>; initializedTickCount: number; padding: ReadonlyUint8Array; }; /** Gets the encoder for {@link TickArrayStateArgs} account data. */ export declare function getTickArrayStateEncoder(): FixedSizeEncoder<TickArrayStateArgs>; /** Gets the decoder for {@link TickArrayState} account data. */ export declare function getTickArrayStateDecoder(): FixedSizeDecoder<TickArrayState>; /** Gets the codec for {@link TickArrayState} account data. */ export declare function getTickArrayStateCodec(): FixedSizeCodec<TickArrayStateArgs, TickArrayState>; export declare function decodeTickArrayState<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<TickArrayState, TAddress>; export declare function decodeTickArrayState<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<TickArrayState, TAddress>; export declare function fetchTickArrayState<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<TickArrayState, TAddress>>; export declare function fetchMaybeTickArrayState<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<TickArrayState, TAddress>>; export declare function fetchAllTickArrayState(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<TickArrayState>[]>; export declare function fetchAllMaybeTickArrayState(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<TickArrayState>[]>; export declare function getTickArrayStateSize(): number; //# sourceMappingURL=tickArrayState.d.ts.map