JoinColony / colonyDiscord

🤖 Beep boop. I'm a Colony Discord bot.
GNU General Public License v3.0
2 stars 2 forks source link

Refactor event list to new type #7

Closed chmanie closed 2 years ago

chmanie commented 2 years ago

The event list needs to be in a different format to accommodate the new requirements for async event caching.

The string that is currently in the signature prop should be the key of the object.

E.g.

    ColonyNetworkInitialised: {
      signature: 'ColonyNetworkInitialised(address)',
    },

should become

    'ColonyNetworkInitialised(address)': {
      signature: 'ColonyNetworkInitialised(address)',
    },

Furthermore all of the event source objects are now gathered in one big EVENT object.