@wangwuww/neo-market-cli 0.1.0-alpha.2 → 0.1.0-alpha.3

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