UNPKG

@etherspot/contracts

Version:

Etherspot Solidity contracts

72 lines (65 loc) 2.31 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; import { Provider, TransactionRequest } from "@ethersproject/providers"; import type { AccountBase, AccountBaseInterface } from "../AccountBase"; const _abi = [ { inputs: [], name: "registry", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, ]; const _bytecode = "0x6080604052348015600f57600080fd5b5060908061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c80637b10399914602d575b600080fd5b6033605f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff168156fea164736f6c634300060c000a"; type AccountBaseConstructorParams = | [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; const isSuperArgs = ( xs: AccountBaseConstructorParams ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1; export class AccountBase__factory extends ContractFactory { constructor(...args: AccountBaseConstructorParams) { if (isSuperArgs(args)) { super(...args); } else { super(_abi, _bytecode, args[0]); } } deploy( overrides?: Overrides & { from?: string | Promise<string> } ): Promise<AccountBase> { return super.deploy(overrides || {}) as Promise<AccountBase>; } getDeployTransaction( overrides?: Overrides & { from?: string | Promise<string> } ): TransactionRequest { return super.getDeployTransaction(overrides || {}); } attach(address: string): AccountBase { return super.attach(address) as AccountBase; } connect(signer: Signer): AccountBase__factory { return super.connect(signer) as AccountBase__factory; } static readonly bytecode = _bytecode; static readonly abi = _abi; static createInterface(): AccountBaseInterface { return new utils.Interface(_abi) as AccountBaseInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): AccountBase { return new Contract(address, _abi, signerOrProvider) as AccountBase; } }