ethers.js/packages/ethers/src.ts/ethers.ts
2022-08-09 22:48:56 -04:00

127 lines
2.1 KiB
TypeScript

"use strict";
import { BaseContract, Contract, ContractFactory } from "@ethersproject/contracts";
import { BigNumber, FixedNumber } from "@ethersproject/bignumber";
import { Signer, VoidSigner } from "@ethersproject/abstract-signer";
import { Wallet } from "@ethersproject/wallet";
import * as constants from "@ethersproject/constants";
import * as providers from "@ethersproject/providers";
import { getDefaultProvider } from "@ethersproject/providers";
import { Wordlist, wordlists} from "@ethersproject/wordlists";
import * as utils from "./utils";
import { ErrorCode as errors, Logger } from "@ethersproject/logger";
////////////////////////
// Types
import type { TypedDataDomain, TypedDataField } from "@ethersproject/abstract-signer";
import { BigNumberish } from "@ethersproject/bignumber";
import { Bytes, BytesLike, Signature } from "@ethersproject/bytes";
import { Transaction, UnsignedTransaction } from "@ethersproject/transactions";
////////////////////////
// Compile-Time Constants
// This is generated by "npm run dist"
import { version } from "./_version";
const logger = new Logger(version);
////////////////////////
// Types
import {
ContractFunction,
ContractReceipt,
ContractTransaction,
Event,
EventFilter,
Overrides,
PayableOverrides,
CallOverrides,
PopulatedTransaction,
ContractInterface
} from "@ethersproject/contracts";
////////////////////////
// Exports
export {
Signer,
Wallet,
VoidSigner,
getDefaultProvider,
providers,
BaseContract,
Contract,
ContractFactory,
BigNumber,
FixedNumber,
constants,
errors,
logger,
utils,
wordlists,
////////////////////////
// Compile-Time Constants
version,
////////////////////////
// Types
ContractFunction,
ContractReceipt,
ContractTransaction,
Event,
EventFilter,
Overrides,
PayableOverrides,
CallOverrides,
PopulatedTransaction,
ContractInterface,
TypedDataDomain,
TypedDataField,
BigNumberish,
Bytes,
BytesLike,
Signature,
Transaction,
UnsignedTransaction,
Wordlist
};