UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

35 lines 2.53 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'; export declare const FEE_TIER_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getFeeTierDiscriminatorBytes(): ReadonlyUint8Array; export type FeeTier = { discriminator: ReadonlyUint8Array; whirlpoolsConfig: Address; tickSpacing: number; defaultFeeRate: number; }; export type FeeTierArgs = { whirlpoolsConfig: Address; tickSpacing: number; defaultFeeRate: number; }; /** Gets the encoder for {@link FeeTierArgs} account data. */ export declare function getFeeTierEncoder(): FixedSizeEncoder<FeeTierArgs>; /** Gets the decoder for {@link FeeTier} account data. */ export declare function getFeeTierDecoder(): FixedSizeDecoder<FeeTier>; /** Gets the codec for {@link FeeTier} account data. */ export declare function getFeeTierCodec(): FixedSizeCodec<FeeTierArgs, FeeTier>; export declare function decodeFeeTier<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<FeeTier, TAddress>; export declare function decodeFeeTier<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<FeeTier, TAddress>; export declare function fetchFeeTier<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<FeeTier, TAddress>>; export declare function fetchMaybeFeeTier<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<FeeTier, TAddress>>; export declare function fetchAllFeeTier(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<FeeTier>[]>; export declare function fetchAllMaybeFeeTier(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<FeeTier>[]>; export declare function getFeeTierSize(): number; //# sourceMappingURL=feeTier.d.ts.map