Skip to content
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

Merged
merged 4 commits into from
Jul 11, 2018

Conversation

raulk
Copy link
Contributor

@raulk raulk commented Jul 9, 2018

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 the abi directory to serve as a registry of all ABIs we support, and how we regard them.

Resolves #58.

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).

Resolves Consensys#58.
@raulk raulk force-pushed the feature/entity branch from 8a95feb to c951a47 Compare July 9, 2018 11:50
@raulk
Copy link
Contributor Author

raulk commented Jul 9, 2018

@pcardune – would appreciate your feedback here!

@jaycenhorton
Copy link

I very much support keeping erc nomenclature. Nori is a heavy consumer of 820

@pcardune
Copy link
Contributor

pcardune commented Jul 11, 2018

I like this direction. I still need to play around with some of these decoder APIs to form a stronger opinion about how it should work.

@raulk
Copy link
Contributor Author

raulk commented Jul 11, 2018

@pcardune @jaycenhorton – thanks for the feedback. I'm currently working on #59 which will add log decoding support shortly. Once that is in place, I'm resuming #44 because I'm solidifying a proposal in my head that I think meets all expectations.

@raulk
Copy link
Contributor Author

raulk commented Jul 11, 2018

Positive feedback received from the community. Merging.

@raulk raulk merged commit 72686a1 into Consensys:master Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants