mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
82 lines
4.2 KiB
TypeScript
82 lines
4.2 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 { InitializableUpgradeabilityProxy } from "./InitializableUpgradeabilityProxy";
|
||
|
|
||
|
export class InitializableUpgradeabilityProxyFactory extends ContractFactory {
|
||
|
constructor(signer?: Signer) {
|
||
|
super(_abi, _bytecode, signer);
|
||
|
}
|
||
|
|
||
|
deploy(
|
||
|
overrides?: TransactionOverrides
|
||
|
): Promise<InitializableUpgradeabilityProxy> {
|
||
|
return super.deploy(overrides) as Promise<InitializableUpgradeabilityProxy>;
|
||
|
}
|
||
|
getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction {
|
||
|
return super.getDeployTransaction(overrides);
|
||
|
}
|
||
|
attach(address: string): InitializableUpgradeabilityProxy {
|
||
|
return super.attach(address) as InitializableUpgradeabilityProxy;
|
||
|
}
|
||
|
connect(signer: Signer): InitializableUpgradeabilityProxyFactory {
|
||
|
return super.connect(signer) as InitializableUpgradeabilityProxyFactory;
|
||
|
}
|
||
|
static connect(
|
||
|
address: string,
|
||
|
signerOrProvider: Signer | Provider
|
||
|
): InitializableUpgradeabilityProxy {
|
||
|
return new Contract(
|
||
|
address,
|
||
|
_abi,
|
||
|
signerOrProvider
|
||
|
) as InitializableUpgradeabilityProxy;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
const _abi = [
|
||
|
{
|
||
|
anonymous: false,
|
||
|
inputs: [
|
||
|
{
|
||
|
indexed: true,
|
||
|
internalType: "address",
|
||
|
name: "implementation",
|
||
|
type: "address"
|
||
|
}
|
||
|
],
|
||
|
name: "Upgraded",
|
||
|
type: "event"
|
||
|
},
|
||
|
{
|
||
|
inputs: [
|
||
|
{
|
||
|
internalType: "address",
|
||
|
name: "_logic",
|
||
|
type: "address"
|
||
|
},
|
||
|
{
|
||
|
internalType: "bytes",
|
||
|
name: "_data",
|
||
|
type: "bytes"
|
||
|
}
|
||
|
],
|
||
|
name: "initialize",
|
||
|
outputs: [],
|
||
|
stateMutability: "payable",
|
||
|
type: "function"
|
||
|
},
|
||
|
{
|
||
|
stateMutability: "payable",
|
||
|
type: "receive"
|
||
|
}
|
||
|
];
|
||
|
|
||
|
const _bytecode =
|
||
|
"0x608060405234801561001057600080fd5b50610450806100206000396000f3fe6080604052600436106100225760003560e01c8063d1f578941461003657610031565b366100315761002f610111565b005b600080fd5b61010f6004803603604081101561004c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561008957600080fd5b82018360208201111561009b57600080fd5b803590602001918460018302840111640100000000831117156100bd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061012b565b005b6101196102ae565b6101296101246102b0565b6102e1565b565b600073ffffffffffffffffffffffffffffffffffffffff1661014b6102b0565b73ffffffffffffffffffffffffffffffffffffffff161461016b57600080fd5b600160405180807f656970313936372e70726f78792e696d706c656d656e746174696f6e00000000815250601c019050604051809103902060001c0360001b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b146101d557fe5b6101de82610307565b6000815111156102aa5760008273ffffffffffffffffffffffffffffffffffffffff16826040518082805190602001908083835b602083106102355780518252602082019150602081019050602083039250610212565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610295576040519150601f19603f3d011682016040523d82523d6000602084013e61029a565b606091505b50509050806102a857600080fd5b505b5050565b565b6000807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b9050805491505090565b3660008037600080366000845af43d6000803e8060008114610302573d6000f35b3d6000fd5b61031081610394565b610365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b8152602001806103e0603b913960400191505060405180910390fd5b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b90508181555050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f91508082141580156103d657506000801b8214155b9250505091905056fe43616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a2646970667358221220ec5e8c1744cf082a11e2b69560ecd27aab52ab8ed1a234f721fc2b20fc028b1264736f6c63430006080033";
|