mirror of
git://holbrook.no/eth-accounts-index
synced 2024-11-22 00:56:46 +01:00
Update runnables
This commit is contained in:
parent
b0019479af
commit
8a459f4cc2
@ -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)
|
||||||
|
@ -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()
|
||||||
|
@ -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:
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user