commit a12cdb0ef3b6b30fd23ca1f73dc9bde2a25776d8
parent f939189f8eb30d68dde51d35ffb859b26cdafae2
Author: nolash <dev@holbrook.no>
Date: Fri, 30 Apr 2021 13:17:19 +0200
Update runnables with new structure
Diffstat:
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/python/eth_contract_registry/runnable/deploy.py b/python/eth_contract_registry/runnable/deploy.py
@@ -29,7 +29,7 @@ from chainlib.eth.connection import EthHTTPConnection
from chainlib.eth.tx import receipt
# local imports
-from eth_contract_registry import Registry
+from eth_contract_registry.registry import ContractRegistry
logging.basicConfig(level=logging.WARNING)
logg = logging.getLogger()
@@ -87,9 +87,9 @@ else:
gas_oracle = None
if args.gas_price !=None:
- gas_oracle = OverrideGasOracle(price=args.gas_price, conn=rpc, code_callback=Registry.gas)
+ gas_oracle = OverrideGasOracle(price=args.gas_price, conn=rpc, code_callback=ContractRegistry.gas)
else:
- gas_oracle = RPCGasOracle(rpc, code_callback=Registry.gas)
+ gas_oracle = RPCGasOracle(rpc, code_callback=ContractRegistry.gas)
dummy = args.d
@@ -99,7 +99,7 @@ if 'ContractRegistry' not in identifiers:
logg.debug('adding identifiers {}'.format(identifiers))
def main():
- c = Registry(chain_spec, signer=signer, gas_oracle=gas_oracle, nonce_oracle=nonce_oracle)
+ c = ContractRegistry(chain_spec, signer=signer, gas_oracle=gas_oracle, nonce_oracle=nonce_oracle)
(tx_hash_hex, o) = c.constructor(signer_address, identifiers)
if dummy:
print(tx_hash_hex)
diff --git a/python/eth_contract_registry/runnable/set.py b/python/eth_contract_registry/runnable/set.py
@@ -30,7 +30,7 @@ from chainlib.eth.tx import receipt
from chainlib.eth.constant import ZERO_CONTENT
# local imports
-from eth_contract_registry import Registry
+from eth_contract_registry.registry import ContractRegistry
logging.basicConfig(level=logging.WARNING)
logg = logging.getLogger()
@@ -90,9 +90,9 @@ else:
gas_oracle = None
if args.gas_price !=None:
- gas_oracle = OverrideGasOracle(price=args.gas_price, conn=rpc, code_callback=Registry.gas)
+ gas_oracle = OverrideGasOracle(price=args.gas_price, conn=rpc, code_callback=ContractRegistry.gas)
else:
- gas_oracle = RPCGasOracle(rpc, code_callback=Registry.gas)
+ gas_oracle = RPCGasOracle(rpc, code_callback=ContractRegistry.gas)
dummy = args.d
@@ -104,7 +104,7 @@ address = args.address
def main():
- c = Registry(chain_spec, signer=signer, gas_oracle=gas_oracle, nonce_oracle=nonce_oracle)
+ c = ContractRegistry(chain_spec, signer=signer, gas_oracle=gas_oracle, nonce_oracle=nonce_oracle)
(tx_hash_hex, o) = c.set(registry_address, signer_address, identifier, address, chain_spec, ZERO_CONTENT)
if dummy:
print(tx_hash_hex)
diff --git a/python/gmon.out b/python/gmon.out
Binary files differ.