ZuInnoTe / hadoopcryptoledger

Hadoop Crypto Ledger - Analyzing CryptoLedgers, such as Bitcoin Blockchain, on Big Data platforms, such as Hadoop/Spark/Flink/Hive
Apache License 2.0
141 stars 51 forks source link

Ethereum: Utility function to parse ERC20 Tokens #36

Open jornfranke opened 6 years ago

jornfranke commented 6 years ago

ERC20 tokens are standardized currencies on the Ethereum block chain (cf. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md). Although one could directly parse them without any issues in any Big Data applications, it could make sense to make them as part of the library since they have many applications.

Examples, unit and intregration tests need to be provided.

jornfranke commented 5 years ago

Since compiled Ethereum contracts cannot be decompiled back to Solidity or other source code containing the variable name, we can identify an EC20 contract by the hash values of the method signatures and an EC20 transaction by the use of the hash value of the "transfer" method signature