events.js 750 B

123456789101112131415161718192021222324
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.EthereumEvents = exports.ConnectorEvents = void 0; // Events being emitted by an eip-1193 provider
  6. // See https://eips.ethereum.org/EIPS/eip-1193#events
  7. const EthereumEvents = Object.freeze({
  8. CONNECT: 'connect',
  9. DISCONNECT: 'disconnect',
  10. CHAIN_CHANGED: 'chainChanged',
  11. ACCOUNTS_CHANGED: 'accountsChanged'
  12. }); // Events emitted by the connectors,
  13. // The InternalWeb3Provider of Moralis will listen to these
  14. exports.EthereumEvents = EthereumEvents;
  15. const ConnectorEvents = Object.freeze({
  16. CONNECT: 'connect',
  17. DISCONNECT: 'disconnect',
  18. CHAIN_CHANGED: 'chainChanged',
  19. ACCOUNT_CHANGED: 'accountChanged'
  20. });
  21. exports.ConnectorEvents = ConnectorEvents;