ethers.ts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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 { BigNumberish } from "@ethersproject/bignumber";
  15. import { Bytes, BytesLike, Signature } from "@ethersproject/bytes";
  16. import { Transaction, UnsignedTransaction } from "@ethersproject/transactions";
  17. ////////////////////////
  18. // Compile-Time Constants
  19. // This is generated by "npm run dist"
  20. import { version } from "./_version";
  21. const logger = new Logger(version);
  22. ////////////////////////
  23. // Types
  24. import {
  25. ContractFunction,
  26. ContractReceipt,
  27. ContractTransaction,
  28. Event,
  29. EventFilter,
  30. Overrides,
  31. PayableOverrides,
  32. CallOverrides,
  33. PopulatedTransaction,
  34. ContractInterface
  35. } from "@ethersproject/contracts";
  36. ////////////////////////
  37. // Exports
  38. export {
  39. Signer,
  40. Wallet,
  41. VoidSigner,
  42. getDefaultProvider,
  43. providers,
  44. BaseContract,
  45. Contract,
  46. ContractFactory,
  47. BigNumber,
  48. FixedNumber,
  49. constants,
  50. errors,
  51. logger,
  52. utils,
  53. wordlists,
  54. ////////////////////////
  55. // Compile-Time Constants
  56. version,
  57. ////////////////////////
  58. // Types
  59. ContractFunction,
  60. ContractReceipt,
  61. ContractTransaction,
  62. Event,
  63. EventFilter,
  64. Overrides,
  65. PayableOverrides,
  66. CallOverrides,
  67. PopulatedTransaction,
  68. ContractInterface,
  69. BigNumberish,
  70. Bytes,
  71. BytesLike,
  72. Signature,
  73. Transaction,
  74. UnsignedTransaction,
  75. Wordlist
  76. };