prediction-market-agent-tooling 0.57.11.dev254__py3-none-any.whl → 0.57.11.dev256__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.
@@ -1,328 +1,341 @@
1
1
  [
2
- {
3
- "type": "constructor",
4
- "inputs": [
5
- {
6
- "name": "_treasury",
7
- "type": "address",
8
- "internalType": "address payable"
9
- },
10
- {
11
- "name": "_pctToTreasuryInBasisPoints",
12
- "type": "uint256",
13
- "internalType": "uint256"
14
- }
15
- ],
16
- "stateMutability": "nonpayable"
17
- },
18
- {
19
- "type": "function",
20
- "name": "adjustMinimumValueForSendingMessage",
21
- "inputs": [
22
- {
23
- "name": "newValue",
24
- "type": "uint256",
25
- "internalType": "uint256"
26
- }
27
- ],
28
- "outputs": [],
29
- "stateMutability": "nonpayable"
30
- },
31
- {
32
- "type": "function",
33
- "name": "countMessages",
34
- "inputs": [
35
- {
36
- "name": "agentAddress",
37
- "type": "address",
38
- "internalType": "address"
39
- }
40
- ],
41
- "outputs": [
42
- {
43
- "name": "",
44
- "type": "uint256",
45
- "internalType": "uint256"
46
- }
47
- ],
48
- "stateMutability": "view"
49
- },
50
- {
51
- "type": "function",
52
- "name": "getAtIndex",
53
- "inputs": [
54
- {
55
- "name": "agentAddress",
56
- "type": "address",
57
- "internalType": "address"
58
- },
59
- {
60
- "name": "idx",
61
- "type": "uint256",
62
- "internalType": "uint256"
63
- }
64
- ],
65
- "outputs": [
66
- {
67
- "name": "",
68
- "type": "tuple",
69
- "internalType": "struct DoubleEndedStructQueue.MessageContainer",
70
- "components": [
71
- {
72
- "name": "sender",
73
- "type": "address",
74
- "internalType": "address"
75
- },
76
- {
77
- "name": "recipient",
78
- "type": "address",
79
- "internalType": "address"
80
- },
81
- {
82
- "name": "message",
83
- "type": "bytes",
84
- "internalType": "bytes"
85
- },
86
- {
87
- "name": "value",
88
- "type": "uint256",
89
- "internalType": "uint256"
90
- }
91
- ]
92
- }
93
- ],
94
- "stateMutability": "view"
95
- },
96
- {
97
- "type": "function",
98
- "name": "minimumValueForSendingMessageInWei",
99
- "inputs": [],
100
- "outputs": [
101
- {
102
- "name": "",
103
- "type": "uint256",
104
- "internalType": "uint256"
105
- }
106
- ],
107
- "stateMutability": "view"
108
- },
109
- {
110
- "type": "function",
111
- "name": "owner",
112
- "inputs": [],
113
- "outputs": [
114
- {
115
- "name": "",
116
- "type": "address",
117
- "internalType": "address"
118
- }
119
- ],
120
- "stateMutability": "view"
121
- },
122
- {
123
- "type": "function",
124
- "name": "pctToTreasuryInBasisPoints",
125
- "inputs": [],
126
- "outputs": [
127
- {
128
- "name": "",
129
- "type": "uint256",
130
- "internalType": "uint256"
131
- }
132
- ],
133
- "stateMutability": "view"
134
- },
135
- {
136
- "type": "function",
137
- "name": "popNextMessage",
138
- "inputs": [
139
- {
140
- "name": "agentAddress",
141
- "type": "address",
142
- "internalType": "address"
143
- }
144
- ],
145
- "outputs": [
146
- {
147
- "name": "",
148
- "type": "tuple",
149
- "internalType": "struct DoubleEndedStructQueue.MessageContainer",
150
- "components": [
151
- {
152
- "name": "sender",
153
- "type": "address",
154
- "internalType": "address"
155
- },
156
- {
157
- "name": "recipient",
158
- "type": "address",
159
- "internalType": "address"
160
- },
161
- {
162
- "name": "message",
163
- "type": "bytes",
164
- "internalType": "bytes"
165
- },
166
- {
167
- "name": "value",
168
- "type": "uint256",
169
- "internalType": "uint256"
170
- }
171
- ]
172
- }
173
- ],
174
- "stateMutability": "nonpayable"
175
- },
176
- {
177
- "type": "function",
178
- "name": "queues",
179
- "inputs": [
180
- {
181
- "name": "",
182
- "type": "address",
183
- "internalType": "address"
184
- }
185
- ],
186
- "outputs": [
187
- {
188
- "name": "_begin",
189
- "type": "uint128",
190
- "internalType": "uint128"
191
- },
192
- {
193
- "name": "_end",
194
- "type": "uint128",
195
- "internalType": "uint128"
196
- }
197
- ],
198
- "stateMutability": "view"
199
- },
200
- {
201
- "type": "function",
202
- "name": "renounceOwnership",
203
- "inputs": [],
204
- "outputs": [],
205
- "stateMutability": "nonpayable"
206
- },
207
- {
208
- "type": "function",
209
- "name": "sendMessage",
210
- "inputs": [
211
- {
212
- "name": "agentAddress",
213
- "type": "address",
214
- "internalType": "address"
215
- },
216
- {
217
- "name": "message",
218
- "type": "bytes",
219
- "internalType": "bytes"
220
- }
221
- ],
222
- "outputs": [],
223
- "stateMutability": "payable"
224
- },
225
- {
226
- "type": "function",
227
- "name": "transferOwnership",
228
- "inputs": [
229
- {
230
- "name": "newOwner",
231
- "type": "address",
232
- "internalType": "address"
233
- }
234
- ],
235
- "outputs": [],
236
- "stateMutability": "nonpayable"
237
- },
238
- {
239
- "type": "function",
240
- "name": "treasury",
241
- "inputs": [],
242
- "outputs": [
243
- {
244
- "name": "",
245
- "type": "address",
246
- "internalType": "address payable"
247
- }
248
- ],
249
- "stateMutability": "view"
250
- },
251
- {
252
- "type": "event",
253
- "name": "LogMessage",
254
- "inputs": [
255
- {
256
- "name": "sender",
257
- "type": "address",
258
- "indexed": true,
259
- "internalType": "address"
260
- },
261
- {
262
- "name": "agentAddress",
263
- "type": "address",
264
- "indexed": true,
265
- "internalType": "address"
266
- },
267
- {
268
- "name": "message",
269
- "type": "bytes",
270
- "indexed": false,
271
- "internalType": "bytes"
272
- },
273
- {
274
- "name": "value",
275
- "type": "uint256",
276
- "indexed": false,
277
- "internalType": "uint256"
278
- }
279
- ],
280
- "anonymous": false
281
- },
282
- {
283
- "type": "event",
284
- "name": "OwnershipTransferred",
285
- "inputs": [
286
- {
287
- "name": "previousOwner",
288
- "type": "address",
289
- "indexed": true,
290
- "internalType": "address"
291
- },
292
- {
293
- "name": "newOwner",
294
- "type": "address",
295
- "indexed": true,
296
- "internalType": "address"
297
- }
298
- ],
299
- "anonymous": false
300
- },
301
- {
302
- "type": "error",
303
- "name": "MessageNotSentByAgent",
304
- "inputs": []
305
- },
306
- {
307
- "type": "error",
308
- "name": "OwnableInvalidOwner",
309
- "inputs": [
310
- {
311
- "name": "owner",
312
- "type": "address",
313
- "internalType": "address"
314
- }
315
- ]
316
- },
317
- {
318
- "type": "error",
319
- "name": "OwnableUnauthorizedAccount",
320
- "inputs": [
321
- {
322
- "name": "account",
323
- "type": "address",
324
- "internalType": "address"
325
- }
326
- ]
327
- }
328
- ]
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
+ ]
@@ -596,7 +596,7 @@ class SimpleTreasuryContract(ContractOnGnosisChain, OwnableContract):
596
596
  )
597
597
 
598
598
 
599
- class AgentCommunicationContract(ContractOnGnosisChain):
599
+ class AgentCommunicationContract(ContractOnGnosisChain, OwnableContract):
600
600
  # Contract ABI taken from built https://github.com/gnosis/labs-contracts.
601
601
  abi: ABI = abi_field_validator(
602
602
  os.path.join(
@@ -606,7 +606,7 @@ class AgentCommunicationContract(ContractOnGnosisChain):
606
606
  )
607
607
 
608
608
  address: ChecksumAddress = Web3.to_checksum_address(
609
- "0xd422e0059ed819e8d792af936da206878188e34f"
609
+ "0xc566Cb829Ed7aC097D17a38011A40Ad2DC25Dd82"
610
610
  )
611
611
 
612
612
  def minimum_message_value(self, web3: Web3 | None = None) -> xDai:
@@ -638,6 +638,32 @@ class AgentCommunicationContract(ContractOnGnosisChain):
638
638
  )
639
639
  return MessageContainer.from_tuple(message_container_raw)
640
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
+
641
667
  def pop_message(
642
668
  self,
643
669
  api_keys: APIKeys,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.57.11.dev254
3
+ Version: 0.57.11.dev256
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.13
@@ -1,4 +1,4 @@
1
- prediction_market_agent_tooling/abis/agentcommunication.abi.json,sha256=rTYxzN-veBbBJ-M2JL--7dRQSS6yWRhiQ1lGvWe_Wrg,9781
1
+ prediction_market_agent_tooling/abis/agentcommunication.abi.json,sha256=RdxYEUbcXAdfeLaAikrx2FdSjuPi0iKLiZtkJRrksaM,6724
2
2
  prediction_market_agent_tooling/abis/debuggingcontract.abi.json,sha256=KdkCWmif_WO421RFKhc03kGJiccFqsxsZNrgCd8EH_4,571
3
3
  prediction_market_agent_tooling/abis/depositablewrapper_erc20.abi.json,sha256=m0Wk3uQyLM8apWRRvX4d3u1d77bWVuXfV38D-aV48t0,4612
4
4
  prediction_market_agent_tooling/abis/erc20.abi.json,sha256=b8t6tPUhjBo5dHFq8ipsK-ih_g29dOTbWI0GBZiEWL8,3685
@@ -78,7 +78,7 @@ prediction_market_agent_tooling/tools/betting_strategies/utils.py,sha256=kpIb-ci
78
78
  prediction_market_agent_tooling/tools/caches/db_cache.py,sha256=aafau_n_AUbLIwkyIRiTPgKB0dmM0767mSqyPDLF2A4,10576
79
79
  prediction_market_agent_tooling/tools/caches/inmemory_cache.py,sha256=ZW5iI5rmjqeAebu5T7ftRnlkxiL02IC-MxCfDB80x7w,1506
80
80
  prediction_market_agent_tooling/tools/caches/serializers.py,sha256=upSXN5__rmRlzJ6tv1h7FodKzJu9eCkFrN_zeuwroJM,2151
81
- prediction_market_agent_tooling/tools/contract.py,sha256=jApxa4VUEpOyX6qjTthJdMwMYI0FNH3Z9laooQEHx2E,27905
81
+ prediction_market_agent_tooling/tools/contract.py,sha256=jNtWxg1oIoV6C108Pdcx4Fj44u8UcMFphnZRIUZjsZM,28664
82
82
  prediction_market_agent_tooling/tools/costs.py,sha256=EaAJ7v9laD4VEV3d8B44M4u3_oEO_H16jRVCdoZ93Uw,954
83
83
  prediction_market_agent_tooling/tools/custom_exceptions.py,sha256=Fh8z1fbwONvP4-j7AmV_PuEcoqb6-QXa9PJ9m7guMcM,93
84
84
  prediction_market_agent_tooling/tools/data_models.py,sha256=jDQ7FU0QQhXlcgJh5VZZGwDTYP2OPAqKPHZFewCPAUY,732
@@ -107,8 +107,8 @@ prediction_market_agent_tooling/tools/tavily/tavily_search.py,sha256=Kw2mXNkMTYT
107
107
  prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
108
108
  prediction_market_agent_tooling/tools/utils.py,sha256=WvuUCHgMCiMq8_wMm5PHNwvLhcdDk2zGKaAM8OUC-qY,6438
109
109
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=wqUDCed3iNrn1Wao1iwGN6tzIrhpzrTRj319wlveJEo,12275
110
- prediction_market_agent_tooling-0.57.11.dev254.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
111
- prediction_market_agent_tooling-0.57.11.dev254.dist-info/METADATA,sha256=UZ7HcBAzx0Ihp37Z7hB3oGiG-5NdIEwtiTittN5xBU4,8247
112
- prediction_market_agent_tooling-0.57.11.dev254.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
113
- prediction_market_agent_tooling-0.57.11.dev254.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
114
- prediction_market_agent_tooling-0.57.11.dev254.dist-info/RECORD,,
110
+ prediction_market_agent_tooling-0.57.11.dev256.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
111
+ prediction_market_agent_tooling-0.57.11.dev256.dist-info/METADATA,sha256=NmbrrSR3sH4IzY9ND6QIvX3XXaSo_VqMdxDPaJceO2A,8247
112
+ prediction_market_agent_tooling-0.57.11.dev256.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
113
+ prediction_market_agent_tooling-0.57.11.dev256.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
114
+ prediction_market_agent_tooling-0.57.11.dev256.dist-info/RECORD,,