prediction-market-agent-tooling 0.57.11.dev247__py3-none-any.whl → 0.57.11.dev255__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
+ ]
@@ -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 ContractOwnableERC721BaseClass(ContractBaseClass):
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 ownerOf(self, tokenId: int, web3: Web3 | None = None) -> ChecksumAddress:
421
- owner = Web3.to_checksum_address(self.call("ownerOf", [tokenId], web3=web3))
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
- "0xd422e0059ed819e8d792af936da206878188e34f"
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,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.57.11.dev247
3
+ Version: 0.57.11.dev255
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
@@ -14,6 +14,7 @@ prediction_market_agent_tooling/abis/omen_realitio.abi.json,sha256=7HmFkBF_rq83U
14
14
  prediction_market_agent_tooling/abis/omen_thumbnailmapping.abi.json,sha256=u1-3B8FB3Ys9KVJCH-lw9ArkicdxbNMf34dV-VEGMMU,930
15
15
  prediction_market_agent_tooling/abis/ownable_erc721.abi.json,sha256=9sxm588MAQmqCV_S0D3eYC7l9grbeALsd0Da_AHxdEI,8506
16
16
  prediction_market_agent_tooling/abis/proxy.abi.json,sha256=h24GXZ6Q0bSZlwh7zOv0EiDvbqUz_PHtWfKHTyPJ1w4,644
17
+ prediction_market_agent_tooling/abis/simpletreasury.abi.json,sha256=7-l7rntLkcFKkoN8hXywO0-h-mUZxOZlyQg1Jk7yTB0,2877
17
18
  prediction_market_agent_tooling/benchmark/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
19
  prediction_market_agent_tooling/benchmark/agents.py,sha256=B1-uWdyeN4GGKMWGK_-CcAFJg1m9Y_XuaeIHPB29QR8,3971
19
20
  prediction_market_agent_tooling/benchmark/benchmark.py,sha256=MqTiaaJ3cYiOLUVR7OyImLWxcEya3Rl5JyFYW-K0lwM,17097
@@ -77,7 +78,7 @@ prediction_market_agent_tooling/tools/betting_strategies/utils.py,sha256=kpIb-ci
77
78
  prediction_market_agent_tooling/tools/caches/db_cache.py,sha256=aafau_n_AUbLIwkyIRiTPgKB0dmM0767mSqyPDLF2A4,10576
78
79
  prediction_market_agent_tooling/tools/caches/inmemory_cache.py,sha256=ZW5iI5rmjqeAebu5T7ftRnlkxiL02IC-MxCfDB80x7w,1506
79
80
  prediction_market_agent_tooling/tools/caches/serializers.py,sha256=upSXN5__rmRlzJ6tv1h7FodKzJu9eCkFrN_zeuwroJM,2151
80
- prediction_market_agent_tooling/tools/contract.py,sha256=MOQKjg9tZMtk5YiLfFLbKyZDZ9y7dAoJ3kHXryVM_bU,26219
81
+ prediction_market_agent_tooling/tools/contract.py,sha256=bLdw17DCC5sCMfsfc02vQbSh1C3NcREdSxay2SM2JWs,28647
81
82
  prediction_market_agent_tooling/tools/costs.py,sha256=EaAJ7v9laD4VEV3d8B44M4u3_oEO_H16jRVCdoZ93Uw,954
82
83
  prediction_market_agent_tooling/tools/custom_exceptions.py,sha256=Fh8z1fbwONvP4-j7AmV_PuEcoqb6-QXa9PJ9m7guMcM,93
83
84
  prediction_market_agent_tooling/tools/data_models.py,sha256=jDQ7FU0QQhXlcgJh5VZZGwDTYP2OPAqKPHZFewCPAUY,732
@@ -106,8 +107,8 @@ prediction_market_agent_tooling/tools/tavily/tavily_search.py,sha256=Kw2mXNkMTYT
106
107
  prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
107
108
  prediction_market_agent_tooling/tools/utils.py,sha256=WvuUCHgMCiMq8_wMm5PHNwvLhcdDk2zGKaAM8OUC-qY,6438
108
109
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=wqUDCed3iNrn1Wao1iwGN6tzIrhpzrTRj319wlveJEo,12275
109
- prediction_market_agent_tooling-0.57.11.dev247.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
110
- prediction_market_agent_tooling-0.57.11.dev247.dist-info/METADATA,sha256=EDi-tCsB_o6tBKVHLsBks8hGaPtKhUu-HPy6qHH0ZQI,8247
111
- prediction_market_agent_tooling-0.57.11.dev247.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
112
- prediction_market_agent_tooling-0.57.11.dev247.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
113
- prediction_market_agent_tooling-0.57.11.dev247.dist-info/RECORD,,
110
+ prediction_market_agent_tooling-0.57.11.dev255.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
111
+ prediction_market_agent_tooling-0.57.11.dev255.dist-info/METADATA,sha256=IugsE-fVsrKvHPX3y98zpXhCOuLnmAeKctmLJerrY7k,8247
112
+ prediction_market_agent_tooling-0.57.11.dev255.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
113
+ prediction_market_agent_tooling-0.57.11.dev255.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
114
+ prediction_market_agent_tooling-0.57.11.dev255.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.0.0
2
+ Generator: poetry-core 2.0.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any