Update runnables

This commit is contained in:
nolash 2021-04-30 13:14:48 +02:00
parent b0019479af
commit 8a459f4cc2
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
4 changed files with 8 additions and 8 deletions

View File

@ -28,7 +28,7 @@ from chainlib.eth.connection import EthHTTPConnection
from chainlib.eth.tx import receipt from chainlib.eth.tx import receipt
# local imports # local imports
from eth_accounts_index import AccountRegistry from eth_accounts_index import AccountsIndex
logging.basicConfig(level=logging.WARNING) logging.basicConfig(level=logging.WARNING)
logg = logging.getLogger() logg = logging.getLogger()
@ -88,9 +88,9 @@ else:
gas_oracle = None gas_oracle = None
if args.gas_price !=None: if args.gas_price !=None:
gas_oracle = OverrideGasOracle(price=args.gas_price, conn=rpc, code_callback=AccountRegistry.gas) gas_oracle = OverrideGasOracle(price=args.gas_price, conn=rpc, code_callback=AccountsIndex.gas)
else: else:
gas_oracle = RPCGasOracle(rpc, code_callback=AccountRegistry.gas) gas_oracle = RPCGasOracle(rpc, code_callback=AccountsIndex.gas)
dummy = args.d dummy = args.d
contract_address = args.a contract_address = args.a
@ -100,7 +100,7 @@ account = args.address
def main(): def main():
if __name__ == '__main__': if __name__ == '__main__':
c = AccountRegistry(chain_spec, signer=signer, gas_oracle=gas_oracle, nonce_oracle=nonce_oracle) c = AccountsIndex(chain_spec, signer=signer, gas_oracle=gas_oracle, nonce_oracle=nonce_oracle)
(tx_hash_hex, o) = c.add(contract_address, signer_address, account) (tx_hash_hex, o) = c.add(contract_address, signer_address, account)
if dummy: if dummy:
print(tx_hash_hex) print(tx_hash_hex)

View File

@ -28,7 +28,7 @@ from chainlib.eth.connection import EthHTTPConnection
from chainlib.eth.tx import receipt from chainlib.eth.tx import receipt
# local imports # local imports
from eth_accounts_index import AccountRegistry from eth_accounts_index.registry import AccountRegistry
logging.basicConfig(level=logging.WARNING) logging.basicConfig(level=logging.WARNING)
logg = logging.getLogger() logg = logging.getLogger()

View File

@ -25,7 +25,7 @@ from chainlib.eth.constant import ZERO_CONTENT
from chainlib.error import JSONRPCException from chainlib.error import JSONRPCException
# local imports # local imports
from eth_accounts_index import AccountRegistry from eth_accounts_index import AccountsIndex
logging.basicConfig(level=logging.WARNING) logging.basicConfig(level=logging.WARNING)
logg = logging.getLogger() logg = logging.getLogger()
@ -88,7 +88,7 @@ def ls(ifc, fmt=default_format, w=sys.stdout):
def main(): def main():
c = AccountRegistry(chain_spec) c = AccountsIndex(chain_spec)
if address != None: if address != None:
element(c, address, fmt=fmt, w=sys.stdout) element(c, address, fmt=fmt, w=sys.stdout)
else: else:

View File

@ -28,7 +28,7 @@ from chainlib.eth.connection import EthHTTPConnection
from chainlib.eth.tx import receipt from chainlib.eth.tx import receipt
# local imports # local imports
from eth_accounts_index import AccountRegistry from eth_accounts_index.registry import AccountRegistry
logging.basicConfig(level=logging.WARNING) logging.basicConfig(level=logging.WARNING)
logg = logging.getLogger() logg = logging.getLogger()