cic-eth: Add default token setting to cic-eth with api

This commit is contained in:
Louis Holbrook
2021-04-24 17:49:21 +00:00
parent cd0e702e3a
commit 16dd210965
9 changed files with 136 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
# 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,
}