prediction-market-agent-tooling 0.57.9.dev240__py3-none-any.whl → 0.57.10.dev242__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 +9 -1
- {prediction_market_agent_tooling-0.57.9.dev240.dist-info → prediction_market_agent_tooling-0.57.10.dev242.dist-info}/METADATA +1 -1
- {prediction_market_agent_tooling-0.57.9.dev240.dist-info → prediction_market_agent_tooling-0.57.10.dev242.dist-info}/RECORD +6 -6
- {prediction_market_agent_tooling-0.57.9.dev240.dist-info → prediction_market_agent_tooling-0.57.10.dev242.dist-info}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.57.9.dev240.dist-info → prediction_market_agent_tooling-0.57.10.dev242.dist-info}/WHEEL +0 -0
- {prediction_market_agent_tooling-0.57.9.dev240.dist-info → prediction_market_agent_tooling-0.57.10.dev242.dist-info}/entry_points.txt +0 -0
@@ -17,6 +17,7 @@ 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
|
@@ -29,6 +30,7 @@ from prediction_market_agent_tooling.tools.web3_utils import (
|
|
29
30
|
call_function_on_contract,
|
30
31
|
send_function_on_contract_tx,
|
31
32
|
send_function_on_contract_tx_using_safe,
|
33
|
+
wei_to_xdai,
|
32
34
|
)
|
33
35
|
|
34
36
|
|
@@ -70,7 +72,9 @@ class ContractBaseClass(BaseModel):
|
|
70
72
|
address: ChecksumAddress
|
71
73
|
|
72
74
|
_abi_field_validator = field_validator("abi", mode="before")(abi_field_validator)
|
73
|
-
_cache: dict[
|
75
|
+
_cache: dict[
|
76
|
+
str, t.Any
|
77
|
+
] = (
|
74
78
|
{}
|
75
79
|
) # Can be used to hold values that aren't going to change after getting them for the first time, as for example `symbol` of an ERC-20 token.
|
76
80
|
|
@@ -550,6 +554,10 @@ class AgentCommunicationContract(ContractOnGnosisChain):
|
|
550
554
|
"0xd422e0059ed819e8d792af936da206878188e34f"
|
551
555
|
)
|
552
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
|
+
|
553
561
|
def ratio_given_to_treasury(self, web3: Web3 | None = None) -> float:
|
554
562
|
bps: int = self.call("pctToTreasuryInBasisPoints", web3=web3)
|
555
563
|
return bps / BPS_CONSTANT
|
@@ -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.
|
110
|
-
prediction_market_agent_tooling-0.57.
|
111
|
-
prediction_market_agent_tooling-0.57.
|
112
|
-
prediction_market_agent_tooling-0.57.
|
113
|
-
prediction_market_agent_tooling-0.57.
|
109
|
+
prediction_market_agent_tooling-0.57.10.dev242.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
|
110
|
+
prediction_market_agent_tooling-0.57.10.dev242.dist-info/METADATA,sha256=R_3HgkpH5X7Qg0zWuWbILUYReRcGLQkH25JEDbWk79Q,8196
|
111
|
+
prediction_market_agent_tooling-0.57.10.dev242.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
112
|
+
prediction_market_agent_tooling-0.57.10.dev242.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
|
113
|
+
prediction_market_agent_tooling-0.57.10.dev242.dist-info/RECORD,,
|
File without changes
|
File without changes
|