dethcrypto / dethcrypto/TypeChain
Events and structs should be exported additionally in a simpler format
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 2.8k
- Forks
- 376
- PR merge metrics
- No merged PRs in 30d
Description
Currently we generate event types like this:
```typescript
export type Event3_bool_uint256_Event = TypedEvent<
[boolean, BigNumber],
{ value1: boolean; value2: BigNumber }
>;
```
This is fine if user wants to use this for for filters etc. but often events (and structs) doubles as "models" in a different part of the software. I propose we export them additionally in a more user friendly format that enables to reuse them in different part of the sourcecode:
```typescript
export type Event3_bool_uint256_EventObject = {
value1: boolean;
value2: BigNumber
}
```
Contributor guide
Assessment
This issue has not been assessed yet.