From 8bbeb848a5ace97575529e533370692ca5e4cdd6 Mon Sep 17 00:00:00 2001 From: Peter Jung Date: Wed, 3 Jul 2024 14:43:01 +0200 Subject: [PATCH] Add get_omen_user_url (#298) --- prediction_market_agent_tooling/markets/omen/omen.py | 6 +++++- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/prediction_market_agent_tooling/markets/omen/omen.py b/prediction_market_agent_tooling/markets/omen/omen.py index bdd603ea..41f0306e 100644 --- a/prediction_market_agent_tooling/markets/omen/omen.py +++ b/prediction_market_agent_tooling/markets/omen/omen.py @@ -489,7 +489,11 @@ def get_positions_value(cls, positions: list[Position]) -> BetAmount: @classmethod def get_user_url(cls, keys: APIKeys) -> str: - return f"https://gnosisscan.io/address/{keys.bet_from_address}" + return get_omen_user_url(keys.bet_from_address) + + +def get_omen_user_url(address: ChecksumAddress) -> str: + return f"https://gnosisscan.io/address/{address}" def pick_binary_market( diff --git a/pyproject.toml b/pyproject.toml index 3df2c66b..16610722 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "prediction-market-agent-tooling" -version = "0.40.0" +version = "0.40.1" description = "Tools to benchmark, deploy and monitor prediction market agents." authors = ["Gnosis"] readme = "README.md"