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 =
|
2020-08-10 18:20:08 +00:00
|
|
|
"0x610e3f610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80630c1282ce1461007157806358ba22fa146100af5780637d368d2e146100d25780638acb830b146100ef578063b5887a641461013c578063fade6ba01461018d575b600080fd5b61009d6004803603604081101561008757600080fd5b50803590602001356001600160a01b03166101b9565b60408051918252519081900360200190f35b61009d600480360360408110156100c557600080fd5b508035906020013561021e565b61009d600480360360208110156100e857600080fd5b503561023f565b8180156100fb57600080fd5b5061013a600480360360a081101561011257600080fd5b508035906001600160a01b0360208201351690604081013590606081013590608001356102dd565b005b81801561014857600080fd5b5061013a600480360360a081101561015f57600080fd5b508035906001600160a01b036020820135811691604081013582169160608201358116916080013516610329565b61009d600480360360408110156101a357600080fd5b50803590602001356001600160a01b03166103f6565b6000806101c584610429565b9050806101d6576000915050610218565b60006101f16001600160a01b0385163063ffffffff61052916565b9050610213610206828463ffffffff6105d316565b839063ffffffff61062d16565b925050505b92915050565b60008260030154600014610236578260030154610238565b815b9392505050565b60008160020154600014156102d1578160090160009054906101000a90046001600160a01b03166001600160a01b03166334762ca56040518163ffffffff1660e01b815260040160206040518083038186803b15801561029e57600080fd5b505afa1580156102b2573d6000803e3d6000fd5b505050506040513d60208110156102c857600080fd5b505190506102d8565b5060028101545b919050565b6102e685610671565b60006103016102f487610429565b859063ffffffff6105d316565b905061031486828563ffffffff61072916565b6103218686856000610787565b505050505050565b60068501546001600160a01b0316156103735760405162461bcd60e51b8152600401808060200182810382526024815260200180610dc56024913960400191505060405180910390fd5b845461038457610381610a74565b85555b600485015461039b57610395610a74565b60048601555b6006850180546001600160a01b03199081166001600160a01b03968716179091556007860180548216948616949094179093556008850180548416928516929092179091556009909301805490911692909116919091179055565b600061023861040484610429565b61041d6001600160a01b0385163063ffffffff61052916565b9063ffffffff6105d316565b60006102188260080160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561047e57600080fd5b505afa158015610492573d6000803e3d6000fd5b505050506040513d60208110156104a857600080fd5b50516007840154604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b1580156104f157600080fd5b505afa158015610505573d6000803e3d6000fd5b505050506040513d602081101561051b57600080fd5b50519063ffffffff6105d316565b600061053483610a84565b1561054a57506001600160a01b03811631610218565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156105a057600080fd5b505afa1580156105b4573d6000803e3d6000fd5b505050506040513d60208110156105ca57600080fd5b50519050610218565b600082820183811015610238576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000600282046106698361065d610650876b033b2e3c9fd0803ce8000000610aa9565b849063ffffffff6105d316565b9063ffffffff610b0216565b949350505050565b600061067c82610429565b9050801561070557600182015460098301546000916106a891600160a01b900464ffffffffff16610b44565b83549091506106be90829063ffffffff610b8f16565b8355600283015460098401546000916106e491600160a01b900464ffffffffff16610bc7565b90506106fd846004015482610b8f90919063ffffffff16565b600485015550505b50600901805464ffffffffff60a01b1916600160a01b4264ffffffffff1602179055565b600061074c61073784610c16565b61074084610c16565b9063ffffffff61062d16565b9050600061076861075b610a74565b839063ffffffff6105d316565b855490915061077e90829063ffffffff610b8f16565b90945550505050565b60078401546040805163487b7e7960e11b815290516000926001600160a01b0316916390f6fcf2916004808301926020929190829003018186803b1580156107ce57600080fd5b505afa1580156107
|