This repository has been archived by the owner on Jan 21, 2022. It is now read-only.
Introduce the concept of 'entity' in decoded TX #65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
An entity groups related ERC standards, providing an abstraction on what kind of concept they refer to. In this way, different token interfaces can co-exist while making it easy to filter for all token transactions in a block, regardless of the underlying ERC interface (e.g. ERC20, ERC777 or ERC20+ERC777).
Altogether, I've decided against my original proposal of removing ERC20 nomenclature from types. Reading ERC820, made me realise that the differentiation is important when queries refer to transactions and logs, both of which adhere to a concrete ABI.
In fact, ERC820 makes the ERC number a first-class citizen in the registry, as keys take the form
ERC20Token
,ERC777Token
, etc.For me it was important to realise that some ERC introduce entities (e.g. ERC20), while others extend or alter those entities (ERC223). Those changes could impact the ABI or not. In the case of ERC223, it has no bearing on the ABI.
I've added a
README.md
in theabi
directory to serve as a registry of all ABIs we support, and how we regard them.Resolves #58.