prediction-market-agent-tooling 0.63.10.dev565__py3-none-any.whl → 0.63.10.dev566__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.
@@ -0,0 +1,34 @@
1
+ import os
2
+
3
+ from web3 import Web3
4
+
5
+ from prediction_market_agent_tooling.config import APIKeys
6
+ from prediction_market_agent_tooling.gtypes import ABI, HexBytes
7
+ from prediction_market_agent_tooling.tools.contract import (
8
+ ContractOnGnosisChain,
9
+ abi_field_validator,
10
+ )
11
+
12
+
13
+ class CowGPv2SettlementContract(ContractOnGnosisChain):
14
+ # Contract ABI taken from https://github.com/cowprotocol/cow-sdk/blob/main/abi/GPv2Settlement.json.
15
+ abi: ABI = abi_field_validator(
16
+ os.path.join(
17
+ os.path.dirname(os.path.realpath(__file__)),
18
+ "../../abis/gvp2_settlement.abi.json",
19
+ )
20
+ )
21
+
22
+ def setPreSignature(
23
+ self,
24
+ api_keys: APIKeys,
25
+ orderId: HexBytes,
26
+ signed: bool,
27
+ web3: Web3 | None = None,
28
+ ) -> None:
29
+ self.send(
30
+ api_keys=api_keys,
31
+ function_name="setPreSignature",
32
+ function_params=[orderId, signed],
33
+ web3=web3,
34
+ )
@@ -893,30 +893,6 @@ class OmenThumbnailMapping(ContractOnGnosisChain):
893
893
  )
894
894
 
895
895
 
896
- class CowGPv2SettlementContract(ContractOnGnosisChain):
897
- # Contract ABI taken from https://github.com/cowprotocol/cow-sdk/blob/main/abi/GPv2Settlement.json.
898
- abi: ABI = abi_field_validator(
899
- os.path.join(
900
- os.path.dirname(os.path.realpath(__file__)),
901
- "../../abis/gvp2_settlement.abi.json",
902
- )
903
- )
904
-
905
- def setPreSignature(
906
- self,
907
- api_keys: APIKeys,
908
- orderId: HexBytes,
909
- signed: bool,
910
- web3: Web3 | None = None,
911
- ) -> None:
912
- self.send(
913
- api_keys=api_keys,
914
- function_name="setPreSignature",
915
- function_params=[orderId, signed],
916
- web3=web3,
917
- )
918
-
919
-
920
896
  class CollateralTokenChoice(str, Enum):
921
897
  wxdai = "wxdai"
922
898
  sdai = "sdai"
@@ -30,7 +30,7 @@ from web3 import Web3
30
30
  from prediction_market_agent_tooling.config import APIKeys
31
31
  from prediction_market_agent_tooling.gtypes import ChecksumAddress, HexBytes, Wei
32
32
  from prediction_market_agent_tooling.loggers import logger
33
- from prediction_market_agent_tooling.markets.omen.omen_contracts import (
33
+ from prediction_market_agent_tooling.markets.omen.cow_contracts import (
34
34
  CowGPv2SettlementContract,
35
35
  )
36
36
  from prediction_market_agent_tooling.tools.contract import ContractERC20OnGnosisChain
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.63.10.dev565
3
+ Version: 0.63.10.dev566
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.13
@@ -52,10 +52,11 @@ prediction_market_agent_tooling/markets/metaculus/api.py,sha256=4TRPGytQQbSdf42D
52
52
  prediction_market_agent_tooling/markets/metaculus/data_models.py,sha256=FaBCTPPezXbBwZ9p791CiVgQ4vB696xnMbz9XVXmiVI,3267
53
53
  prediction_market_agent_tooling/markets/metaculus/metaculus.py,sha256=86TIx6cavEWc8Cv4KpZxSvwiSw9oFybXE3YB49pg-CA,4377
54
54
  prediction_market_agent_tooling/markets/omen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
+ prediction_market_agent_tooling/markets/omen/cow_contracts.py,sha256=sl1L4cK5nAJwZ2wdhLzqh8p7h_IEValNvLwKUlInKxw,957
55
56
  prediction_market_agent_tooling/markets/omen/data_models.py,sha256=dtWbRy9tpasssQP80ZFYxAc_9pnVD-zUpVjenBqurnA,30221
56
57
  prediction_market_agent_tooling/markets/omen/omen.py,sha256=Jf2qSJJn0UUISpi24xYRwoVycGuYE42kZ2z1HRGl43w,51927
57
58
  prediction_market_agent_tooling/markets/omen/omen_constants.py,sha256=D9oflYKafLQiHYtB5sScMHqmXyzM8JP8J0yATmc4SQQ,233
58
- prediction_market_agent_tooling/markets/omen/omen_contracts.py,sha256=aBhOKild5Ly8SylmvmuEglSbwpJRyod6mkXz41YDuS8,29423
59
+ prediction_market_agent_tooling/markets/omen/omen_contracts.py,sha256=bCC9A7ZTJxMDJcPbl3jof6HcAGGHv1BrFq3RRWbkQ_c,28739
59
60
  prediction_market_agent_tooling/markets/omen/omen_resolving.py,sha256=Cyi9Ci-Z-K8WCZWVLs9oSuJC6qRobi_CpqDCno_5F-0,10238
60
61
  prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py,sha256=6N6RJ-noC7gkoDBeYdBSXp1QI3u4iftBLu8Dtew9yU4,39017
61
62
  prediction_market_agent_tooling/markets/polymarket/api.py,sha256=UZ4_TG8ceb9Y-qgsOKs8Qiv8zDt957QkT8IX2c83yqo,4800
@@ -90,7 +91,7 @@ prediction_market_agent_tooling/tools/caches/inmemory_cache.py,sha256=ZW5iI5rmjq
90
91
  prediction_market_agent_tooling/tools/caches/serializers.py,sha256=vFDx4fsPxclXp2q0sv27j4al_M_Tj9aR2JJP-xNHQXA,2151
91
92
  prediction_market_agent_tooling/tools/contract.py,sha256=1ZFp_VoqTjM8cqOfAhco2Ht0DTqakjhZpuZUrAXr28Q,21332
92
93
  prediction_market_agent_tooling/tools/costs.py,sha256=EaAJ7v9laD4VEV3d8B44M4u3_oEO_H16jRVCdoZ93Uw,954
93
- prediction_market_agent_tooling/tools/cow/cow_order.py,sha256=nERAci2yNnpCLvotBl9B8gCOeZR058dCa4YwhUcK0PQ,8798
94
+ prediction_market_agent_tooling/tools/cow/cow_order.py,sha256=gakwBMVD287v4FrgJC-qwpc5zZHu9yLfTzcmhht-BXA,8797
94
95
  prediction_market_agent_tooling/tools/custom_exceptions.py,sha256=Fh8z1fbwONvP4-j7AmV_PuEcoqb6-QXa9PJ9m7guMcM,93
95
96
  prediction_market_agent_tooling/tools/datetime_utc.py,sha256=8_WackjtjC8zHXrhQFTGQ6e6Fz_6llWoKR4CSFvIv9I,2766
96
97
  prediction_market_agent_tooling/tools/db/db_manager.py,sha256=GtzHH1NLl8HwqC8Z7s6eTlIQXuV0blxfaV2PeQrBnfQ,3013
@@ -123,8 +124,8 @@ prediction_market_agent_tooling/tools/tokens/usd.py,sha256=yuW8iPPtcpP4eLH2nORMD
123
124
  prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
124
125
  prediction_market_agent_tooling/tools/utils.py,sha256=AC2a68jwASMWuQi-w8twl8b_M52YwrEJ81abmuEaqMY,6661
125
126
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=zRq-eeBGWt8uUGN9G_WfjmJ0eVvO8aWE9S0Pz_Y6AOA,12342
126
- prediction_market_agent_tooling-0.63.10.dev565.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
127
- prediction_market_agent_tooling-0.63.10.dev565.dist-info/METADATA,sha256=YMqiprzCES9UDZBzP6wIBYJbSO8sWrdYsaMOAaJze8w,8698
128
- prediction_market_agent_tooling-0.63.10.dev565.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
129
- prediction_market_agent_tooling-0.63.10.dev565.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
130
- prediction_market_agent_tooling-0.63.10.dev565.dist-info/RECORD,,
127
+ prediction_market_agent_tooling-0.63.10.dev566.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
128
+ prediction_market_agent_tooling-0.63.10.dev566.dist-info/METADATA,sha256=g4ONjybn7fFmipE1kk65OoW16MeIhsy8l3GmKOubu5U,8698
129
+ prediction_market_agent_tooling-0.63.10.dev566.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
130
+ prediction_market_agent_tooling-0.63.10.dev566.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
131
+ prediction_market_agent_tooling-0.63.10.dev566.dist-info/RECORD,,