mirror of
git://holbrook.no/eth-contract-registry
synced 2024-11-16 06:26:47 +01:00
Assimilate agnostic rpc from chainlib
This commit is contained in:
parent
15cd758fae
commit
19de2bface
@ -3,7 +3,7 @@ import logging
|
|||||||
|
|
||||||
# external imports
|
# external imports
|
||||||
import pytest
|
import pytest
|
||||||
from chainlib.eth.connection import RPCConnection
|
from chainlib.connection import RPCConnection
|
||||||
from chainlib.eth.tx import receipt
|
from chainlib.eth.tx import receipt
|
||||||
|
|
||||||
# local imports
|
# local imports
|
||||||
@ -17,12 +17,13 @@ valid_identifiers = [
|
|||||||
|
|
||||||
@pytest.fixture(scope='function')
|
@pytest.fixture(scope='function')
|
||||||
def registry(
|
def registry(
|
||||||
|
default_chain_spec,
|
||||||
init_eth_tester,
|
init_eth_tester,
|
||||||
init_eth_rpc,
|
init_eth_rpc,
|
||||||
eth_accounts,
|
eth_accounts,
|
||||||
):
|
):
|
||||||
|
|
||||||
conn = RPCConnection.connect('default')
|
conn = RPCConnection.connect(default_chain_spec, 'default')
|
||||||
builder = Registry(signer=conn.signer)
|
builder = Registry(signer=conn.signer)
|
||||||
(tx_hash_hex, o) = builder.constructor(eth_accounts[0], valid_identifiers)
|
(tx_hash_hex, o) = builder.constructor(eth_accounts[0], valid_identifiers)
|
||||||
r = conn.do(o)
|
r = conn.do(o)
|
||||||
|
BIN
python/gmon.out
BIN
python/gmon.out
Binary file not shown.
@ -28,9 +28,7 @@ include_package_data = True
|
|||||||
python_requires = >= 3.6
|
python_requires = >= 3.6
|
||||||
packages =
|
packages =
|
||||||
contract_registry
|
contract_registry
|
||||||
contract_registry.helper
|
|
||||||
contract_registry.pytest
|
contract_registry.pytest
|
||||||
contract_registry.runnable
|
|
||||||
|
|
||||||
[options.entry_points]
|
[options.entry_points]
|
||||||
console_scripts =
|
console_scripts =
|
||||||
|
@ -8,7 +8,7 @@ from chainlib.eth.tx import (
|
|||||||
receipt,
|
receipt,
|
||||||
transaction,
|
transaction,
|
||||||
)
|
)
|
||||||
from chainlib.eth.connection import RPCConnection
|
from chainlib.connection import RPCConnection
|
||||||
from chainlib.eth.contract import (
|
from chainlib.eth.contract import (
|
||||||
ABIContractEncoder,
|
ABIContractEncoder,
|
||||||
ABIContractType,
|
ABIContractType,
|
||||||
|
Loading…
Reference in New Issue
Block a user