@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
13 lines • 1.38 kB
TypeScript
import { Address, GetAccountInfoApi, GetTokenAccountBalanceApi, IInstruction, Rpc, TransactionSigner } from '@solana/kit';
import Decimal from 'decimal.js';
import { CreateAta } from './types';
export declare const MAX_ACCOUNTS_PER_TRANSACTION = 64;
export declare const getComputeBudgetAndPriorityFeeIxns: (units: number, priorityFeeLamports?: Decimal) => IInstruction[];
export declare const createAtaIfMissingIx: (connection: Rpc<GetAccountInfoApi>, mint: Address, owner: TransactionSigner, programId: Address) => Promise<IInstruction | undefined>;
export declare const getAtasWithCreateIxnsIfMissing: (connection: Rpc<any>, mints: [Address, Address][], owner: TransactionSigner) => Promise<IInstruction[]>;
export declare const createWsolAtaIfMissing: (rpc: Rpc<GetAccountInfoApi & GetTokenAccountBalanceApi>, amount: Decimal, owner: TransactionSigner, method?: "deposit" | "withdraw") => Promise<CreateAta>;
export declare const isWsolInfoInvalid: (wsolAtaAccountInfo: any) => boolean;
export declare function checkIfAccountExists(connection: Rpc<GetAccountInfoApi>, account: Address): Promise<boolean>;
export declare function removeBudgetAndAtaIxns(ixns: IInstruction[], mints: Address[]): IInstruction[];
export declare const findAtaBalance: (connection: Rpc<GetTokenAccountBalanceApi>, ata: Address) => Promise<number | null>;
//# sourceMappingURL=transactions.d.ts.map