@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
31 lines • 2.63 kB
TypeScript
/**
* 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 TERMS_SIGNATURE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getTermsSignatureDiscriminatorBytes(): ReadonlyUint8Array;
export type TermsSignature = {
discriminator: ReadonlyUint8Array;
signature: ReadonlyUint8Array;
};
export type TermsSignatureArgs = {
signature: ReadonlyUint8Array;
};
/** Gets the encoder for {@link TermsSignatureArgs} account data. */
export declare function getTermsSignatureEncoder(): FixedSizeEncoder<TermsSignatureArgs>;
/** Gets the decoder for {@link TermsSignature} account data. */
export declare function getTermsSignatureDecoder(): FixedSizeDecoder<TermsSignature>;
/** Gets the codec for {@link TermsSignature} account data. */
export declare function getTermsSignatureCodec(): FixedSizeCodec<TermsSignatureArgs, TermsSignature>;
export declare function decodeTermsSignature<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<TermsSignature, TAddress>;
export declare function decodeTermsSignature<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<TermsSignature, TAddress>;
export declare function fetchTermsSignature<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<TermsSignature, TAddress>>;
export declare function fetchMaybeTermsSignature<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<TermsSignature, TAddress>>;
export declare function fetchAllTermsSignature(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<TermsSignature>[]>;
export declare function fetchAllMaybeTermsSignature(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<TermsSignature>[]>;
export declare function getTermsSignatureSize(): number;
//# sourceMappingURL=termsSignature.d.ts.map