(url: URL)
| 509 | |
| 510 | |
| 511 | def get_balance_for_node(url: URL) -> Dict[Address, TokenAmount]: |
| 512 | response = requests.get(f"{url}/api/v1/channels") |
| 513 | assert response.headers["Content-Type"] == "application/json", response.headers["Content-Type"] |
| 514 | assert response.status_code == HTTPStatus.OK, response.json() |
| 515 | |
| 516 | response_data = response.json() |
| 517 | return {channel["partner_address"]: channel["balance"] for channel in response_data} |
| 518 | |
| 519 | |
| 520 | def wait_for_balance(running_nodes: List[RunningNode]) -> None: |
no test coverage detected