UNPKG

banx-token-lending-sdk

Version:

Banx Token Lending sdk

32 lines (31 loc) 1.25 kB
import { web3 } from '@coral-xyz/anchor'; import { GetInstructionsReturnType } from '../types'; import { BanxMarket } from '../../accounts/BanxMarket/BanxMarket'; import { BondLoan } from 'src/core/accounts/BondLoan/BondLoan'; type GetRemoveListingIxnsRawParams = { connection: web3.Connection; accounts: { userPubkey: web3.PublicKey; market: web3.PublicKey; lendingTokenMint: web3.PublicKey; collateralMint: web3.PublicKey; bondOffer: web3.PublicKey; bondLoan: web3.PublicKey; marketCollateralTokenAccount: web3.PublicKey; }; }; type GetRemoveListingIxnsReturnType = GetInstructionsReturnType<{ bondOffer: web3.PublicKey; bondLoan: web3.PublicKey; }>; export declare function getRemoveListingIxnsRaw({ accounts, connection, }: GetRemoveListingIxnsRawParams): Promise<GetRemoveListingIxnsReturnType>; export type GetRemoveListingIxnsParams = { connection: web3.Connection; accounts: { banxMarket: BanxMarket; bondLoan: BondLoan; }; walletPublicKey: web3.PublicKey; }; export declare function getRemoveListingIxns({ connection, accounts, walletPublicKey, }: GetRemoveListingIxnsParams): Promise<GetRemoveListingIxnsReturnType>; export {};