prediction-market-agent-tooling 0.57.13.dev265__tar.gz → 0.57.15__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/PKG-INFO +3 -2
  2. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/README.md +1 -1
  3. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/agentcommunication.abi.json +30 -147
  4. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/gtypes.py +1 -1
  5. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/omen/data_models.py +3 -2
  6. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/omen/omen.py +1 -1
  7. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/contract.py +8 -7
  8. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/hexbytes_custom.py +1 -1
  9. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/pyproject.toml +2 -1
  10. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/LICENSE +0 -0
  11. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/debuggingcontract.abi.json +0 -0
  12. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/depositablewrapper_erc20.abi.json +0 -0
  13. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/erc20.abi.json +0 -0
  14. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/erc4626.abi.json +0 -0
  15. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/erc721.abi.json +0 -0
  16. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/omen_agentresultmapping.abi.json +0 -0
  17. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/omen_dxdao.abi.json +0 -0
  18. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/omen_fpmm.abi.json +0 -0
  19. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/omen_fpmm_conditionaltokens.abi.json +0 -0
  20. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/omen_fpmm_factory.abi.json +0 -0
  21. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/omen_kleros.abi.json +0 -0
  22. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/omen_oracle.abi.json +0 -0
  23. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/omen_realitio.abi.json +0 -0
  24. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/omen_thumbnailmapping.abi.json +0 -0
  25. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/ownable.abi.json +0 -0
  26. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/ownable_erc721.abi.json +0 -0
  27. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/proxy.abi.json +0 -0
  28. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/abis/simpletreasury.abi.json +0 -0
  29. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/benchmark/__init__.py +0 -0
  30. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/benchmark/agents.py +0 -0
  31. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/benchmark/benchmark.py +0 -0
  32. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/benchmark/utils.py +0 -0
  33. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/config.py +0 -0
  34. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/deploy/agent.py +0 -0
  35. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/deploy/agent_example.py +0 -0
  36. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/deploy/betting_strategy.py +0 -0
  37. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/deploy/constants.py +0 -0
  38. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/deploy/gcp/deploy.py +0 -0
  39. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/deploy/gcp/kubernetes_models.py +0 -0
  40. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/deploy/gcp/utils.py +0 -0
  41. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/deploy/trade_interval.py +0 -0
  42. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/jobs/__init__.py +0 -0
  43. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/jobs/jobs_models.py +0 -0
  44. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/jobs/omen/omen_jobs.py +0 -0
  45. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/loggers.py +0 -0
  46. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/agent_market.py +0 -0
  47. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/base_subgraph_handler.py +0 -0
  48. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/categorize.py +0 -0
  49. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/data_models.py +0 -0
  50. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/manifold/__init__.py +0 -0
  51. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/manifold/api.py +0 -0
  52. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/manifold/data_models.py +0 -0
  53. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/manifold/manifold.py +0 -0
  54. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/manifold/utils.py +0 -0
  55. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/market_fees.py +0 -0
  56. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/markets.py +0 -0
  57. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/metaculus/api.py +0 -0
  58. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/metaculus/data_models.py +0 -0
  59. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/metaculus/metaculus.py +0 -0
  60. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/omen/__init__.py +0 -0
  61. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/omen/omen_contracts.py +0 -0
  62. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/omen/omen_resolving.py +0 -0
  63. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py +0 -0
  64. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/polymarket/api.py +0 -0
  65. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/polymarket/data_models.py +0 -0
  66. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/polymarket/data_models_web.py +0 -0
  67. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/polymarket/polymarket.py +0 -0
  68. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/polymarket/utils.py +0 -0
  69. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/seer/data_models.py +0 -0
  70. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/markets/seer/seer_subgraph_handler.py +0 -0
  71. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/monitor/financial_metrics/financial_metrics.py +0 -0
  72. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/monitor/markets/manifold.py +0 -0
  73. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/monitor/markets/metaculus.py +0 -0
  74. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/monitor/markets/omen.py +0 -0
  75. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/monitor/markets/polymarket.py +0 -0
  76. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/monitor/monitor.py +0 -0
  77. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/monitor/monitor_app.py +0 -0
  78. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/monitor/monitor_settings.py +0 -0
  79. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/py.typed +0 -0
  80. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/balances.py +0 -0
  81. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/betting_strategies/kelly_criterion.py +0 -0
  82. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/betting_strategies/market_moving.py +0 -0
  83. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/betting_strategies/minimum_bet_to_win.py +0 -0
  84. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/betting_strategies/stretch_bet_between.py +0 -0
  85. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/betting_strategies/utils.py +0 -0
  86. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/caches/db_cache.py +0 -0
  87. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/caches/inmemory_cache.py +0 -0
  88. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/caches/serializers.py +0 -0
  89. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/costs.py +0 -0
  90. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/custom_exceptions.py +0 -0
  91. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/data_models.py +0 -0
  92. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/datetime_utc.py +0 -0
  93. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/db/db_manager.py +0 -0
  94. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/google_utils.py +0 -0
  95. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/httpx_cached_client.py +0 -0
  96. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/image_gen/image_gen.py +0 -0
  97. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/image_gen/market_thumbnail_gen.py +0 -0
  98. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/ipfs/ipfs_handler.py +0 -0
  99. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/is_invalid.py +0 -0
  100. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/is_predictable.py +0 -0
  101. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/langfuse_.py +0 -0
  102. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/langfuse_client_utils.py +0 -0
  103. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/omen/reality_accuracy.py +0 -0
  104. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/parallelism.py +0 -0
  105. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/relevant_news_analysis/data_models.py +0 -0
  106. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/relevant_news_analysis/relevant_news_analysis.py +0 -0
  107. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/relevant_news_analysis/relevant_news_cache.py +0 -0
  108. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/safe.py +0 -0
  109. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/singleton.py +0 -0
  110. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/streamlit_user_login.py +0 -0
  111. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/tavily/tavily_models.py +0 -0
  112. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/tavily/tavily_search.py +0 -0
  113. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/transaction_cache.py +0 -0
  114. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/utils.py +0 -0
  115. {prediction_market_agent_tooling-0.57.13.dev265 → prediction_market_agent_tooling-0.57.15}/prediction_market_agent_tooling/tools/web3_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.57.13.dev265
3
+ Version: 0.57.15
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.13
@@ -16,6 +16,7 @@ Requires-Dist: autoflake (>=2.2.1,<3.0.0)
16
16
  Requires-Dist: base58 (>=1.0.2,<2.0)
17
17
  Requires-Dist: cron-validator (>=1.0.8,<2.0.0)
18
18
  Requires-Dist: eth-account (>=0.8.0,<0.12.0)
19
+ Requires-Dist: eth-keys (>=0.6.1,<0.7.0)
19
20
  Requires-Dist: eth-typing (>=3.0.0,<4.0.0)
20
21
  Requires-Dist: functions-framework (>=3.5.0,<4.0.0)
21
22
  Requires-Dist: google-api-python-client (==2.95.0) ; extra == "google"
@@ -192,5 +193,5 @@ This API can be built on top of to create your application. See [here](https://g
192
193
 
193
194
  See the [Issues](https://github.com/gnosis/prediction-market-agent-tooling/issues) for ideas of things that need fixing or implementing. The team is also receptive to new issues and PRs.
194
195
 
195
- We use `mypy` for static type checking, and `isort`, `black` and `autoflake` for linting. These all run as steps in CI.
196
+ We use `mypy` for static type checking, and `isort`, `black` and `autoflake` for linting, and `pre-commit` to minimise unwanted pushes to the public repositories. These all run as steps in CI, but `pre-commit` also needs to be installed locally using the provided `install_hooks.sh` script.
196
197
 
@@ -133,4 +133,4 @@ This API can be built on top of to create your application. See [here](https://g
133
133
 
134
134
  See the [Issues](https://github.com/gnosis/prediction-market-agent-tooling/issues) for ideas of things that need fixing or implementing. The team is also receptive to new issues and PRs.
135
135
 
136
- We use `mypy` for static type checking, and `isort`, `black` and `autoflake` for linting. These all run as steps in CI.
136
+ We use `mypy` for static type checking, and `isort`, `black` and `autoflake` for linting, and `pre-commit` to minimise unwanted pushes to the public repositories. These all run as steps in CI, but `pre-commit` also needs to be installed locally using the provided `install_hooks.sh` script.
@@ -15,29 +15,17 @@
15
15
  "stateMutability": "nonpayable",
16
16
  "type": "constructor"
17
17
  },
18
- {
19
- "inputs": [],
20
- "name": "MessageNotSentByAgent",
21
- "type": "error"
22
- },
18
+ { "inputs": [], "name": "MessageNotSentByAgent", "type": "error" },
23
19
  {
24
20
  "inputs": [
25
- {
26
- "internalType": "address",
27
- "name": "owner",
28
- "type": "address"
29
- }
21
+ { "internalType": "address", "name": "owner", "type": "address" }
30
22
  ],
31
23
  "name": "OwnableInvalidOwner",
32
24
  "type": "error"
33
25
  },
34
26
  {
35
27
  "inputs": [
36
- {
37
- "internalType": "address",
38
- "name": "account",
39
- "type": "address"
40
- }
28
+ { "internalType": "address", "name": "account", "type": "address" }
41
29
  ],
42
30
  "name": "OwnableUnauthorizedAccount",
43
31
  "type": "error"
@@ -94,11 +82,7 @@
94
82
  },
95
83
  {
96
84
  "inputs": [
97
- {
98
- "internalType": "uint256",
99
- "name": "newValue",
100
- "type": "uint256"
101
- }
85
+ { "internalType": "uint256", "name": "newValue", "type": "uint256" }
102
86
  ],
103
87
  "name": "adjustMinimumValueForSendingMessage",
104
88
  "outputs": [],
@@ -107,60 +91,26 @@
107
91
  },
108
92
  {
109
93
  "inputs": [
110
- {
111
- "internalType": "address",
112
- "name": "agentAddress",
113
- "type": "address"
114
- }
94
+ { "internalType": "address", "name": "agentAddress", "type": "address" }
115
95
  ],
116
96
  "name": "countMessages",
117
- "outputs": [
118
- {
119
- "internalType": "uint256",
120
- "name": "",
121
- "type": "uint256"
122
- }
123
- ],
97
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
124
98
  "stateMutability": "view",
125
99
  "type": "function"
126
100
  },
127
101
  {
128
102
  "inputs": [
129
- {
130
- "internalType": "address",
131
- "name": "agentAddress",
132
- "type": "address"
133
- },
134
- {
135
- "internalType": "uint256",
136
- "name": "idx",
137
- "type": "uint256"
138
- }
103
+ { "internalType": "address", "name": "agentAddress", "type": "address" },
104
+ { "internalType": "uint256", "name": "idx", "type": "uint256" }
139
105
  ],
140
106
  "name": "getAtIndex",
141
107
  "outputs": [
142
108
  {
143
109
  "components": [
144
- {
145
- "internalType": "address",
146
- "name": "sender",
147
- "type": "address"
148
- },
149
- {
150
- "internalType": "address",
151
- "name": "recipient",
152
- "type": "address"
153
- },
154
- {
155
- "internalType": "bytes",
156
- "name": "message",
157
- "type": "bytes"
158
- },
159
- {
160
- "internalType": "uint256",
161
- "name": "value",
162
- "type": "uint256"
163
- }
110
+ { "internalType": "address", "name": "sender", "type": "address" },
111
+ { "internalType": "address", "name": "recipient", "type": "address" },
112
+ { "internalType": "bytes", "name": "message", "type": "bytes" },
113
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
164
114
  ],
165
115
  "internalType": "struct DoubleEndedStructQueue.MessageContainer",
166
116
  "name": "",
@@ -173,74 +123,37 @@
173
123
  {
174
124
  "inputs": [],
175
125
  "name": "minimumValueForSendingMessageInWei",
176
- "outputs": [
177
- {
178
- "internalType": "uint256",
179
- "name": "",
180
- "type": "uint256"
181
- }
182
- ],
126
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
183
127
  "stateMutability": "view",
184
128
  "type": "function"
185
129
  },
186
130
  {
187
131
  "inputs": [],
188
132
  "name": "owner",
189
- "outputs": [
190
- {
191
- "internalType": "address",
192
- "name": "",
193
- "type": "address"
194
- }
195
- ],
133
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
196
134
  "stateMutability": "view",
197
135
  "type": "function"
198
136
  },
199
137
  {
200
138
  "inputs": [],
201
139
  "name": "pctToTreasuryInBasisPoints",
202
- "outputs": [
203
- {
204
- "internalType": "uint256",
205
- "name": "",
206
- "type": "uint256"
207
- }
208
- ],
140
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
209
141
  "stateMutability": "view",
210
142
  "type": "function"
211
143
  },
212
144
  {
213
145
  "inputs": [
214
- {
215
- "internalType": "address",
216
- "name": "agentAddress",
217
- "type": "address"
218
- }
146
+ { "internalType": "address", "name": "agentAddress", "type": "address" },
147
+ { "internalType": "uint256", "name": "idx", "type": "uint256" }
219
148
  ],
220
- "name": "popNextMessage",
149
+ "name": "popMessageAtIndex",
221
150
  "outputs": [
222
151
  {
223
152
  "components": [
224
- {
225
- "internalType": "address",
226
- "name": "sender",
227
- "type": "address"
228
- },
229
- {
230
- "internalType": "address",
231
- "name": "recipient",
232
- "type": "address"
233
- },
234
- {
235
- "internalType": "bytes",
236
- "name": "message",
237
- "type": "bytes"
238
- },
239
- {
240
- "internalType": "uint256",
241
- "name": "value",
242
- "type": "uint256"
243
- }
153
+ { "internalType": "address", "name": "sender", "type": "address" },
154
+ { "internalType": "address", "name": "recipient", "type": "address" },
155
+ { "internalType": "bytes", "name": "message", "type": "bytes" },
156
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
244
157
  ],
245
158
  "internalType": "struct DoubleEndedStructQueue.MessageContainer",
246
159
  "name": "",
@@ -251,25 +164,11 @@
251
164
  "type": "function"
252
165
  },
253
166
  {
254
- "inputs": [
255
- {
256
- "internalType": "address",
257
- "name": "",
258
- "type": "address"
259
- }
260
- ],
167
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
261
168
  "name": "queues",
262
169
  "outputs": [
263
- {
264
- "internalType": "uint128",
265
- "name": "_begin",
266
- "type": "uint128"
267
- },
268
- {
269
- "internalType": "uint128",
270
- "name": "_end",
271
- "type": "uint128"
272
- }
170
+ { "internalType": "uint128", "name": "_begin", "type": "uint128" },
171
+ { "internalType": "uint128", "name": "_end", "type": "uint128" }
273
172
  ],
274
173
  "stateMutability": "view",
275
174
  "type": "function"
@@ -283,16 +182,8 @@
283
182
  },
284
183
  {
285
184
  "inputs": [
286
- {
287
- "internalType": "address",
288
- "name": "agentAddress",
289
- "type": "address"
290
- },
291
- {
292
- "internalType": "bytes",
293
- "name": "message",
294
- "type": "bytes"
295
- }
185
+ { "internalType": "address", "name": "agentAddress", "type": "address" },
186
+ { "internalType": "bytes", "name": "message", "type": "bytes" }
296
187
  ],
297
188
  "name": "sendMessage",
298
189
  "outputs": [],
@@ -314,11 +205,7 @@
314
205
  },
315
206
  {
316
207
  "inputs": [
317
- {
318
- "internalType": "address",
319
- "name": "newOwner",
320
- "type": "address"
321
- }
208
+ { "internalType": "address", "name": "newOwner", "type": "address" }
322
209
  ],
323
210
  "name": "transferOwnership",
324
211
  "outputs": [],
@@ -329,13 +216,9 @@
329
216
  "inputs": [],
330
217
  "name": "treasury",
331
218
  "outputs": [
332
- {
333
- "internalType": "address payable",
334
- "name": "",
335
- "type": "address"
336
- }
219
+ { "internalType": "address payable", "name": "", "type": "address" }
337
220
  ],
338
221
  "stateMutability": "view",
339
222
  "type": "function"
340
223
  }
341
- ]
224
+ ]
@@ -82,5 +82,5 @@ def secretstr_to_v1_secretstr(s: SecretStr | None) -> SecretStrV1 | None:
82
82
 
83
83
 
84
84
  def int_to_hexbytes(v: int) -> HexBytes:
85
- # Example: 1 -> HexBytes("0x0000000000000000000000000000000000000000000000000000000000000001").
85
+ # Example: 1 -> HexBytes("0x0000000000000000000000000000000000000000000000000000000000000001"). # web3-private-key-ok
86
86
  return HexBytes.fromhex(format(v, "064x"))
@@ -28,6 +28,7 @@ from prediction_market_agent_tooling.tools.utils import (
28
28
  DatetimeUTC,
29
29
  check_not_none,
30
30
  should_not_happen,
31
+ utcnow,
31
32
  )
32
33
  from prediction_market_agent_tooling.tools.web3_utils import wei_to_xdai
33
34
 
@@ -245,7 +246,7 @@ class OmenMarket(BaseModel):
245
246
 
246
247
  @property
247
248
  def is_open(self) -> bool:
248
- return self.currentAnswer is None
249
+ return self.close_time > utcnow()
249
250
 
250
251
  @property
251
252
  def is_resolved(self) -> bool:
@@ -584,7 +585,7 @@ class FixedProductMarketMakersResponse(BaseModel):
584
585
 
585
586
 
586
587
  class RealityQuestion(BaseModel):
587
- # This `id` is in form of `0x79e32ae03fb27b07c89c0c568f80287c01ca2e57-0x2d362f435e7b5159794ff0b5457a900283fca41fe6301dc855a647595903db13`,
588
+ # This `id` is in form of `0x79e32ae03fb27b07c89c0c568f80287c01ca2e57-0x2d362f435e7b5159794ff0b5457a900283fca41fe6301dc855a647595903db13`, # web3-private-key-ok
588
589
  # which I couldn't find how it is created, but based on how it looks like I assume it's composed of `answerId-questionId`.
589
590
  # (Why is answer id as part of the question object? Because this question object is actually received from the answer object below).
590
591
  # And because all the contract methods so far needed bytes32 input, when asked for question id, `questionId` field was the correct one to use so far.
@@ -1209,7 +1209,7 @@ def omen_remove_fund_market_tx(
1209
1209
  amount_per_index_set = get_conditional_tokens_balance_for_market(
1210
1210
  market, from_address, web3
1211
1211
  )
1212
- # We fetch the minimum balance of outcome token - for ex, in this tx (https://gnosisscan.io/tx/0xc31c4e9bc6a60cf7db9991a40ec2f2a06e3539f8cb8dd81b6af893cef6f40cd7#eventlog) - event #460, this should yield 9804940144070370149. This amount matches what is displayed in the Omen UI.
1212
+ # We fetch the minimum balance of outcome token - for ex, in this tx (https://gnosisscan.io/tx/0xc31c4e9bc6a60cf7db9991a40ec2f2a06e3539f8cb8dd81b6af893cef6f40cd7#eventlog) - event #460, this should yield 9804940144070370149. This amount matches what is displayed in the Omen UI. # web3-private-key-ok
1213
1213
  # See similar logic from Olas
1214
1214
  # https://github.com/valory-xyz/market-creator/blob/4bc47f696fb5ecb61c3b7ec8c001ff2ab6c60fcf/packages/valory/skills/market_creation_manager_abci/behaviours.py#L1308
1215
1215
  amount_to_merge = min(amount_per_index_set.values())
@@ -629,7 +629,7 @@ class AgentCommunicationContract(ContractOnGnosisChain, OwnableContract):
629
629
  )
630
630
 
631
631
  address: ChecksumAddress = Web3.to_checksum_address(
632
- "0xc566Cb829Ed7aC097D17a38011A40Ad2DC25Dd82"
632
+ "0xe9dd78FF297DbaAbe5D0E45aE554a4B561935DE9"
633
633
  )
634
634
 
635
635
  def minimum_message_value(self, web3: Web3 | None = None) -> xDai:
@@ -691,28 +691,29 @@ class AgentCommunicationContract(ContractOnGnosisChain, OwnableContract):
691
691
  self,
692
692
  api_keys: APIKeys,
693
693
  agent_address: ChecksumAddress,
694
+ index: int = 0,
694
695
  web3: Web3 | None = None,
695
696
  ) -> MessageContainer:
696
697
  """
697
- Retrieves and removes the first message from the agent's message queue.
698
+ Retrieves and removes message at specified index from the agent's message queue.
698
699
 
699
700
  This method first retrieves the message at the front of the queue without removing it,
700
701
  allowing us to return the message content directly. The actual removal of the message
701
702
  from the queue is performed by sending a transaction to the contract, which executes
702
- the `popNextMessage` function. The transaction receipt is not used to obtain the message
703
+ the `popMessageAtIndex` function. The transaction receipt is not used to obtain the message
703
704
  content, as it only contains event data, not the returned struct.
704
705
  """
705
706
 
706
- # Peek first element before popping.
707
+ # Peek the element before popping.
707
708
  message_container = self.get_at_index(
708
- agent_address=agent_address, idx=0, web3=web3
709
+ agent_address=agent_address, idx=index, web3=web3
709
710
  )
710
711
 
711
712
  # Next, pop that element and discard the transaction receipt.
712
713
  self.send(
713
714
  api_keys=api_keys,
714
- function_name="popNextMessage",
715
- function_params=[agent_address],
715
+ function_name="popMessageAtIndex",
716
+ function_params=[agent_address, index],
716
717
  web3=web3,
717
718
  )
718
719
 
@@ -23,7 +23,7 @@ class BaseHex:
23
23
  "0xd4e56740",
24
24
  "0xd4e56740f876aef8",
25
25
  "0xd4e56740f876aef8c010b86a40d5f567",
26
- "0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3",
26
+ "0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3", # web3-private-key-ok
27
27
  )
28
28
 
29
29
  @classmethod
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "prediction-market-agent-tooling"
3
- version = "0.57.13.dev265"
3
+ version = "0.57.15"
4
4
  description = "Tools to benchmark, deploy and monitor prediction market agents."
5
5
  authors = ["Gnosis"]
6
6
  readme = "README.md"
@@ -54,6 +54,7 @@ pinatapy-vourhey = "^0.2.0"
54
54
  hishel = "^0.0.31"
55
55
  pytest-postgresql = "^6.1.1"
56
56
  optuna = { version = "^4.1.0", optional = true}
57
+ eth-keys = "^0.6.1"
57
58
 
58
59
  [tool.poetry.extras]
59
60
  openai = ["openai"]