def alice_federated_test_config(federated_ursulas): config = AliceConfiguration(temp=True, auto_initialize=True, is_me=True, network_middleware=MockRestMiddleware(), known_nodes=federated_ursulas, federated_only=True, abort_on_learning_error=True) yield config config.cleanup()
def alice_federated_test_config(federated_ursulas): config = AliceConfiguration(dev_mode=True, network_middleware=MockRestMiddleware(), known_nodes=federated_ursulas, federated_only=True, abort_on_learning_error=True, save_metadata=False, reload_metadata=False) yield config config.cleanup()
def alice_blockchain_test_config(blockchain_ursulas, testerchain): config = AliceConfiguration(dev_mode=True, provider_uri=TEST_PROVIDER_URI, checksum_address=testerchain.alice_account, network_middleware=MockRestMiddleware(), known_nodes=blockchain_ursulas, abort_on_learning_error=True, download_registry=False, save_metadata=False, reload_metadata=False) yield config config.cleanup()
def alice_federated_test_config(federated_ursulas): config = AliceConfiguration(temp=True, auto_initialize=True, auto_generate_keys=True, passphrase=TEST_URSULA_INSECURE_DEVELOPMENT_PASSWORD, is_me=True, network_middleware=MockRestMiddleware(), known_nodes=federated_ursulas, federated_only=True, abort_on_learning_error=True, save_metadata=False, load_metadata=False) yield config config.cleanup()
def alice_blockchain_test_config(blockchain_ursulas, three_agents): token_agent, miner_agent, policy_agent = three_agents etherbase, alice_address, bob_address, *everyone_else = token_agent.blockchain.interface.w3.eth.accounts config = AliceConfiguration(temp=True, is_me=True, auto_initialize=True, network_middleware=MockRestMiddleware(), policy_agent=policy_agent, known_nodes=blockchain_ursulas, abort_on_learning_error=True, checksum_address=alice_address) yield config config.cleanup()
def alice_blockchain_test_config(blockchain_ursulas, three_agents): token_agent, miner_agent, policy_agent = three_agents config = AliceConfiguration( dev_mode=True, is_me=True, provider_uri="tester://pyevm", checksum_public_address=token_agent.blockchain.alice_account, network_middleware=MockRestMiddleware(), known_nodes=blockchain_ursulas, abort_on_learning_error=True, import_seed_registry=False, save_metadata=False, reload_metadata=False) yield config config.cleanup()
def alice_blockchain_test_config(blockchain_ursulas, three_agents): token_agent, miner_agent, policy_agent = three_agents etherbase, alice_address, bob_address, *everyone_else = token_agent.blockchain.interface.w3.eth.accounts config = AliceConfiguration( temp=True, is_me=True, auto_initialize=True, auto_generate_keys=True, checksum_address=alice_address, passphrase=TEST_URSULA_INSECURE_DEVELOPMENT_PASSWORD, network_middleware=MockRestMiddleware(), known_nodes=blockchain_ursulas, abort_on_learning_error=True, import_seed_registry=False, save_metadata=False, load_metadata=False) yield config config.cleanup()