ethers.js/packages/ethers/src.ts/ethers.ts

127 lines
2.1 KiB
TypeScript
Raw Normal View History

2019-05-15 01:25:46 +03:00
"use strict";
2021-03-30 22:22:45 +03:00
import { BaseContract, Contract, ContractFactory } from "@ethersproject/contracts";
2019-05-15 01:25:46 +03:00
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";
2019-05-15 01:25:46 +03:00
import * as utils from "./utils";
import { ErrorCode as errors, Logger } from "@ethersproject/logger";
2019-05-15 01:25:46 +03:00
////////////////////////
// Types
2022-08-10 05:48:56 +03:00
import type { TypedDataDomain, TypedDataField } from "@ethersproject/abstract-signer";
2019-05-15 01:25:46 +03:00
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";
2019-05-15 01:25:46 +03:00
const logger = new Logger(version);
2019-05-15 01:25:46 +03:00
////////////////////////
// Types
import {
ContractFunction,
ContractReceipt,
ContractTransaction,
Event,
EventFilter,
Overrides,
PayableOverrides,
CallOverrides,
PopulatedTransaction,
2019-05-15 01:25:46 +03:00
ContractInterface
} from "@ethersproject/contracts";
////////////////////////
// Exports
export {
Signer,
Wallet,
VoidSigner,
getDefaultProvider,
providers,
2021-03-30 22:22:45 +03:00
BaseContract,
2019-05-15 01:25:46 +03:00
Contract,
ContractFactory,
BigNumber,
FixedNumber,
constants,
errors,
logger,
2019-05-15 01:25:46 +03:00
utils,
wordlists,
////////////////////////
// Compile-Time Constants
version,
2019-05-15 01:25:46 +03:00
////////////////////////
// Types
ContractFunction,
ContractReceipt,
ContractTransaction,
Event,
EventFilter,
Overrides,
PayableOverrides,
CallOverrides,
PopulatedTransaction,
2019-05-15 01:25:46 +03:00
ContractInterface,
2022-08-10 05:48:56 +03:00
TypedDataDomain,
TypedDataField,
2019-05-15 01:25:46 +03:00
BigNumberish,
Bytes,
BytesLike,
Signature,
Transaction,
UnsignedTransaction,
Wordlist
};