aave-protocol-v2/types/InitializableAdminUpgradeabilityProxyFactory.ts

188 lines
11 KiB
TypeScript
Raw Normal View History

2020-06-03 10:23:21 +00:00
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
2020-08-10 18:20:08 +00:00
import {Contract, ContractFactory, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import {UnsignedTransaction} from 'ethers/utils/transaction';
2020-06-03 10:23:21 +00:00
2020-08-10 18:20:08 +00:00
import {TransactionOverrides} from '.';
import {InitializableAdminUpgradeabilityProxy} from './InitializableAdminUpgradeabilityProxy';
2020-06-03 10:23:21 +00:00
export class InitializableAdminUpgradeabilityProxyFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
2020-08-10 18:20:08 +00:00
deploy(overrides?: TransactionOverrides): Promise<InitializableAdminUpgradeabilityProxy> {
return super.deploy(overrides) as Promise<InitializableAdminUpgradeabilityProxy>;
2020-06-03 10:23:21 +00:00
}
getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction {
return super.getDeployTransaction(overrides);
}
attach(address: string): InitializableAdminUpgradeabilityProxy {
return super.attach(address) as InitializableAdminUpgradeabilityProxy;
}
connect(signer: Signer): InitializableAdminUpgradeabilityProxyFactory {
2020-08-10 18:20:08 +00:00
return super.connect(signer) as InitializableAdminUpgradeabilityProxyFactory;
2020-06-03 10:23:21 +00:00
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): InitializableAdminUpgradeabilityProxy {
2020-08-10 18:20:08 +00:00
return new Contract(address, _abi, signerOrProvider) as InitializableAdminUpgradeabilityProxy;
2020-06-03 10:23:21 +00:00
}
}
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'previousAdmin',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
indexed: false,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'newAdmin',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'AdminChanged',
type: 'event',
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'implementation',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'Upgraded',
type: 'event',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
stateMutability: 'payable',
type: 'fallback',
},
2020-06-03 10:23:21 +00:00
{
inputs: [],
2020-08-10 18:20:08 +00:00
name: 'admin',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'newAdmin',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'changeAdmin',
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [],
2020-08-10 18:20:08 +00:00
name: 'implementation',
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_logic',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_admin',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'bytes',
name: '_data',
type: 'bytes',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'initialize',
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-10 18:20:08 +00:00
stateMutability: 'payable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: '_logic',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'bytes',
name: '_data',
type: 'bytes',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'initialize',
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-10 18:20:08 +00:00
stateMutability: 'payable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'newImplementation',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'upgradeTo',
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-10 18:20:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-10 18:20:08 +00:00
internalType: 'address',
name: 'newImplementation',
type: 'address',
2020-06-03 10:23:21 +00:00
},
{
2020-08-10 18:20:08 +00:00
internalType: 'bytes',
name: 'data',
type: 'bytes',
},
2020-06-03 10:23:21 +00:00
],
2020-08-10 18:20:08 +00:00
name: 'upgradeToAndCall',
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-10 18:20:08 +00:00
stateMutability: 'payable',
type: 'function',
},
2020-06-03 10:23:21 +00:00
];
const _bytecode =
2020-08-10 18:20:08 +00:00
'0x608060405234801561001057600080fd5b50610e24806100206000396000f3fe6080604052600436106100705760003560e01c80638f2839701161004e5780638f2839701461015e578063cf7a1d7714610191578063d1f5789414610250578063f851a4401461030657610070565b80633659cfe61461007a5780634f1ef286146100ad5780635c60da1b1461012d575b61007861031b565b005b34801561008657600080fd5b506100786004803603602081101561009d57600080fd5b50356001600160a01b0316610335565b610078600480360360408110156100c357600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100ee57600080fd5b82018360208201111561010057600080fd5b8035906020019184600183028401116401000000008311171561012257600080fd5b50909250905061036f565b34801561013957600080fd5b506101426104f1565b604080516001600160a01b039092168252519081900360200190f35b34801561016a57600080fd5b506100786004803603602081101561018157600080fd5b50356001600160a01b031661052e565b610078600480360360608110156101a757600080fd5b6001600160a01b0382358116926020810135909116918101906060810160408201356401000000008111156101db57600080fd5b8201836020820111156101ed57600080fd5b8035906020019184600183028401116401000000008311171561020f57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506105e8945050505050565b6100786004803603604081101561026657600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561029157600080fd5b8201836020820111156102a357600080fd5b803590602001918460018302840111640100000000831117156102c557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061066e945050505050565b34801561031257600080fd5b506101426107ae565b6103236107d9565b61033361032e6107e1565b610806565b565b61033d61082a565b6001600160a01b0316336001600160a01b031614156103645761035f8161084f565b61036c565b61036c61031b565b50565b61037761082a565b6001600160a01b0316336001600160a01b031614156104e4576103ce6040518060400160405280601781526020017f496e736964652075706772616465546f416e6443616c6c00000000000000000081525061088f565b6103d78361084f565b61040060405180604001604052806008815260200167155c19dc9859195960c21b81525061088f565b61042f6040518060400160405280600d81526020016c4164647265737320697320257360981b815250846109d1565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d806000811461048c576040519150601f19603f3d011682016040523d82523d6000602084013e610491565b606091505b505090506104d46040518060400160405280601d81526020017f44656c65676174652063616c6c20646f6e652c20726573756c7420257300000081525082610b38565b806104de57600080fd5b506104ec565b6104ec61031b565b505050565b60006104fb61082a565b6001600160a01b0316336001600160a01b031614156105235761051c6107e1565b905061052b565b61052b61031b565b90565b61053661082a565b6001600160a01b0316336001600160a01b03161415610364576001600160a01b0381166105945760405162461bcd60e51b8152600401808060200182810382526036815260200180610d7e6036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6105bd61082a565b604080516001600160a01b03928316815291841660208301528051918290030190a161035f81610c23565b60006105f26107e1565b6001600160a01b03161461060557600080fd5b61060f838261066e565b604080517232b4b8189c9b1b97383937bc3c9730b236b4b760691b815290519081900360130190207fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61036000199091011461066557fe5b6104ec82610c23565b60006106786107e1565b6001600160a01b03161461068b57600080fd5b604080517f656970313936372e70726f78792e696d706c656d656e746174696f6e000000008152905190819003601c0190207f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc600019909101146106eb57fe5b6106f482610c47565b8051156107aa576000826001600160a01b0316826040518082805190602001908083835b602083106107375780518252601f199092019160209182019101610718565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610797576040519150601f19603f3d011682016040523d82523d6000602084013e61079c565b606091505b50509050806104ec57600080fd5b5050565b60006107b861082a565b6001600160a01b0316336001600160a01b031614156105235761051c61082a565b610333