prediction-market-agent-tooling 0.57.11.dev247__tar.gz → 0.57.11.dev255__tar.gz
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-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/PKG-INFO +1 -1
- prediction_market_agent_tooling-0.57.11.dev255/prediction_market_agent_tooling/abis/agentcommunication.abi.json +341 -0
- prediction_market_agent_tooling-0.57.11.dev255/prediction_market_agent_tooling/abis/simpletreasury.abi.json +156 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/contract.py +85 -4
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/pyproject.toml +1 -1
- prediction_market_agent_tooling-0.57.11.dev247/prediction_market_agent_tooling/abis/agentcommunication.abi.json +0 -328
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/README.md +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/abis/debuggingcontract.abi.json +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/abis/depositablewrapper_erc20.abi.json +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/abis/erc20.abi.json +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/abis/erc4626.abi.json +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/abis/omen_agentresultmapping.abi.json +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/abis/omen_dxdao.abi.json +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/abis/omen_fpmm.abi.json +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/abis/omen_fpmm_conditionaltokens.abi.json +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/abis/omen_fpmm_factory.abi.json +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/abis/omen_kleros.abi.json +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/abis/omen_oracle.abi.json +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/abis/omen_realitio.abi.json +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/abis/omen_thumbnailmapping.abi.json +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/abis/ownable_erc721.abi.json +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/abis/proxy.abi.json +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/benchmark/__init__.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/benchmark/agents.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/benchmark/benchmark.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/benchmark/utils.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/config.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/deploy/agent.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/deploy/agent_example.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/deploy/betting_strategy.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/deploy/constants.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/deploy/gcp/deploy.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/deploy/gcp/kubernetes_models.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/deploy/gcp/utils.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/deploy/trade_interval.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/gtypes.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/jobs/__init__.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/jobs/jobs_models.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/jobs/omen/omen_jobs.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/loggers.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/agent_market.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/base_subgraph_handler.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/categorize.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/data_models.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/manifold/__init__.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/manifold/api.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/manifold/data_models.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/manifold/manifold.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/manifold/utils.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/market_fees.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/markets.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/metaculus/api.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/metaculus/data_models.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/metaculus/metaculus.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/omen/__init__.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/omen/data_models.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/omen/omen.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/omen/omen_contracts.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/omen/omen_resolving.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/polymarket/api.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/polymarket/data_models.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/polymarket/data_models_web.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/polymarket/polymarket.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/polymarket/utils.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/seer/data_models.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/markets/seer/seer_subgraph_handler.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/monitor/financial_metrics/financial_metrics.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/monitor/markets/manifold.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/monitor/markets/metaculus.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/monitor/markets/omen.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/monitor/markets/polymarket.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/monitor/monitor.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/monitor/monitor_app.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/monitor/monitor_settings.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/py.typed +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/balances.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/betting_strategies/kelly_criterion.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/betting_strategies/market_moving.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/betting_strategies/minimum_bet_to_win.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/betting_strategies/stretch_bet_between.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/betting_strategies/utils.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/caches/db_cache.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/caches/inmemory_cache.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/caches/serializers.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/costs.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/custom_exceptions.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/data_models.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/datetime_utc.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/db/db_manager.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/google_utils.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/hexbytes_custom.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/httpx_cached_client.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/image_gen/image_gen.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/image_gen/market_thumbnail_gen.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/ipfs/ipfs_handler.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/is_invalid.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/is_predictable.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/langfuse_.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/langfuse_client_utils.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/omen/reality_accuracy.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/parallelism.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/relevant_news_analysis/data_models.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/relevant_news_analysis/relevant_news_analysis.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/relevant_news_analysis/relevant_news_cache.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/safe.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/singleton.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/streamlit_user_login.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/tavily/tavily_models.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/tavily/tavily_search.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/transaction_cache.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/utils.py +0 -0
- {prediction_market_agent_tooling-0.57.11.dev247 → prediction_market_agent_tooling-0.57.11.dev255}/prediction_market_agent_tooling/tools/web3_utils.py +0 -0
@@ -0,0 +1,341 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"inputs": [
|
4
|
+
{
|
5
|
+
"internalType": "address payable",
|
6
|
+
"name": "_treasury",
|
7
|
+
"type": "address"
|
8
|
+
},
|
9
|
+
{
|
10
|
+
"internalType": "uint256",
|
11
|
+
"name": "_pctToTreasuryInBasisPoints",
|
12
|
+
"type": "uint256"
|
13
|
+
}
|
14
|
+
],
|
15
|
+
"stateMutability": "nonpayable",
|
16
|
+
"type": "constructor"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"inputs": [],
|
20
|
+
"name": "MessageNotSentByAgent",
|
21
|
+
"type": "error"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"inputs": [
|
25
|
+
{
|
26
|
+
"internalType": "address",
|
27
|
+
"name": "owner",
|
28
|
+
"type": "address"
|
29
|
+
}
|
30
|
+
],
|
31
|
+
"name": "OwnableInvalidOwner",
|
32
|
+
"type": "error"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"inputs": [
|
36
|
+
{
|
37
|
+
"internalType": "address",
|
38
|
+
"name": "account",
|
39
|
+
"type": "address"
|
40
|
+
}
|
41
|
+
],
|
42
|
+
"name": "OwnableUnauthorizedAccount",
|
43
|
+
"type": "error"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"anonymous": false,
|
47
|
+
"inputs": [
|
48
|
+
{
|
49
|
+
"indexed": true,
|
50
|
+
"internalType": "address",
|
51
|
+
"name": "sender",
|
52
|
+
"type": "address"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"indexed": true,
|
56
|
+
"internalType": "address",
|
57
|
+
"name": "agentAddress",
|
58
|
+
"type": "address"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"indexed": false,
|
62
|
+
"internalType": "bytes",
|
63
|
+
"name": "message",
|
64
|
+
"type": "bytes"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"indexed": false,
|
68
|
+
"internalType": "uint256",
|
69
|
+
"name": "value",
|
70
|
+
"type": "uint256"
|
71
|
+
}
|
72
|
+
],
|
73
|
+
"name": "LogMessage",
|
74
|
+
"type": "event"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"anonymous": false,
|
78
|
+
"inputs": [
|
79
|
+
{
|
80
|
+
"indexed": true,
|
81
|
+
"internalType": "address",
|
82
|
+
"name": "previousOwner",
|
83
|
+
"type": "address"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"indexed": true,
|
87
|
+
"internalType": "address",
|
88
|
+
"name": "newOwner",
|
89
|
+
"type": "address"
|
90
|
+
}
|
91
|
+
],
|
92
|
+
"name": "OwnershipTransferred",
|
93
|
+
"type": "event"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"inputs": [
|
97
|
+
{
|
98
|
+
"internalType": "uint256",
|
99
|
+
"name": "newValue",
|
100
|
+
"type": "uint256"
|
101
|
+
}
|
102
|
+
],
|
103
|
+
"name": "adjustMinimumValueForSendingMessage",
|
104
|
+
"outputs": [],
|
105
|
+
"stateMutability": "nonpayable",
|
106
|
+
"type": "function"
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"inputs": [
|
110
|
+
{
|
111
|
+
"internalType": "address",
|
112
|
+
"name": "agentAddress",
|
113
|
+
"type": "address"
|
114
|
+
}
|
115
|
+
],
|
116
|
+
"name": "countMessages",
|
117
|
+
"outputs": [
|
118
|
+
{
|
119
|
+
"internalType": "uint256",
|
120
|
+
"name": "",
|
121
|
+
"type": "uint256"
|
122
|
+
}
|
123
|
+
],
|
124
|
+
"stateMutability": "view",
|
125
|
+
"type": "function"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"inputs": [
|
129
|
+
{
|
130
|
+
"internalType": "address",
|
131
|
+
"name": "agentAddress",
|
132
|
+
"type": "address"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"internalType": "uint256",
|
136
|
+
"name": "idx",
|
137
|
+
"type": "uint256"
|
138
|
+
}
|
139
|
+
],
|
140
|
+
"name": "getAtIndex",
|
141
|
+
"outputs": [
|
142
|
+
{
|
143
|
+
"components": [
|
144
|
+
{
|
145
|
+
"internalType": "address",
|
146
|
+
"name": "sender",
|
147
|
+
"type": "address"
|
148
|
+
},
|
149
|
+
{
|
150
|
+
"internalType": "address",
|
151
|
+
"name": "recipient",
|
152
|
+
"type": "address"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"internalType": "bytes",
|
156
|
+
"name": "message",
|
157
|
+
"type": "bytes"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"internalType": "uint256",
|
161
|
+
"name": "value",
|
162
|
+
"type": "uint256"
|
163
|
+
}
|
164
|
+
],
|
165
|
+
"internalType": "struct DoubleEndedStructQueue.MessageContainer",
|
166
|
+
"name": "",
|
167
|
+
"type": "tuple"
|
168
|
+
}
|
169
|
+
],
|
170
|
+
"stateMutability": "view",
|
171
|
+
"type": "function"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"inputs": [],
|
175
|
+
"name": "minimumValueForSendingMessageInWei",
|
176
|
+
"outputs": [
|
177
|
+
{
|
178
|
+
"internalType": "uint256",
|
179
|
+
"name": "",
|
180
|
+
"type": "uint256"
|
181
|
+
}
|
182
|
+
],
|
183
|
+
"stateMutability": "view",
|
184
|
+
"type": "function"
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"inputs": [],
|
188
|
+
"name": "owner",
|
189
|
+
"outputs": [
|
190
|
+
{
|
191
|
+
"internalType": "address",
|
192
|
+
"name": "",
|
193
|
+
"type": "address"
|
194
|
+
}
|
195
|
+
],
|
196
|
+
"stateMutability": "view",
|
197
|
+
"type": "function"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"inputs": [],
|
201
|
+
"name": "pctToTreasuryInBasisPoints",
|
202
|
+
"outputs": [
|
203
|
+
{
|
204
|
+
"internalType": "uint256",
|
205
|
+
"name": "",
|
206
|
+
"type": "uint256"
|
207
|
+
}
|
208
|
+
],
|
209
|
+
"stateMutability": "view",
|
210
|
+
"type": "function"
|
211
|
+
},
|
212
|
+
{
|
213
|
+
"inputs": [
|
214
|
+
{
|
215
|
+
"internalType": "address",
|
216
|
+
"name": "agentAddress",
|
217
|
+
"type": "address"
|
218
|
+
}
|
219
|
+
],
|
220
|
+
"name": "popNextMessage",
|
221
|
+
"outputs": [
|
222
|
+
{
|
223
|
+
"components": [
|
224
|
+
{
|
225
|
+
"internalType": "address",
|
226
|
+
"name": "sender",
|
227
|
+
"type": "address"
|
228
|
+
},
|
229
|
+
{
|
230
|
+
"internalType": "address",
|
231
|
+
"name": "recipient",
|
232
|
+
"type": "address"
|
233
|
+
},
|
234
|
+
{
|
235
|
+
"internalType": "bytes",
|
236
|
+
"name": "message",
|
237
|
+
"type": "bytes"
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"internalType": "uint256",
|
241
|
+
"name": "value",
|
242
|
+
"type": "uint256"
|
243
|
+
}
|
244
|
+
],
|
245
|
+
"internalType": "struct DoubleEndedStructQueue.MessageContainer",
|
246
|
+
"name": "",
|
247
|
+
"type": "tuple"
|
248
|
+
}
|
249
|
+
],
|
250
|
+
"stateMutability": "nonpayable",
|
251
|
+
"type": "function"
|
252
|
+
},
|
253
|
+
{
|
254
|
+
"inputs": [
|
255
|
+
{
|
256
|
+
"internalType": "address",
|
257
|
+
"name": "",
|
258
|
+
"type": "address"
|
259
|
+
}
|
260
|
+
],
|
261
|
+
"name": "queues",
|
262
|
+
"outputs": [
|
263
|
+
{
|
264
|
+
"internalType": "uint128",
|
265
|
+
"name": "_begin",
|
266
|
+
"type": "uint128"
|
267
|
+
},
|
268
|
+
{
|
269
|
+
"internalType": "uint128",
|
270
|
+
"name": "_end",
|
271
|
+
"type": "uint128"
|
272
|
+
}
|
273
|
+
],
|
274
|
+
"stateMutability": "view",
|
275
|
+
"type": "function"
|
276
|
+
},
|
277
|
+
{
|
278
|
+
"inputs": [],
|
279
|
+
"name": "renounceOwnership",
|
280
|
+
"outputs": [],
|
281
|
+
"stateMutability": "nonpayable",
|
282
|
+
"type": "function"
|
283
|
+
},
|
284
|
+
{
|
285
|
+
"inputs": [
|
286
|
+
{
|
287
|
+
"internalType": "address",
|
288
|
+
"name": "agentAddress",
|
289
|
+
"type": "address"
|
290
|
+
},
|
291
|
+
{
|
292
|
+
"internalType": "bytes",
|
293
|
+
"name": "message",
|
294
|
+
"type": "bytes"
|
295
|
+
}
|
296
|
+
],
|
297
|
+
"name": "sendMessage",
|
298
|
+
"outputs": [],
|
299
|
+
"stateMutability": "payable",
|
300
|
+
"type": "function"
|
301
|
+
},
|
302
|
+
{
|
303
|
+
"inputs": [
|
304
|
+
{
|
305
|
+
"internalType": "address payable",
|
306
|
+
"name": "_treasury",
|
307
|
+
"type": "address"
|
308
|
+
}
|
309
|
+
],
|
310
|
+
"name": "setTreasuryAddress",
|
311
|
+
"outputs": [],
|
312
|
+
"stateMutability": "nonpayable",
|
313
|
+
"type": "function"
|
314
|
+
},
|
315
|
+
{
|
316
|
+
"inputs": [
|
317
|
+
{
|
318
|
+
"internalType": "address",
|
319
|
+
"name": "newOwner",
|
320
|
+
"type": "address"
|
321
|
+
}
|
322
|
+
],
|
323
|
+
"name": "transferOwnership",
|
324
|
+
"outputs": [],
|
325
|
+
"stateMutability": "nonpayable",
|
326
|
+
"type": "function"
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"inputs": [],
|
330
|
+
"name": "treasury",
|
331
|
+
"outputs": [
|
332
|
+
{
|
333
|
+
"internalType": "address payable",
|
334
|
+
"name": "",
|
335
|
+
"type": "address"
|
336
|
+
}
|
337
|
+
],
|
338
|
+
"stateMutability": "view",
|
339
|
+
"type": "function"
|
340
|
+
}
|
341
|
+
]
|
@@ -0,0 +1,156 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"inputs": [
|
4
|
+
{
|
5
|
+
"internalType": "address",
|
6
|
+
"name": "_nftContract",
|
7
|
+
"type": "address"
|
8
|
+
}
|
9
|
+
],
|
10
|
+
"stateMutability": "nonpayable",
|
11
|
+
"type": "constructor"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"inputs": [
|
15
|
+
{
|
16
|
+
"internalType": "address",
|
17
|
+
"name": "owner",
|
18
|
+
"type": "address"
|
19
|
+
}
|
20
|
+
],
|
21
|
+
"name": "OwnableInvalidOwner",
|
22
|
+
"type": "error"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"inputs": [
|
26
|
+
{
|
27
|
+
"internalType": "address",
|
28
|
+
"name": "account",
|
29
|
+
"type": "address"
|
30
|
+
}
|
31
|
+
],
|
32
|
+
"name": "OwnableUnauthorizedAccount",
|
33
|
+
"type": "error"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"anonymous": false,
|
37
|
+
"inputs": [
|
38
|
+
{
|
39
|
+
"indexed": true,
|
40
|
+
"internalType": "address",
|
41
|
+
"name": "previousOwner",
|
42
|
+
"type": "address"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"indexed": true,
|
46
|
+
"internalType": "address",
|
47
|
+
"name": "newOwner",
|
48
|
+
"type": "address"
|
49
|
+
}
|
50
|
+
],
|
51
|
+
"name": "OwnershipTransferred",
|
52
|
+
"type": "event"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"anonymous": false,
|
56
|
+
"inputs": [
|
57
|
+
{
|
58
|
+
"indexed": true,
|
59
|
+
"internalType": "address",
|
60
|
+
"name": "holder",
|
61
|
+
"type": "address"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"indexed": false,
|
65
|
+
"internalType": "uint256",
|
66
|
+
"name": "amount",
|
67
|
+
"type": "uint256"
|
68
|
+
}
|
69
|
+
],
|
70
|
+
"name": "WithdrawnByNFTHolder",
|
71
|
+
"type": "event"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"inputs": [],
|
75
|
+
"name": "nftContract",
|
76
|
+
"outputs": [
|
77
|
+
{
|
78
|
+
"internalType": "contract IERC721",
|
79
|
+
"name": "",
|
80
|
+
"type": "address"
|
81
|
+
}
|
82
|
+
],
|
83
|
+
"stateMutability": "view",
|
84
|
+
"type": "function"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"inputs": [],
|
88
|
+
"name": "owner",
|
89
|
+
"outputs": [
|
90
|
+
{
|
91
|
+
"internalType": "address",
|
92
|
+
"name": "",
|
93
|
+
"type": "address"
|
94
|
+
}
|
95
|
+
],
|
96
|
+
"stateMutability": "view",
|
97
|
+
"type": "function"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"inputs": [],
|
101
|
+
"name": "renounceOwnership",
|
102
|
+
"outputs": [],
|
103
|
+
"stateMutability": "nonpayable",
|
104
|
+
"type": "function"
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"inputs": [],
|
108
|
+
"name": "requiredNFTBalance",
|
109
|
+
"outputs": [
|
110
|
+
{
|
111
|
+
"internalType": "uint256",
|
112
|
+
"name": "",
|
113
|
+
"type": "uint256"
|
114
|
+
}
|
115
|
+
],
|
116
|
+
"stateMutability": "view",
|
117
|
+
"type": "function"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"inputs": [
|
121
|
+
{
|
122
|
+
"internalType": "uint256",
|
123
|
+
"name": "_newBalance",
|
124
|
+
"type": "uint256"
|
125
|
+
}
|
126
|
+
],
|
127
|
+
"name": "setRequiredNFTBalance",
|
128
|
+
"outputs": [],
|
129
|
+
"stateMutability": "nonpayable",
|
130
|
+
"type": "function"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"inputs": [
|
134
|
+
{
|
135
|
+
"internalType": "address",
|
136
|
+
"name": "newOwner",
|
137
|
+
"type": "address"
|
138
|
+
}
|
139
|
+
],
|
140
|
+
"name": "transferOwnership",
|
141
|
+
"outputs": [],
|
142
|
+
"stateMutability": "nonpayable",
|
143
|
+
"type": "function"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"inputs": [],
|
147
|
+
"name": "withdraw",
|
148
|
+
"outputs": [],
|
149
|
+
"stateMutability": "nonpayable",
|
150
|
+
"type": "function"
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"stateMutability": "payable",
|
154
|
+
"type": "receive"
|
155
|
+
}
|
156
|
+
]
|
@@ -390,7 +390,13 @@ class ContractERC4626BaseClass(ContractERC20BaseClass):
|
|
390
390
|
return self.convertToShares(amount, web3=web3)
|
391
391
|
|
392
392
|
|
393
|
-
class
|
393
|
+
class OwnableContract(ContractBaseClass):
|
394
|
+
def owner(self, web3: Web3 | None = None) -> ChecksumAddress:
|
395
|
+
owner = Web3.to_checksum_address(self.call("owner", web3=web3))
|
396
|
+
return owner
|
397
|
+
|
398
|
+
|
399
|
+
class ContractERC721BaseClass(ContractBaseClass):
|
394
400
|
abi: ABI = abi_field_validator(
|
395
401
|
os.path.join(
|
396
402
|
os.path.dirname(os.path.realpath(__file__)),
|
@@ -417,8 +423,8 @@ class ContractOwnableERC721BaseClass(ContractBaseClass):
|
|
417
423
|
balance: int = self.call("balanceOf", [owner], web3=web3)
|
418
424
|
return balance
|
419
425
|
|
420
|
-
def
|
421
|
-
owner = Web3.to_checksum_address(self.call("ownerOf", [
|
426
|
+
def owner_of(self, token_id: int, web3: Web3 | None = None) -> ChecksumAddress:
|
427
|
+
owner = Web3.to_checksum_address(self.call("ownerOf", [token_id], web3=web3))
|
422
428
|
return owner
|
423
429
|
|
424
430
|
def name(self, web3: Web3 | None = None) -> str:
|
@@ -451,6 +457,10 @@ class ContractOwnableERC721BaseClass(ContractBaseClass):
|
|
451
457
|
)
|
452
458
|
|
453
459
|
|
460
|
+
class ContractOwnableERC721BaseClass(ContractERC721BaseClass, OwnableContract):
|
461
|
+
pass
|
462
|
+
|
463
|
+
|
454
464
|
class ContractOnGnosisChain(ContractBaseClass):
|
455
465
|
"""
|
456
466
|
Contract base class with Gnosis Chain configuration.
|
@@ -541,6 +551,51 @@ class DebuggingContract(ContractOnGnosisChain):
|
|
541
551
|
)
|
542
552
|
|
543
553
|
|
554
|
+
class SimpleTreasuryContract(ContractOnGnosisChain, OwnableContract):
|
555
|
+
# Contract ABI taken from built https://github.com/gnosis/labs-contracts.
|
556
|
+
abi: ABI = abi_field_validator(
|
557
|
+
os.path.join(
|
558
|
+
os.path.dirname(os.path.realpath(__file__)),
|
559
|
+
"../abis/simpletreasury.abi.json",
|
560
|
+
)
|
561
|
+
)
|
562
|
+
|
563
|
+
address: ChecksumAddress = Web3.to_checksum_address(
|
564
|
+
"0x624ad0db52e6b18afb4d36b8e79d0c2a74f3fc8a"
|
565
|
+
)
|
566
|
+
|
567
|
+
def required_nft_balance(self, web3: Web3 | None = None) -> int:
|
568
|
+
min_num_of_nfts: int = self.call("requiredNFTBalance", web3=web3)
|
569
|
+
return min_num_of_nfts
|
570
|
+
|
571
|
+
def set_required_nft_balance(
|
572
|
+
self,
|
573
|
+
api_keys: APIKeys,
|
574
|
+
web3: Web3 | None = None,
|
575
|
+
) -> TxReceipt:
|
576
|
+
return self.send(
|
577
|
+
api_keys=api_keys,
|
578
|
+
function_name="setRequiredNFTBalance",
|
579
|
+
web3=web3,
|
580
|
+
)
|
581
|
+
|
582
|
+
def nft_contract(self, web3: Web3 | None = None) -> ContractERC721BaseClass:
|
583
|
+
nft_contract_address: ChecksumAddress = self.call("nftContract", web3=web3)
|
584
|
+
contract = ContractERC721BaseClass(address=nft_contract_address)
|
585
|
+
return contract
|
586
|
+
|
587
|
+
def withdraw(
|
588
|
+
self,
|
589
|
+
api_keys: APIKeys,
|
590
|
+
web3: Web3 | None = None,
|
591
|
+
) -> TxReceipt:
|
592
|
+
return self.send(
|
593
|
+
api_keys=api_keys,
|
594
|
+
function_name="withdraw",
|
595
|
+
web3=web3,
|
596
|
+
)
|
597
|
+
|
598
|
+
|
544
599
|
class AgentCommunicationContract(ContractOnGnosisChain):
|
545
600
|
# Contract ABI taken from built https://github.com/gnosis/labs-contracts.
|
546
601
|
abi: ABI = abi_field_validator(
|
@@ -551,7 +606,7 @@ class AgentCommunicationContract(ContractOnGnosisChain):
|
|
551
606
|
)
|
552
607
|
|
553
608
|
address: ChecksumAddress = Web3.to_checksum_address(
|
554
|
-
"
|
609
|
+
"0xc566Cb829Ed7aC097D17a38011A40Ad2DC25Dd82"
|
555
610
|
)
|
556
611
|
|
557
612
|
def minimum_message_value(self, web3: Web3 | None = None) -> xDai:
|
@@ -583,6 +638,32 @@ class AgentCommunicationContract(ContractOnGnosisChain):
|
|
583
638
|
)
|
584
639
|
return MessageContainer.from_tuple(message_container_raw)
|
585
640
|
|
641
|
+
def set_treasury_address(
|
642
|
+
self,
|
643
|
+
api_keys: APIKeys,
|
644
|
+
new_treasury_address: ChecksumAddress,
|
645
|
+
web3: Web3 | None = None,
|
646
|
+
) -> TxReceipt:
|
647
|
+
return self.send(
|
648
|
+
api_keys=api_keys,
|
649
|
+
function_name="setTreasuryAddress",
|
650
|
+
function_params=[new_treasury_address],
|
651
|
+
web3=web3,
|
652
|
+
)
|
653
|
+
|
654
|
+
def set_minimum_value_for_sending_message(
|
655
|
+
self,
|
656
|
+
api_keys: APIKeys,
|
657
|
+
new_minimum_value: Wei,
|
658
|
+
web3: Web3 | None = None,
|
659
|
+
) -> TxReceipt:
|
660
|
+
return self.send(
|
661
|
+
api_keys=api_keys,
|
662
|
+
function_name="adjustMinimumValueForSendingMessage",
|
663
|
+
function_params=[new_minimum_value],
|
664
|
+
web3=web3,
|
665
|
+
)
|
666
|
+
|
586
667
|
def pop_message(
|
587
668
|
self,
|
588
669
|
api_keys: APIKeys,
|