dethcrypto / dethcrypto/TypeChain

Events and structs should be exported additionally in a simpler format

Open
#569 7 comments 1 reaction 1 assignee Claimed by @hasparus View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.