contract-registry

Ethereum Smart Contract key-value registry
Log | Files | Refs

commit 801de977bfa4691efc241b878e5013889c3d3764
parent c02ad2404db6124eb5f805e427785bb0bfc67d25
Author: nolash <dev@holbrook.no>
Date:   Tue, 24 Aug 2021 21:28:17 +0200

Explicit prerelease of signer

Diffstat:
Mpython/eth_contract_registry/interface.py | 4++++
Mpython/eth_contract_registry/runnable/list.py | 8+++++---
Mpython/requirements.txt | 4++--
Mpython/setup.cfg | 2+-
4 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/python/eth_contract_registry/interface.py b/python/eth_contract_registry/interface.py @@ -1,3 +1,5 @@ +import logging + # external imports from chainlib.jsonrpc import JSONRPCRequest from chainlib.eth.contract import ( @@ -18,6 +20,7 @@ from .encoding import ( to_identifier, ) +logg = logging.getLogger(__name__) class Registry(TxFactory): @@ -29,6 +32,7 @@ class Registry(TxFactory): enc.method('addressOf') enc.typ(ABIContractType.BYTES32) identifier = to_identifier(identifier_string) + logg.debug('identifier {} {}'.format(identifier, identifier_string)) enc.bytes32(identifier) data = add_0x(enc.encode()) tx = self.template(sender_address, contract_address) diff --git a/python/eth_contract_registry/runnable/list.py b/python/eth_contract_registry/runnable/list.py @@ -15,7 +15,6 @@ import logging # external imports import chainlib.eth.cli from chainlib.chain import ChainSpec -from chainlib.eth.connection import EthHTTPConnection from chainlib.eth.tx import receipt from chainlib.eth.constant import ZERO_CONTENT from chainlib.error import JSONRPCException @@ -51,7 +50,10 @@ chain_spec = ChainSpec.from_chain_str(config.get('CHAIN_SPEC')) def out_element(e, w=sys.stdout): - w.write(e[0] + '\t' + e[1] + '\n') + if config.get('_RAW'): + w.write(e[1] + '\n') + else: + w.write(e[0] + '\t' + e[1] + '\n') def element(ifc, conn, registry_address, identifier, w=sys.stdout): @@ -84,7 +86,7 @@ def main(): raise ValueError('invalid checksum address for contract') if identifier != None: - element(c, conn, identifier, registry_address, w=sys.stdout) + element(c, conn, registry_address, identifier, w=sys.stdout) else: ls(c, conn, registry_address, w=sys.stdout) diff --git a/python/requirements.txt b/python/requirements.txt @@ -1,3 +1,3 @@ confini>=0.3.6rc3,<0.5.0 -crypto-dev-signer>=0.4.14b7,<0.4.14 -chainlib-eth>=0.0.7a4,<=0.1.0 +crypto-dev-signer>=0.4.15a1,<=0.4.15 +chainlib-eth>=0.0.9a3,<=0.1.0 diff --git a/python/setup.cfg b/python/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = eth-contract-registry -version = 0.6.1a1 +version = 0.6.3a3 description = Ethereum Smart Contract key-value registry author = Louis Holbrook author_email = dev@holbrook.no