UNPKG

randomness-js

Version:

A library for consuming, verifying and using randomness from the dcipher network

73 lines (65 loc) 2.22 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, ContractFactory, ContractTransactionResponse, Interface, } from "ethers"; import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; import type { NonPayableOverrides } from "../common"; import type { Address, AddressInterface } from "../Address"; const _abi = [ { type: "error", name: "AddressEmptyCode", inputs: [ { name: "target", type: "address", internalType: "address", }, ], }, ] as const; const _bytecode = "0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea26469706673582212200acfbc3995302d663c22220f0ee34979d914832d4a0077a1e63efa197f6529b964736f6c634300081c0033"; type AddressConstructorParams = | [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; const isSuperArgs = ( xs: AddressConstructorParams ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1; export class Address__factory extends ContractFactory { constructor(...args: AddressConstructorParams) { if (isSuperArgs(args)) { super(...args); } else { super(_abi, _bytecode, args[0]); } } override getDeployTransaction( overrides?: NonPayableOverrides & { from?: string } ): Promise<ContractDeployTransaction> { return super.getDeployTransaction(overrides || {}); } override deploy(overrides?: NonPayableOverrides & { from?: string }) { return super.deploy(overrides || {}) as Promise< Address & { deploymentTransaction(): ContractTransactionResponse; } >; } override connect(runner: ContractRunner | null): Address__factory { return super.connect(runner) as Address__factory; } static readonly bytecode = _bytecode; static readonly abi = _abi; static createInterface(): AddressInterface { return new Interface(_abi) as AddressInterface; } static connect(address: string, runner?: ContractRunner | null): Address { return new Contract(address, _abi, runner) as unknown as Address; } }