WIP full process
This commit is contained in:
parent
a5cdcb3900
commit
86edabbb5f
@ -146,10 +146,11 @@ class CICEth:
|
|||||||
|
|
||||||
|
|
||||||
def process_token_index(self):
|
def process_token_index(self):
|
||||||
c = TokenUniqueSymbolIndex(self.chain_spec, signer=self.signer)
|
c = TokenUniqueSymbolIndex(self.chain_spec, signer=self.signer, nonce_oracle=self.nonce_oracle, gas_oracle=self.fee_oracle)
|
||||||
|
|
||||||
contract_address = self.resources['token_index']['reference']
|
contract_address = self.resources['token_index']['reference']
|
||||||
signer_address = self.resources['token_index']['key_address']
|
signer_address = self.resources['token_index']['key_address']
|
||||||
|
|
||||||
o = c.register(contract_address, signer_address, self.token_address, tx_format=self.tx_format)
|
o = c.register(contract_address, signer_address, self.token_address, tx_format=self.tx_format)
|
||||||
r = None
|
r = None
|
||||||
if self.rpc != None:
|
if self.rpc != None:
|
||||||
@ -164,7 +165,7 @@ class CICEth:
|
|||||||
|
|
||||||
|
|
||||||
def process_address_declarator(self):
|
def process_address_declarator(self):
|
||||||
c = Declarator(self.chain_spec, signer=self.signer)
|
c = Declarator(self.chain_spec, signer=self.signer, nonce_oracle=self.nonce_oracle, gas_oracle=self.fee_oracle)
|
||||||
|
|
||||||
contract_address = self.resources['address_declarator']['reference']
|
contract_address = self.resources['address_declarator']['reference']
|
||||||
signer_address = self.resources['address_declarator']['key_address']
|
signer_address = self.resources['address_declarator']['key_address']
|
||||||
@ -184,6 +185,7 @@ class CICEth:
|
|||||||
|
|
||||||
|
|
||||||
def process(self):
|
def process(self):
|
||||||
|
tasks = []
|
||||||
self.token_address = self.resources['token']['reference']
|
self.token_address = self.resources['token']['reference']
|
||||||
if self.token_address == None:
|
if self.token_address == None:
|
||||||
tasks.append('token')
|
tasks.append('token')
|
||||||
@ -195,7 +197,7 @@ class CICEth:
|
|||||||
tasks.append(k)
|
tasks.append(k)
|
||||||
|
|
||||||
for task in tasks:
|
for task in tasks:
|
||||||
getattr(self, 'process_̈́ ' + task)()
|
getattr(self, 'process_' + task)()
|
||||||
|
|
||||||
|
|
||||||
def new(resources, proof, signer_hint=None):
|
def new(resources, proof, signer_hint=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user