UNPKG

@augmentedfinance/protocol-v1

Version:

Augmented Protocol smart contracts

201 lines 5.34 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ILendingPoolExtensionFactory = void 0; const ethers_1 = require("ethers"); class ILendingPoolExtensionFactory { static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.ILendingPoolExtensionFactory = ILendingPoolExtensionFactory; const _abi = [ { inputs: [ { internalType: "address", name: "asset", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint256", name: "interestRateMode", type: "uint256", }, { internalType: "uint256", name: "referral", type: "uint256", }, { internalType: "address", name: "onBehalfOf", type: "address", }, ], name: "borrow", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "asset", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint256", name: "interestRateMode", type: "uint256", }, { internalType: "uint16", name: "referral", type: "uint16", }, { internalType: "address", name: "onBehalfOf", type: "address", }, ], name: "borrow", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "receiverAddress", type: "address", }, { internalType: "address[]", name: "assets", type: "address[]", }, { internalType: "uint256[]", name: "amounts", type: "uint256[]", }, { internalType: "uint256[]", name: "modes", type: "uint256[]", }, { internalType: "address", name: "onBehalfOf", type: "address", }, { internalType: "bytes", name: "params", type: "bytes", }, { internalType: "uint256", name: "referral", type: "uint256", }, ], name: "flashLoan", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "receiverAddress", type: "address", }, { internalType: "address[]", name: "assets", type: "address[]", }, { internalType: "uint256[]", name: "amounts", type: "uint256[]", }, { internalType: "uint256[]", name: "modes", type: "uint256[]", }, { internalType: "address", name: "onBehalfOf", type: "address", }, { internalType: "bytes", name: "params", type: "bytes", }, { internalType: "uint16", name: "referral", type: "uint16", }, ], name: "flashLoan", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "collateralAsset", type: "address", }, { internalType: "address", name: "debtAsset", type: "address", }, { internalType: "address", name: "user", type: "address", }, { internalType: "uint256", name: "debtToCover", type: "uint256", }, { internalType: "bool", name: "receiveDepositToken", type: "bool", }, ], name: "liquidationCall", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; //# sourceMappingURL=ILendingPoolExtensionFactory.js.map