prediction-market-agent-tooling 0.57.9__py3-none-any.whl → 0.57.9.dev241__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/tools/contract.py +15 -1
- {prediction_market_agent_tooling-0.57.9.dist-info → prediction_market_agent_tooling-0.57.9.dev241.dist-info}/METADATA +2 -2
- {prediction_market_agent_tooling-0.57.9.dist-info → prediction_market_agent_tooling-0.57.9.dev241.dist-info}/RECORD +6 -6
- {prediction_market_agent_tooling-0.57.9.dist-info → prediction_market_agent_tooling-0.57.9.dev241.dist-info}/WHEEL +1 -1
- {prediction_market_agent_tooling-0.57.9.dist-info → prediction_market_agent_tooling-0.57.9.dev241.dist-info}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.57.9.dist-info → prediction_market_agent_tooling-0.57.9.dev241.dist-info}/entry_points.txt +0 -0
@@ -17,14 +17,20 @@ from prediction_market_agent_tooling.gtypes import (
|
|
17
17
|
TxParams,
|
18
18
|
TxReceipt,
|
19
19
|
Wei,
|
20
|
+
xDai,
|
20
21
|
)
|
21
22
|
from prediction_market_agent_tooling.tools.data_models import MessageContainer
|
22
23
|
from prediction_market_agent_tooling.tools.hexbytes_custom import HexBytes
|
23
|
-
from prediction_market_agent_tooling.tools.utils import
|
24
|
+
from prediction_market_agent_tooling.tools.utils import (
|
25
|
+
BPS_CONSTANT,
|
26
|
+
DatetimeUTC,
|
27
|
+
should_not_happen,
|
28
|
+
)
|
24
29
|
from prediction_market_agent_tooling.tools.web3_utils import (
|
25
30
|
call_function_on_contract,
|
26
31
|
send_function_on_contract_tx,
|
27
32
|
send_function_on_contract_tx_using_safe,
|
33
|
+
wei_to_xdai,
|
28
34
|
)
|
29
35
|
|
30
36
|
|
@@ -548,6 +554,14 @@ class AgentCommunicationContract(ContractOnGnosisChain):
|
|
548
554
|
"0xd422e0059ed819e8d792af936da206878188e34f"
|
549
555
|
)
|
550
556
|
|
557
|
+
def minimum_message_value(self, web3: Web3 | None = None) -> xDai:
|
558
|
+
value: Wei = self.call("minimumValueForSendingMessageInWei", web3=web3)
|
559
|
+
return wei_to_xdai(value)
|
560
|
+
|
561
|
+
def ratio_given_to_treasury(self, web3: Web3 | None = None) -> float:
|
562
|
+
bps: int = self.call("pctToTreasuryInBasisPoints", web3=web3)
|
563
|
+
return bps / BPS_CONSTANT
|
564
|
+
|
551
565
|
def count_unseen_messages(
|
552
566
|
self,
|
553
567
|
agent_address: ChecksumAddress,
|
@@ -77,7 +77,7 @@ prediction_market_agent_tooling/tools/betting_strategies/utils.py,sha256=kpIb-ci
|
|
77
77
|
prediction_market_agent_tooling/tools/caches/db_cache.py,sha256=aafau_n_AUbLIwkyIRiTPgKB0dmM0767mSqyPDLF2A4,10576
|
78
78
|
prediction_market_agent_tooling/tools/caches/inmemory_cache.py,sha256=ZW5iI5rmjqeAebu5T7ftRnlkxiL02IC-MxCfDB80x7w,1506
|
79
79
|
prediction_market_agent_tooling/tools/caches/serializers.py,sha256=upSXN5__rmRlzJ6tv1h7FodKzJu9eCkFrN_zeuwroJM,2151
|
80
|
-
prediction_market_agent_tooling/tools/contract.py,sha256=
|
80
|
+
prediction_market_agent_tooling/tools/contract.py,sha256=MOQKjg9tZMtk5YiLfFLbKyZDZ9y7dAoJ3kHXryVM_bU,26219
|
81
81
|
prediction_market_agent_tooling/tools/costs.py,sha256=EaAJ7v9laD4VEV3d8B44M4u3_oEO_H16jRVCdoZ93Uw,954
|
82
82
|
prediction_market_agent_tooling/tools/custom_exceptions.py,sha256=Fh8z1fbwONvP4-j7AmV_PuEcoqb6-QXa9PJ9m7guMcM,93
|
83
83
|
prediction_market_agent_tooling/tools/data_models.py,sha256=jDQ7FU0QQhXlcgJh5VZZGwDTYP2OPAqKPHZFewCPAUY,732
|
@@ -106,8 +106,8 @@ prediction_market_agent_tooling/tools/tavily/tavily_search.py,sha256=Kw2mXNkMTYT
|
|
106
106
|
prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
|
107
107
|
prediction_market_agent_tooling/tools/utils.py,sha256=WvuUCHgMCiMq8_wMm5PHNwvLhcdDk2zGKaAM8OUC-qY,6438
|
108
108
|
prediction_market_agent_tooling/tools/web3_utils.py,sha256=wqUDCed3iNrn1Wao1iwGN6tzIrhpzrTRj319wlveJEo,12275
|
109
|
-
prediction_market_agent_tooling-0.57.9.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
|
110
|
-
prediction_market_agent_tooling-0.57.9.dist-info/METADATA,sha256=
|
111
|
-
prediction_market_agent_tooling-0.57.9.dist-info/WHEEL,sha256=
|
112
|
-
prediction_market_agent_tooling-0.57.9.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
|
113
|
-
prediction_market_agent_tooling-0.57.9.dist-info/RECORD,,
|
109
|
+
prediction_market_agent_tooling-0.57.9.dev241.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
|
110
|
+
prediction_market_agent_tooling-0.57.9.dev241.dist-info/METADATA,sha256=rTUe-FEDPd1k91pm3n2naz1w1eyY1U1kcvNwCXFHNio,8195
|
111
|
+
prediction_market_agent_tooling-0.57.9.dev241.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
112
|
+
prediction_market_agent_tooling-0.57.9.dev241.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
|
113
|
+
prediction_market_agent_tooling-0.57.9.dev241.dist-info/RECORD,,
|
File without changes
|