How to use @truffle/events - 1 common examples

To help you get started, we’ve selected a few @truffle/events examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github trufflesuite / truffle / packages / config / src / index.ts View on Github external
constructor(
    truffleDirectory?: string,
    workingDirectory?: string,
    network?: any
  ) {
    this._deepCopy = ["compilers"];
    this._values = getInitialConfig({
      truffleDirectory,
      workingDirectory,
      network
    });

    const eventsOptions = this.eventManagerOptions(this);
    this.events = new EventManager(eventsOptions);

    const props = configProps({ configObject: this });

    Object.entries(props).forEach(([propName, descriptor]) =>
      this.addProp(propName, descriptor)
    );
  }

@truffle/events

Event system for Truffle

MIT
Latest version published 1 year ago

Package Health Score

55 / 100
Full package analysis

Popular @truffle/events functions

Similar packages