prediction-market-agent-tooling 0.63.10.dev566__py3-none-any.whl → 0.64.0__py3-none-any.whl
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/deploy/agent.py +1 -1
- prediction_market_agent_tooling/markets/omen/omen.py +1 -1
- prediction_market_agent_tooling/markets/omen/omen_contracts.py +18 -0
- prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py +10 -0
- {prediction_market_agent_tooling-0.63.10.dev566.dist-info → prediction_market_agent_tooling-0.64.0.dist-info}/METADATA +1 -1
- {prediction_market_agent_tooling-0.63.10.dev566.dist-info → prediction_market_agent_tooling-0.64.0.dist-info}/RECORD +9 -9
- {prediction_market_agent_tooling-0.63.10.dev566.dist-info → prediction_market_agent_tooling-0.64.0.dist-info}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.63.10.dev566.dist-info → prediction_market_agent_tooling-0.64.0.dist-info}/WHEEL +0 -0
- {prediction_market_agent_tooling-0.63.10.dev566.dist-info → prediction_market_agent_tooling-0.64.0.dist-info}/entry_points.txt +0 -0
| @@ -577,7 +577,7 @@ class DeployableTraderAgent(DeployablePredictionAgent): | |
| 577 577 |  | 
| 578 578 | 
             
                    if market.get_trade_balance(api_keys) < min_required_balance_to_trade:
         | 
| 579 579 | 
             
                        raise OutOfFundsError(
         | 
| 580 | 
            -
                            f"Minimum required balance {min_required_balance_to_trade} for agent is not met."
         | 
| 580 | 
            +
                            f"Minimum required balance {min_required_balance_to_trade} for agent {api_keys.bet_from_address=} is not met."
         | 
| 581 581 | 
             
                        )
         | 
| 582 582 |  | 
| 583 583 | 
             
                def get_betting_strategy(self, market: AgentMarket) -> BettingStrategy:
         | 
| @@ -1353,7 +1353,7 @@ def send_keeping_token_to_eoa_xdai( | |
| 1353 1353 |  | 
| 1354 1354 | 
             
                else:
         | 
| 1355 1355 | 
             
                    raise OutOfFundsError(
         | 
| 1356 | 
            -
                        f"Current wxDai balance ({current_balances_eoa=}, {current_balances_betting=}) is less than the required minimum wxDai to withdraw {need_to_withdraw}."
         | 
| 1356 | 
            +
                        f"Current wxDai balance ({current_balances_eoa=} for {api_keys.public_key=}, {current_balances_betting=} for {api_keys.bet_from_address=}) is less than the required minimum wxDai to withdraw {need_to_withdraw}."
         | 
| 1357 1357 | 
             
                    )
         | 
| 1358 1358 |  | 
| 1359 1359 |  | 
| @@ -435,6 +435,24 @@ class WETHContract(ContractERC20OnGnosisChain): | |
| 435 435 | 
             
                )
         | 
| 436 436 |  | 
| 437 437 |  | 
| 438 | 
            +
            class EUReContract(ContractERC20OnGnosisChain):
         | 
| 439 | 
            +
                address: ChecksumAddress = Web3.to_checksum_address(
         | 
| 440 | 
            +
                    "0xcB444e90D8198415266c6a2724b7900fb12FC56E"
         | 
| 441 | 
            +
                )
         | 
| 442 | 
            +
             | 
| 443 | 
            +
             | 
| 444 | 
            +
            class SAFEContract(ContractERC20OnGnosisChain):
         | 
| 445 | 
            +
                address: ChecksumAddress = Web3.to_checksum_address(
         | 
| 446 | 
            +
                    "0x4d18815D14fe5c3304e87B3FA18318baa5c23820"
         | 
| 447 | 
            +
                )
         | 
| 448 | 
            +
             | 
| 449 | 
            +
             | 
| 450 | 
            +
            class COWContract(ContractERC20OnGnosisChain):
         | 
| 451 | 
            +
                address: ChecksumAddress = Web3.to_checksum_address(
         | 
| 452 | 
            +
                    "0x177127622c4A00F3d409B75571e12cB3c8973d3c"
         | 
| 453 | 
            +
                )
         | 
| 454 | 
            +
             | 
| 455 | 
            +
             | 
| 438 456 | 
             
            class WrappedxDaiContract(ContractDepositableWrapperERC20OnGnosisChain):
         | 
| 439 457 | 
             
                address: ChecksumAddress = WRAPPED_XDAI_CONTRACT_ADDRESS
         | 
| 440 458 |  | 
| @@ -30,7 +30,12 @@ from prediction_market_agent_tooling.markets.omen.data_models import ( | |
| 30 30 | 
             
                RealityResponse,
         | 
| 31 31 | 
             
            )
         | 
| 32 32 | 
             
            from prediction_market_agent_tooling.markets.omen.omen_contracts import (
         | 
| 33 | 
            +
                COWContract,
         | 
| 34 | 
            +
                EUReContract,
         | 
| 35 | 
            +
                GNOContract,
         | 
| 33 36 | 
             
                OmenThumbnailMapping,
         | 
| 37 | 
            +
                SAFEContract,
         | 
| 38 | 
            +
                WETHContract,
         | 
| 34 39 | 
             
                WrappedxDaiContract,
         | 
| 35 40 | 
             
                sDaiContract,
         | 
| 36 41 | 
             
            )
         | 
| @@ -51,6 +56,11 @@ from prediction_market_agent_tooling.tools.web3_utils import ( | |
| 51 56 | 
             
            SAFE_COLLATERAL_TOKENS = (
         | 
| 52 57 | 
             
                WrappedxDaiContract(),
         | 
| 53 58 | 
             
                sDaiContract(),
         | 
| 59 | 
            +
                GNOContract(),
         | 
| 60 | 
            +
                WETHContract(),
         | 
| 61 | 
            +
                EUReContract(),
         | 
| 62 | 
            +
                SAFEContract(),
         | 
| 63 | 
            +
                COWContract(),
         | 
| 54 64 | 
             
            )
         | 
| 55 65 | 
             
            SAFE_COLLATERAL_TOKENS_ADDRESSES = tuple(
         | 
| 56 66 | 
             
                contract.address for contract in SAFE_COLLATERAL_TOKENS
         | 
| @@ -23,7 +23,7 @@ prediction_market_agent_tooling/benchmark/agents.py,sha256=B1-uWdyeN4GGKMWGK_-Cc | |
| 23 23 | 
             
            prediction_market_agent_tooling/benchmark/benchmark.py,sha256=MqTiaaJ3cYiOLUVR7OyImLWxcEya3Rl5JyFYW-K0lwM,17097
         | 
| 24 24 | 
             
            prediction_market_agent_tooling/benchmark/utils.py,sha256=D0MfUkVZllmvcU0VOurk9tcKT7JTtwwOp-63zuCBVuc,2880
         | 
| 25 25 | 
             
            prediction_market_agent_tooling/config.py,sha256=QWybGq-DfjlRKG2G4l_4kJEyH3pmUvmcw4n2d2-z3eQ,10183
         | 
| 26 | 
            -
            prediction_market_agent_tooling/deploy/agent.py,sha256= | 
| 26 | 
            +
            prediction_market_agent_tooling/deploy/agent.py,sha256=dobqPUQkaDPhsvMmXwibNKu4hSSTXTvmfa3F46ylLBc,26560
         | 
| 27 27 | 
             
            prediction_market_agent_tooling/deploy/agent_example.py,sha256=dIIdZashExWk9tOdyDjw87AuUcGyM7jYxNChYrVK2dM,1001
         | 
| 28 28 | 
             
            prediction_market_agent_tooling/deploy/betting_strategy.py,sha256=p25t7VU7I4hSkSl6SpzI_W55kLbYEySQdBqeschmARY,12918
         | 
| 29 29 | 
             
            prediction_market_agent_tooling/deploy/constants.py,sha256=M5ty8URipYMGe_G-RzxRydK3AFL6CyvmqCraJUrLBnE,82
         | 
| @@ -54,11 +54,11 @@ prediction_market_agent_tooling/markets/metaculus/metaculus.py,sha256=86TIx6cavE | |
| 54 54 | 
             
            prediction_market_agent_tooling/markets/omen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
         | 
| 55 55 | 
             
            prediction_market_agent_tooling/markets/omen/cow_contracts.py,sha256=sl1L4cK5nAJwZ2wdhLzqh8p7h_IEValNvLwKUlInKxw,957
         | 
| 56 56 | 
             
            prediction_market_agent_tooling/markets/omen/data_models.py,sha256=dtWbRy9tpasssQP80ZFYxAc_9pnVD-zUpVjenBqurnA,30221
         | 
| 57 | 
            -
            prediction_market_agent_tooling/markets/omen/omen.py,sha256= | 
| 57 | 
            +
            prediction_market_agent_tooling/markets/omen/omen.py,sha256=BvTFQ9MZqo9q0wEaE2TzsZ8Q_yPGIZQehehnDIJ3id0,51987
         | 
| 58 58 | 
             
            prediction_market_agent_tooling/markets/omen/omen_constants.py,sha256=D9oflYKafLQiHYtB5sScMHqmXyzM8JP8J0yATmc4SQQ,233
         | 
| 59 | 
            -
            prediction_market_agent_tooling/markets/omen/omen_contracts.py,sha256= | 
| 59 | 
            +
            prediction_market_agent_tooling/markets/omen/omen_contracts.py,sha256=H7jFVLcdbxq6gxWS77YzBFHLnfaItU6MXXVzPzDCkwM,29236
         | 
| 60 60 | 
             
            prediction_market_agent_tooling/markets/omen/omen_resolving.py,sha256=Cyi9Ci-Z-K8WCZWVLs9oSuJC6qRobi_CpqDCno_5F-0,10238
         | 
| 61 | 
            -
            prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py,sha256= | 
| 61 | 
            +
            prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py,sha256=vwjAsxgBvIxzlYealHJIzEC6Q6hFv6qKssJ8PrsgoFs,39203
         | 
| 62 62 | 
             
            prediction_market_agent_tooling/markets/polymarket/api.py,sha256=UZ4_TG8ceb9Y-qgsOKs8Qiv8zDt957QkT8IX2c83yqo,4800
         | 
| 63 63 | 
             
            prediction_market_agent_tooling/markets/polymarket/data_models.py,sha256=utGN-Lhjsa-RHX5WW_jcqgWXtRkEZn0JemwYZkt3Lng,4344
         | 
| 64 64 | 
             
            prediction_market_agent_tooling/markets/polymarket/data_models_web.py,sha256=LVEsNw2nUx5poiU1m803NNqG5-fs8-MODQRyGLqy4mE,12585
         | 
| @@ -124,8 +124,8 @@ prediction_market_agent_tooling/tools/tokens/usd.py,sha256=yuW8iPPtcpP4eLH2nORMD | |
| 124 124 | 
             
            prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
         | 
| 125 125 | 
             
            prediction_market_agent_tooling/tools/utils.py,sha256=AC2a68jwASMWuQi-w8twl8b_M52YwrEJ81abmuEaqMY,6661
         | 
| 126 126 | 
             
            prediction_market_agent_tooling/tools/web3_utils.py,sha256=zRq-eeBGWt8uUGN9G_WfjmJ0eVvO8aWE9S0Pz_Y6AOA,12342
         | 
| 127 | 
            -
            prediction_market_agent_tooling-0. | 
| 128 | 
            -
            prediction_market_agent_tooling-0. | 
| 129 | 
            -
            prediction_market_agent_tooling-0. | 
| 130 | 
            -
            prediction_market_agent_tooling-0. | 
| 131 | 
            -
            prediction_market_agent_tooling-0. | 
| 127 | 
            +
            prediction_market_agent_tooling-0.64.0.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
         | 
| 128 | 
            +
            prediction_market_agent_tooling-0.64.0.dist-info/METADATA,sha256=KnjNTkpA-CeHrfoyRAXM5nEXMLYvXa-H24R0hBeV1Gk,8690
         | 
| 129 | 
            +
            prediction_market_agent_tooling-0.64.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
         | 
| 130 | 
            +
            prediction_market_agent_tooling-0.64.0.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
         | 
| 131 | 
            +
            prediction_market_agent_tooling-0.64.0.dist-info/RECORD,,
         | 
| 
            File without changes
         | 
| 
            File without changes
         |