aave-protocol-v2/types/AdminUpgradeabilityProxyFactory.ts
2020-08-10 20:20:08 +02:00

176 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 {Arrayish} from 'ethers/utils';
import {TransactionOverrides} from '.';
import {AdminUpgradeabilityProxy} from './AdminUpgradeabilityProxy';
export class AdminUpgradeabilityProxyFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(
_logic: string,
_admin: string,
_data: Arrayish,
overrides?: TransactionOverrides
): Promise<AdminUpgradeabilityProxy> {
return super.deploy(_logic, _admin, _data, overrides) as Promise<AdminUpgradeabilityProxy>;
}
getDeployTransaction(
_logic: string,
_admin: string,
_data: Arrayish,
overrides?: TransactionOverrides
): UnsignedTransaction {
return super.getDeployTransaction(_logic, _admin, _data, overrides);
}
attach(address: string): AdminUpgradeabilityProxy {
return super.attach(address) as AdminUpgradeabilityProxy;
}
connect(signer: Signer): AdminUpgradeabilityProxyFactory {
return super.connect(signer) as AdminUpgradeabilityProxyFactory;
}
static connect(address: string, signerOrProvider: Signer | Provider): AdminUpgradeabilityProxy {
return new Contract(address, _abi, signerOrProvider) as AdminUpgradeabilityProxy;
}
}
const _abi = [
{
inputs: [
{
internalType: 'address',
name: '_logic',
type: 'address',
},
{
internalType: 'address',
name: '_admin',
type: 'address',
},
{
internalType: 'bytes',
name: '_data',
type: 'bytes',
},
],
stateMutability: 'payable',
type: 'constructor',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'address',
name: 'previousAdmin',
type: 'address',
},
{
indexed: false,
internalType: 'address',
name: 'newAdmin',
type: 'address',
},
],
name: 'AdminChanged',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'implementation',
type: 'address',
},
],
name: 'Upgraded',
type: 'event',
},
{
stateMutability: 'payable',
type: 'fallback',
},
{
inputs: [],
name: 'admin',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'newAdmin',
type: 'address',
},
],
name: 'changeAdmin',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'implementation',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'newImplementation',
type: 'address',
},
],
name: 'upgradeTo',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'newImplementation',
type: 'address',
},
{
internalType: 'bytes',
name: 'data',
type: 'bytes',
},
],
name: 'upgradeToAndCall',
outputs: [],
stateMutability: 'payable',
type: 'function',
},
];
const _bytecode =
'0x608060405260405162000e8138038062000e81833981810160405260608110156200002957600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200005557600080fd5b9083019060208201858111156200006b57600080fd5b82516401000000008111828201881017156200008657600080fd5b82525081516020918201929091019080838360005b83811015620000b55781810151838201526020016200009b565b50505050905090810190601f168015620000e35780820380516001836020036101000a031916815260200191505b5060408181527f656970313936372e70726f78792e696d706c656d656e746174696f6e0000000082525190819003601c01902086935084925060008051602062000e268339815191526000199091011490506200013c57fe5b62000150826001600160e01b036200027d16565b8051156200020e576000826001600160a01b0316826040518082805190602001908083835b60208310620001965780518252601f19909201916020918201910162000175565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114620001f8576040519150601f19603f3d011682016040523d82523d6000602084013e620001fd565b606091505b50509050806200020c57600080fd5b505b5050604080517f656970313936372e70726f78792e61646d696e000000000000000000000000008152905190819003601301902060008051602062000e06833981519152600019909101146200026057fe5b62000274826001600160e01b03620002e316565b50505062000333565b6200029381620002f660201b620004781760201c565b620002d05760405162461bcd60e51b815260040180806020018281038252603b81526020018062000e46603b913960400191505060405180910390fd5b60008051602062000e2683398151915255565b60008051602062000e0683398151915255565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906200032b57508115155b949350505050565b610ac380620003436000396000f3fe60806040526004361061004a5760003560e01c80633659cfe6146100545780634f1ef286146100875780635c60da1b146101075780638f28397014610138578063f851a4401461016b575b610052610180565b005b34801561006057600080fd5b506100526004803603602081101561007757600080fd5b50356001600160a01b031661019a565b6100526004803603604081101561009d57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100c857600080fd5b8201836020820111156100da57600080fd5b803590602001918460018302840111640100000000831117156100fc57600080fd5b5090925090506101d4565b34801561011357600080fd5b5061011c610356565b604080516001600160a01b039092168252519081900360200190f35b34801561014457600080fd5b506100526004803603602081101561015b57600080fd5b50356001600160a01b0316610393565b34801561017757600080fd5b5061011c61044d565b6101886104b4565b6101986101936104bc565b6104e1565b565b6101a2610505565b6001600160a01b0316336001600160a01b031614156101c9576101c48161052a565b6101d1565b6101d1610180565b50565b6101dc610505565b6001600160a01b0316336001600160a01b03161415610349576102336040518060400160405280601781526020017f496e736964652075706772616465546f416e6443616c6c00000000000000000081525061056a565b61023c8361052a565b61026560405180604001604052806008815260200167155c19dc9859195960c21b81525061056a565b6102946040518060400160405280600d81526020016c4164647265737320697320257360981b815250846106ac565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d80600081146102f1576040519150601f19603f3d011682016040523d82523d6000602084013e6102f6565b606091505b505090506103396040518060400160405280601d81526020017f44656c65676174652063616c6c20646f6e652c20726573756c7420257300000081525082610813565b8061034357600080fd5b50610351565b610351610180565b505050565b6000610360610505565b6001600160a01b0316336001600160a01b03161415610388576103816104bc565b9050610390565b610390610180565b90565b61039b610505565b6001600160a01b0316336001600160a01b031614156101c9576001600160a01b0381166103f95760405162461bcd60e51b8152600401808060200182810382526036815260200180610a1d6036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f610422610505565b604080516001600160a01b03928316815291841660208301528051918290030190a16101c4816108fe565b6000610457610505565b6001600160a01b0316336001600160a01b0316141561038857610381610505565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906104ac57508115155b949350505050565b610198610922565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015610500573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b61053381610982565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6040516020602482018181528351604484015283516000936a636f6e736f6c652e6c6f67938693928392606401918501908083838a5b838110156105b85781810151838201526020016105a0565b50505050905090810190601f1680156105e55780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180516001600160e01b031663104c13eb60e21b178152905182519295509350839250908083835b602083106106405780518252601f199092019160209182019101610621565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d80600081146106a0576040519150601f19603f3d011682016040523d82523d6000602084013e6106a5565b606091505b5050505050565b60006a636f6e736f6c652e6c6f676001600160a01b031683836040516024018080602001836001600160a01b03166001600160a01b03168152602001828103825284818151815260200191508051906020019080838360005b8381101561071d578181015183820152602001610705565b50505050905090810190601f16801561074a5780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180516001600160e01b031663319af33360e01b17815290518251929650945084935091508083835b602083106107a65780518252601f199092019160209182019101610787565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114610806576040519150601f19603f3d011682016040523d82523d6000602084013e61080b565b606091505b505050505050565b60006a636f6e736f6c652e6c6f676001600160a01b03168383604051602401808060200183151515158152602001828103825284818151815260200191508051906020019080838360005b8381101561087657818101518382015260200161085e565b50505050905090810190601f1680156108a35780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180516001600160e01b031663c3b5563560e01b1781529051825192965094508493509150808383602083106107a65780518252601f199092019160209182019101610787565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b61092a610505565b6001600160a01b0316336001600160a01b0316141561097a5760405162461bcd60e51b81526004018080602001828103825260328152602001806109eb6032913960400191505060405180910390fd5b610198610198565b61098b81610478565b6109c65760405162461bcd60e51b815260040180806020018281038252603b815260200180610a53603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5556fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f787920746f20746865207a65726f206164647265737343616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a264697066735822122000d97367533270801ac16c594782f89c01c5ada03b1a984f36d7af83c142944364736f6c63430006080033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc43616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373';