@wangwuww/neo-market-cli 0.1.0-alpha.1

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.
Files changed (123) hide show
  1. package/README.md +52 -0
  2. package/SKILL.md +81 -0
  3. package/artifacts/contracts/AgentRegistry.sol/AgentRegistry.dbg.json +4 -0
  4. package/artifacts/contracts/AgentRegistry.sol/AgentRegistry.json +400 -0
  5. package/artifacts/contracts/ArbitrationMultisig.sol/ArbitrationMultisig.dbg.json +4 -0
  6. package/artifacts/contracts/ArbitrationMultisig.sol/ArbitrationMultisig.json +243 -0
  7. package/artifacts/contracts/ArbitrationMultisig.sol/ITokenEscrowExecute.dbg.json +4 -0
  8. package/artifacts/contracts/ArbitrationMultisig.sol/ITokenEscrowExecute.json +24 -0
  9. package/artifacts/contracts/FeeManager.sol/FeeManager.dbg.json +4 -0
  10. package/artifacts/contracts/FeeManager.sol/FeeManager.json +53 -0
  11. package/artifacts/contracts/Marketplace.sol/IModuleRegistry.dbg.json +4 -0
  12. package/artifacts/contracts/Marketplace.sol/IModuleRegistry.json +30 -0
  13. package/artifacts/contracts/Marketplace.sol/ITokenEscrowMinimal.dbg.json +4 -0
  14. package/artifacts/contracts/Marketplace.sol/ITokenEscrowMinimal.json +120 -0
  15. package/artifacts/contracts/Marketplace.sol/Marketplace.dbg.json +4 -0
  16. package/artifacts/contracts/Marketplace.sol/Marketplace.json +746 -0
  17. package/artifacts/contracts/ModuleKeys.sol/ModuleKeys.dbg.json +4 -0
  18. package/artifacts/contracts/ModuleKeys.sol/ModuleKeys.json +10 -0
  19. package/artifacts/contracts/ModuleRegistry.sol/ModuleRegistry.dbg.json +4 -0
  20. package/artifacts/contracts/ModuleRegistry.sol/ModuleRegistry.json +169 -0
  21. package/artifacts/contracts/Reputation.sol/Reputation.dbg.json +4 -0
  22. package/artifacts/contracts/Reputation.sol/Reputation.json +265 -0
  23. package/artifacts/contracts/TokenEscrow.sol/IArbitration.dbg.json +4 -0
  24. package/artifacts/contracts/TokenEscrow.sol/IArbitration.json +59 -0
  25. package/artifacts/contracts/TokenEscrow.sol/IERC20Minimal.dbg.json +4 -0
  26. package/artifacts/contracts/TokenEscrow.sol/IERC20Minimal.json +64 -0
  27. package/artifacts/contracts/TokenEscrow.sol/IFeeManager.dbg.json +4 -0
  28. package/artifacts/contracts/TokenEscrow.sol/IFeeManager.json +37 -0
  29. package/artifacts/contracts/TokenEscrow.sol/IModuleRegistry.dbg.json +4 -0
  30. package/artifacts/contracts/TokenEscrow.sol/IModuleRegistry.json +30 -0
  31. package/artifacts/contracts/TokenEscrow.sol/TokenEscrow.dbg.json +4 -0
  32. package/artifacts/contracts/TokenEscrow.sol/TokenEscrow.json +1091 -0
  33. package/artifacts/contracts/USDCMock.sol/USDCMock.dbg.json +4 -0
  34. package/artifacts/contracts/USDCMock.sol/USDCMock.json +251 -0
  35. package/artifacts/contracts/interfaces/IAgentRegistry.sol/IAgentRegistry.dbg.json +4 -0
  36. package/artifacts/contracts/interfaces/IAgentRegistry.sol/IAgentRegistry.json +203 -0
  37. package/artifacts/contracts/interfaces/IArbitration.sol/IArbitration.dbg.json +4 -0
  38. package/artifacts/contracts/interfaces/IArbitration.sol/IArbitration.json +127 -0
  39. package/artifacts/contracts/interfaces/IEscrow.sol/IEscrow.dbg.json +4 -0
  40. package/artifacts/contracts/interfaces/IEscrow.sol/IEscrow.json +431 -0
  41. package/artifacts/contracts/interfaces/IFeeManager.sol/IFeeManager.dbg.json +4 -0
  42. package/artifacts/contracts/interfaces/IFeeManager.sol/IFeeManager.json +87 -0
  43. package/artifacts/contracts/interfaces/IMarketplace.sol/IMarketplace.dbg.json +4 -0
  44. package/artifacts/contracts/interfaces/IMarketplace.sol/IMarketplace.json +427 -0
  45. package/artifacts/contracts/interfaces/IReputation.sol/IReputation.dbg.json +4 -0
  46. package/artifacts/contracts/interfaces/IReputation.sol/IReputation.json +151 -0
  47. package/artifacts/contracts/interfaces/ISignatures.sol/ISignatures.dbg.json +4 -0
  48. package/artifacts/contracts/interfaces/ISignatures.sol/ISignatures.json +414 -0
  49. package/artifacts/contracts/interfaces/ITokenEscrow.sol/ITokenEscrow.dbg.json +4 -0
  50. package/artifacts/contracts/interfaces/ITokenEscrow.sol/ITokenEscrow.json +245 -0
  51. package/deployed_addresses.json +11 -0
  52. package/dist/artifacts/build-info/263a967f7f3cd59c812a49b3d7012981.json +1 -0
  53. package/dist/artifacts/build-info/4a4ba527b0f3c1846c84e3e500a6db58.json +1 -0
  54. package/dist/artifacts/build-info/4e7053f3332c81b7a9916619c1b87388.json +1 -0
  55. package/dist/artifacts/build-info/50367a8838c4b3b556df951a374f59c7.json +1 -0
  56. package/dist/artifacts/build-info/61ca0f28829f90b00df26748203acea3.json +1 -0
  57. package/dist/artifacts/build-info/63fca17ade81ae3db2e066ca74f790d1.json +1 -0
  58. package/dist/artifacts/build-info/85f6bdb1a79bcf0154bb1562fa8e221e.json +1 -0
  59. package/dist/artifacts/contracts/AgentRegistry.sol/AgentRegistry.dbg.json +4 -0
  60. package/dist/artifacts/contracts/AgentRegistry.sol/AgentRegistry.json +400 -0
  61. package/dist/artifacts/contracts/ArbitrationMultisig.sol/ArbitrationMultisig.dbg.json +4 -0
  62. package/dist/artifacts/contracts/ArbitrationMultisig.sol/ArbitrationMultisig.json +243 -0
  63. package/dist/artifacts/contracts/ArbitrationMultisig.sol/ITokenEscrowExecute.dbg.json +4 -0
  64. package/dist/artifacts/contracts/ArbitrationMultisig.sol/ITokenEscrowExecute.json +24 -0
  65. package/dist/artifacts/contracts/FeeManager.sol/FeeManager.dbg.json +4 -0
  66. package/dist/artifacts/contracts/FeeManager.sol/FeeManager.json +53 -0
  67. package/dist/artifacts/contracts/Marketplace.sol/IModuleRegistry.dbg.json +4 -0
  68. package/dist/artifacts/contracts/Marketplace.sol/IModuleRegistry.json +30 -0
  69. package/dist/artifacts/contracts/Marketplace.sol/ITokenEscrowMinimal.dbg.json +4 -0
  70. package/dist/artifacts/contracts/Marketplace.sol/ITokenEscrowMinimal.json +120 -0
  71. package/dist/artifacts/contracts/Marketplace.sol/Marketplace.dbg.json +4 -0
  72. package/dist/artifacts/contracts/Marketplace.sol/Marketplace.json +746 -0
  73. package/dist/artifacts/contracts/ModuleKeys.sol/ModuleKeys.dbg.json +4 -0
  74. package/dist/artifacts/contracts/ModuleKeys.sol/ModuleKeys.json +10 -0
  75. package/dist/artifacts/contracts/ModuleRegistry.sol/ModuleRegistry.dbg.json +4 -0
  76. package/dist/artifacts/contracts/ModuleRegistry.sol/ModuleRegistry.json +169 -0
  77. package/dist/artifacts/contracts/Reputation.sol/Reputation.dbg.json +4 -0
  78. package/dist/artifacts/contracts/Reputation.sol/Reputation.json +265 -0
  79. package/dist/artifacts/contracts/TokenEscrow.sol/IArbitration.dbg.json +4 -0
  80. package/dist/artifacts/contracts/TokenEscrow.sol/IArbitration.json +59 -0
  81. package/dist/artifacts/contracts/TokenEscrow.sol/IERC20Minimal.dbg.json +4 -0
  82. package/dist/artifacts/contracts/TokenEscrow.sol/IERC20Minimal.json +64 -0
  83. package/dist/artifacts/contracts/TokenEscrow.sol/IFeeManager.dbg.json +4 -0
  84. package/dist/artifacts/contracts/TokenEscrow.sol/IFeeManager.json +37 -0
  85. package/dist/artifacts/contracts/TokenEscrow.sol/IModuleRegistry.dbg.json +4 -0
  86. package/dist/artifacts/contracts/TokenEscrow.sol/IModuleRegistry.json +30 -0
  87. package/dist/artifacts/contracts/TokenEscrow.sol/TokenEscrow.dbg.json +4 -0
  88. package/dist/artifacts/contracts/TokenEscrow.sol/TokenEscrow.json +1091 -0
  89. package/dist/artifacts/contracts/USDCMock.sol/USDCMock.dbg.json +4 -0
  90. package/dist/artifacts/contracts/USDCMock.sol/USDCMock.json +251 -0
  91. package/dist/artifacts/contracts/interfaces/IAgentRegistry.sol/IAgentRegistry.dbg.json +4 -0
  92. package/dist/artifacts/contracts/interfaces/IAgentRegistry.sol/IAgentRegistry.json +203 -0
  93. package/dist/artifacts/contracts/interfaces/IArbitration.sol/IArbitration.dbg.json +4 -0
  94. package/dist/artifacts/contracts/interfaces/IArbitration.sol/IArbitration.json +127 -0
  95. package/dist/artifacts/contracts/interfaces/IEscrow.sol/IEscrow.dbg.json +4 -0
  96. package/dist/artifacts/contracts/interfaces/IEscrow.sol/IEscrow.json +431 -0
  97. package/dist/artifacts/contracts/interfaces/IFeeManager.sol/IFeeManager.dbg.json +4 -0
  98. package/dist/artifacts/contracts/interfaces/IFeeManager.sol/IFeeManager.json +87 -0
  99. package/dist/artifacts/contracts/interfaces/IMarketplace.sol/IMarketplace.dbg.json +4 -0
  100. package/dist/artifacts/contracts/interfaces/IMarketplace.sol/IMarketplace.json +427 -0
  101. package/dist/artifacts/contracts/interfaces/IReputation.sol/IReputation.dbg.json +4 -0
  102. package/dist/artifacts/contracts/interfaces/IReputation.sol/IReputation.json +151 -0
  103. package/dist/artifacts/contracts/interfaces/ISignatures.sol/ISignatures.dbg.json +4 -0
  104. package/dist/artifacts/contracts/interfaces/ISignatures.sol/ISignatures.json +414 -0
  105. package/dist/artifacts/contracts/interfaces/ITokenEscrow.sol/ITokenEscrow.dbg.json +4 -0
  106. package/dist/artifacts/contracts/interfaces/ITokenEscrow.sol/ITokenEscrow.json +245 -0
  107. package/dist/cli.js +306 -0
  108. package/dist/deployed_addresses.json +11 -0
  109. package/dist/scripts/bridge_to_base.js +67 -0
  110. package/dist/scripts/check_balance.js +46 -0
  111. package/dist/scripts/count_agents.js +62 -0
  112. package/dist/scripts/demo_e2e.js +256 -0
  113. package/dist/scripts/deploy_prod.js +190 -0
  114. package/dist/scripts/deploy_sepolia.js +196 -0
  115. package/dist/scripts/issue_usdc.js +97 -0
  116. package/dist/scripts/issue_usdc_retry.js +92 -0
  117. package/dist/scripts/run_genesis_tx.js +127 -0
  118. package/dist/scripts/show_address.js +52 -0
  119. package/dist/scripts/test_encryption.js +65 -0
  120. package/dist/scripts/utils/encryption.js +80 -0
  121. package/dist/scripts/verify_and_run.js +130 -0
  122. package/dist/scripts/wire_and_verify.js +120 -0
  123. package/package.json +39 -0
@@ -0,0 +1,427 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IMarketplace",
4
+ "sourceName": "contracts/interfaces/IMarketplace.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "uint256",
12
+ "name": "bidId",
13
+ "type": "uint256"
14
+ },
15
+ {
16
+ "indexed": true,
17
+ "internalType": "uint256",
18
+ "name": "jobId",
19
+ "type": "uint256"
20
+ },
21
+ {
22
+ "indexed": true,
23
+ "internalType": "address",
24
+ "name": "agent",
25
+ "type": "address"
26
+ },
27
+ {
28
+ "indexed": false,
29
+ "internalType": "uint256",
30
+ "name": "price",
31
+ "type": "uint256"
32
+ }
33
+ ],
34
+ "name": "BidPlaced",
35
+ "type": "event"
36
+ },
37
+ {
38
+ "anonymous": false,
39
+ "inputs": [
40
+ {
41
+ "indexed": true,
42
+ "internalType": "uint256",
43
+ "name": "jobId",
44
+ "type": "uint256"
45
+ },
46
+ {
47
+ "indexed": true,
48
+ "internalType": "uint256",
49
+ "name": "bidId",
50
+ "type": "uint256"
51
+ },
52
+ {
53
+ "indexed": true,
54
+ "internalType": "address",
55
+ "name": "agent",
56
+ "type": "address"
57
+ }
58
+ ],
59
+ "name": "BidSelected",
60
+ "type": "event"
61
+ },
62
+ {
63
+ "anonymous": false,
64
+ "inputs": [
65
+ {
66
+ "indexed": true,
67
+ "internalType": "uint256",
68
+ "name": "jobId",
69
+ "type": "uint256"
70
+ },
71
+ {
72
+ "indexed": true,
73
+ "internalType": "address",
74
+ "name": "buyer",
75
+ "type": "address"
76
+ }
77
+ ],
78
+ "name": "JobCancelled",
79
+ "type": "event"
80
+ },
81
+ {
82
+ "anonymous": false,
83
+ "inputs": [
84
+ {
85
+ "indexed": true,
86
+ "internalType": "uint256",
87
+ "name": "jobId",
88
+ "type": "uint256"
89
+ },
90
+ {
91
+ "indexed": true,
92
+ "internalType": "address",
93
+ "name": "buyer",
94
+ "type": "address"
95
+ }
96
+ ],
97
+ "name": "JobClosed",
98
+ "type": "event"
99
+ },
100
+ {
101
+ "anonymous": false,
102
+ "inputs": [
103
+ {
104
+ "indexed": true,
105
+ "internalType": "uint256",
106
+ "name": "jobId",
107
+ "type": "uint256"
108
+ },
109
+ {
110
+ "indexed": true,
111
+ "internalType": "address",
112
+ "name": "buyer",
113
+ "type": "address"
114
+ }
115
+ ],
116
+ "name": "JobExpired",
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": true,
130
+ "internalType": "address",
131
+ "name": "buyer",
132
+ "type": "address"
133
+ },
134
+ {
135
+ "indexed": false,
136
+ "internalType": "string",
137
+ "name": "jobSpecCID",
138
+ "type": "string"
139
+ },
140
+ {
141
+ "indexed": false,
142
+ "internalType": "enum IMarketplace.JobSku",
143
+ "name": "sku",
144
+ "type": "uint8"
145
+ },
146
+ {
147
+ "indexed": false,
148
+ "internalType": "uint256",
149
+ "name": "budget",
150
+ "type": "uint256"
151
+ },
152
+ {
153
+ "indexed": false,
154
+ "internalType": "uint64",
155
+ "name": "deadline",
156
+ "type": "uint64"
157
+ }
158
+ ],
159
+ "name": "JobPostedEvent",
160
+ "type": "event"
161
+ },
162
+ {
163
+ "anonymous": false,
164
+ "inputs": [
165
+ {
166
+ "indexed": true,
167
+ "internalType": "uint256",
168
+ "name": "jobId",
169
+ "type": "uint256"
170
+ },
171
+ {
172
+ "indexed": true,
173
+ "internalType": "address",
174
+ "name": "buyer",
175
+ "type": "address"
176
+ },
177
+ {
178
+ "indexed": false,
179
+ "internalType": "string",
180
+ "name": "jobSpecCID",
181
+ "type": "string"
182
+ },
183
+ {
184
+ "indexed": false,
185
+ "internalType": "uint256",
186
+ "name": "budget",
187
+ "type": "uint256"
188
+ }
189
+ ],
190
+ "name": "JobPublished",
191
+ "type": "event"
192
+ },
193
+ {
194
+ "inputs": [
195
+ {
196
+ "internalType": "uint256",
197
+ "name": "jobId",
198
+ "type": "uint256"
199
+ }
200
+ ],
201
+ "name": "cancelJob",
202
+ "outputs": [],
203
+ "stateMutability": "nonpayable",
204
+ "type": "function"
205
+ },
206
+ {
207
+ "inputs": [
208
+ {
209
+ "internalType": "uint256",
210
+ "name": "jobId",
211
+ "type": "uint256"
212
+ }
213
+ ],
214
+ "name": "closeJob",
215
+ "outputs": [],
216
+ "stateMutability": "nonpayable",
217
+ "type": "function"
218
+ },
219
+ {
220
+ "inputs": [
221
+ {
222
+ "internalType": "uint256",
223
+ "name": "bidId",
224
+ "type": "uint256"
225
+ }
226
+ ],
227
+ "name": "getBid",
228
+ "outputs": [
229
+ {
230
+ "components": [
231
+ {
232
+ "internalType": "uint256",
233
+ "name": "bidId",
234
+ "type": "uint256"
235
+ },
236
+ {
237
+ "internalType": "uint256",
238
+ "name": "jobId",
239
+ "type": "uint256"
240
+ },
241
+ {
242
+ "internalType": "address",
243
+ "name": "agent",
244
+ "type": "address"
245
+ },
246
+ {
247
+ "internalType": "string",
248
+ "name": "bidCID",
249
+ "type": "string"
250
+ },
251
+ {
252
+ "internalType": "uint256",
253
+ "name": "price",
254
+ "type": "uint256"
255
+ },
256
+ {
257
+ "internalType": "uint64",
258
+ "name": "eta",
259
+ "type": "uint64"
260
+ }
261
+ ],
262
+ "internalType": "struct IMarketplace.BidInfo",
263
+ "name": "",
264
+ "type": "tuple"
265
+ }
266
+ ],
267
+ "stateMutability": "view",
268
+ "type": "function"
269
+ },
270
+ {
271
+ "inputs": [
272
+ {
273
+ "internalType": "uint256",
274
+ "name": "jobId",
275
+ "type": "uint256"
276
+ }
277
+ ],
278
+ "name": "getJob",
279
+ "outputs": [
280
+ {
281
+ "components": [
282
+ {
283
+ "internalType": "uint256",
284
+ "name": "jobId",
285
+ "type": "uint256"
286
+ },
287
+ {
288
+ "internalType": "address",
289
+ "name": "buyer",
290
+ "type": "address"
291
+ },
292
+ {
293
+ "internalType": "string",
294
+ "name": "jobSpecCID",
295
+ "type": "string"
296
+ },
297
+ {
298
+ "internalType": "enum IMarketplace.JobSku",
299
+ "name": "sku",
300
+ "type": "uint8"
301
+ },
302
+ {
303
+ "internalType": "uint256",
304
+ "name": "budget",
305
+ "type": "uint256"
306
+ },
307
+ {
308
+ "internalType": "address",
309
+ "name": "paymentToken",
310
+ "type": "address"
311
+ },
312
+ {
313
+ "internalType": "uint64",
314
+ "name": "deadline",
315
+ "type": "uint64"
316
+ },
317
+ {
318
+ "internalType": "enum IMarketplace.JobStatus",
319
+ "name": "status",
320
+ "type": "uint8"
321
+ }
322
+ ],
323
+ "internalType": "struct IMarketplace.JobInfo",
324
+ "name": "",
325
+ "type": "tuple"
326
+ }
327
+ ],
328
+ "stateMutability": "view",
329
+ "type": "function"
330
+ },
331
+ {
332
+ "inputs": [
333
+ {
334
+ "internalType": "uint256",
335
+ "name": "jobId",
336
+ "type": "uint256"
337
+ },
338
+ {
339
+ "internalType": "string",
340
+ "name": "bidCID",
341
+ "type": "string"
342
+ },
343
+ {
344
+ "internalType": "uint256",
345
+ "name": "price",
346
+ "type": "uint256"
347
+ },
348
+ {
349
+ "internalType": "uint64",
350
+ "name": "eta",
351
+ "type": "uint64"
352
+ }
353
+ ],
354
+ "name": "placeBid",
355
+ "outputs": [
356
+ {
357
+ "internalType": "uint256",
358
+ "name": "bidId",
359
+ "type": "uint256"
360
+ }
361
+ ],
362
+ "stateMutability": "nonpayable",
363
+ "type": "function"
364
+ },
365
+ {
366
+ "inputs": [
367
+ {
368
+ "internalType": "string",
369
+ "name": "jobSpecCID",
370
+ "type": "string"
371
+ },
372
+ {
373
+ "internalType": "enum IMarketplace.JobSku",
374
+ "name": "sku",
375
+ "type": "uint8"
376
+ },
377
+ {
378
+ "internalType": "uint256",
379
+ "name": "budget",
380
+ "type": "uint256"
381
+ },
382
+ {
383
+ "internalType": "address",
384
+ "name": "paymentToken",
385
+ "type": "address"
386
+ },
387
+ {
388
+ "internalType": "uint64",
389
+ "name": "deadline",
390
+ "type": "uint64"
391
+ }
392
+ ],
393
+ "name": "publishJob",
394
+ "outputs": [
395
+ {
396
+ "internalType": "uint256",
397
+ "name": "jobId",
398
+ "type": "uint256"
399
+ }
400
+ ],
401
+ "stateMutability": "nonpayable",
402
+ "type": "function"
403
+ },
404
+ {
405
+ "inputs": [
406
+ {
407
+ "internalType": "uint256",
408
+ "name": "jobId",
409
+ "type": "uint256"
410
+ },
411
+ {
412
+ "internalType": "uint256",
413
+ "name": "bidId",
414
+ "type": "uint256"
415
+ }
416
+ ],
417
+ "name": "selectBid",
418
+ "outputs": [],
419
+ "stateMutability": "nonpayable",
420
+ "type": "function"
421
+ }
422
+ ],
423
+ "bytecode": "0x",
424
+ "deployedBytecode": "0x",
425
+ "linkReferences": {},
426
+ "deployedLinkReferences": {}
427
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/4a4ba527b0f3c1846c84e3e500a6db58.json"
4
+ }
@@ -0,0 +1,151 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IReputation",
4
+ "sourceName": "contracts/interfaces/IReputation.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "address",
12
+ "name": "subject",
13
+ "type": "address"
14
+ },
15
+ {
16
+ "indexed": false,
17
+ "internalType": "int256",
18
+ "name": "delta",
19
+ "type": "int256"
20
+ },
21
+ {
22
+ "indexed": true,
23
+ "internalType": "bytes32",
24
+ "name": "reasonHash",
25
+ "type": "bytes32"
26
+ },
27
+ {
28
+ "indexed": true,
29
+ "internalType": "uint256",
30
+ "name": "relatedId",
31
+ "type": "uint256"
32
+ },
33
+ {
34
+ "indexed": false,
35
+ "internalType": "int256",
36
+ "name": "newScore",
37
+ "type": "int256"
38
+ },
39
+ {
40
+ "indexed": false,
41
+ "internalType": "address",
42
+ "name": "updater",
43
+ "type": "address"
44
+ }
45
+ ],
46
+ "name": "ReputationEvent",
47
+ "type": "event"
48
+ },
49
+ {
50
+ "anonymous": false,
51
+ "inputs": [
52
+ {
53
+ "indexed": true,
54
+ "internalType": "bytes32",
55
+ "name": "reasonHash",
56
+ "type": "bytes32"
57
+ },
58
+ {
59
+ "indexed": false,
60
+ "internalType": "string",
61
+ "name": "reason",
62
+ "type": "string"
63
+ }
64
+ ],
65
+ "name": "ReputationReason",
66
+ "type": "event"
67
+ },
68
+ {
69
+ "anonymous": false,
70
+ "inputs": [
71
+ {
72
+ "indexed": true,
73
+ "internalType": "address",
74
+ "name": "subject",
75
+ "type": "address"
76
+ },
77
+ {
78
+ "indexed": false,
79
+ "internalType": "int256",
80
+ "name": "delta",
81
+ "type": "int256"
82
+ },
83
+ {
84
+ "indexed": false,
85
+ "internalType": "string",
86
+ "name": "reason",
87
+ "type": "string"
88
+ },
89
+ {
90
+ "indexed": false,
91
+ "internalType": "uint256",
92
+ "name": "relatedId",
93
+ "type": "uint256"
94
+ }
95
+ ],
96
+ "name": "ReputationUpdated",
97
+ "type": "event"
98
+ },
99
+ {
100
+ "inputs": [
101
+ {
102
+ "internalType": "address",
103
+ "name": "subject",
104
+ "type": "address"
105
+ }
106
+ ],
107
+ "name": "scoreOf",
108
+ "outputs": [
109
+ {
110
+ "internalType": "int256",
111
+ "name": "",
112
+ "type": "int256"
113
+ }
114
+ ],
115
+ "stateMutability": "view",
116
+ "type": "function"
117
+ },
118
+ {
119
+ "inputs": [
120
+ {
121
+ "internalType": "address",
122
+ "name": "subject",
123
+ "type": "address"
124
+ },
125
+ {
126
+ "internalType": "int256",
127
+ "name": "delta",
128
+ "type": "int256"
129
+ },
130
+ {
131
+ "internalType": "string",
132
+ "name": "reason",
133
+ "type": "string"
134
+ },
135
+ {
136
+ "internalType": "uint256",
137
+ "name": "relatedId",
138
+ "type": "uint256"
139
+ }
140
+ ],
141
+ "name": "update",
142
+ "outputs": [],
143
+ "stateMutability": "nonpayable",
144
+ "type": "function"
145
+ }
146
+ ],
147
+ "bytecode": "0x",
148
+ "deployedBytecode": "0x",
149
+ "linkReferences": {},
150
+ "deployedLinkReferences": {}
151
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/263a967f7f3cd59c812a49b3d7012981.json"
4
+ }