feat: Add token metadata API

This commit is contained in:
Louis Holbrook
2021-10-14 13:24:51 +00:00
committed by Philip Wafula
parent 6b59c87f68
commit 045a279ac2
19 changed files with 534 additions and 39 deletions

View File

@@ -1,21 +1,2 @@
# standard imports
import logging
# external imports
import celery
# local imports
from cic_eth.task import BaseTask
celery_app = celery.current_app
logg = logging.getLogger()
@celery_app.task(bind=True, base=BaseTask)
def default_token(self):
return {
'symbol': self.default_token_symbol,
'address': self.default_token_address,
'name': self.default_token_name,
'decimals': self.default_token_decimals,
}
from cic_eth.eth.erc20 import default_token