@ethersproject/abstract-provider#EventType TypeScript Examples

The following examples show how to use @ethersproject/abstract-provider#EventType. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: base-provider.ts    From bodhi.js with Apache License 2.0 5 votes vote down vote up
on = (eventName: EventType, listener: Listener): Provider => throwNotImplemented('on');
Example #2
Source File: base-provider.ts    From bodhi.js with Apache License 2.0 5 votes vote down vote up
once = (eventName: EventType, listener: Listener): Provider => throwNotImplemented('once');
Example #3
Source File: base-provider.ts    From bodhi.js with Apache License 2.0 5 votes vote down vote up
emit = (eventName: EventType, ...args: Array<any>): boolean => throwNotImplemented('emit');
Example #4
Source File: base-provider.ts    From bodhi.js with Apache License 2.0 5 votes vote down vote up
listenerCount = (eventName?: EventType): number => throwNotImplemented('listenerCount');
Example #5
Source File: base-provider.ts    From bodhi.js with Apache License 2.0 5 votes vote down vote up
listeners = (eventName?: EventType): Array<Listener> => throwNotImplemented('listeners');
Example #6
Source File: base-provider.ts    From bodhi.js with Apache License 2.0 5 votes vote down vote up
off = (eventName: EventType, listener?: Listener): Provider => throwNotImplemented('off');
Example #7
Source File: base-provider.ts    From bodhi.js with Apache License 2.0 5 votes vote down vote up
removeAllListeners = (eventName?: EventType): Provider => throwNotImplemented('removeAllListeners');
Example #8
Source File: Provider.ts    From evm-provider.js with Apache License 2.0 5 votes vote down vote up
// eslint-disable-next-line @typescript-eslint/no-explicit-any
  emit(eventName: EventType, ...args: Array<any>): boolean {
    return logger.throwError('Unsupport Event');
  }
Example #9
Source File: Provider.ts    From evm-provider.js with Apache License 2.0 5 votes vote down vote up
listenerCount(eventName?: EventType): number {
    return logger.throwError('Unsupport Event');
  }
Example #10
Source File: Provider.ts    From evm-provider.js with Apache License 2.0 5 votes vote down vote up
listeners(eventName?: EventType): Array<Listener> {
    return logger.throwError('Unsupport Event');
  }
Example #11
Source File: Provider.ts    From evm-provider.js with Apache License 2.0 5 votes vote down vote up
off(eventName: EventType, listener?: Listener): AbstractProvider {
    return logger.throwError('Unsupport Event');
  }
Example #12
Source File: Provider.ts    From evm-provider.js with Apache License 2.0 5 votes vote down vote up
on(eventName: EventType, listener: Listener): AbstractProvider {
    return logger.throwError('Unsupport Event');
  }
Example #13
Source File: Provider.ts    From evm-provider.js with Apache License 2.0 5 votes vote down vote up
once(eventName: EventType, listener: Listener): AbstractProvider {
    return logger.throwError('Unsupport Event');
  }
Example #14
Source File: Provider.ts    From evm-provider.js with Apache License 2.0 5 votes vote down vote up
removeAllListeners(eventName?: EventType): AbstractProvider {
    return logger.throwError('Unsupport Event');
  }
Example #15
Source File: Provider.ts    From evm-provider.js with Apache License 2.0 5 votes vote down vote up
addListener(eventName: EventType, listener: Listener): AbstractProvider {
    return this.on(eventName, listener);
  }
Example #16
Source File: Provider.ts    From evm-provider.js with Apache License 2.0 5 votes vote down vote up
removeListener(eventName: EventType, listener: Listener): AbstractProvider {
    return this.off(eventName, listener);
  }