aave-protocol-v2/types/ReserveLogicFactory.ts

90 lines
9.6 KiB
TypeScript
Raw Normal View History

2020-06-20 23:40:03 +00:00
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
2020-08-07 17:29:13 +00:00
import { Contract, ContractFactory, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { UnsignedTransaction } from "ethers/utils/transaction";
2020-06-20 23:40:03 +00:00
2020-08-07 17:29:13 +00:00
import { TransactionOverrides } from ".";
import { ReserveLogic } from "./ReserveLogic";
2020-06-20 23:40:03 +00:00
export class ReserveLogicFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(overrides?: TransactionOverrides): Promise<ReserveLogic> {
return super.deploy(overrides) as Promise<ReserveLogic>;
}
getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction {
return super.getDeployTransaction(overrides);
}
attach(address: string): ReserveLogic {
return super.attach(address) as ReserveLogic;
}
connect(signer: Signer): ReserveLogicFactory {
return super.connect(signer) as ReserveLogicFactory;
}
2020-08-07 17:29:13 +00:00
static connect(
address: string,
signerOrProvider: Signer | Provider
): ReserveLogic {
2020-06-20 23:40:03 +00:00
return new Contract(address, _abi, signerOrProvider) as ReserveLogic;
}
}
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "reserve",
type: "address"
2020-06-20 23:40:03 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "liquidityRate",
type: "uint256"
2020-06-20 23:40:03 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "stableBorrowRate",
type: "uint256"
2020-06-20 23:40:03 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "averageStableBorrowRate",
type: "uint256"
2020-06-20 23:40:03 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "variableBorrowRate",
type: "uint256"
2020-06-20 23:40:03 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "liquidityIndex",
type: "uint256"
2020-06-20 23:40:03 +00:00
},
{
indexed: false,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "variableBorrowIndex",
type: "uint256"
}
2020-06-20 23:40:03 +00:00
],
2020-08-07 17:29:13 +00:00
name: "ReserveDataUpdated",
type: "event"
}
2020-06-20 23:40:03 +00:00
];
const _bytecode =
"0x610ecb610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80630c1282ce1461007157806358ba22fa146100af5780637d368d2e146100d25780638acb830b146100ef578063b5887a641461013c578063fade6ba01461018d575b600080fd5b61009d6004803603604081101561008757600080fd5b50803590602001356001600160a01b03166101b9565b60408051918252519081900360200190f35b61009d600480360360408110156100c557600080fd5b5080359060200135610279565b61009d600480360360208110156100e857600080fd5b503561029a565b8180156100fb57600080fd5b5061013a600480360360a081101561011257600080fd5b508035906001600160a01b036020820135169060408101359060608101359060800135610338565b005b81801561014857600080fd5b5061013a600480360360a081101561015f57600080fd5b508035906001600160a01b036020820135811691604081013582169160608201358116916080013516610384565b61009d600480360360408110156101a357600080fd5b50803590602001356001600160a01b0316610451565b6000806101c5846104dd565b9050806101d6576000915050610273565b604080516370a0823160e01b815230600482015290516000916001600160a01b038616916370a0823191602480820192602092909190829003018186803b15801561022057600080fd5b505afa158015610234573d6000803e3d6000fd5b505050506040513d602081101561024a57600080fd5b5051905061026e610261828463ffffffff6105a516565b839063ffffffff6105ff16565b925050505b92915050565b60008260030154600014610291578260030154610293565b815b9392505050565b600081600201546000141561032c578160090160009054906101000a90046001600160a01b03166001600160a01b03166334762ca56040518163ffffffff1660e01b815260040160206040518083038186803b1580156102f957600080fd5b505afa15801561030d573d6000803e3d6000fd5b505050506040513d602081101561032357600080fd5b50519050610333565b5060028101545b919050565b61034185610643565b600061035c61034f876104dd565b859063ffffffff6105a516565b905061036f86828563ffffffff6106fb16565b61037c8686856000610759565b505050505050565b60068501546001600160a01b0316156103ce5760405162461bcd60e51b8152600401808060200182810382526024815260200180610e516024913960400191505060405180910390fd5b84546103df576103dc610aa0565b85555b60048501546103f6576103f0610aa0565b60048601555b6006850180546001600160a01b03199081166001600160a01b03968716179091556007860180548216948616949094179093556008850180548416928516929092179091556009909301805490911692909116919091179055565b600061029361045f846104dd565b604080516370a0823160e01b815230600482015290516001600160a01b038616916370a08231916024808301926020929190829003018186803b1580156104a557600080fd5b505afa1580156104b9573d6000803e3d6000fd5b505050506040513d60208110156104cf57600080fd5b50519063ffffffff6105a516565b60006102738260080160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561053257600080fd5b505afa158015610546573d6000803e3d6000fd5b505050506040513d602081101561055c57600080fd5b50516007840154604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b1580156104a557600080fd5b600082820183811015610293576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006002820461063b8361062f610622876b033b2e3c9fd0803ce8000000610ab0565b849063ffffffff6105a516565b9063ffffffff610b0916565b949350505050565b600061064e826104dd565b905080156106d7576001820154600983015460009161067a91600160a01b900464ffffffffff16610b4b565b835490915061069090829063ffffffff610ba216565b8355600283015460098401546000916106b691600160a01b900464ffffffffff16610bda565b90506106cf846004015482610ba290919063ffffffff16565b600485015550505b50600901805464ffffffffff60a01b1916600160a01b4264ffffffffff1602179055565b600061071e61070984610cfc565b61071284610cfc565b9063ffffffff6105ff16565b9050600061073a61072d610aa0565b839063ffffffff6105a516565b855490915061075090829063ffffffff610ba216565b90945550505050565b60078401546040805163487b7e7960e11b815290516000926001600160a01b0316916390f6fcf2916004808301926020929190829003018186803b1580156107a057600080fd5b505afa1580156107b4573d6000803e3d6000fd5b505050506040513d60208110156107ca57600080fd5b505160068601546040805163