UNPKG

randomness-js

Version:

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

99 lines (91 loc) 2.62 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 { Errors, ErrorsInterface } from "../Errors"; const _abi = [ { type: "error", name: "FailedCall", inputs: [], }, { type: "error", name: "FailedDeployment", inputs: [], }, { type: "error", name: "InsufficientBalance", inputs: [ { name: "balance", type: "uint256", internalType: "uint256", }, { name: "needed", type: "uint256", internalType: "uint256", }, ], }, { type: "error", name: "MissingPrecompile", inputs: [ { name: "", type: "address", internalType: "address", }, ], }, ] as const; const _bytecode = "0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea264697066735822122097d3e64703dab8d2881cb28a9e52bf3dd2a6faa2fc9241fac9467417627a399064736f6c634300081c0033"; type ErrorsConstructorParams = | [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; const isSuperArgs = ( xs: ErrorsConstructorParams ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1; export class Errors__factory extends ContractFactory { constructor(...args: ErrorsConstructorParams) { 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< Errors & { deploymentTransaction(): ContractTransactionResponse; } >; } override connect(runner: ContractRunner | null): Errors__factory { return super.connect(runner) as Errors__factory; } static readonly bytecode = _bytecode; static readonly abi = _abi; static createInterface(): ErrorsInterface { return new Interface(_abi) as ErrorsInterface; } static connect(address: string, runner?: ContractRunner | null): Errors { return new Contract(address, _abi, runner) as unknown as Errors; } }