aave-protocol-v2/types/ReserveLogicFactory.ts
2020-08-25 14:15:35 +02:00

86 lines
8.6 KiB
TypeScript

/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Signer} from 'ethers';
import {Provider, TransactionRequest} from '@ethersproject/providers';
import {Contract, ContractFactory, Overrides} from '@ethersproject/contracts';
import {ReserveLogic} from './ReserveLogic';
export class ReserveLogicFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(overrides?: Overrides): Promise<ReserveLogic> {
return super.deploy(overrides || {}) as Promise<ReserveLogic>;
}
getDeployTransaction(overrides?: Overrides): TransactionRequest {
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 =
'0x610cf4610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100405760003560e01c80630381a18b14610045578063b5887a641461008c575b600080fd5b81801561005157600080fd5b5061008a6004803603608081101561006857600080fd5b508035906001600160a01b0360208201351690604081013590606001356100dd565b005b81801561009857600080fd5b5061008a600480360360a08110156100af57600080fd5b508035906001600160a01b03602082013581169160408101358216916060820135811691608001351661021b565b6100e6846102e8565b60006101f48560070160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561013b57600080fd5b505afa15801561014f573d6000803e3d6000fd5b505050506040513d602081101561016557600080fd5b50516008870154604080516318160ddd60e01b815290516101e8926001600160a01b0316916318160ddd916004808301926020929190829003018186803b1580156101af57600080fd5b505afa1580156101c3573d6000803e3d6000fd5b505050506040513d60208110156101d957600080fd5b5051869063ffffffff61048016565b9063ffffffff61048016565b905061020785828463ffffffff6104e316565b6102148585846000610541565b5050505050565b60068501546001600160a01b0316156102655760405162461bcd60e51b8152600401808060200182810382526024815260200180610c7a6024913960400191505060405180910390fd5b845461027657610273610888565b85555b600485015461028d57610287610888565b60048601555b6006850180546001600160a01b03199081166001600160a01b03968716179091556007860180548216948616949094179093556008850180548416928516929092179091556009909301805490911692909116919091179055565b6008810154604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b15801561032f57600080fd5b505afa158015610343573d6000803e3d6000fd5b505050506040513d602081101561035957600080fd5b505111806103d757506007810154604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b1580156103a957600080fd5b505afa1580156103bd573d6000803e3d6000fd5b505050506040513d60208110156103d357600080fd5b5051115b1561045d576001810154600982015460009161040091600160a01b900464ffffffffff16610898565b825490915061041690829063ffffffff6108ec16565b82556002820154600983015460009161043c91600160a01b900464ffffffffff16610930565b90506104558360040154826108ec90919063ffffffff16565b600484015550505b600901805464ffffffffff60a01b1916600160a01b4264ffffffffff1602179055565b6000828201838110156104da576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b60006105066104f184610a52565b6104fa84610a52565b9063ffffffff610a6816565b90506000610522610515610888565b839063ffffffff61048016565b855490915061053890829063ffffffff6108ec16565b90945550505050565b60078401546040805163487b7e7960e11b815290516000926001600160a01b0316916390f6fcf2916004808301926020929190829003018186803b15801561058857600080fd5b505afa15801561059c573d6000803e3d6000fd5b505050506040513d60208110156105b257600080fd5b50516006860154604080516370a0823160e01b81526001600160a01b0392831660048201529051929350600092918716916370a0823191602480820192602092909190829003018186803b15801561060957600080fd5b505afa15801561061d573d6000803e3d6000fd5b505050506040513d602081101561063357600080fd5b50516009870154909150600090819081906001600160a01b03166357e37af08961067389610667898d63ffffffff61048016565b9063ffffffff610aa016565b8c60070160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156106c357600080fd5b505afa1580156106d7573d6000803e3d6000fd5b505050506040513d60208110156106ed57600080fd5b505160088e0154604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b15801561073657600080fd5b505afa15801561074a573d6000803e3d6000fd5b505050506040513d602081101561076057600080fd5b5051604080516001600160e01b031960e088901b1681526001600160a01b039095166004860152602485019390935260448401919091526064830152608482018990525160a4808301926060929190829003018186803b1580156107c357600080fd5b505afa1580156107d7573d6000803e3d6000fd5b505050506040513d60608110156107ed57600080fd5b50805160208083015160409384015160018e0184905560038e0182905560028e018190558d5460048f015486518681529485018490528487018c905260608501839052608085019190915260a0840152935192965094509192506001600160a01b038a16917f131cf1f61e39fd78f61f07d78533f5b6c13629c80ef6965983e92c72efbaa4a4919081900360c00190a2505050505050505050565b6b033b2e3c9fd0803ce800000090565b6000806108b24264ffffffffff851663ffffffff610aa016565b905060006108c66104f16301e13380610a52565b90506108e36108d3610888565b6101e8878463ffffffff6108ec16565b95945050505050565b60006104da6b033b2e3c9fd0803ce8000000610924610911868663ffffffff610ae216565b6b019d971e4fe8401e7400000090610480565b9063ffffffff610b3b16565b60008061094a4264ffffffffff851663ffffffff610aa016565b90508061096157610959610888565b9150506104dd565b600061097482600163ffffffff610aa016565b9050600060028311610987576000610998565b61099883600263ffffffff610aa016565b905060006109b0876301e1338063ffffffff610b3b16565b905060006109c4828063ffffffff6108ec16565b905060006109d8828463ffffffff6108ec16565b90506000610a016002610924856109f58b8b63ffffffff610ae216565b9063ffffffff610ae216565b90506000610a206006610924856109f58a818e8e63ffffffff610ae216565b9050610a43816101e88481610a3b8a8e63ffffffff610ae216565b6101e8610888565b9b9a5050505050505050505050565b60006104dd82633b9aca0063ffffffff610ae216565b600060028204610a9883610924610a8b876b033b2e3c9fd0803ce8000000610ae2565b849063ffffffff61048016565b949350505050565b60006104da83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610b7d565b600082610af1575060006104dd565b82820282848281610afe57fe5b04146104da5760405162461bcd60e51b8152600401808060200182810382526021815260200180610c9e6021913960400191505060405180910390fd5b60006104da83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610c14565b60008184841115610c0c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610bd1578181015183820152602001610bb9565b50505050905090810190601f168015610bfe5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183610c635760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610bd1578181015183820152602001610bb9565b506000838581610c6f57fe5b049594505050505056fe526573657276652068617320616c7265616479206265656e20696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220a0531033582d251c8dccbe02b0d865d1949cdacb1c7043206af37b4225b9642864736f6c63430006080033';