ApeWorX / ethpm-types

Implementation of EIP-2678
Apache License 2.0
14 stars 8 forks source link

refactor: introduce unions via discriminated literal fields #10

Closed fubuloubu closed 2 years ago

fubuloubu commented 2 years ago

What I did

Introduce more type safety into this library

How I did it

Discriminated Unions

How to verify it

Tests pass... need to check with ape

Checklist

fubuloubu commented 2 years ago

tested locally with ape and works!

fubuloubu commented 2 years ago

Works with ape main branch and simple-nft, also a personal repo of mine. Considering this solid.