def get_another_consumer_ocean_instance( use_provider_mock: bool = False) -> Ocean: data_provider = DataProviderMock if use_provider_mock else None ocn = Ocean(data_provider=data_provider) account = get_another_consumer_wallet() ocn.main_account = account return ocn
def get_publisher_ocean_instance(use_provider_mock=False) -> Ocean: config = ExampleConfig.get_config() data_provider = DataProviderMock if use_provider_mock else None ocn = Ocean(config, data_provider=data_provider) account = get_publisher_wallet() ocn.main_account = account return ocn