UNPKG

banx-token-lending-sdk

Version:

Banx Token Lending sdk

30 lines (29 loc) 1.26 kB
import { web3 } from '@coral-xyz/anchor'; import { GetInstructionsReturnType } from '../types'; import { BanxMarket } from '../../accounts/BanxMarket/BanxMarket'; import { BondOfferStruct } from '../../accounts/BondOffer/BondOffer.types'; import { BondOffer } from '../../accounts/BondOffer/BondOffer'; type GetUpdateOfferIxnsRawParams = { accounts: { userPubkey: web3.PublicKey; bondOffer: web3.PublicKey; market: web3.PublicKey; }; args: Pick<BondOfferStruct, 'offerCapacity' | 'liquidationLtvBp' | 'loanAprBp'>; connection: web3.Connection; }; type GetUpdateOfferIxnsReturnType = GetInstructionsReturnType<{ bondOffer: web3.PublicKey; }>; export declare function getUpdateOfferIxnsRaw({ accounts, args, connection, }: GetUpdateOfferIxnsRawParams): Promise<GetUpdateOfferIxnsReturnType>; export type GetUpdateOfferIxnsParams = { connection: web3.Connection; walletPublicKey: web3.PublicKey; args: Partial<GetUpdateOfferIxnsRawParams['args']>; accounts: { bondOffer: BondOffer; banxMarket: BanxMarket; }; }; export declare function getUpdateOfferIxns({ connection, args, walletPublicKey, accounts, }: GetUpdateOfferIxnsParams): Promise<GetUpdateOfferIxnsReturnType>; export {};