示例#1
0
def mock_eth_service(eth_network_id, dbsession, registry):
    """Non-functional Ethereum Service without a connection to geth."""

    from web3 import RPCProvider, Web3
    web3 = Web3(RPCProvider("127.0.0.1", 666))
    s = EthereumService(web3, eth_network_id, dbsession, registry)
    return s
示例#2
0
def testnet_service(web3, testnet_network_id, dbsession, registry):
    """Create Ethereum Service for testnet to run ops or mock ups."""
    s = EthereumService(web3, testnet_network_id, dbsession, registry)
    return s
示例#3
0
def eth_service(web3, eth_network_id, dbsession, registry):
    """Create Ethereum Service to run ops or mock ups."""
    s = EthereumService(web3, eth_network_id, dbsession, registry)
    return s
示例#4
0
def eth_service(web3, eth_network_id, dbsession, registry):
    s = EthereumService(web3, eth_network_id, dbsession, registry)
    return s