mirror of
https://github.com/blockchain-etl/ethereum-etl.git
synced 2026-01-10 14:27:54 -05:00
1.1 KiB
1.1 KiB
Limitation
- In case the contract is a proxy, which forwards all calls to a delegate, interface detection doesn’t work,
which means
is_erc20andis_erc721will always be false for proxy contracts and they will be missing in thetokenstable. - The metadata methods (
symbol,name,decimals,total_supply) for ERC20 are optional, so around 10% of the contracts are missing this data. Also some contracts (EOS) implement these methods but with the wrong return type, so the metadata columns are missing in this case as well. token_transfers.value,tokens.decimalsandtokens.total_supplyhave typeSTRINGin BigQuery tables, because numeric types there can't handle 32-byte integers. You should usecast(value as FLOAT64)(possible loss of precision) orsafe_cast(value as NUMERIC)(possible overflow) to convert to numbers.- The contracts that don't implement
decimals()function but have the fallback function that returns abooleanwill have0or1in thedecimalscolumn in the CSVs.