UNPKG

blocklock-js

Version:

A library for encrypting and decrypting data for the future

103 lines (95 loc) 2.75 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 { ERC1967Utils, ERC1967UtilsInterface } from "../ERC1967Utils"; const _abi = [ { type: "error", name: "ERC1967InvalidAdmin", inputs: [ { name: "admin", type: "address", internalType: "address", }, ], }, { type: "error", name: "ERC1967InvalidBeacon", inputs: [ { name: "beacon", type: "address", internalType: "address", }, ], }, { type: "error", name: "ERC1967InvalidImplementation", inputs: [ { name: "implementation", type: "address", internalType: "address", }, ], }, { type: "error", name: "ERC1967NonPayable", inputs: [], }, ] as const; const _bytecode = "0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea264697066735822122041e13579e45c92426181abcf3cf929d105be3822fdd2a17ada07ec80fb89b73464736f6c634300081c0033"; type ERC1967UtilsConstructorParams = | [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; const isSuperArgs = ( xs: ERC1967UtilsConstructorParams ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1; export class ERC1967Utils__factory extends ContractFactory { constructor(...args: ERC1967UtilsConstructorParams) { 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< ERC1967Utils & { deploymentTransaction(): ContractTransactionResponse; } >; } override connect(runner: ContractRunner | null): ERC1967Utils__factory { return super.connect(runner) as ERC1967Utils__factory; } static readonly bytecode = _bytecode; static readonly abi = _abi; static createInterface(): ERC1967UtilsInterface { return new Interface(_abi) as ERC1967UtilsInterface; } static connect( address: string, runner?: ContractRunner | null ): ERC1967Utils { return new Contract(address, _abi, runner) as unknown as ERC1967Utils; } }