dethcrypto / TypeChain

🔌 TypeScript bindings for Ethereum smart contracts
MIT License
2.76k stars 364 forks source link

Export AllEvents type for Truffle target #765

Open wbt opened 2 years ago

wbt commented 2 years ago

With the Truffle target, a type 'AllEvents' is defined but there doesn't seem to be a way to access it externally, though there does seem to be a way to access the set of events for a web3 target (see #249). Adding the 'export' keyword before 'type AllEvents' seems like the simplest way to solve this.

wbt commented 2 years ago

An exported map of the event names to the types would likely be better.