prediction-market-agent-tooling 0.57.3__py3-none-any.whl → 0.57.5__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/web3_utils.py +10 -0
- {prediction_market_agent_tooling-0.57.3.dist-info → prediction_market_agent_tooling-0.57.5.dist-info}/METADATA +1 -1
- {prediction_market_agent_tooling-0.57.3.dist-info → prediction_market_agent_tooling-0.57.5.dist-info}/RECORD +6 -6
- {prediction_market_agent_tooling-0.57.3.dist-info → prediction_market_agent_tooling-0.57.5.dist-info}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.57.3.dist-info → prediction_market_agent_tooling-0.57.5.dist-info}/WHEEL +0 -0
- {prediction_market_agent_tooling-0.57.3.dist-info → prediction_market_agent_tooling-0.57.5.dist-info}/entry_points.txt +0 -0
@@ -153,6 +153,9 @@ def _prepare_tx_params(
|
|
153
153
|
from_checksummed = Web3.to_checksum_address(tx_params_new["from"])
|
154
154
|
tx_params_new["nonce"] = web3.eth.get_transaction_count(from_checksummed)
|
155
155
|
|
156
|
+
if not tx_params_new.get("chainId"):
|
157
|
+
tx_params_new["chainId"] = web3.eth.chain_id
|
158
|
+
|
156
159
|
if access_list is not None:
|
157
160
|
tx_params_new["accessList"] = access_list
|
158
161
|
|
@@ -297,12 +300,19 @@ def send_xdai_to(
|
|
297
300
|
from_private_key: PrivateKey,
|
298
301
|
to_address: ChecksumAddress,
|
299
302
|
value: Wei,
|
303
|
+
data_text: Optional[str | bytes] = None,
|
300
304
|
tx_params: Optional[TxParams] = None,
|
301
305
|
timeout: int = 180,
|
302
306
|
) -> TxReceipt:
|
303
307
|
from_address = private_key_to_public_key(from_private_key)
|
304
308
|
|
305
309
|
tx_params_new: TxParams = {"value": value, "to": to_address}
|
310
|
+
if data_text is not None:
|
311
|
+
tx_params_new["data"] = (
|
312
|
+
Web3.to_bytes(text=data_text)
|
313
|
+
if not isinstance(data_text, bytes)
|
314
|
+
else data_text
|
315
|
+
)
|
306
316
|
if tx_params:
|
307
317
|
tx_params_new.update(tx_params)
|
308
318
|
tx_params_new = _prepare_tx_params(web3, from_address, tx_params=tx_params_new)
|
@@ -102,9 +102,9 @@ prediction_market_agent_tooling/tools/tavily/tavily_models.py,sha256=5ldQs1pZe6u
|
|
102
102
|
prediction_market_agent_tooling/tools/tavily/tavily_search.py,sha256=Kw2mXNkMTYTEe1MBSTqhQmLoeXtgb6CkmHlcAJvhtqE,3809
|
103
103
|
prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
|
104
104
|
prediction_market_agent_tooling/tools/utils.py,sha256=WvuUCHgMCiMq8_wMm5PHNwvLhcdDk2zGKaAM8OUC-qY,6438
|
105
|
-
prediction_market_agent_tooling/tools/web3_utils.py,sha256=
|
106
|
-
prediction_market_agent_tooling-0.57.
|
107
|
-
prediction_market_agent_tooling-0.57.
|
108
|
-
prediction_market_agent_tooling-0.57.
|
109
|
-
prediction_market_agent_tooling-0.57.
|
110
|
-
prediction_market_agent_tooling-0.57.
|
105
|
+
prediction_market_agent_tooling/tools/web3_utils.py,sha256=wqUDCed3iNrn1Wao1iwGN6tzIrhpzrTRj319wlveJEo,12275
|
106
|
+
prediction_market_agent_tooling-0.57.5.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
|
107
|
+
prediction_market_agent_tooling-0.57.5.dist-info/METADATA,sha256=8JZTLAK8U4eyDS_1WHLLvRQ5IY1132xNLFKs3MzbSHE,8188
|
108
|
+
prediction_market_agent_tooling-0.57.5.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
109
|
+
prediction_market_agent_tooling-0.57.5.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
|
110
|
+
prediction_market_agent_tooling-0.57.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|