UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

49 lines 2.9 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 AMM_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getAmmConfigDiscriminatorBytes(): ReadonlyUint8Array; export type AmmConfig = { discriminator: ReadonlyUint8Array; bump: number; index: number; owner: Address; protocolFeeRate: number; tradeFeeRate: number; tickSpacing: number; fundFeeRate: number; paddingU32: number; fundOwner: Address; padding: Array<bigint>; }; export type AmmConfigArgs = { bump: number; index: number; owner: Address; protocolFeeRate: number; tradeFeeRate: number; tickSpacing: number; fundFeeRate: number; paddingU32: number; fundOwner: Address; padding: Array<number | bigint>; }; /** Gets the encoder for {@link AmmConfigArgs} account data. */ export declare function getAmmConfigEncoder(): FixedSizeEncoder<AmmConfigArgs>; /** Gets the decoder for {@link AmmConfig} account data. */ export declare function getAmmConfigDecoder(): FixedSizeDecoder<AmmConfig>; /** Gets the codec for {@link AmmConfig} account data. */ export declare function getAmmConfigCodec(): FixedSizeCodec<AmmConfigArgs, AmmConfig>; export declare function decodeAmmConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<AmmConfig, TAddress>; export declare function decodeAmmConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<AmmConfig, TAddress>; export declare function fetchAmmConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<AmmConfig, TAddress>>; export declare function fetchMaybeAmmConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<AmmConfig, TAddress>>; export declare function fetchAllAmmConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<AmmConfig>[]>; export declare function fetchAllMaybeAmmConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<AmmConfig>[]>; export declare function getAmmConfigSize(): number; //# sourceMappingURL=ammConfig.d.ts.map