UNPKG

@algofi/lend

Version:

The official JavaScript SDK for the Algofi Lending Protocol

20 lines (19 loc) 1.32 kB
import { SuggestedParams, Transaction } from "algosdk"; import { Transactions } from "../utils"; /** * Returns a transaction group object representing the initial transactions * executed by the algofi protocol during a standard group transaction. The transactions are * (1) fetch market variables, (2) update prices, (3) update protocol data, and (4) degenerate ("dummy") * transactions to increase the number of cost units allowed (currently each transactions affords 700 * additional cost units). * * @param transactionType - transactions enum representing the group transaction the init transactions are used for * @param sender - account address for the sender * @param suggestedParams - suggested transaction params * @param managerAppId - id of the manager application * @param supportedMarketAppIds - list of supported market application ids * @param supportedOracleAppIds - list of supported oracle application ids * @param storageAccount - account address for the storage account * @returns account address for the storage account */ export declare function getInitTxns(transactionType: Transactions, sender: string, suggestedParams: SuggestedParams, managerAppId: number, supportedMarketAppIds: number[], supportedOracleAppIds: number[], storageAccount: string): Transaction[];