def test_deploy_networks(web3): example_settings = [ { "name": "Test", "symbol": "TST", "decimals": 4, "fee_divisor": 1000, "default_interest_rate": 0, "custom_interests": True, "expiration_time": EXPIRATION_TIME, }, { "name": "Test Coin", "symbol": "TCN", "decimals": 2, "fee_divisor": 0, "default_interest_rate": 1000, "custom_interests": False, "expiration_time": EXPIRATION_TIME, }, ] networks, exchange, unw_eth = deploy_networks(web3, example_settings) assert networks[0].functions.name().call() == "Test" assert networks[0].functions.symbol().call() == "TST" assert networks[1].functions.decimals().call() == 2 assert unw_eth.functions.decimals().call() == 18
def test_deploy_networks(web3): example_settings = [ NetworkSettings( name="Test", symbol="TST", decimals=4, fee_divisor=1000, default_interest_rate=0, custom_interests=True, expiration_time=EXPIRATION_TIME, prevent_mediator_interests=False, ), NetworkSettings( name="Test Coin", symbol="TCN", decimals=2, fee_divisor=0, default_interest_rate=1000, custom_interests=False, expiration_time=0, prevent_mediator_interests=False, ), ] networks, exchange, unw_eth = deploy_networks(web3, example_settings) assert networks[0].functions.name().call() == "Test" assert networks[0].functions.symbol().call() == "TST" assert networks[1].functions.decimals().call() == 2 assert unw_eth.functions.decimals().call() == 18
def deploy_test_networks(web3): return deploy_networks(web3, NETWORK_SETTINGS)