banx-token-lending-sdk
Version:
Banx Token Lending sdk
36 lines (35 loc) • 1.36 kB
TypeScript
import { web3 } from '@coral-xyz/anchor';
import { GetInstructionsReturnType } from '../types';
import { BondLoan } from '../../accounts/BondLoan/BondLoan';
import { BondOffer } from '../../accounts/BondOffer/BondOffer';
import { BanxMarket } from '../../accounts/BanxMarket/BanxMarket';
type GetRepayLoanIxnsRawParams = {
connection: web3.Connection;
accounts: {
userPubkey: web3.PublicKey;
lender: web3.PublicKey;
market: web3.PublicKey;
bondLoan: web3.PublicKey;
bondOffer: web3.PublicKey;
lendingTokenMint: web3.PublicKey;
collateralMint: web3.PublicKey;
oracle: web3.PublicKey;
marketCollateralVaultTokenAccount: web3.PublicKey;
};
};
type GetRepayLoanIxnsReturnType = GetInstructionsReturnType<{
bondOffer: web3.PublicKey;
bondLoan: web3.PublicKey;
}>;
export declare function getRepayLoanIxnsRaw({ accounts, connection, }: GetRepayLoanIxnsRawParams): Promise<GetRepayLoanIxnsReturnType>;
type GetRepayLoanIxnsParams = {
connection: web3.Connection;
walletPublicKey: web3.PublicKey;
accounts: {
bondLoan: BondLoan;
bondOffer: BondOffer;
banxMarket: BanxMarket;
};
};
export declare function getRepayLoanIxns({ connection, walletPublicKey, accounts, }: GetRepayLoanIxnsParams): Promise<GetRepayLoanIxnsReturnType>;
export {};