forked from raiden-network/raiden-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
monitoring_service.py
38 lines (33 loc) · 1.29 KB
/
monitoring_service.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import pytest
from web3.contract import Contract
from raiden_contracts.constants import CONTRACT_MONITORING_SERVICE
@pytest.fixture(scope="session")
def monitoring_service_external(
deploy_tester_contract: Contract,
custom_token: Contract,
service_registry: Contract,
uninitialized_user_deposit_contract: Contract,
token_network_registry_contract: Contract,
) -> Contract:
return deploy_tester_contract(
CONTRACT_MONITORING_SERVICE,
_token_address=custom_token.address,
_service_registry_address=service_registry.address,
_udc_address=uninitialized_user_deposit_contract.address,
_token_network_registry_address=token_network_registry_contract.address,
)
@pytest.fixture()
def monitoring_service_internals(
custom_token: Contract,
service_registry: Contract,
uninitialized_user_deposit_contract: Contract,
deploy_tester_contract: Contract,
token_network_registry_contract: Contract,
) -> Contract:
return deploy_tester_contract(
"MonitoringServiceInternalsTest",
_token_address=custom_token.address,
_service_registry_address=service_registry.address,
_udc_address=uninitialized_user_deposit_contract.address,
_token_network_registry_address=token_network_registry_contract.address,
)