ethers-opt
Version:
Collection of heavily optimized functions for ethers.js V6
442 lines (434 loc) • 14.8 kB
TypeScript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { ethers } from "ethers";
import {
DeployContractOptions,
FactoryOptions,
HardhatEthersHelpers as HardhatEthersHelpersBase,
} from "@nomicfoundation/hardhat-ethers/types";
import * as Contracts from"./index.js";
declare module "hardhat/types/runtime" {
interface HardhatEthersHelpers extends HardhatEthersHelpersBase {
getContractFactory(
name: "WETH",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.WETH__factory>;
getContractFactory(
name: "ERC20",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.ERC20__factory>;
getContractFactory(
name: "OwnableTest",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.OwnableTest__factory>;
getContractFactory(
name: "OpGasPriceOracleMock",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.OpGasPriceOracleMock__factory>;
getContractFactory(
name: "ERC20Mock",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.ERC20Mock__factory>;
getContractFactory(
name: "Strings",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.Strings__factory>;
getContractFactory(
name: "ShortStrings",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.ShortStrings__factory>;
getContractFactory(
name: "Nonces",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.Nonces__factory>;
getContractFactory(
name: "SafeCast",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.SafeCast__factory>;
getContractFactory(
name: "EIP712",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.EIP712__factory>;
getContractFactory(
name: "ECDSA",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.ECDSA__factory>;
getContractFactory(
name: "IERC20",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.IERC20__factory>;
getContractFactory(
name: "IERC20Permit",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.IERC20Permit__factory>;
getContractFactory(
name: "IERC20Metadata",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.IERC20Metadata__factory>;
getContractFactory(
name: "ERC20Permit",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.ERC20Permit__factory>;
getContractFactory(
name: "ERC20Burnable",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.ERC20Burnable__factory>;
getContractFactory(
name: "ERC20",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.ERC20__factory>;
getContractFactory(
name: "IERC5267",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.IERC5267__factory>;
getContractFactory(
name: "IERC721Errors",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.IERC721Errors__factory>;
getContractFactory(
name: "IERC20Errors",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.IERC20Errors__factory>;
getContractFactory(
name: "IERC1155Errors",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.IERC1155Errors__factory>;
getContractFactory(
name: "Ownable",
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<Contracts.Ownable__factory>;
getContractAt(
name: "WETH",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.WETH>;
getContractAt(
name: "ERC20",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.ERC20>;
getContractAt(
name: "OwnableTest",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.OwnableTest>;
getContractAt(
name: "OpGasPriceOracleMock",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.OpGasPriceOracleMock>;
getContractAt(
name: "ERC20Mock",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.ERC20Mock>;
getContractAt(
name: "Strings",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.Strings>;
getContractAt(
name: "ShortStrings",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.ShortStrings>;
getContractAt(
name: "Nonces",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.Nonces>;
getContractAt(
name: "SafeCast",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.SafeCast>;
getContractAt(
name: "EIP712",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.EIP712>;
getContractAt(
name: "ECDSA",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.ECDSA>;
getContractAt(
name: "IERC20",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.IERC20>;
getContractAt(
name: "IERC20Permit",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.IERC20Permit>;
getContractAt(
name: "IERC20Metadata",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.IERC20Metadata>;
getContractAt(
name: "ERC20Permit",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.ERC20Permit>;
getContractAt(
name: "ERC20Burnable",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.ERC20Burnable>;
getContractAt(
name: "ERC20",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.ERC20>;
getContractAt(
name: "IERC5267",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.IERC5267>;
getContractAt(
name: "IERC721Errors",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.IERC721Errors>;
getContractAt(
name: "IERC20Errors",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.IERC20Errors>;
getContractAt(
name: "IERC1155Errors",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.IERC1155Errors>;
getContractAt(
name: "Ownable",
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<Contracts.Ownable>;
deployContract(
name: "WETH",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.WETH>;
deployContract(
name: "ERC20",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.ERC20>;
deployContract(
name: "OwnableTest",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.OwnableTest>;
deployContract(
name: "OpGasPriceOracleMock",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.OpGasPriceOracleMock>;
deployContract(
name: "ERC20Mock",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.ERC20Mock>;
deployContract(
name: "Strings",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.Strings>;
deployContract(
name: "ShortStrings",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.ShortStrings>;
deployContract(
name: "Nonces",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.Nonces>;
deployContract(
name: "SafeCast",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.SafeCast>;
deployContract(
name: "EIP712",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.EIP712>;
deployContract(
name: "ECDSA",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.ECDSA>;
deployContract(
name: "IERC20",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.IERC20>;
deployContract(
name: "IERC20Permit",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.IERC20Permit>;
deployContract(
name: "IERC20Metadata",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.IERC20Metadata>;
deployContract(
name: "ERC20Permit",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.ERC20Permit>;
deployContract(
name: "ERC20Burnable",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.ERC20Burnable>;
deployContract(
name: "ERC20",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.ERC20>;
deployContract(
name: "IERC5267",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.IERC5267>;
deployContract(
name: "IERC721Errors",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.IERC721Errors>;
deployContract(
name: "IERC20Errors",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.IERC20Errors>;
deployContract(
name: "IERC1155Errors",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.IERC1155Errors>;
deployContract(
name: "Ownable",
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.Ownable>;
deployContract(
name: "WETH",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.WETH>;
deployContract(
name: "ERC20",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.ERC20>;
deployContract(
name: "OwnableTest",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.OwnableTest>;
deployContract(
name: "OpGasPriceOracleMock",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.OpGasPriceOracleMock>;
deployContract(
name: "ERC20Mock",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.ERC20Mock>;
deployContract(
name: "Strings",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.Strings>;
deployContract(
name: "ShortStrings",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.ShortStrings>;
deployContract(
name: "Nonces",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.Nonces>;
deployContract(
name: "SafeCast",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.SafeCast>;
deployContract(
name: "EIP712",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.EIP712>;
deployContract(
name: "ECDSA",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.ECDSA>;
deployContract(
name: "IERC20",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.IERC20>;
deployContract(
name: "IERC20Permit",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.IERC20Permit>;
deployContract(
name: "IERC20Metadata",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.IERC20Metadata>;
deployContract(
name: "ERC20Permit",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.ERC20Permit>;
deployContract(
name: "ERC20Burnable",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.ERC20Burnable>;
deployContract(
name: "ERC20",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.ERC20>;
deployContract(
name: "IERC5267",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.IERC5267>;
deployContract(
name: "IERC721Errors",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.IERC721Errors>;
deployContract(
name: "IERC20Errors",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.IERC20Errors>;
deployContract(
name: "IERC1155Errors",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.IERC1155Errors>;
deployContract(
name: "Ownable",
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<Contracts.Ownable>;
// default types
getContractFactory(
name: string,
signerOrOptions?: ethers.Signer | FactoryOptions,
): Promise<ethers.ContractFactory>;
getContractFactory(
abi: any[],
bytecode: ethers.BytesLike,
signer?: ethers.Signer,
): Promise<ethers.ContractFactory>;
getContractAt(
nameOrAbi: string | any[],
address: string | ethers.Addressable,
signer?: ethers.Signer,
): Promise<ethers.Contract>;
deployContract(
name: string,
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<ethers.Contract>;
deployContract(
name: string,
args: any[],
signerOrOptions?: ethers.Signer | DeployContractOptions,
): Promise<ethers.Contract>;
}
}