@augmentedfinance/protocol-v1
Version:
Augmented Protocol smart contracts
165 lines • 4.5 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.DelegatedStrategyBaseFactory = void 0;
const ethers_1 = require("ethers");
class DelegatedStrategyBaseFactory {
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.DelegatedStrategyBaseFactory = DelegatedStrategyBaseFactory;
const _abi = [
{
inputs: [
{
internalType: "address",
name: "asset",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
internalType: "address",
name: "to",
type: "address",
},
],
name: "delegatedWithdrawUnderlying",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "underlyingToken",
type: "address",
},
],
name: "getDelegatedDepositIndex",
outputs: [
{
internalType: "uint256",
name: "liquidityIndex",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "underlyingToken",
type: "address",
},
{
internalType: "uint40",
name: "lastUpdateTimestamp",
type: "uint40",
},
],
name: "getDelegatedState",
outputs: [
{
components: [
{
internalType: "uint128",
name: "liquidityIndex",
type: "uint128",
},
{
internalType: "uint128",
name: "variableBorrowIndex",
type: "uint128",
},
{
internalType: "uint128",
name: "liquidityRate",
type: "uint128",
},
{
internalType: "uint128",
name: "variableBorrowRate",
type: "uint128",
},
{
internalType: "uint128",
name: "stableBorrowRate",
type: "uint128",
},
{
internalType: "uint40",
name: "lastUpdateTimestamp",
type: "uint40",
},
],
internalType: "struct IReserveDelegatedStrategy.DelegatedState",
name: "",
type: "tuple",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "getStrategyName",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "asset",
type: "address",
},
],
name: "getUnderlying",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "isDelegatedReserve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "pure",
type: "function",
},
];
//# sourceMappingURL=DelegatedStrategyBaseFactory.js.map