acp-plugin-gamesdk 0.1.0__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.
- acp_plugin_gamesdk/acp_client.py +173 -0
- acp_plugin_gamesdk/acp_plugin.py +459 -0
- acp_plugin_gamesdk/acp_token.py +291 -0
- acp_plugin_gamesdk/acp_token_abi.py +690 -0
- acp_plugin_gamesdk/interface.py +70 -0
- acp_plugin_gamesdk-0.1.0.dist-info/METADATA +201 -0
- acp_plugin_gamesdk-0.1.0.dist-info/RECORD +8 -0
- acp_plugin_gamesdk-0.1.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,690 @@
|
|
1
|
+
ACP_TOKEN_ABI = [
|
2
|
+
{"inputs": [], "stateMutability": "nonpayable", "type": "constructor"},
|
3
|
+
{"inputs": [], "name": "AccessControlBadConfirmation", "type": "error"},
|
4
|
+
{
|
5
|
+
"inputs": [
|
6
|
+
{"internalType": "address", "name": "account", "type": "address"},
|
7
|
+
{"internalType": "bytes32", "name": "neededRole", "type": "bytes32"},
|
8
|
+
],
|
9
|
+
"name": "AccessControlUnauthorizedAccount",
|
10
|
+
"type": "error",
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"inputs": [{"internalType": "address", "name": "target", "type": "address"}],
|
14
|
+
"name": "AddressEmptyCode",
|
15
|
+
"type": "error",
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [{"internalType": "address", "name": "account", "type": "address"}],
|
19
|
+
"name": "AddressInsufficientBalance",
|
20
|
+
"type": "error",
|
21
|
+
},
|
22
|
+
{"inputs": [], "name": "FailedInnerCall", "type": "error"},
|
23
|
+
{"inputs": [], "name": "InvalidInitialization", "type": "error"},
|
24
|
+
{"inputs": [], "name": "NotInitializing", "type": "error"},
|
25
|
+
{"inputs": [], "name": "ReentrancyGuardReentrantCall", "type": "error"},
|
26
|
+
{
|
27
|
+
"inputs": [{"internalType": "address", "name": "token", "type": "address"}],
|
28
|
+
"name": "SafeERC20FailedOperation",
|
29
|
+
"type": "error",
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"anonymous": False,
|
33
|
+
"inputs": [
|
34
|
+
{
|
35
|
+
"indexed": False,
|
36
|
+
"internalType": "uint256",
|
37
|
+
"name": "jobId",
|
38
|
+
"type": "uint256",
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"indexed": True,
|
42
|
+
"internalType": "address",
|
43
|
+
"name": "evaluator",
|
44
|
+
"type": "address",
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"indexed": False,
|
48
|
+
"internalType": "uint256",
|
49
|
+
"name": "evaluatorFee",
|
50
|
+
"type": "uint256",
|
51
|
+
},
|
52
|
+
],
|
53
|
+
"name": "ClaimedEvaluatorFee",
|
54
|
+
"type": "event",
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"anonymous": False,
|
58
|
+
"inputs": [
|
59
|
+
{
|
60
|
+
"indexed": False,
|
61
|
+
"internalType": "uint256",
|
62
|
+
"name": "jobId",
|
63
|
+
"type": "uint256",
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"indexed": True,
|
67
|
+
"internalType": "address",
|
68
|
+
"name": "provider",
|
69
|
+
"type": "address",
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"indexed": False,
|
73
|
+
"internalType": "uint256",
|
74
|
+
"name": "providerFee",
|
75
|
+
"type": "uint256",
|
76
|
+
},
|
77
|
+
],
|
78
|
+
"name": "ClaimedProviderFee",
|
79
|
+
"type": "event",
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"anonymous": False,
|
83
|
+
"inputs": [
|
84
|
+
{
|
85
|
+
"indexed": False,
|
86
|
+
"internalType": "uint64",
|
87
|
+
"name": "version",
|
88
|
+
"type": "uint64",
|
89
|
+
},
|
90
|
+
],
|
91
|
+
"name": "Initialized",
|
92
|
+
"type": "event",
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"anonymous": False,
|
96
|
+
"inputs": [
|
97
|
+
{
|
98
|
+
"indexed": True,
|
99
|
+
"internalType": "uint256",
|
100
|
+
"name": "jobId",
|
101
|
+
"type": "uint256",
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"indexed": True,
|
105
|
+
"internalType": "address",
|
106
|
+
"name": "client",
|
107
|
+
"type": "address",
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"indexed": True,
|
111
|
+
"internalType": "address",
|
112
|
+
"name": "provider",
|
113
|
+
"type": "address",
|
114
|
+
},
|
115
|
+
],
|
116
|
+
"name": "JobCreated",
|
117
|
+
"type": "event",
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"anonymous": False,
|
121
|
+
"inputs": [
|
122
|
+
{
|
123
|
+
"indexed": True,
|
124
|
+
"internalType": "uint256",
|
125
|
+
"name": "jobId",
|
126
|
+
"type": "uint256",
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"indexed": False,
|
130
|
+
"internalType": "uint8",
|
131
|
+
"name": "oldPhase",
|
132
|
+
"type": "uint8",
|
133
|
+
},
|
134
|
+
{"indexed": False, "internalType": "uint8", "name": "phase", "type": "uint8"},
|
135
|
+
],
|
136
|
+
"name": "JobPhaseUpdated",
|
137
|
+
"type": "event",
|
138
|
+
},
|
139
|
+
{
|
140
|
+
"anonymous": False,
|
141
|
+
"inputs": [
|
142
|
+
{
|
143
|
+
"indexed": False,
|
144
|
+
"internalType": "uint256",
|
145
|
+
"name": "memoId",
|
146
|
+
"type": "uint256",
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"indexed": False,
|
150
|
+
"internalType": "bool",
|
151
|
+
"name": "isApproved",
|
152
|
+
"type": "bool",
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"indexed": False,
|
156
|
+
"internalType": "string",
|
157
|
+
"name": "reason",
|
158
|
+
"type": "string",
|
159
|
+
},
|
160
|
+
],
|
161
|
+
"name": "MemoSigned",
|
162
|
+
"type": "event",
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"anonymous": False,
|
166
|
+
"inputs": [
|
167
|
+
{
|
168
|
+
"indexed": True,
|
169
|
+
"internalType": "uint256",
|
170
|
+
"name": "jobId",
|
171
|
+
"type": "uint256",
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"indexed": True,
|
175
|
+
"internalType": "address",
|
176
|
+
"name": "sender",
|
177
|
+
"type": "address",
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"indexed": False,
|
181
|
+
"internalType": "uint256",
|
182
|
+
"name": "memoId",
|
183
|
+
"type": "uint256",
|
184
|
+
},
|
185
|
+
],
|
186
|
+
"name": "NewMemo",
|
187
|
+
"type": "event",
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"anonymous": False,
|
191
|
+
"inputs": [
|
192
|
+
{
|
193
|
+
"indexed": False,
|
194
|
+
"internalType": "uint256",
|
195
|
+
"name": "jobId",
|
196
|
+
"type": "uint256",
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"indexed": True,
|
200
|
+
"internalType": "address",
|
201
|
+
"name": "client",
|
202
|
+
"type": "address",
|
203
|
+
},
|
204
|
+
{
|
205
|
+
"indexed": False,
|
206
|
+
"internalType": "uint256",
|
207
|
+
"name": "amount",
|
208
|
+
"type": "uint256",
|
209
|
+
},
|
210
|
+
],
|
211
|
+
"name": "RefundedBudget",
|
212
|
+
"type": "event",
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"anonymous": False,
|
216
|
+
"inputs": [
|
217
|
+
{"indexed": True, "internalType": "bytes32", "name": "role", "type": "bytes32"},
|
218
|
+
{
|
219
|
+
"indexed": True,
|
220
|
+
"internalType": "bytes32",
|
221
|
+
"name": "previousAdminRole",
|
222
|
+
"type": "bytes32",
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"indexed": True,
|
226
|
+
"internalType": "bytes32",
|
227
|
+
"name": "newAdminRole",
|
228
|
+
"type": "bytes32",
|
229
|
+
},
|
230
|
+
],
|
231
|
+
"name": "RoleAdminChanged",
|
232
|
+
"type": "event",
|
233
|
+
},
|
234
|
+
{
|
235
|
+
"anonymous": False,
|
236
|
+
"inputs": [
|
237
|
+
{"indexed": True, "internalType": "bytes32", "name": "role", "type": "bytes32"},
|
238
|
+
{
|
239
|
+
"indexed": True,
|
240
|
+
"internalType": "address",
|
241
|
+
"name": "account",
|
242
|
+
"type": "address",
|
243
|
+
},
|
244
|
+
{
|
245
|
+
"indexed": True,
|
246
|
+
"internalType": "address",
|
247
|
+
"name": "sender",
|
248
|
+
"type": "address",
|
249
|
+
},
|
250
|
+
],
|
251
|
+
"name": "RoleGranted",
|
252
|
+
"type": "event",
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"anonymous": False,
|
256
|
+
"inputs": [
|
257
|
+
{"indexed": True, "internalType": "bytes32", "name": "role", "type": "bytes32"},
|
258
|
+
{
|
259
|
+
"indexed": True,
|
260
|
+
"internalType": "address",
|
261
|
+
"name": "account",
|
262
|
+
"type": "address",
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"indexed": True,
|
266
|
+
"internalType": "address",
|
267
|
+
"name": "sender",
|
268
|
+
"type": "address",
|
269
|
+
},
|
270
|
+
],
|
271
|
+
"name": "RoleRevoked",
|
272
|
+
"type": "event",
|
273
|
+
},
|
274
|
+
{
|
275
|
+
"inputs": [],
|
276
|
+
"name": "ADMIN_ROLE",
|
277
|
+
"outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}],
|
278
|
+
"stateMutability": "view",
|
279
|
+
"type": "function",
|
280
|
+
},
|
281
|
+
{
|
282
|
+
"inputs": [],
|
283
|
+
"name": "DEFAULT_ADMIN_ROLE",
|
284
|
+
"outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}],
|
285
|
+
"stateMutability": "view",
|
286
|
+
"type": "function",
|
287
|
+
},
|
288
|
+
{
|
289
|
+
"inputs": [],
|
290
|
+
"name": "PHASE_COMPLETED",
|
291
|
+
"outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}],
|
292
|
+
"stateMutability": "view",
|
293
|
+
"type": "function",
|
294
|
+
},
|
295
|
+
{
|
296
|
+
"inputs": [],
|
297
|
+
"name": "PHASE_EVALUATION",
|
298
|
+
"outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}],
|
299
|
+
"stateMutability": "view",
|
300
|
+
"type": "function",
|
301
|
+
},
|
302
|
+
{
|
303
|
+
"inputs": [],
|
304
|
+
"name": "PHASE_NEGOTIATION",
|
305
|
+
"outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}],
|
306
|
+
"stateMutability": "view",
|
307
|
+
"type": "function",
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"inputs": [],
|
311
|
+
"name": "PHASE_REJECTED",
|
312
|
+
"outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}],
|
313
|
+
"stateMutability": "view",
|
314
|
+
"type": "function",
|
315
|
+
},
|
316
|
+
{
|
317
|
+
"inputs": [],
|
318
|
+
"name": "PHASE_REQUEST",
|
319
|
+
"outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}],
|
320
|
+
"stateMutability": "view",
|
321
|
+
"type": "function",
|
322
|
+
},
|
323
|
+
{
|
324
|
+
"inputs": [],
|
325
|
+
"name": "PHASE_TRANSACTION",
|
326
|
+
"outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}],
|
327
|
+
"stateMutability": "view",
|
328
|
+
"type": "function",
|
329
|
+
},
|
330
|
+
{
|
331
|
+
"inputs": [],
|
332
|
+
"name": "TOTAL_PHASES",
|
333
|
+
"outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}],
|
334
|
+
"stateMutability": "view",
|
335
|
+
"type": "function",
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"inputs": [{"internalType": "address", "name": "evaluator", "type": "address"}],
|
339
|
+
"name": "addEvaluator",
|
340
|
+
"outputs": [],
|
341
|
+
"stateMutability": "nonpayable",
|
342
|
+
"type": "function",
|
343
|
+
},
|
344
|
+
{
|
345
|
+
"inputs": [
|
346
|
+
{"internalType": "address", "name": "account", "type": "address"},
|
347
|
+
{"internalType": "uint256", "name": "jobId", "type": "uint256"},
|
348
|
+
],
|
349
|
+
"name": "canSign",
|
350
|
+
"outputs": [{"internalType": "bool", "name": "", "type": "bool"}],
|
351
|
+
"stateMutability": "view",
|
352
|
+
"type": "function",
|
353
|
+
},
|
354
|
+
{
|
355
|
+
"inputs": [{"internalType": "uint256", "name": "id", "type": "uint256"}],
|
356
|
+
"name": "claimBudget",
|
357
|
+
"outputs": [],
|
358
|
+
"stateMutability": "nonpayable",
|
359
|
+
"type": "function",
|
360
|
+
},
|
361
|
+
{
|
362
|
+
"inputs": [
|
363
|
+
{"internalType": "address", "name": "provider", "type": "address"},
|
364
|
+
{"internalType": "uint256", "name": "expiredAt", "type": "uint256"},
|
365
|
+
],
|
366
|
+
"name": "createJob",
|
367
|
+
"outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
|
368
|
+
"stateMutability": "nonpayable",
|
369
|
+
"type": "function",
|
370
|
+
},
|
371
|
+
{
|
372
|
+
"inputs": [
|
373
|
+
{"internalType": "uint256", "name": "jobId", "type": "uint256"},
|
374
|
+
{"internalType": "string", "name": "content", "type": "string"},
|
375
|
+
{
|
376
|
+
"internalType": "enum InteractionLedger.MemoType",
|
377
|
+
"name": "memoType",
|
378
|
+
"type": "uint8",
|
379
|
+
},
|
380
|
+
{"internalType": "bool", "name": "isSecured", "type": "bool"},
|
381
|
+
{"internalType": "uint8", "name": "nextPhase", "type": "uint8"},
|
382
|
+
],
|
383
|
+
"name": "createMemo",
|
384
|
+
"outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
|
385
|
+
"stateMutability": "nonpayable",
|
386
|
+
"type": "function",
|
387
|
+
},
|
388
|
+
{
|
389
|
+
"inputs": [],
|
390
|
+
"name": "evaluatorCounter",
|
391
|
+
"outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
|
392
|
+
"stateMutability": "view",
|
393
|
+
"type": "function",
|
394
|
+
},
|
395
|
+
{
|
396
|
+
"inputs": [],
|
397
|
+
"name": "evaluatorFeeBP",
|
398
|
+
"outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
|
399
|
+
"stateMutability": "view",
|
400
|
+
"type": "function",
|
401
|
+
},
|
402
|
+
{
|
403
|
+
"inputs": [{"internalType": "address", "name": "", "type": "address"}],
|
404
|
+
"name": "evaluators",
|
405
|
+
"outputs": [{"internalType": "bool", "name": "", "type": "bool"}],
|
406
|
+
"stateMutability": "view",
|
407
|
+
"type": "function",
|
408
|
+
},
|
409
|
+
{
|
410
|
+
"inputs": [{"internalType": "uint256", "name": "jobId", "type": "uint256"}],
|
411
|
+
"name": "getAllMemos",
|
412
|
+
"outputs": [
|
413
|
+
{
|
414
|
+
"components": [
|
415
|
+
{"internalType": "string", "name": "content", "type": "string"},
|
416
|
+
{
|
417
|
+
"internalType": "enum InteractionLedger.MemoType",
|
418
|
+
"name": "memoType",
|
419
|
+
"type": "uint8",
|
420
|
+
},
|
421
|
+
{"internalType": "bool", "name": "isSecured", "type": "bool"},
|
422
|
+
{"internalType": "uint8", "name": "nextPhase", "type": "uint8"},
|
423
|
+
{"internalType": "uint256", "name": "jobId", "type": "uint256"},
|
424
|
+
{"internalType": "uint8", "name": "numApprovals", "type": "uint8"},
|
425
|
+
{"internalType": "address", "name": "sender", "type": "address"},
|
426
|
+
],
|
427
|
+
"internalType": "struct InteractionLedger.Memo[]",
|
428
|
+
"name": "",
|
429
|
+
"type": "tuple[]",
|
430
|
+
},
|
431
|
+
],
|
432
|
+
"stateMutability": "view",
|
433
|
+
"type": "function",
|
434
|
+
},
|
435
|
+
{
|
436
|
+
"inputs": [
|
437
|
+
{"internalType": "uint256", "name": "jobId", "type": "uint256"},
|
438
|
+
{"internalType": "uint8", "name": "phase", "type": "uint8"},
|
439
|
+
],
|
440
|
+
"name": "getMemosForPhase",
|
441
|
+
"outputs": [
|
442
|
+
{
|
443
|
+
"components": [
|
444
|
+
{"internalType": "string", "name": "content", "type": "string"},
|
445
|
+
{
|
446
|
+
"internalType": "enum InteractionLedger.MemoType",
|
447
|
+
"name": "memoType",
|
448
|
+
"type": "uint8",
|
449
|
+
},
|
450
|
+
{"internalType": "bool", "name": "isSecured", "type": "bool"},
|
451
|
+
{"internalType": "uint8", "name": "nextPhase", "type": "uint8"},
|
452
|
+
{"internalType": "uint256", "name": "jobId", "type": "uint256"},
|
453
|
+
{"internalType": "uint8", "name": "numApprovals", "type": "uint8"},
|
454
|
+
{"internalType": "address", "name": "sender", "type": "address"},
|
455
|
+
],
|
456
|
+
"internalType": "struct InteractionLedger.Memo[]",
|
457
|
+
"name": "",
|
458
|
+
"type": "tuple[]",
|
459
|
+
},
|
460
|
+
],
|
461
|
+
"stateMutability": "view",
|
462
|
+
"type": "function",
|
463
|
+
},
|
464
|
+
{
|
465
|
+
"inputs": [],
|
466
|
+
"name": "getPhases",
|
467
|
+
"outputs": [{"internalType": "string[6]", "name": "", "type": "string[6]"}],
|
468
|
+
"stateMutability": "pure",
|
469
|
+
"type": "function",
|
470
|
+
},
|
471
|
+
{
|
472
|
+
"inputs": [{"internalType": "bytes32", "name": "role", "type": "bytes32"}],
|
473
|
+
"name": "getRoleAdmin",
|
474
|
+
"outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}],
|
475
|
+
"stateMutability": "view",
|
476
|
+
"type": "function",
|
477
|
+
},
|
478
|
+
{
|
479
|
+
"inputs": [
|
480
|
+
{"internalType": "bytes32", "name": "role", "type": "bytes32"},
|
481
|
+
{"internalType": "address", "name": "account", "type": "address"},
|
482
|
+
],
|
483
|
+
"name": "grantRole",
|
484
|
+
"outputs": [],
|
485
|
+
"stateMutability": "nonpayable",
|
486
|
+
"type": "function",
|
487
|
+
},
|
488
|
+
{
|
489
|
+
"inputs": [
|
490
|
+
{"internalType": "bytes32", "name": "role", "type": "bytes32"},
|
491
|
+
{"internalType": "address", "name": "account", "type": "address"},
|
492
|
+
],
|
493
|
+
"name": "hasRole",
|
494
|
+
"outputs": [{"internalType": "bool", "name": "", "type": "bool"}],
|
495
|
+
"stateMutability": "view",
|
496
|
+
"type": "function",
|
497
|
+
},
|
498
|
+
{
|
499
|
+
"inputs": [
|
500
|
+
{"internalType": "address", "name": "_providerRegistry", "type": "address"},
|
501
|
+
{"internalType": "address", "name": "paymentTokenAddress", "type": "address"},
|
502
|
+
{"internalType": "uint256", "name": "evaluatorFeeBP_", "type": "uint256"},
|
503
|
+
{"internalType": "uint8", "name": "numEvaluatorsPerJob_", "type": "uint8"},
|
504
|
+
{"internalType": "uint8", "name": "minApprovals_", "type": "uint8"},
|
505
|
+
],
|
506
|
+
"name": "initialize",
|
507
|
+
"outputs": [],
|
508
|
+
"stateMutability": "nonpayable",
|
509
|
+
"type": "function",
|
510
|
+
},
|
511
|
+
{
|
512
|
+
"inputs": [{"internalType": "address", "name": "evaluator", "type": "address"}],
|
513
|
+
"name": "isEvaluator",
|
514
|
+
"outputs": [{"internalType": "bool", "name": "", "type": "bool"}],
|
515
|
+
"stateMutability": "view",
|
516
|
+
"type": "function",
|
517
|
+
},
|
518
|
+
{
|
519
|
+
"inputs": [
|
520
|
+
{"internalType": "uint256", "name": "jobId", "type": "uint256"},
|
521
|
+
{"internalType": "address", "name": "account", "type": "address"},
|
522
|
+
],
|
523
|
+
"name": "isJobEvaluator",
|
524
|
+
"outputs": [{"internalType": "bool", "name": "", "type": "bool"}],
|
525
|
+
"stateMutability": "view",
|
526
|
+
"type": "function",
|
527
|
+
},
|
528
|
+
{
|
529
|
+
"inputs": [],
|
530
|
+
"name": "jobCounter",
|
531
|
+
"outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
|
532
|
+
"stateMutability": "view",
|
533
|
+
"type": "function",
|
534
|
+
},
|
535
|
+
{
|
536
|
+
"inputs": [
|
537
|
+
{"internalType": "uint256", "name": "jobId", "type": "uint256"},
|
538
|
+
{"internalType": "uint256", "name": "", "type": "uint256"},
|
539
|
+
],
|
540
|
+
"name": "jobEvaluators",
|
541
|
+
"outputs": [{"internalType": "address", "name": "evaluators", "type": "address"}],
|
542
|
+
"stateMutability": "view",
|
543
|
+
"type": "function",
|
544
|
+
},
|
545
|
+
{
|
546
|
+
"inputs": [
|
547
|
+
{"internalType": "uint256", "name": "jobId", "type": "uint256"},
|
548
|
+
{"internalType": "uint8", "name": "phase", "type": "uint8"},
|
549
|
+
{"internalType": "uint256", "name": "", "type": "uint256"},
|
550
|
+
],
|
551
|
+
"name": "jobMemoIds",
|
552
|
+
"outputs": [{"internalType": "uint256", "name": "memoIds", "type": "uint256"}],
|
553
|
+
"stateMutability": "view",
|
554
|
+
"type": "function",
|
555
|
+
},
|
556
|
+
{
|
557
|
+
"inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
|
558
|
+
"name": "jobs",
|
559
|
+
"outputs": [
|
560
|
+
{"internalType": "uint256", "name": "id", "type": "uint256"},
|
561
|
+
{"internalType": "address", "name": "client", "type": "address"},
|
562
|
+
{"internalType": "address", "name": "provider", "type": "address"},
|
563
|
+
{"internalType": "uint256", "name": "budget", "type": "uint256"},
|
564
|
+
{"internalType": "uint256", "name": "amountClaimed", "type": "uint256"},
|
565
|
+
{"internalType": "uint8", "name": "phase", "type": "uint8"},
|
566
|
+
{"internalType": "uint256", "name": "memoCount", "type": "uint256"},
|
567
|
+
{"internalType": "uint256", "name": "expiredAt", "type": "uint256"},
|
568
|
+
{"internalType": "uint8", "name": "evaluatorCount", "type": "uint8"},
|
569
|
+
],
|
570
|
+
"stateMutability": "view",
|
571
|
+
"type": "function",
|
572
|
+
},
|
573
|
+
{
|
574
|
+
"inputs": [],
|
575
|
+
"name": "memoCounter",
|
576
|
+
"outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
|
577
|
+
"stateMutability": "view",
|
578
|
+
"type": "function",
|
579
|
+
},
|
580
|
+
{
|
581
|
+
"inputs": [],
|
582
|
+
"name": "minApprovals",
|
583
|
+
"outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}],
|
584
|
+
"stateMutability": "view",
|
585
|
+
"type": "function",
|
586
|
+
},
|
587
|
+
{
|
588
|
+
"inputs": [],
|
589
|
+
"name": "numEvaluatorsPerJob",
|
590
|
+
"outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}],
|
591
|
+
"stateMutability": "view",
|
592
|
+
"type": "function",
|
593
|
+
},
|
594
|
+
{
|
595
|
+
"inputs": [],
|
596
|
+
"name": "paymentToken",
|
597
|
+
"outputs": [{"internalType": "contract IERC20", "name": "", "type": "address"}],
|
598
|
+
"stateMutability": "view",
|
599
|
+
"type": "function",
|
600
|
+
},
|
601
|
+
{
|
602
|
+
"inputs": [],
|
603
|
+
"name": "providerRegistry",
|
604
|
+
"outputs": [
|
605
|
+
{
|
606
|
+
"internalType": "contract IServiceProviderRegistry",
|
607
|
+
"name": "",
|
608
|
+
"type": "address",
|
609
|
+
},
|
610
|
+
],
|
611
|
+
"stateMutability": "view",
|
612
|
+
"type": "function",
|
613
|
+
},
|
614
|
+
{
|
615
|
+
"inputs": [{"internalType": "address", "name": "evaluator", "type": "address"}],
|
616
|
+
"name": "removeEvaluator",
|
617
|
+
"outputs": [],
|
618
|
+
"stateMutability": "nonpayable",
|
619
|
+
"type": "function",
|
620
|
+
},
|
621
|
+
{
|
622
|
+
"inputs": [
|
623
|
+
{"internalType": "bytes32", "name": "role", "type": "bytes32"},
|
624
|
+
{"internalType": "address", "name": "callerConfirmation", "type": "address"},
|
625
|
+
],
|
626
|
+
"name": "renounceRole",
|
627
|
+
"outputs": [],
|
628
|
+
"stateMutability": "nonpayable",
|
629
|
+
"type": "function",
|
630
|
+
},
|
631
|
+
{
|
632
|
+
"inputs": [
|
633
|
+
{"internalType": "bytes32", "name": "role", "type": "bytes32"},
|
634
|
+
{"internalType": "address", "name": "account", "type": "address"},
|
635
|
+
],
|
636
|
+
"name": "revokeRole",
|
637
|
+
"outputs": [],
|
638
|
+
"stateMutability": "nonpayable",
|
639
|
+
"type": "function",
|
640
|
+
},
|
641
|
+
{
|
642
|
+
"inputs": [
|
643
|
+
{"internalType": "uint256", "name": "jobId", "type": "uint256"},
|
644
|
+
{"internalType": "uint256", "name": "amount", "type": "uint256"},
|
645
|
+
],
|
646
|
+
"name": "setBudget",
|
647
|
+
"outputs": [],
|
648
|
+
"stateMutability": "nonpayable",
|
649
|
+
"type": "function",
|
650
|
+
},
|
651
|
+
{
|
652
|
+
"inputs": [
|
653
|
+
{"internalType": "uint256", "name": "memoId", "type": "uint256"},
|
654
|
+
{"internalType": "bool", "name": "isApproved", "type": "bool"},
|
655
|
+
{"internalType": "string", "name": "reason", "type": "string"},
|
656
|
+
],
|
657
|
+
"name": "signMemo",
|
658
|
+
"outputs": [],
|
659
|
+
"stateMutability": "nonpayable",
|
660
|
+
"type": "function",
|
661
|
+
},
|
662
|
+
{
|
663
|
+
"inputs": [
|
664
|
+
{"internalType": "uint256", "name": "memoId", "type": "uint256"},
|
665
|
+
{"internalType": "address", "name": "signer", "type": "address"},
|
666
|
+
],
|
667
|
+
"name": "signatories",
|
668
|
+
"outputs": [{"internalType": "uint8", "name": "res", "type": "uint8"}],
|
669
|
+
"stateMutability": "view",
|
670
|
+
"type": "function",
|
671
|
+
},
|
672
|
+
{
|
673
|
+
"inputs": [{"internalType": "bytes4", "name": "interfaceId", "type": "bytes4"}],
|
674
|
+
"name": "supportsInterface",
|
675
|
+
"outputs": [{"internalType": "bool", "name": "", "type": "bool"}],
|
676
|
+
"stateMutability": "view",
|
677
|
+
"type": "function",
|
678
|
+
},
|
679
|
+
{
|
680
|
+
"inputs": [
|
681
|
+
{"internalType": "uint256", "name": "evaluatorFeeBP_", "type": "uint256"},
|
682
|
+
{"internalType": "uint8", "name": "numEvaluatorsPerJob_", "type": "uint8"},
|
683
|
+
{"internalType": "uint8", "name": "minApprovals_", "type": "uint8"},
|
684
|
+
],
|
685
|
+
"name": "updateEvaluatorConfigs",
|
686
|
+
"outputs": [],
|
687
|
+
"stateMutability": "nonpayable",
|
688
|
+
"type": "function",
|
689
|
+
},
|
690
|
+
]
|