UNPKG

banx-token-lending-sdk

Version:

Banx Token Lending sdk

18 lines (17 loc) 835 B
import { BN, web3 } from '@coral-xyz/anchor'; import { FilterOffsetAndConverterFunc, FilterOffsetAndConverterFuncMap } from './types'; export declare function createGetAllProgramAccountFilter(value: web3.PublicKey | number | BN, offsetAndGetSize: FilterOffsetAndConverterFunc): { memcmp: { offset: number; bytes: string; }; }; type FiltersMap = Record<string, web3.PublicKey | number | BN>; export declare function createGetAllProgramAccountFilters(filters: FiltersMap, offsetAndConvertorMap: FilterOffsetAndConverterFuncMap): web3.GetProgramAccountsFilter[]; type FindATAParams = { walletAddress: web3.PublicKey; tokenMint: web3.PublicKey; tokenProgramId?: web3.PublicKey; }; export declare function findATA({ walletAddress, tokenMint, tokenProgramId, }: FindATAParams): web3.PublicKey; export {};