Example #1
0
 def create_token_metadata(self, token: TokenTransaction):
     token_metadata = TokenMetadata.create(
         token_txhash=token.txhash, transfer_token_txhashes=[token.txhash])
     self._db.put_raw(self.state_code + b'token_' + token.txhash,
                      token_metadata.to_json().encode())
     self.add_token_txhash(token.txhash)
Example #2
0
 def create_token_metadata(self, token: TokenTransaction):
     token_metadata = TokenMetadata.create(
         token_txhash=token.txhash, transfer_token_txhashes=[token.txhash])
     self._db.put_raw(b'token_' + token.txhash, token_metadata.serialize())
Example #3
0
File: State.py Project: fanff/QRL
 def create_token_metadata(self, token: TokenTransaction):
     token_metadata = TokenMetadata.create(token_txhash=token.txhash, transfer_token_txhashes=[token.txhash])
     self._db.put_raw(b'token_' + token.txhash,
                      token_metadata.to_json().encode())