UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

37 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'; export declare const WHIRLPOOLS_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getWhirlpoolsConfigDiscriminatorBytes(): ReadonlyUint8Array; export type WhirlpoolsConfig = { discriminator: ReadonlyUint8Array; feeAuthority: Address; collectProtocolFeesAuthority: Address; rewardEmissionsSuperAuthority: Address; defaultProtocolFeeRate: number; }; export type WhirlpoolsConfigArgs = { feeAuthority: Address; collectProtocolFeesAuthority: Address; rewardEmissionsSuperAuthority: Address; defaultProtocolFeeRate: number; }; /** Gets the encoder for {@link WhirlpoolsConfigArgs} account data. */ export declare function getWhirlpoolsConfigEncoder(): FixedSizeEncoder<WhirlpoolsConfigArgs>; /** Gets the decoder for {@link WhirlpoolsConfig} account data. */ export declare function getWhirlpoolsConfigDecoder(): FixedSizeDecoder<WhirlpoolsConfig>; /** Gets the codec for {@link WhirlpoolsConfig} account data. */ export declare function getWhirlpoolsConfigCodec(): FixedSizeCodec<WhirlpoolsConfigArgs, WhirlpoolsConfig>; export declare function decodeWhirlpoolsConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<WhirlpoolsConfig, TAddress>; export declare function decodeWhirlpoolsConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<WhirlpoolsConfig, TAddress>; export declare function fetchWhirlpoolsConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<WhirlpoolsConfig, TAddress>>; export declare function fetchMaybeWhirlpoolsConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<WhirlpoolsConfig, TAddress>>; export declare function fetchAllWhirlpoolsConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<WhirlpoolsConfig>[]>; export declare function fetchAllMaybeWhirlpoolsConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<WhirlpoolsConfig>[]>; export declare function getWhirlpoolsConfigSize(): number; //# sourceMappingURL=whirlpoolsConfig.d.ts.map