aave-protocol-v2/types/ReserveLogicFactory.ts
2020-06-21 01:40:03 +02:00

90 lines
11 KiB
TypeScript

/* 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 =
"0x61126b610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100a85760003560e01c8063d9c477cc11610070578063d9c477cc14610224578063dc778c1514610241578063e1219abf1461028c578063f67484c5146102b8578063f77efa6e14610303576100a8565b80634ef73b65146100ad5780639ada2ceb146100fc578063a02372641461013a578063a590d4f214610185578063a717d195146101d0575b600080fd5b8180156100b957600080fd5b506100fa600480360360a08110156100d057600080fd5b508035906001600160a01b0360208201351690604081013590606081013590608001351515610326565b005b6101286004803603604081101561011257600080fd5b50803590602001356001600160a01b0316610357565b60408051918252519081900360200190f35b81801561014657600080fd5b506100fa600480360360a081101561015d57600080fd5b508035906001600160a01b0360208201351690604081013590606081013590608001356103bc565b81801561019157600080fd5b506100fa600480360360c08110156101a857600080fd5b5080359060208101359060408101359060608101359060808101359060a0013560ff16610408565b8180156101dc57600080fd5b506100fa600480360360c08110156101f357600080fd5b5080359060208101359060408101356001600160a01b03169060608101359060808101359060a0013560ff16610543565b6101286004803603602081101561023a57600080fd5b5035610613565b81801561024d57600080fd5b506100fa600480360360a081101561026457600080fd5b508035906020810135906001600160a01b0360408201351690606081013590608001356106b1565b610128600480360360408110156102a257600080fd5b50803590602001356001600160a01b031661074c565b8180156102c457600080fd5b506100fa600480360360a08110156102db57600080fd5b508035906020810135906001600160a01b03604082013516906060810135906080013561077a565b6101286004803603604081101561031957600080fd5b50803590602001356107f9565b61032f85610817565b80610350576103508585600061034b878763ffffffff6108af16565b610909565b5050505050565b60008061036384610aad565b9050806103745760009150506103b6565b600061038f6001600160a01b0385163063ffffffff610aca16565b90506103b16103a4828463ffffffff6108af16565b839063ffffffff610b7416565b925050505b92915050565b6103c585610817565b60006103e06103d387610aad565b859063ffffffff6108af16565b90506103f386828563ffffffff610bb816565b6104008686856000610909565b505050505050565b61041186610817565b600061041c86610c16565b9050600181600281111561042c57fe5b141561044f57600386015461044a908890879063ffffffff610c4216565b610473565b600281600281111561045d57fe5b141561047357610473878663ffffffff610d6716565b600061049584610489888863ffffffff6108af16565b9063ffffffff6108af16565b905060018360028111156104a557fe5b14156104c85760058801546104c3908990839063ffffffff610dcb16565b610539565b60028360028111156104d657fe5b14156104ec576104c3888263ffffffff610e2b16565b6040805162461bcd60e51b815260206004820152601c60248201527f496e76616c6964206e657720626f72726f772072617465206d6f646500000000604482015290519081900360640190fd5b5050505050505050565b61054c86610817565b600181600281111561055a57fe5b141561058c57600385015461057687858363ffffffff610c4216565b610586878463ffffffff610e2b16565b50610400565b600281600281111561059a57fe5b14156105c65760058601546105b5878563ffffffff610d6716565b61058687848363ffffffff610dcb16565b6040805162461bcd60e51b815260206004820152601a60248201527f496e76616c69642072617465206d6f6465207265636569766564000000000000604482015290519081900360640190fd5b60008160040154600014156106a55781600d0160009054906101000a90046001600160a01b03166001600160a01b03166334762ca56040518163ffffffff1660e01b815260040160206040518083038186803b15801561067257600080fd5b505afa158015610686573d6000803e3d6000fd5b505050506040513d602081101561069c57600080fd5b505190506106ac565b5060048101545b919050565b6106ba85610817565b60006106c585610c16565b905060018160028111156106d557fe5b14156107105760038501546106f3908790849063ffffffff610dcb16565b600385015461070b908790859063ffffffff610c4216565b610730565b610720868363ffffffff610e2b16565b610730868463ffffffff610d6716565b6104008685610745868663ffffffff6108af16565b6000610909565b600061077361075a84610aad565b6104896001600160a01b0385163063ffffffff610aca16565b9392505050565b600061078585610c16565b905061079086610817565b600181600281111561079e57fe5b14156107d95760038501546107bc908790849063ffffffff610dcb16565b60038501546107d4908790859063ffffffff610c4216565b610400565b6107e9868363ffffffff610e2b16565b610400868463ffffffff610d6716565b60008260050154600014610811578260050154610773565b50919050565b600061082282610aad565b905080156108ab576001820154600d83015460009161084e91600160a01b900464ffffffffff16610e40565b835490915061086490829063ffffffff610e8b16565b83556004830154600d84015460009161088a91600160a01b900464ffffffffff16610ec3565b90506108a3846007015482610e8b90919063ffffffff16565b600785015550505b5050565b600082820183811015610773576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6006840154600d850154600090819081906001600160a01b03908116906357e37af090899061095890899061094c908c906104899086163063ffffffff610aca16565b9063ffffffff610f1216565b8b600201548c60030154896040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b031681526020018581526020018481526020018381526020018281526020019550505050505060606040518083038186803b1580156109c557600080fd5b505afa1580156109d9573d6000803e3d6000fd5b505050506040513d60608110156109ef57600080fd5b50805160208083015160409384015160018d0184905560058d0182905560048d01819055600d8d01805464ffffffffff4216600160a01b0264ffffffffff60a01b199091161790558c5460078e015486518681529485018490528487018b905260608501839052608085019190915260a0840152935192965094509192506001600160a01b038916917f131cf1f61e39fd78f61f07d78533f5b6c13629c80ef6965983e92c72efbaa4a4919081900360c00190a25050505050505050565b60006103b6826003015483600201546108af90919063ffffffff16565b6000610ad583610f54565b15610aeb57506001600160a01b038116316103b6565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610b4157600080fd5b505afa158015610b55573d6000803e3d6000fd5b505050506040513d6020811015610b6b57600080fd5b505190506103b6565b600060028204610bb083610ba4610b97876b033b2e3c9fd0803ce8000000610f8a565b849063ffffffff6108af16565b9063ffffffff610fe316565b949350505050565b6000610bdb610bc684611025565b610bcf84611025565b9063ffffffff610b7416565b90506000610bf7610bea61103b565b839063ffffffff6108af16565b8554909150610c0d90829063ffffffff610e8b16565b90945550505050565b8054600090610c27575060006106ac565b6000826003015411610c3a5760026103b6565b506001919050565b8183600201541015610c9b576040805162461bcd60e51b815260206004820152601a60248201527f496e76616c696420616d6f756e7420746f206465637265617365000000000000604482015290519081900360640190fd5b6002830154610cb0818463ffffffff610f1216565b60028501819055610cc8575060006006840155610d62565b6000610ce383610cd786611025565b9063ffffffff610e8b16565b90506000610cf88660060154610cd785611025565b905081811015610d395760405162461bcd60e51b81526004018080602001828103825260238152602001806111f26023913960400191505060405180910390fd5b610d59610d498760020154611025565b610bcf838563ffffffff610f1216565b60068701555050505b505050565b8082600301541015610daa5760405162461bcd60e51b81526004018080602001828103825260508152602001806111a26050913960600191505060405180910390fd5b6003820154610dbf908263ffffffff610f1216565b82600301819055505050565b6002830154610de0818463ffffffff6108af16565b60028501556000610df483610cd786611025565b90506000610e098660060154610cd785611025565b9050610d59610e1b8760020154611025565b610bcf848463ffffffff6108af16565b6003820154610dbf908263ffffffff6108af16565b600080610e5a4264ffffffffff851663ffffffff610f1216565b90506000610e6e610bc66301e13380611025565b90506103b1610e7b61103b565b610489878463ffffffff610e8b16565b60006107736b033b2e3c9fd0803ce8000000610ba4610eb0868663ffffffff610f8a16565b6b019d971e4fe8401e74000000906108af565b600080610edd4264ffffffffff851663ffffffff610f1216565b90506000610ef5856301e1338063ffffffff610fe316565b90506103b182610f06610b9761103b565b9063ffffffff61104b16565b600061077383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506110a5565b60006001600160a01b03821615806103b65750506001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b600082610f99575060006103b6565b82820282848281610fa657fe5b04146107735760405162461bcd60e51b81526004018080602001828103825260218152602001806112156021913960400191505060405180910390fd5b600061077383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061113c565b60006103b682633b9aca0063ffffffff610f8a16565b6b033b2e3c9fd0803ce800000090565b600060028206611067576b033b2e3c9fd0803ce8000000611069565b825b90506002820491505b81156103b6576110828384610e8b565b9250600282061561109a576110978184610e8b565b90505b600282049150611072565b600081848411156111345760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156110f95781810151838201526020016110e1565b50505050905090810190601f1680156111265780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000818361118b5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156110f95781810151838201526020016110e1565b50600083858161119757fe5b049594505050505056fe54686520616d6f756e742074686174206973206265696e6720737562747261637465642066726f6d20746865207661726961626c6520746f74616c20626f72726f777320697320696e636f727265637454686520616d6f756e747320746f20737562747261637420646f6e2774206d61746368536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212206db1759b2c21b0c5f0c68ae4b523dfd47c68b05145fb56cda9c718d1a3d5321464736f6c63430006080033";