mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
90 lines
9.6 KiB
TypeScript
90 lines
9.6 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 =
|
|
"0x610ecb610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80630c1282ce1461007157806358ba22fa146100af5780637d368d2e146100d25780638acb830b146100ef578063b5887a641461013c578063fade6ba01461018d575b600080fd5b61009d6004803603604081101561008757600080fd5b50803590602001356001600160a01b03166101b9565b60408051918252519081900360200190f35b61009d600480360360408110156100c557600080fd5b5080359060200135610279565b61009d600480360360208110156100e857600080fd5b503561029a565b8180156100fb57600080fd5b5061013a600480360360a081101561011257600080fd5b508035906001600160a01b036020820135169060408101359060608101359060800135610338565b005b81801561014857600080fd5b5061013a600480360360a081101561015f57600080fd5b508035906001600160a01b036020820135811691604081013582169160608201358116916080013516610384565b61009d600480360360408110156101a357600080fd5b50803590602001356001600160a01b0316610451565b6000806101c5846104dd565b9050806101d6576000915050610273565b604080516370a0823160e01b815230600482015290516000916001600160a01b038616916370a0823191602480820192602092909190829003018186803b15801561022057600080fd5b505afa158015610234573d6000803e3d6000fd5b505050506040513d602081101561024a57600080fd5b5051905061026e610261828463ffffffff6105a516565b839063ffffffff6105ff16565b925050505b92915050565b60008260030154600014610291578260030154610293565b815b9392505050565b600081600201546000141561032c578160090160009054906101000a90046001600160a01b03166001600160a01b03166334762ca56040518163ffffffff1660e01b815260040160206040518083038186803b1580156102f957600080fd5b505afa15801561030d573d6000803e3d6000fd5b505050506040513d602081101561032357600080fd5b50519050610333565b5060028101545b919050565b61034185610643565b600061035c61034f876104dd565b859063ffffffff6105a516565b905061036f86828563ffffffff6106fb16565b61037c8686856000610759565b505050505050565b60068501546001600160a01b0316156103ce5760405162461bcd60e51b8152600401808060200182810382526024815260200180610e516024913960400191505060405180910390fd5b84546103df576103dc610aa0565b85555b60048501546103f6576103f0610aa0565b60048601555b6006850180546001600160a01b03199081166001600160a01b03968716179091556007860180548216948616949094179093556008850180548416928516929092179091556009909301805490911692909116919091179055565b600061029361045f846104dd565b604080516370a0823160e01b815230600482015290516001600160a01b038616916370a08231916024808301926020929190829003018186803b1580156104a557600080fd5b505afa1580156104b9573d6000803e3d6000fd5b505050506040513d60208110156104cf57600080fd5b50519063ffffffff6105a516565b60006102738260080160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561053257600080fd5b505afa158015610546573d6000803e3d6000fd5b505050506040513d602081101561055c57600080fd5b50516007840154604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b1580156104a557600080fd5b600082820183811015610293576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006002820461063b8361062f610622876b033b2e3c9fd0803ce8000000610ab0565b849063ffffffff6105a516565b9063ffffffff610b0916565b949350505050565b600061064e826104dd565b905080156106d7576001820154600983015460009161067a91600160a01b900464ffffffffff16610b4b565b835490915061069090829063ffffffff610ba216565b8355600283015460098401546000916106b691600160a01b900464ffffffffff16610bda565b90506106cf846004015482610ba290919063ffffffff16565b600485015550505b50600901805464ffffffffff60a01b1916600160a01b4264ffffffffff1602179055565b600061071e61070984610cfc565b61071284610cfc565b9063ffffffff6105ff16565b9050600061073a61072d610aa0565b839063ffffffff6105a516565b855490915061075090829063ffffffff610ba216565b90945550505050565b60078401546040805163487b7e7960e11b815290516000926001600160a01b0316916390f6fcf2916004808301926020929190829003018186803b1580156107a057600080fd5b505afa1580156107b4573d6000803e3d6000fd5b505050506040513d60208110156107ca57600080fd5b50516006860154604080516370a0823160e01b81526001600160a01b0392831660048201529051929350600092918716916370a0823191602480820192602092909190829003018186803b15801561082157600080fd5b505afa158015610835573d6000803e3d6000fd5b505050506040513d602081101561084b57600080fd5b50516009870154909150600090819081906001600160a01b03166357e37af08961088b8961087f898d63ffffffff6105a516565b9063ffffffff610d1216565b8c60070160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156108db57600080fd5b505afa1580156108ef573d6000803e3d6000fd5b505050506040513d602081101561090557600080fd5b505160088e0154604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b15801561094e57600080fd5b505afa158015610962573d6000803e3d6000fd5b505050506040513d602081101561097857600080fd5b5051604080516001600160e01b031960e088901b1681526001600160a01b039095166004860152602485019390935260448401919091526064830152608482018990525160a4808301926060929190829003018186803b1580156109db57600080fd5b505afa1580156109ef573d6000803e3d6000fd5b505050506040513d6060811015610a0557600080fd5b50805160208083015160409384015160018e0184905560038e0182905560028e018190558d5460048f015486518681529485018490528487018c905260608501839052608085019190915260a0840152935192965094509192506001600160a01b038a16917f131cf1f61e39fd78f61f07d78533f5b6c13629c80ef6965983e92c72efbaa4a4919081900360c00190a2505050505050505050565b6b033b2e3c9fd0803ce800000090565b600082610abf57506000610273565b82820282848281610acc57fe5b04146102935760405162461bcd60e51b8152600401808060200182810382526021815260200180610e756021913960400191505060405180910390fd5b600061029383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610d54565b600080610b654264ffffffffff851663ffffffff610d1216565b90506000610b796107096301e13380610cfc565b905061026e610b86610aa0565b610b96878463ffffffff610ba216565b9063ffffffff6105a516565b60006102936b033b2e3c9fd0803ce800000061062f610bc7868663ffffffff610ab016565b6b019d971e4fe8401e74000000906105a5565b600080610bf44264ffffffffff851663ffffffff610d1216565b905080610c0b57610c03610aa0565b915050610273565b6000610c1e82600163ffffffff610d1216565b9050600060028311610c31576000610c42565b610c4283600263ffffffff610d1216565b90506000610c5a876301e1338063ffffffff610b0916565b90506000610c6e828063ffffffff610ba216565b90506000610c82828463ffffffff610ba216565b90506000610cab600261062f85610c9f8b8b63ffffffff610ab016565b9063ffffffff610ab016565b90506000610cca600661062f85610c9f8a818e8e63ffffffff610ab016565b9050610ced81610b968481610ce58a8e63ffffffff610ab016565b610b96610aa0565b9b9a5050505050505050505050565b600061027382633b9aca0063ffffffff610ab016565b600061029383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610df6565b60008183610de05760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610da5578181015183820152602001610d8d565b50505050905090810190601f168015610dd25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610dec57fe5b0495945050505050565b60008184841115610e485760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610da5578181015183820152602001610d8d565b50505090039056fe526573657276652068617320616c7265616479206265656e20696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220bc2ecf55acc1c09cd9863ed15e8fb5c2c406110ea71474e8d568ebb92168745064736f6c63430006080033";
|