|
| 1 | +/* Autogenerated file. Do not edit manually. */ |
| 2 | +/* tslint:disable */ |
| 3 | +/* eslint-disable */ |
| 4 | +import { |
| 5 | + Signer, |
| 6 | + utils, |
| 7 | + Contract, |
| 8 | + ContractFactory, |
| 9 | + BigNumberish, |
| 10 | + Overrides, |
| 11 | +} from "ethers"; |
| 12 | +import type { Provider, TransactionRequest } from "@ethersproject/providers"; |
| 13 | +import type { PromiseOrValue } from "../../common"; |
| 14 | +import type { Hello, HelloInterface } from "../../Directory/Hello"; |
| 15 | + |
| 16 | +const _abi = [ |
| 17 | + { |
| 18 | + inputs: [ |
| 19 | + { |
| 20 | + internalType: "uint256", |
| 21 | + name: "", |
| 22 | + type: "uint256", |
| 23 | + }, |
| 24 | + ], |
| 25 | + stateMutability: "nonpayable", |
| 26 | + type: "constructor", |
| 27 | + }, |
| 28 | +]; |
| 29 | + |
| 30 | +const _bytecode = |
| 31 | + "0x6080604052348015600f57600080fd5b5060405160dc38038060dc8339818101604052810190602d91906045565b506090565b600081519050603f81607c565b92915050565b60006020828403121560585760576077565b5b60006064848285016032565b91505092915050565b6000819050919050565b600080fd5b608381606d565b8114608d57600080fd5b50565b603f80609d6000396000f3fe6080604052600080fdfea2646970667358221220133f91b0425ce510af8b75336b57852d3a7de1c90943e9b26ca086eabb5334d264736f6c63430008070033"; |
| 32 | + |
| 33 | +type HelloConstructorParams = |
| 34 | + | [signer?: Signer] |
| 35 | + | ConstructorParameters<typeof ContractFactory>; |
| 36 | + |
| 37 | +const isSuperArgs = ( |
| 38 | + xs: HelloConstructorParams |
| 39 | +): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1; |
| 40 | + |
| 41 | +export class Hello__factory extends ContractFactory { |
| 42 | + constructor(...args: HelloConstructorParams) { |
| 43 | + if (isSuperArgs(args)) { |
| 44 | + super(...args); |
| 45 | + } else { |
| 46 | + super(_abi, _bytecode, args[0]); |
| 47 | + } |
| 48 | + } |
| 49 | + |
| 50 | + override deploy( |
| 51 | + arg0: PromiseOrValue<BigNumberish>, |
| 52 | + overrides?: Overrides & { from?: PromiseOrValue<string> } |
| 53 | + ): Promise<Hello> { |
| 54 | + return super.deploy(arg0, overrides || {}) as Promise<Hello>; |
| 55 | + } |
| 56 | + override getDeployTransaction( |
| 57 | + arg0: PromiseOrValue<BigNumberish>, |
| 58 | + overrides?: Overrides & { from?: PromiseOrValue<string> } |
| 59 | + ): TransactionRequest { |
| 60 | + return super.getDeployTransaction(arg0, overrides || {}); |
| 61 | + } |
| 62 | + override attach(address: string): Hello { |
| 63 | + return super.attach(address) as Hello; |
| 64 | + } |
| 65 | + override connect(signer: Signer): Hello__factory { |
| 66 | + return super.connect(signer) as Hello__factory; |
| 67 | + } |
| 68 | + |
| 69 | + static readonly bytecode = _bytecode; |
| 70 | + static readonly abi = _abi; |
| 71 | + static createInterface(): HelloInterface { |
| 72 | + return new utils.Interface(_abi) as HelloInterface; |
| 73 | + } |
| 74 | + static connect(address: string, signerOrProvider: Signer | Provider): Hello { |
| 75 | + return new Contract(address, _abi, signerOrProvider) as Hello; |
| 76 | + } |
| 77 | +} |
0 commit comments