prediction-market-agent-tooling 0.60.0.dev409__py3-none-any.whl → 0.60.0.dev411__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.
@@ -408,8 +408,12 @@ class OmenAgentMarket(AgentMarket):
408
408
 
409
409
  @staticmethod
410
410
  def get_trade_balance(api_keys: APIKeys, web3: Web3 | None = None) -> xDai:
411
- return wei_to_xdai(
412
- KEEPING_ERC20_TOKEN.balanceOf(api_keys.bet_from_address, web3=web3)
411
+ native_token_balance = get_balances(api_keys.public_key, web3=web3).xdai
412
+ return xdai_type(
413
+ wei_to_xdai(
414
+ KEEPING_ERC20_TOKEN.balanceOf(api_keys.bet_from_address, web3=web3)
415
+ )
416
+ + native_token_balance
413
417
  )
414
418
 
415
419
  @staticmethod
@@ -7,7 +7,9 @@ from prediction_market_agent_tooling.tools.contract import (
7
7
 
8
8
  # This is the token where agents will hold their funds,
9
9
  # except for a small portion that will be kept in the native token of the network to pay for the fees.
10
+ # Auto deposit must work from native token into this token.
10
11
  # If changed, then keep in mind that we assume this token is equal to 1 USD.
12
+ # Also if changed, `withdraw_wxdai_to_xdai_to_keep_balance` will require update.
11
13
  KEEPING_ERC20_TOKEN = ContractDepositableWrapperERC20OnGnosisChain(
12
14
  address=WRAPPED_XDAI_CONTRACT_ADDRESS
13
15
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.60.0.dev409
3
+ Version: 0.60.0.dev411
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.13
@@ -51,7 +51,7 @@ prediction_market_agent_tooling/markets/metaculus/data_models.py,sha256=FaBCTPPe
51
51
  prediction_market_agent_tooling/markets/metaculus/metaculus.py,sha256=86TIx6cavEWc8Cv4KpZxSvwiSw9oFybXE3YB49pg-CA,4377
52
52
  prediction_market_agent_tooling/markets/omen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  prediction_market_agent_tooling/markets/omen/data_models.py,sha256=sfaOpNk6oFIzxYQzs9EehqAT_19IxYJy9pns-UTepOc,28934
54
- prediction_market_agent_tooling/markets/omen/omen.py,sha256=7XOcjzuzX4vJUVr-M2yp1Diq8MaURFsC_8syhdpZbGg,51460
54
+ prediction_market_agent_tooling/markets/omen/omen.py,sha256=WImTOfqfLsWEJHWxwWiBjor4jcHvafTmclhgeAcuZrg,51617
55
55
  prediction_market_agent_tooling/markets/omen/omen_constants.py,sha256=D9oflYKafLQiHYtB5sScMHqmXyzM8JP8J0yATmc4SQQ,233
56
56
  prediction_market_agent_tooling/markets/omen/omen_contracts.py,sha256=EXqBlVivbmW8aBQ65O09X2xkyesHAop49GUl1tUffWA,28648
57
57
  prediction_market_agent_tooling/markets/omen/omen_resolving.py,sha256=E1BVDvQd1qYtCxmfC94kJtGkmQqpGPHL3zTkcs5wW6M,9697
@@ -113,12 +113,12 @@ prediction_market_agent_tooling/tools/tavily/tavily_models.py,sha256=5ldQs1pZe6u
113
113
  prediction_market_agent_tooling/tools/tavily/tavily_search.py,sha256=Kw2mXNkMTYTEe1MBSTqhQmLoeXtgb6CkmHlcAJvhtqE,3809
114
114
  prediction_market_agent_tooling/tools/tokens/auto_deposit.py,sha256=o8_ERfPL-ps9FLvH5vgdiSRJQ4dZONJw9KK9sHgeP2I,6390
115
115
  prediction_market_agent_tooling/tools/tokens/auto_withdraw.py,sha256=gOvfZlrw6hdpYquGKLjMw-YpjAvWHnyGa-ke0Z6GIzU,3150
116
- prediction_market_agent_tooling/tools/tokens/main_token.py,sha256=5iHO7-iehSlXuue6ocVrr4IsklVjm7QHIwln4BsebJA,573
116
+ prediction_market_agent_tooling/tools/tokens/main_token.py,sha256=v5PfD2m9m92bJpK-k8ww6yDO7dwpchFtQ1BJRgi8rhs,714
117
117
  prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
118
118
  prediction_market_agent_tooling/tools/utils.py,sha256=jLG4nbEoIzzJiZ4RgMx4Q969Zdl0p0s63p8uET_0Fuw,6440
119
119
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=2PXZfGRrDVZD60agVpBN4JkOF0YsNBXgTEH1y-V71uQ,12723
120
- prediction_market_agent_tooling-0.60.0.dev409.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
121
- prediction_market_agent_tooling-0.60.0.dev409.dist-info/METADATA,sha256=-boG-KrcVOLwQMTizb8MUHUPznn1y5iLEhQgx9Hxvo0,8636
122
- prediction_market_agent_tooling-0.60.0.dev409.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
123
- prediction_market_agent_tooling-0.60.0.dev409.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
124
- prediction_market_agent_tooling-0.60.0.dev409.dist-info/RECORD,,
120
+ prediction_market_agent_tooling-0.60.0.dev411.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
121
+ prediction_market_agent_tooling-0.60.0.dev411.dist-info/METADATA,sha256=xWyT-Hk2XabfoQDMmGASUG2wSlZ_-PDDpa2B14CridU,8636
122
+ prediction_market_agent_tooling-0.60.0.dev411.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
123
+ prediction_market_agent_tooling-0.60.0.dev411.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
124
+ prediction_market_agent_tooling-0.60.0.dev411.dist-info/RECORD,,