2020-06-20 23:40:03 +00:00
|
|
|
/* Generated by ts-generator ver. 0.0.8 */
|
|
|
|
/* tslint:disable */
|
|
|
|
|
|
|
|
import { Contract, ContractFactory, Signer } from "ethers";
|
|
|
|
import { Provider } from "ethers/providers";
|
|
|
|
import { UnsignedTransaction } from "ethers/utils/transaction";
|
|
|
|
|
|
|
|
import { TransactionOverrides } from ".";
|
|
|
|
import { ReserveLogic } from "./ReserveLogic";
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
static connect(
|
|
|
|
address: string,
|
|
|
|
signerOrProvider: Signer | Provider
|
|
|
|
): ReserveLogic {
|
|
|
|
return new Contract(address, _abi, signerOrProvider) as ReserveLogic;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const _abi = [
|
|
|
|
{
|
|
|
|
anonymous: false,
|
|
|
|
inputs: [
|
|
|
|
{
|
|
|
|
indexed: true,
|
|
|
|
internalType: "address",
|
|
|
|
name: "reserve",
|
|
|
|
type: "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
|
|
|
internalType: "uint256",
|
|
|
|
name: "liquidityRate",
|
|
|
|
type: "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
|
|
|
internalType: "uint256",
|
|
|
|
name: "stableBorrowRate",
|
|
|
|
type: "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
|
|
|
internalType: "uint256",
|
|
|
|
name: "averageStableBorrowRate",
|
|
|
|
type: "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
|
|
|
internalType: "uint256",
|
|
|
|
name: "variableBorrowRate",
|
|
|
|
type: "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
|
|
|
internalType: "uint256",
|
|
|
|
name: "liquidityIndex",
|
|
|
|
type: "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
|
|
|
internalType: "uint256",
|
|
|
|
name: "variableBorrowIndex",
|
|
|
|
type: "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
name: "ReserveDataUpdated",
|
|
|
|
type: "event"
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
const _bytecode =
|
2020-07-10 09:20:15 +00:00
|
|
|
"0x611152610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100b35760003560e01c80638acb830b1161007b5780638acb830b146101bb578063bde2ece714610206578063c38f451a14610242578063ebc1add114610274578063f51fedb4146102bb578063fade6ba0146102e5576100b3565b80630c1282ce146100b85780632bf7f292146100f65780633373b4c01461012257806358ba22fa1461017b5780637d368d2e1461019e575b600080fd5b6100e4600480360360408110156100ce57600080fd5b50803590602001356001600160a01b0316610311565b60408051918252519081900360200190f35b81801561010257600080fd5b506101206004803603602081101561011957600080fd5b5035610376565b005b81801561012e57600080fd5b50610120600480360360c081101561014557600080fd5b508035906001600160a01b0360208201358116916040810135821691606082013581169160808101359160a09091013516610386565b6100e46004803603604081101561019157600080fd5b508035906020013561046e565b6100e4600480360360208110156101b457600080fd5b503561048f565b8180156101c757600080fd5b50610120600480360360a08110156101de57600080fd5b508035906001600160a01b03602082013516906040810135906060810135906080013561052d565b81801561021257600080fd5b506101206004803603608081101561022957600080fd5b5080359060208101359060408101359060600135610579565b81801561024e57600080fd5b506101206004803603604081101561026557600080fd5b50803590602001351515610605565b81801561028057600080fd5b506101206004803603608081101561029757600080fd5b508035906001600160a01b0360208201351690604081013590606001351515610697565b8180156102c757600080fd5b50610120600480360360208110156102de57600080fd5b50356106b2565b6100e4600480360360408110156102fb57600080fd5b50803590602001356001600160a01b03166106c2565b60008061031d846106f5565b90508061032e576000915050610370565b60006103496001600160a01b0385163063ffffffff6107f516565b905061036b61035e828463ffffffff61089f16565b839063ffffffff6108f916565b925050505b92915050565b600c01805460ff60d01b19169055565b60098601546001600160a01b0316156103d05760405162461bcd60e51b81526004018080602001828103825260248152602001806110b06024913960400191505060405180910390fd5b85546103e1576103de61093d565b86555b60048601546103f8576103f261093d565b60048701555b6009860180546001600160a01b03199081166001600160a01b0397881617909155600a87018054821695871695909517909455600b860180548516938616939093179092556008850155600c9093018054600160e01b9216939092169290921760ff60e01b19169190911760ff60e81b19169055565b60008260030154600014610486578260030154610488565b815b9392505050565b60008160020154600014156105215781600c0160009054906101000a90046001600160a01b03166001600160a01b03166334762ca56040518163ffffffff1660e01b815260040160206040518083038186803b1580156104ee57600080fd5b505afa158015610502573d6000803e3d6000fd5b505050506040513d602081101561051857600080fd5b50519050610528565b5060028101545b919050565b6105368561094d565b6000610551610544876106f5565b859063ffffffff61089f16565b905061056486828563ffffffff610a0516565b6105718686856000610a63565b505050505050565b600c840154600160d01b900460ff16156105c45760405162461bcd60e51b81526004018080602001828103825260288152602001806110d46028913960400191505060405180910390fd5b600c8401805460ff60d01b1916600160d01b17905560058401839055600684018290556007840181905583546105ff576105fc61093d565b84555b50505050565b600c820154600160c81b900460ff1615610666576040805162461bcd60e51b815260206004820152601a60248201527f5265736572766520697320616c726561647920656e61626c6564000000000000604482015290519081900360640190fd5b600c9091018054911515600160d81b0260ff60d81b1960ff60c81b19909316600160c81b1792909216919091179055565b6106a08461094d565b806105ff576105ff8484600085610a63565b600c01805460ff60c81b19169055565b60006104886106d0846106f5565b6106e96001600160a01b0385163063ffffffff6107f516565b9063ffffffff61089f16565b600061037082600b0160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561074a57600080fd5b505afa15801561075e573d6000803e3d6000fd5b505050506040513d602081101561077457600080fd5b5051600a840154604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b1580156107bd57600080fd5b505afa1580156107d1573d6000803e3d6000fd5b5050505060
|