You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to propose to remove or allow to override the current filter is placed in the ExtractTokensJob class that filters all the contracts that are not erc20 or erc721.
There are multiple contracts that are not erc20 neither erc721, but they expose the symbol() and name() methods, so we could still populate the tokens.csv with this information.
2021-03-11 17:10:21,943 - eth_token_service [ERROR] - An exception occurred in function symbol of contract 0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2. This exception can be safely ignored.
2021-03-11 17:10:22,101 - eth_token_service [ERROR] - An exception occurred in function SYMBOL of contract 0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2. This exception can be safely ignored.
2021-03-11 17:10:22,250 - eth_token_service [ERROR] - An exception occurred in function name of contract 0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2. This exception can be safely ignored.
2021-03-11 17:10:22,389 - eth_token_service [ERROR] - An exception occurred in function NAME of contract 0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2. This exception can be safely ignored.
2021-03-11 17:10:24,545 - eth_token_service [ERROR] - An exception occurred in function symbol of contract 0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359. This exception can be safely ignored.
2021-03-11 17:10:24,745 - eth_token_service [ERROR] - An exception occurred in function SYMBOL of contract 0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359. This exception can be safely ignored.
2021-03-11 17:10:24,899 - eth_token_service [ERROR] - An exception occurred in function name of contract 0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359. This exception can be safely ignored.
2021-03-11 17:10:25,067 - eth_token_service [ERROR] - An exception occurred in function NAME of contract 0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359. This exception can be safely ignored.
2021-03-11 17:10:26,405 - eth_token_service [ERROR] - An exception occurred in function decimals of contract 0x629A673A8242c2AC4B7B8C5D8735fbeac21A6205. This exception can be safely ignored.
2021-03-11 17:10:26,643 - eth_token_service [ERROR] - An exception occurred in function DECIMALS of contract 0x629A673A8242c2AC4B7B8C5D8735fbeac21A6205. This exception can be safely ignored.
2021-03-11 17:10:26,939 - eth_token_service [ERROR] - An exception occurred in function decimals of contract 0xD1E5b0FF1287aA9f9A268759062E4Ab08b9Dacbe. This exception can be safely ignored.
2021-03-11 17:10:27,092 - eth_token_service [ERROR] - An exception occurred in function DECIMALS of contract 0xD1E5b0FF1287aA9f9A268759062E4Ab08b9Dacbe. This exception can be safely ignored.
2021-03-11 17:10:27,225 - eth_token_service [ERROR] - An exception occurred in function totalSupply of contract 0xD1E5b0FF1287aA9f9A268759062E4Ab08b9Dacbe. This exception can be safely ignored.
2021-03-11 17:10:28,311 - ProgressLogger [INFO] - Finished work. Total items processed: 52. Took 0:00:07.246757.
2021-03-11 17:10:28,313 - CompositeItemExporter [INFO] - token items exported: 52
The cause of this errors are two things.
0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2 and 0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359 are using byte32 instead of string in the name and symbol methods. This can be handle easily by just doing:
def normalize_text(str):
return w3.toText(str) if str.find("0x") > -1 else str
print(normalize_text("0x44616920537461626c65636f696e2076312e3000000000000000000000000000"))
// Dai Stablecoin v1.0
print(normalize_text("AAVE"))
// AAVE
0x629A673A8242c2AC4B7B8C5D8735fbeac21A6205 and 0xD1E5b0FF1287aA9f9A268759062E4Ab08b9Dacbe are just NFT using the ERC165. Not having decimals or total supply makes sense, so we could just throw errors and keep the column empty
What do you think? I think it could be worth it
Thanks,
Alejandro
The text was updated successfully, but these errors were encountered:
Hi,
I would like to propose to remove or allow to override the current filter is placed in the
ExtractTokensJob
class that filters all the contracts that are not erc20 or erc721.There are multiple contracts that are not erc20 neither erc721, but they expose the
symbol()
andname()
methods, so we could still populate the tokens.csv with this information.Currently, in the repository https://github.com/blockchain-etl/ethereum-etl-airflow, we keep the following csv.
This csv is used to add manually tokens that this ETL is not able to process.
But if we take the tokens address from this csv and run
We will get the following
And just a few errors
The cause of this errors are two things.
0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2
and0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359
are using byte32 instead of string in thename
andsymbol
methods. This can be handle easily by just doing:0x629A673A8242c2AC4B7B8C5D8735fbeac21A6205
and0xD1E5b0FF1287aA9f9A268759062E4Ab08b9Dacbe
are just NFT using the ERC165. Not having decimals or total supply makes sense, so we could just throw errors and keep the column emptyWhat do you think? I think it could be worth it
Thanks,
Alejandro
The text was updated successfully, but these errors were encountered: