web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

Improve the types interfaces for `web3-types` packages

Open nazarhussain opened this issue 2 years ago • 0 comments

This is not a Bug Report, Feature Request, or related to Documentation

  • [X] I have searched the existing issues

Is there an existing issue for this?

  • [X] I have searched the existing issues

What's up?

We created a package web3-types package which consists of all reuseable and shared types from different packages. Some of the types defined in that package are redundant. More specifically the *API types are redundant and been defined this way to have exact match with the Eth Specification.

e.g. There is a type TransactionReceipt and TransactionReceiptAPI. The difference between both is the use of fixed versus union types. Means use of Unit versus Numbers.

We can look closely in each type and can optimize the declarations further.

Examples/References

No response

nazarhussain avatar Jul 20 '22 14:07 nazarhussain

Hey team! Please add your planning poker estimate with ZenHub @avkos @jdevcs @Muhammad-Altabba @nazarhussain

mconnelly8 avatar Aug 11 '22 16:08 mconnelly8

Per the 8/11/22 meeting, we will add sub-tasks to this for the list of types to test.

mconnelly8 avatar Aug 12 '22 20:08 mconnelly8