ethers.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. "use strict";
  2. import { BaseContract, Contract, ContractFactory } from "@ethersproject/contracts";
  3. import { BigNumber, FixedNumber } from "@ethersproject/bignumber";
  4. import { Signer, VoidSigner } from "@ethersproject/abstract-signer";
  5. import { Wallet } from "@ethersproject/wallet";
  6. import * as constants from "@ethersproject/constants";
  7. import * as providers from "@ethersproject/providers";
  8. import { getDefaultProvider } from "@ethersproject/providers";
  9. import { Wordlist, wordlists} from "@ethersproject/wordlists";
  10. import * as utils from "./utils";
  11. import { ErrorCode as errors, Logger } from "@ethersproject/logger";
  12. ////////////////////////
  13. // Types
  14. import type { TypedDataDomain, TypedDataField } from "@ethersproject/abstract-signer";
  15. import { BigNumberish } from "@ethersproject/bignumber";
  16. import { Bytes, BytesLike, Signature } from "@ethersproject/bytes";
  17. import { Transaction, UnsignedTransaction } from "@ethersproject/transactions";
  18. ////////////////////////
  19. // Compile-Time Constants
  20. // This is generated by "npm run dist"
  21. import { version } from "./_version";
  22. const logger = new Logger(version);
  23. ////////////////////////
  24. // Types
  25. import {
  26. ContractFunction,
  27. ContractReceipt,
  28. ContractTransaction,
  29. Event,
  30. EventFilter,
  31. Overrides,
  32. PayableOverrides,
  33. CallOverrides,
  34. PopulatedTransaction,
  35. ContractInterface
  36. } from "@ethersproject/contracts";
  37. ////////////////////////
  38. // Exports
  39. export {
  40. Signer,
  41. Wallet,
  42. VoidSigner,
  43. getDefaultProvider,
  44. providers,
  45. BaseContract,
  46. Contract,
  47. ContractFactory,
  48. BigNumber,
  49. FixedNumber,
  50. constants,
  51. errors,
  52. logger,
  53. utils,
  54. wordlists,
  55. ////////////////////////
  56. // Compile-Time Constants
  57. version,
  58. ////////////////////////
  59. // Types
  60. ContractFunction,
  61. ContractReceipt,
  62. ContractTransaction,
  63. Event,
  64. EventFilter,
  65. Overrides,
  66. PayableOverrides,
  67. CallOverrides,
  68. PopulatedTransaction,
  69. ContractInterface,
  70. TypedDataDomain,
  71. TypedDataField,
  72. BigNumberish,
  73. Bytes,
  74. BytesLike,
  75. Signature,
  76. Transaction,
  77. UnsignedTransaction,
  78. Wordlist
  79. };