31 lines
621 B
Python
31 lines
621 B
Python
class Processor:
|
|
|
|
def __init__(self, token=None, metadata=None, outputs_writer=None):
|
|
self.token = token
|
|
self.token_address = None
|
|
self.metadata = metadata
|
|
self.__outputs_writer = outputs_writer
|
|
|
|
|
|
def set_token_address(address):
|
|
self.token_address = address
|
|
|
|
|
|
def writer(self):
|
|
return self.__outputs_writer
|
|
|
|
|
|
def process_metadata(self, writer=None):
|
|
pass
|
|
|
|
|
|
def process(self):
|
|
tasks = [
|
|
'metadata',
|
|
]
|
|
|
|
for task in tasks:
|
|
getattr(self, 'process_' + task)(writer=self.__outputs_writer)
|
|
|
|
|