prediction-market-agent-tooling 0.64.1.dev590__tar.gz → 0.64.2.dev604__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.
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/PKG-INFO +1 -1
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/omen/data_models.py +10 -1
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/omen/omen.py +6 -12
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/omen/omen_contracts.py +10 -2
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py +8 -2
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/caches/db_cache.py +12 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/contract.py +1 -3
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/pyproject.toml +1 -1
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/README.md +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/debuggingcontract.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/depositablewrapper_erc20.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/erc20.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/erc4626.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/erc721.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/gvp2_settlement.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/omen_agentresultmapping.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/omen_dxdao.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/omen_fpmm.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/omen_fpmm_conditionaltokens.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/omen_fpmm_factory.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/omen_kleros.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/omen_oracle.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/omen_realitio.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/omen_thumbnailmapping.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/ownable.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/ownable_erc721.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/proxy.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/seer_gnosis_router.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/abis/seer_market_factory.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/benchmark/__init__.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/benchmark/agents.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/benchmark/benchmark.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/benchmark/utils.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/config.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/deploy/agent.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/deploy/agent_example.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/deploy/betting_strategy.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/deploy/constants.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/deploy/gcp/deploy.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/deploy/gcp/kubernetes_models.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/deploy/gcp/utils.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/deploy/trade_interval.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/gtypes.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/jobs/__init__.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/jobs/jobs_models.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/jobs/omen/omen_jobs.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/loggers.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/agent_market.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/base_subgraph_handler.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/blockchain_utils.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/categorize.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/data_models.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/manifold/__init__.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/manifold/api.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/manifold/data_models.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/manifold/manifold.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/manifold/utils.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/market_fees.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/markets.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/metaculus/api.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/metaculus/data_models.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/metaculus/metaculus.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/omen/__init__.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/omen/cow_contracts.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/omen/omen_constants.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/omen/omen_resolving.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/polymarket/api.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/polymarket/data_models.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/polymarket/data_models_web.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/polymarket/polymarket.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/polymarket/utils.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/seer/data_models.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/seer/price_manager.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/seer/seer.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/seer/seer_contracts.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/seer/seer_subgraph_handler.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/markets/seer/subgraph_data_models.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/monitor/financial_metrics/financial_metrics.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/monitor/markets/manifold.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/monitor/markets/metaculus.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/monitor/markets/omen.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/monitor/markets/polymarket.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/monitor/monitor.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/monitor/monitor_app.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/monitor/monitor_settings.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/py.typed +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/_generic_value.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/balances.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/betting_strategies/kelly_criterion.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/betting_strategies/market_moving.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/betting_strategies/minimum_bet_to_win.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/betting_strategies/stretch_bet_between.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/betting_strategies/utils.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/caches/inmemory_cache.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/caches/serializers.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/costs.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/cow/cow_order.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/custom_exceptions.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/datetime_utc.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/db/db_manager.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/google_utils.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/hexbytes_custom.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/httpx_cached_client.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/image_gen/image_gen.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/image_gen/market_thumbnail_gen.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/ipfs/ipfs_handler.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/is_invalid.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/is_predictable.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/langfuse_.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/langfuse_client_utils.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/omen/reality_accuracy.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/omen/sell_positions.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/parallelism.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/relevant_news_analysis/data_models.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/relevant_news_analysis/relevant_news_analysis.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/relevant_news_analysis/relevant_news_cache.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/safe.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/singleton.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/streamlit_user_login.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/tavily/tavily_models.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/tavily/tavily_search.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/tokens/auto_deposit.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/tokens/auto_withdraw.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/tokens/main_token.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/tokens/token_utils.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/tokens/usd.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/transaction_cache.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/utils.py +0 -0
- {prediction_market_agent_tooling-0.64.1.dev590 → prediction_market_agent_tooling-0.64.2.dev604}/prediction_market_agent_tooling/tools/web3_utils.py +0 -0
@@ -177,7 +177,7 @@ class OmenPosition(BaseModel):
|
|
177
177
|
return Web3.to_checksum_address(self.collateralTokenAddress)
|
178
178
|
|
179
179
|
def get_collateral_token_contract(
|
180
|
-
self, web3: Web3 | None
|
180
|
+
self, web3: Web3 | None = None
|
181
181
|
) -> ContractERC20OnGnosisChain:
|
182
182
|
web3 = web3 or ContractERC20OnGnosisChain.get_web3()
|
183
183
|
return to_gnosis_chain_contract(
|
@@ -875,3 +875,12 @@ class IPFSAgentResult(BaseModel):
|
|
875
875
|
model_config = ConfigDict(
|
876
876
|
extra="forbid",
|
877
877
|
)
|
878
|
+
|
879
|
+
|
880
|
+
class PayoutRedemptionEvent(BaseModel):
|
881
|
+
redeemer: HexAddress
|
882
|
+
collateralToken: HexAddress
|
883
|
+
parentCollectionId: HexBytes
|
884
|
+
conditionId: HexBytes
|
885
|
+
indexSets: list[int]
|
886
|
+
payout: Wei
|
@@ -1071,25 +1071,22 @@ def omen_redeem_full_position_tx(
|
|
1071
1071
|
logger.debug("Market not yet resolved, not possible to claim")
|
1072
1072
|
return
|
1073
1073
|
|
1074
|
-
|
1075
|
-
conditional_token_contract.redeemPositions(
|
1074
|
+
redeem_event = conditional_token_contract.redeemPositions(
|
1076
1075
|
api_keys=api_keys,
|
1077
1076
|
collateral_token_address=market.collateral_token_contract_address_checksummed,
|
1078
1077
|
condition_id=market.condition.id,
|
1079
1078
|
index_sets=market.condition.index_sets,
|
1080
1079
|
web3=web3,
|
1081
1080
|
)
|
1082
|
-
new_balance = collateral_token_contract.balanceOf(from_address, web3=web3)
|
1083
|
-
balance_diff = new_balance - original_balance
|
1084
1081
|
|
1085
1082
|
logger.info(
|
1086
|
-
f"Redeemed {
|
1083
|
+
f"Redeemed {redeem_event.payout.as_token} {collateral_token_contract.symbol_cached(web3=web3)} from market {market.question=} ({market.url})."
|
1087
1084
|
)
|
1088
1085
|
|
1089
1086
|
if auto_withdraw:
|
1090
1087
|
auto_withdraw_collateral_token(
|
1091
1088
|
collateral_token_contract=collateral_token_contract,
|
1092
|
-
amount_wei=
|
1089
|
+
amount_wei=redeem_event.payout,
|
1093
1090
|
api_keys=api_keys,
|
1094
1091
|
web3=web3,
|
1095
1092
|
)
|
@@ -1231,25 +1228,22 @@ def redeem_from_all_user_positions(
|
|
1231
1228
|
user_position.position.get_collateral_token_contract(web3=web3)
|
1232
1229
|
)
|
1233
1230
|
|
1234
|
-
|
1235
|
-
conditional_token_contract.redeemPositions(
|
1231
|
+
redeem_event = conditional_token_contract.redeemPositions(
|
1236
1232
|
api_keys=api_keys,
|
1237
1233
|
collateral_token_address=user_position.position.collateral_token_contract_address_checksummed,
|
1238
1234
|
condition_id=condition_id,
|
1239
1235
|
index_sets=user_position.position.indexSets,
|
1240
1236
|
web3=web3,
|
1241
1237
|
)
|
1242
|
-
new_balance = collateral_token_contract.balanceOf(public_key, web3=web3)
|
1243
|
-
balance_diff = new_balance - original_balance
|
1244
1238
|
|
1245
1239
|
logger.info(
|
1246
|
-
f"Redeemed {
|
1240
|
+
f"Redeemed {redeem_event.payout.as_token} {collateral_token_contract.symbol_cached(web3=web3)} from position {user_position.id=}."
|
1247
1241
|
)
|
1248
1242
|
|
1249
1243
|
if auto_withdraw:
|
1250
1244
|
auto_withdraw_collateral_token(
|
1251
1245
|
collateral_token_contract=collateral_token_contract,
|
1252
|
-
amount_wei=
|
1246
|
+
amount_wei=redeem_event.payout,
|
1253
1247
|
api_keys=api_keys,
|
1254
1248
|
web3=web3,
|
1255
1249
|
)
|
@@ -28,6 +28,7 @@ from prediction_market_agent_tooling.markets.omen.data_models import (
|
|
28
28
|
ContractPrediction,
|
29
29
|
FPMMFundingAddedEvent,
|
30
30
|
OmenFixedProductMarketMakerCreationEvent,
|
31
|
+
PayoutRedemptionEvent,
|
31
32
|
RealitioLogNewQuestionEvent,
|
32
33
|
format_realitio_question,
|
33
34
|
)
|
@@ -194,8 +195,8 @@ class OmenConditionalTokenContract(ContractOnGnosisChain):
|
|
194
195
|
index_sets: t.List[int],
|
195
196
|
parent_collection_id: HexStr = build_parent_collection_id(),
|
196
197
|
web3: Web3 | None = None,
|
197
|
-
) ->
|
198
|
-
|
198
|
+
) -> PayoutRedemptionEvent:
|
199
|
+
receipt_tx = self.send(
|
199
200
|
api_keys=api_keys,
|
200
201
|
function_name="redeemPositions",
|
201
202
|
function_params=[
|
@@ -206,6 +207,13 @@ class OmenConditionalTokenContract(ContractOnGnosisChain):
|
|
206
207
|
],
|
207
208
|
web3=web3,
|
208
209
|
)
|
210
|
+
redeem_event_logs = (
|
211
|
+
self.get_web3_contract(web3=web3)
|
212
|
+
.events.PayoutRedemption()
|
213
|
+
.process_receipt(receipt_tx)
|
214
|
+
)
|
215
|
+
redeem_event = PayoutRedemptionEvent(**redeem_event_logs[0]["args"])
|
216
|
+
return redeem_event
|
209
217
|
|
210
218
|
def getOutcomeSlotCount(
|
211
219
|
self, condition_id: HexBytes, web3: Web3 | None = None
|
@@ -510,18 +510,24 @@ class OmenSubgraphHandler(BaseSubgraphHandler):
|
|
510
510
|
|
511
511
|
def get_user_positions(
|
512
512
|
self,
|
513
|
-
better_address: ChecksumAddress,
|
513
|
+
better_address: ChecksumAddress | None = None,
|
514
|
+
user_position_id_in: list[HexBytes] | None = None,
|
514
515
|
position_id_in: list[HexBytes] | None = None,
|
515
516
|
total_balance_bigger_than: OutcomeWei | None = None,
|
516
517
|
) -> list[OmenUserPosition]:
|
517
518
|
where_stms: dict[str, t.Any] = {
|
518
|
-
"user": better_address.lower(),
|
519
519
|
"position_": {},
|
520
520
|
}
|
521
521
|
|
522
|
+
if better_address is not None:
|
523
|
+
where_stms["user"] = better_address.lower()
|
524
|
+
|
522
525
|
if total_balance_bigger_than is not None:
|
523
526
|
where_stms["totalBalance_gt"] = total_balance_bigger_than
|
524
527
|
|
528
|
+
if user_position_id_in is not None:
|
529
|
+
where_stms["id_in"] = [x.hex() for x in user_position_id_in]
|
530
|
+
|
525
531
|
if position_id_in is not None:
|
526
532
|
where_stms["position_"]["positionId_in"] = [x.hex() for x in position_id_in]
|
527
533
|
|
@@ -3,6 +3,7 @@ import inspect
|
|
3
3
|
import json
|
4
4
|
from datetime import timedelta
|
5
5
|
from functools import wraps
|
6
|
+
from types import UnionType
|
6
7
|
from typing import (
|
7
8
|
Any,
|
8
9
|
Callable,
|
@@ -276,6 +277,17 @@ def convert_cached_output_to_pydantic(return_type: Any, data: Any) -> Any:
|
|
276
277
|
): convert_cached_output_to_pydantic(value_type, v)
|
277
278
|
for k, v in data.items()
|
278
279
|
}
|
280
|
+
# If the origin is a union and one of the unions is basemodel, convert it to it.
|
281
|
+
elif (
|
282
|
+
origin is UnionType
|
283
|
+
and (
|
284
|
+
base_model_from_args := next(
|
285
|
+
(x for x in args if issubclass(x, BaseModel)), None
|
286
|
+
)
|
287
|
+
)
|
288
|
+
is not None
|
289
|
+
):
|
290
|
+
return base_model_from_args.model_validate(data)
|
279
291
|
else:
|
280
292
|
# If the origin is not a dictionary, return the data as is
|
281
293
|
return data
|
@@ -60,7 +60,6 @@ class ContractBaseClass(BaseModel):
|
|
60
60
|
"""
|
61
61
|
|
62
62
|
CHAIN_ID: t.ClassVar[ChainID]
|
63
|
-
CHAIN_RPC_URL: t.ClassVar[str]
|
64
63
|
|
65
64
|
abi: ABI
|
66
65
|
address: ChecksumAddress
|
@@ -165,7 +164,7 @@ class ContractBaseClass(BaseModel):
|
|
165
164
|
|
166
165
|
@classmethod
|
167
166
|
def get_web3(cls) -> Web3:
|
168
|
-
return
|
167
|
+
return RPCConfig().get_web3()
|
169
168
|
|
170
169
|
|
171
170
|
class ContractProxyBaseClass(ContractBaseClass):
|
@@ -501,7 +500,6 @@ class ContractOnGnosisChain(ContractBaseClass):
|
|
501
500
|
"""
|
502
501
|
|
503
502
|
CHAIN_ID = RPCConfig().chain_id
|
504
|
-
CHAIN_RPC_URL = RPCConfig().gnosis_rpc_url
|
505
503
|
|
506
504
|
|
507
505
|
class ContractProxyOnGnosisChain(ContractProxyBaseClass, ContractOnGnosisChain):
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|