UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

31 lines 2.73 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 SCOPE_CHAIN_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getScopeChainAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>; export type ScopeChainAccount = { discriminator: ReadonlyUint8Array; chainArray: Array<Array<number>>; }; export type ScopeChainAccountArgs = { chainArray: Array<Array<number>>; }; /** Gets the encoder for {@link ScopeChainAccountArgs} account data. */ export declare function getScopeChainAccountEncoder(): FixedSizeEncoder<ScopeChainAccountArgs>; /** Gets the decoder for {@link ScopeChainAccount} account data. */ export declare function getScopeChainAccountDecoder(): FixedSizeDecoder<ScopeChainAccount>; /** Gets the codec for {@link ScopeChainAccount} account data. */ export declare function getScopeChainAccountCodec(): FixedSizeCodec<ScopeChainAccountArgs, ScopeChainAccount>; export declare function decodeScopeChainAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<ScopeChainAccount, TAddress>; export declare function decodeScopeChainAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<ScopeChainAccount, TAddress>; export declare function fetchScopeChainAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<ScopeChainAccount, TAddress>>; export declare function fetchMaybeScopeChainAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<ScopeChainAccount, TAddress>>; export declare function fetchAllScopeChainAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<ScopeChainAccount>[]>; export declare function fetchAllMaybeScopeChainAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<ScopeChainAccount>[]>; export declare function getScopeChainAccountSize(): number; //# sourceMappingURL=scopeChainAccount.d.ts.map