banx-token-lending-sdk
Version:
Banx Token Lending sdk
32 lines (31 loc) • 1.29 kB
TypeScript
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 GetLendToBorrowerListingIxnsRawParams = {
connection: web3.Connection;
accounts: {
userPubkey: web3.PublicKey;
market: web3.PublicKey;
lendingTokenMint: web3.PublicKey;
bondOffer: web3.PublicKey;
bondLoan: web3.PublicKey;
borrower: web3.PublicKey;
};
};
type GetLendToBorrowerListingIxnsReturnType = GetInstructionsReturnType<{
bondOffer: web3.PublicKey;
oldBondLoan: web3.PublicKey;
newBondLoan: web3.PublicKey;
}>;
export declare function getLendToBorrowerListingIxnsRaw({ accounts, connection, }: GetLendToBorrowerListingIxnsRawParams): Promise<GetLendToBorrowerListingIxnsReturnType>;
export type GetLendToBorrowerListingIxnsParams = {
connection: web3.Connection;
accounts: {
banxMarket: BanxMarket;
bondLoan: BondLoan;
};
walletPublicKey: web3.PublicKey;
};
export declare function getLendToBorrowerListingIxns({ connection, accounts, walletPublicKey, }: GetLendToBorrowerListingIxnsParams): Promise<GetLendToBorrowerListingIxnsReturnType>;
export {};