aave-protocol-v2/types/BaseUpgradeabilityProxyFactory.ts

55 lines
1.9 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-07-13 08:54: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-07-13 08:54:08 +00:00
import {TransactionOverrides} from '.';
import {BaseUpgradeabilityProxy} from './BaseUpgradeabilityProxy';
2020-06-03 10:23:21 +00:00
export class BaseUpgradeabilityProxyFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(overrides?: TransactionOverrides): Promise<BaseUpgradeabilityProxy> {
return super.deploy(overrides) as Promise<BaseUpgradeabilityProxy>;
}
getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction {
return super.getDeployTransaction(overrides);
}
attach(address: string): BaseUpgradeabilityProxy {
return super.attach(address) as BaseUpgradeabilityProxy;
}
connect(signer: Signer): BaseUpgradeabilityProxyFactory {
return super.connect(signer) as BaseUpgradeabilityProxyFactory;
}
2020-07-13 08:54:08 +00:00
static connect(address: string, signerOrProvider: Signer | Provider): BaseUpgradeabilityProxy {
return new Contract(address, _abi, signerOrProvider) as BaseUpgradeabilityProxy;
2020-06-03 10:23:21 +00:00
}
}
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'implementation',
type: 'address',
},
2020-06-03 10:23:21 +00:00
],
2020-07-13 08:54:08 +00:00
name: 'Upgraded',
type: 'event',
2020-06-03 10:23:21 +00:00
},
{
2020-07-13 08:54:08 +00:00
stateMutability: 'payable',
type: 'fallback',
},
2020-06-03 10:23:21 +00:00
];
const _bytecode =
2020-07-23 15:18:06 +00:00
'0x6080604052348015600f57600080fd5b50609e8061001e6000396000f3fe6080604052600a600c565b005b6012601e565b601e601a6020565b6045565b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e8080156063573d6000f35b3d6000fdfea264697066735822122026f9f0a10c55993cd5e1ec3854f2261ee54f57fd62ea6dcffd6b08e6f296847d64736f6c63430006080033';