@varun-ai07/covenant-mcp 2.3.6 → 2.3.7

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 (77) hide show
  1. package/dist/cli.js +0 -0
  2. package/dist/server.js +1 -1
  3. package/package.json +1 -1
  4. package/dist/sdk/chunk-3R2WXEXL.mjs +0 -828
  5. package/dist/sdk/chunk-6ORMNSPN.mjs +0 -842
  6. package/dist/sdk/chunk-FH2MCRWQ.mjs +0 -8732
  7. package/dist/sdk/chunk-Y3YIH5K3.mjs +0 -816
  8. package/dist/sdk/config.d.ts +0 -121
  9. package/dist/sdk/config.d.ts.map +0 -1
  10. package/dist/sdk/config.js +0 -196
  11. package/dist/sdk/config.js.map +0 -1
  12. package/dist/sdk/contracts/AgentCollective.json +0 -467
  13. package/dist/sdk/contracts/AgentRegistry.d.ts +0 -144
  14. package/dist/sdk/contracts/AgentRegistry.d.ts.map +0 -1
  15. package/dist/sdk/contracts/AgentRegistry.js +0 -92
  16. package/dist/sdk/contracts/AgentRegistry.js.map +0 -1
  17. package/dist/sdk/contracts/COVENANTRouter.json +0 -206
  18. package/dist/sdk/contracts/CovenantArbitration.json +0 -546
  19. package/dist/sdk/contracts/CovenantAttestation.json +0 -476
  20. package/dist/sdk/contracts/CovenantEscrow.d.ts +0 -70
  21. package/dist/sdk/contracts/CovenantEscrow.d.ts.map +0 -1
  22. package/dist/sdk/contracts/CovenantEscrow.js +0 -3
  23. package/dist/sdk/contracts/CovenantEscrow.js.map +0 -1
  24. package/dist/sdk/contracts/CovenantEscrow.json +0 -783
  25. package/dist/sdk/contracts/CovenantGovernance.json +0 -729
  26. package/dist/sdk/contracts/CovenantIdentity.d.ts +0 -70
  27. package/dist/sdk/contracts/CovenantIdentity.d.ts.map +0 -1
  28. package/dist/sdk/contracts/CovenantIdentity.js +0 -3
  29. package/dist/sdk/contracts/CovenantIdentity.js.map +0 -1
  30. package/dist/sdk/contracts/CovenantIdentity.json +0 -800
  31. package/dist/sdk/contracts/CovenantSettlement.json +0 -609
  32. package/dist/sdk/contracts/DisputeResolution.d.ts +0 -122
  33. package/dist/sdk/contracts/DisputeResolution.d.ts.map +0 -1
  34. package/dist/sdk/contracts/DisputeResolution.js +0 -86
  35. package/dist/sdk/contracts/DisputeResolution.js.map +0 -1
  36. package/dist/sdk/contracts/GrantProgram.json +0 -373
  37. package/dist/sdk/contracts/InsurancePool.d.ts +0 -209
  38. package/dist/sdk/contracts/InsurancePool.d.ts.map +0 -1
  39. package/dist/sdk/contracts/InsurancePool.js +0 -153
  40. package/dist/sdk/contracts/InsurancePool.js.map +0 -1
  41. package/dist/sdk/contracts/InsurancePool.json +0 -456
  42. package/dist/sdk/contracts/MultiTokenEscrow.json +0 -435
  43. package/dist/sdk/contracts/OpenTaskMarket.d.ts +0 -190
  44. package/dist/sdk/contracts/OpenTaskMarket.d.ts.map +0 -1
  45. package/dist/sdk/contracts/OpenTaskMarket.js +0 -117
  46. package/dist/sdk/contracts/OpenTaskMarket.js.map +0 -1
  47. package/dist/sdk/contracts/ParallelTaskBatch.json +0 -511
  48. package/dist/sdk/contracts/ReceiptVerifierV2.d.ts +0 -168
  49. package/dist/sdk/contracts/ReceiptVerifierV2.d.ts.map +0 -1
  50. package/dist/sdk/contracts/ReceiptVerifierV2.js +0 -109
  51. package/dist/sdk/contracts/ReceiptVerifierV2.js.map +0 -1
  52. package/dist/sdk/contracts/RevisionManager.json +0 -489
  53. package/dist/sdk/contracts/TaskEscrow.d.ts +0 -222
  54. package/dist/sdk/contracts/TaskEscrow.d.ts.map +0 -1
  55. package/dist/sdk/contracts/TaskEscrow.js +0 -144
  56. package/dist/sdk/contracts/TaskEscrow.js.map +0 -1
  57. package/dist/sdk/contracts/TrainingMarketplace.json +0 -357
  58. package/dist/sdk/index.d.mts +0 -385
  59. package/dist/sdk/index.d.ts +0 -35
  60. package/dist/sdk/index.d.ts.map +0 -1
  61. package/dist/sdk/index.js +0 -284
  62. package/dist/sdk/index.js.map +0 -1
  63. package/dist/sdk/index.mjs +0 -32
  64. package/dist/sdk/types.d.ts +0 -110
  65. package/dist/sdk/types.d.ts.map +0 -1
  66. package/dist/sdk/types.js +0 -17
  67. package/dist/sdk/types.js.map +0 -1
  68. package/dist/sdk/v2.d.mts +0 -100
  69. package/dist/sdk/v2.d.ts +0 -100
  70. package/dist/sdk/v2.d.ts.map +0 -1
  71. package/dist/sdk/v2.js +0 -2615
  72. package/dist/sdk/v2.js.map +0 -1
  73. package/dist/sdk/v2.mjs +0 -571
  74. package/dist/sdk/v5-extensions.d.ts +0 -133
  75. package/dist/sdk/v5-extensions.d.ts.map +0 -1
  76. package/dist/sdk/v5-extensions.js +0 -993
  77. package/dist/sdk/v5-extensions.js.map +0 -1
@@ -1,117 +0,0 @@
1
- /**
2
- * Minimal ABI for OpenTaskMarket contract
3
- */
4
- export const OpenTaskMarketABI = [
5
- // Read functions
6
- {
7
- name: "getOpenTask",
8
- type: "function",
9
- stateMutability: "view",
10
- inputs: [{ name: "taskId", type: "uint256" }],
11
- outputs: [
12
- { name: "client", type: "address" },
13
- { name: "maxPayment", type: "uint256" },
14
- { name: "deadline", type: "uint256" },
15
- { name: "descriptionHash", type: "string" },
16
- { name: "bidders", type: "address[]" },
17
- { name: "selectedWorker", type: "address" },
18
- { name: "status", type: "uint8" },
19
- ],
20
- },
21
- {
22
- name: "getBid",
23
- type: "function",
24
- stateMutability: "view",
25
- inputs: [
26
- { name: "taskId", type: "uint256" },
27
- { name: "bidder", type: "address" },
28
- ],
29
- outputs: [
30
- { name: "price", type: "uint256" },
31
- { name: "timeEstimate", type: "uint256" },
32
- { name: "proposalHash", type: "string" },
33
- { name: "bidAt", type: "uint256" },
34
- ],
35
- },
36
- {
37
- name: "getOpenTaskCount",
38
- type: "function",
39
- stateMutability: "view",
40
- inputs: [],
41
- outputs: [{ name: "", type: "uint256" }],
42
- },
43
- // Write functions
44
- {
45
- name: "postOpenTask",
46
- type: "function",
47
- stateMutability: "payable",
48
- inputs: [
49
- { name: "maxPayment", type: "uint256" },
50
- { name: "deadline", type: "uint256" },
51
- { name: "descriptionHash", type: "string" },
52
- ],
53
- outputs: [{ name: "", type: "uint256" }],
54
- },
55
- {
56
- name: "submitBid",
57
- type: "function",
58
- stateMutability: "nonpayable",
59
- inputs: [
60
- { name: "taskId", type: "uint256" },
61
- { name: "price", type: "uint256" },
62
- { name: "timeEstimate", type: "uint256" },
63
- { name: "proposalHash", type: "string" },
64
- ],
65
- outputs: [],
66
- },
67
- {
68
- name: "selectWorker",
69
- type: "function",
70
- stateMutability: "nonpayable",
71
- inputs: [
72
- { name: "taskId", type: "uint256" },
73
- { name: "worker", type: "address" },
74
- ],
75
- outputs: [],
76
- },
77
- {
78
- name: "withdrawBid",
79
- type: "function",
80
- stateMutability: "nonpayable",
81
- inputs: [{ name: "taskId", type: "uint256" }],
82
- outputs: [],
83
- },
84
- // Events
85
- {
86
- name: "TaskPosted",
87
- type: "event",
88
- inputs: [
89
- { name: "taskId", type: "uint256", indexed: true },
90
- { name: "client", type: "address", indexed: true },
91
- { name: "maxPayment", type: "uint256", indexed: false },
92
- { name: "deadline", type: "uint256", indexed: false },
93
- { name: "descriptionHash", type: "string", indexed: false },
94
- ],
95
- },
96
- {
97
- name: "BidSubmitted",
98
- type: "event",
99
- inputs: [
100
- { name: "taskId", type: "uint256", indexed: true },
101
- { name: "bidder", type: "address", indexed: true },
102
- { name: "price", type: "uint256", indexed: false },
103
- { name: "timeEstimate", type: "uint256", indexed: false },
104
- { name: "proposalHash", type: "string", indexed: false },
105
- ],
106
- },
107
- {
108
- name: "WorkerSelected",
109
- type: "event",
110
- inputs: [
111
- { name: "taskId", type: "uint256", indexed: true },
112
- { name: "worker", type: "address", indexed: true },
113
- { name: "selectedPrice", type: "uint256", indexed: false },
114
- ],
115
- },
116
- ];
117
- //# sourceMappingURL=OpenTaskMarket.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenTaskMarket.js","sourceRoot":"","sources":["../../../src/sdk/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EAAE;YACN,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE;YAClD,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE;YAClD,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE;SAC3D;KACF;CACO,CAAC"}
@@ -1,511 +0,0 @@
1
- {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "ParallelTaskBatch",
4
- "sourceName": "contracts/v5/extensions/ParallelTaskBatch.sol",
5
- "abi": [
6
- {
7
- "inputs": [],
8
- "stateMutability": "nonpayable",
9
- "type": "constructor"
10
- },
11
- {
12
- "inputs": [
13
- {
14
- "internalType": "address",
15
- "name": "agent",
16
- "type": "address"
17
- }
18
- ],
19
- "name": "AgentNotActive",
20
- "type": "error"
21
- },
22
- {
23
- "inputs": [],
24
- "name": "AlreadyAggregated",
25
- "type": "error"
26
- },
27
- {
28
- "inputs": [],
29
- "name": "BatchLengthMismatch",
30
- "type": "error"
31
- },
32
- {
33
- "inputs": [
34
- {
35
- "internalType": "uint256",
36
- "name": "max",
37
- "type": "uint256"
38
- }
39
- ],
40
- "name": "BatchLimitExceeded",
41
- "type": "error"
42
- },
43
- {
44
- "inputs": [],
45
- "name": "BatchNotInProgress",
46
- "type": "error"
47
- },
48
- {
49
- "inputs": [],
50
- "name": "DeadlinePast",
51
- "type": "error"
52
- },
53
- {
54
- "inputs": [],
55
- "name": "EmptyDescriptionHash",
56
- "type": "error"
57
- },
58
- {
59
- "inputs": [
60
- {
61
- "internalType": "uint256",
62
- "name": "provided",
63
- "type": "uint256"
64
- },
65
- {
66
- "internalType": "uint256",
67
- "name": "required",
68
- "type": "uint256"
69
- }
70
- ],
71
- "name": "InsufficientFunding",
72
- "type": "error"
73
- },
74
- {
75
- "inputs": [],
76
- "name": "InvalidBatchStatus",
77
- "type": "error"
78
- },
79
- {
80
- "inputs": [
81
- {
82
- "internalType": "uint256",
83
- "name": "taskId",
84
- "type": "uint256"
85
- }
86
- ],
87
- "name": "InvalidTaskId",
88
- "type": "error"
89
- },
90
- {
91
- "inputs": [],
92
- "name": "NotAllSubmitted",
93
- "type": "error"
94
- },
95
- {
96
- "inputs": [],
97
- "name": "NotTaskClient",
98
- "type": "error"
99
- },
100
- {
101
- "inputs": [],
102
- "name": "WorkerHasNoReputation",
103
- "type": "error"
104
- },
105
- {
106
- "inputs": [],
107
- "name": "ZeroPayment",
108
- "type": "error"
109
- },
110
- {
111
- "anonymous": false,
112
- "inputs": [
113
- {
114
- "indexed": true,
115
- "internalType": "uint256",
116
- "name": "batchId",
117
- "type": "uint256"
118
- },
119
- {
120
- "indexed": true,
121
- "internalType": "address",
122
- "name": "client",
123
- "type": "address"
124
- },
125
- {
126
- "indexed": false,
127
- "internalType": "uint256",
128
- "name": "totalBudget",
129
- "type": "uint256"
130
- }
131
- ],
132
- "name": "BatchCreated",
133
- "type": "event"
134
- },
135
- {
136
- "anonymous": false,
137
- "inputs": [
138
- {
139
- "indexed": true,
140
- "internalType": "uint256",
141
- "name": "batchId",
142
- "type": "uint256"
143
- },
144
- {
145
- "indexed": false,
146
- "internalType": "enum ParallelTaskBatch.BatchStatus",
147
- "name": "newStatus",
148
- "type": "uint8"
149
- }
150
- ],
151
- "name": "BatchStatusUpdated",
152
- "type": "event"
153
- },
154
- {
155
- "anonymous": false,
156
- "inputs": [
157
- {
158
- "indexed": true,
159
- "internalType": "address",
160
- "name": "to",
161
- "type": "address"
162
- },
163
- {
164
- "indexed": false,
165
- "internalType": "uint256",
166
- "name": "amount",
167
- "type": "uint256"
168
- }
169
- ],
170
- "name": "EmergencyWithdraw",
171
- "type": "event"
172
- },
173
- {
174
- "anonymous": false,
175
- "inputs": [
176
- {
177
- "indexed": false,
178
- "internalType": "uint8",
179
- "name": "version",
180
- "type": "uint8"
181
- }
182
- ],
183
- "name": "Initialized",
184
- "type": "event"
185
- },
186
- {
187
- "anonymous": false,
188
- "inputs": [
189
- {
190
- "indexed": true,
191
- "internalType": "address",
192
- "name": "previousOwner",
193
- "type": "address"
194
- },
195
- {
196
- "indexed": true,
197
- "internalType": "address",
198
- "name": "newOwner",
199
- "type": "address"
200
- }
201
- ],
202
- "name": "OwnershipTransferred",
203
- "type": "event"
204
- },
205
- {
206
- "anonymous": false,
207
- "inputs": [
208
- {
209
- "indexed": false,
210
- "internalType": "address",
211
- "name": "account",
212
- "type": "address"
213
- }
214
- ],
215
- "name": "Paused",
216
- "type": "event"
217
- },
218
- {
219
- "anonymous": false,
220
- "inputs": [
221
- {
222
- "indexed": true,
223
- "internalType": "uint256",
224
- "name": "batchId",
225
- "type": "uint256"
226
- },
227
- {
228
- "indexed": false,
229
- "internalType": "bytes32",
230
- "name": "aggregatedResultHash",
231
- "type": "bytes32"
232
- }
233
- ],
234
- "name": "ResultsAggregated",
235
- "type": "event"
236
- },
237
- {
238
- "anonymous": false,
239
- "inputs": [
240
- {
241
- "indexed": false,
242
- "internalType": "address",
243
- "name": "account",
244
- "type": "address"
245
- }
246
- ],
247
- "name": "Unpaused",
248
- "type": "event"
249
- },
250
- {
251
- "inputs": [],
252
- "name": "MAX_BATCH_SIZE",
253
- "outputs": [
254
- {
255
- "internalType": "uint256",
256
- "name": "",
257
- "type": "uint256"
258
- }
259
- ],
260
- "stateMutability": "view",
261
- "type": "function"
262
- },
263
- {
264
- "inputs": [],
265
- "name": "agentRegistry",
266
- "outputs": [
267
- {
268
- "internalType": "address",
269
- "name": "",
270
- "type": "address"
271
- }
272
- ],
273
- "stateMutability": "view",
274
- "type": "function"
275
- },
276
- {
277
- "inputs": [
278
- {
279
- "internalType": "uint256",
280
- "name": "batchId",
281
- "type": "uint256"
282
- }
283
- ],
284
- "name": "aggregateResults",
285
- "outputs": [],
286
- "stateMutability": "nonpayable",
287
- "type": "function"
288
- },
289
- {
290
- "inputs": [],
291
- "name": "batchCounter",
292
- "outputs": [
293
- {
294
- "internalType": "uint256",
295
- "name": "",
296
- "type": "uint256"
297
- }
298
- ],
299
- "stateMutability": "view",
300
- "type": "function"
301
- },
302
- {
303
- "inputs": [
304
- {
305
- "internalType": "address[]",
306
- "name": "workers",
307
- "type": "address[]"
308
- },
309
- {
310
- "internalType": "uint256[]",
311
- "name": "payments",
312
- "type": "uint256[]"
313
- },
314
- {
315
- "internalType": "uint256[]",
316
- "name": "deadlines",
317
- "type": "uint256[]"
318
- },
319
- {
320
- "internalType": "bytes32[]",
321
- "name": "descriptionHashes",
322
- "type": "bytes32[]"
323
- },
324
- {
325
- "internalType": "bytes32",
326
- "name": "aggregationSpec",
327
- "type": "bytes32"
328
- }
329
- ],
330
- "name": "createBatch",
331
- "outputs": [
332
- {
333
- "internalType": "uint256",
334
- "name": "",
335
- "type": "uint256"
336
- }
337
- ],
338
- "stateMutability": "payable",
339
- "type": "function"
340
- },
341
- {
342
- "inputs": [
343
- {
344
- "internalType": "address",
345
- "name": "to",
346
- "type": "address"
347
- },
348
- {
349
- "internalType": "uint256",
350
- "name": "amount",
351
- "type": "uint256"
352
- }
353
- ],
354
- "name": "emergencyWithdraw",
355
- "outputs": [],
356
- "stateMutability": "nonpayable",
357
- "type": "function"
358
- },
359
- {
360
- "inputs": [],
361
- "name": "escrow",
362
- "outputs": [
363
- {
364
- "internalType": "address",
365
- "name": "",
366
- "type": "address"
367
- }
368
- ],
369
- "stateMutability": "view",
370
- "type": "function"
371
- },
372
- {
373
- "inputs": [
374
- {
375
- "internalType": "uint256",
376
- "name": "batchId",
377
- "type": "uint256"
378
- }
379
- ],
380
- "name": "getBatch",
381
- "outputs": [
382
- {
383
- "components": [
384
- {
385
- "internalType": "address",
386
- "name": "client",
387
- "type": "address"
388
- },
389
- {
390
- "internalType": "uint256",
391
- "name": "totalBudget",
392
- "type": "uint256"
393
- },
394
- {
395
- "internalType": "uint256[]",
396
- "name": "taskIds",
397
- "type": "uint256[]"
398
- },
399
- {
400
- "internalType": "bytes32",
401
- "name": "aggregationSpec",
402
- "type": "bytes32"
403
- },
404
- {
405
- "internalType": "enum ParallelTaskBatch.BatchStatus",
406
- "name": "status",
407
- "type": "uint8"
408
- },
409
- {
410
- "internalType": "uint256",
411
- "name": "createdAt",
412
- "type": "uint256"
413
- },
414
- {
415
- "internalType": "bytes32",
416
- "name": "aggregatedResultHash",
417
- "type": "bytes32"
418
- }
419
- ],
420
- "internalType": "struct ParallelTaskBatch.TaskBatch",
421
- "name": "",
422
- "type": "tuple"
423
- }
424
- ],
425
- "stateMutability": "view",
426
- "type": "function"
427
- },
428
- {
429
- "inputs": [
430
- {
431
- "internalType": "address",
432
- "name": "_escrow",
433
- "type": "address"
434
- },
435
- {
436
- "internalType": "address",
437
- "name": "_agentRegistry",
438
- "type": "address"
439
- }
440
- ],
441
- "name": "initialize",
442
- "outputs": [],
443
- "stateMutability": "nonpayable",
444
- "type": "function"
445
- },
446
- {
447
- "inputs": [],
448
- "name": "owner",
449
- "outputs": [
450
- {
451
- "internalType": "address",
452
- "name": "",
453
- "type": "address"
454
- }
455
- ],
456
- "stateMutability": "view",
457
- "type": "function"
458
- },
459
- {
460
- "inputs": [],
461
- "name": "pause",
462
- "outputs": [],
463
- "stateMutability": "nonpayable",
464
- "type": "function"
465
- },
466
- {
467
- "inputs": [],
468
- "name": "paused",
469
- "outputs": [
470
- {
471
- "internalType": "bool",
472
- "name": "",
473
- "type": "bool"
474
- }
475
- ],
476
- "stateMutability": "view",
477
- "type": "function"
478
- },
479
- {
480
- "inputs": [],
481
- "name": "renounceOwnership",
482
- "outputs": [],
483
- "stateMutability": "nonpayable",
484
- "type": "function"
485
- },
486
- {
487
- "inputs": [
488
- {
489
- "internalType": "address",
490
- "name": "newOwner",
491
- "type": "address"
492
- }
493
- ],
494
- "name": "transferOwnership",
495
- "outputs": [],
496
- "stateMutability": "nonpayable",
497
- "type": "function"
498
- },
499
- {
500
- "inputs": [],
501
- "name": "unpause",
502
- "outputs": [],
503
- "stateMutability": "nonpayable",
504
- "type": "function"
505
- }
506
- ],
507
- "bytecode": "0x608080604052346100165761107d908161001c8239f35b600080fdfe60c0604081815260048036101561001557600080fd5b60009260e0843560e01c9182630d1cfcae14610d47575081633f4ba83a14610cb157816346aec1c414610aaf57508063485cc955146109095780635ac44282146107605780635c975abb1461073c57806368233eef1461071d578063715018a6146106cf5780637beed27c146102d55780638456cb591461027a5780638da5cb5b1461025157806395ccea67146101a8578063cfdbf2541461018c578063e2fdcc171461015f5763f2fde38b146100cb57600080fd5b3461015b57602036600319011261015b576100e4610d6c565b916100ed610e9e565b6001600160a01b03831615610109578361010684610fac565b80f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b8280fd5b50503461018857816003193601126101885760cb5490516001600160a01b039091168152602090f35b5080fd5b5050346101885781600319360112610188576020905160328152f35b50903461015b578060031936011261015b576101c2610d6c565b90602435926101cf610e9e565b8480808087875af16101df610e26565b501561021d5750519182526001600160a01b0316907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd969590602090a280f35b6020606492519162461bcd60e51b8352820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b6044820152fd5b50503461018857816003193601126101885760335490516001600160a01b039091168152602090f35b50503461018857816003193601126101885760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258916102b8610e9e565b6102c0610fe3565b600160ff19609754161760975551338152a180f35b5060a036600319011261015b576001600160401b03928135848111610188576103019036908401610d87565b6024929150823586811161015b5761031c9036908601610d87565b90966044358181116106cb576103359036908801610d87565b9390506064358281116106c75761034f9036908901610d87565b9390506084359461035e610ef6565b610366610fe3565b82156106b757603294603284116106a25782841491821592610697575b50811561068c575b5061067c57841561066c5760ca54996000198b1461065a576001809b01948560ca5587608052875b848110610611575050505060805134106105f5576103e86103d382610e87565b916103e08a519384610e03565b808352610e87565b602060a052601f19013660a05183013787519361040485610db7565b33855260a08051608080519188019182528b88019485526060880193845287018881524283890190815260c089018a8152978a52925160c990528b8920975188546001600160a01b0319166001600160a01b039190911617885590518c88015592518051919460028801919083116105e357600160401b83116105e35781548383558084106105b9575b5060a0510190885260a05188208c895b8481106105a5575050505050516003850155868401905160058110156105935790600693929160ff80198354169116179055516005840155519101556080513411610528575b50505060ca549181516080518152837f271a5ac6a1edc479b01276b5d7778e201d4af7d76c64756a820efce2319e6635339260a05190a36065555190815260a05190f35b60805134033481116105825781808092335af1610543610e26565b501561054f57806104e4565b600d90606493519262461bcd60e51b845260a051908401528201526c1c99599d5b990819985a5b1959609a1b6044820152fd5b50634e487b7160e01b815260118352fd5b634e487b7160e01b8652602188528686fd5b83519360a051019381840155018d9061049e565b828a5260a0518a20908e8583015b82840181106105d85750505061048e565b8c8155018f906105c7565b634e487b7160e01b895260418b528989fd5b8751622f087f60ea1b8152348189015260805181880152604490fd5b83811015610649578060051b830135608051018060805111610637576080528c016103b3565b634e487b7160e01b8a5260118c528a8afd5b634e487b7160e01b8952818b528989fd5b634e487b7160e01b8752601189528787fd5b88516314b203f160e01b81528890fd5b88516305f8ded760e21b81528890fd5b90508214153861038b565b841415915038610383565b8a5162da0e9960e81b81526032818c01528990fd5b89516311e51d5160e31b81528990fd5b8580fd5b8480fd5b833461071a578060031936011261071a576106e8610e9e565b603380546001600160a01b0319811690915581906001600160a01b03166000805160206110288339815191528280a380f35b80fd5b50503461018857816003193601126101885760209060ca549051908152f35b50503461018857816003193601126101885760209060ff6097541690519015158152f35b50913461071a576020908160031936011261071a578060c0845161078381610db7565b82815282858201526060868201528260608201528260808201528260a082015201528335815260c982528281208351916107bc83610db7565b60018060a01b03948583541684526001936001840154948682019586526002850191835180848a82965493848152019088528a882092885b868d8383106108f4575050505061080d92500384610e03565b8381019283526003860154926060820193845260ff8b8801541694608083019560058110156108e157869a94939a52600660058901549860a08c01998a5201549860c08b01998a5281519b858d526101008d019b5116858d015251908b0152519760e060608b01528851809152826101208b01990192865b8281106108ce575050505050516080870152519060058210156108bb575084955060a08501525160c08401525160e08301520390f35b634e487b7160e01b815260218752602490fd5b84518b5299810199938101938301610885565b634e487b7160e01b885260218d52602488fd5b865485529581019589955090930192016107f4565b503461015b578160031936011261015b57610922610d6c565b6001600160a01b03919060243583811691908290036106c75785549360ff8560081c161593848095610aa2575b8015610a8b575b15610a31575060ff1985811660011788559484610a20575b5061098860ff885460081c1661098381610f4c565b610f4c565b61099133610fac565b8654946109be60ff8760081c166109a781610f4c565b6109b081610f4c565b600160655561098381610f4c565b6097541660975560018060a01b031991168160cb54161760cb5560cc54161760cc556109e8578280f35b61ff001916825551600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a138808280f35b61ffff19166101011787553861096e565b608490602088519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b50303b1580156109565750600160ff871614610956565b50600160ff87161061094f565b92905034610cad57602091826003193601126106cb57803593610ad0610ef6565b84865260c98452828620918083019182549160ff9060ff8416926005841015610c9a576001809403610c8b578a928b60029260028a0180549660018060a01b0360cb5416935b888210610b8257925050508c7f9a89f509e37dc7806bccdc9c87aef83aab35ea35ca71d6e0573a935e8938f1ba8d60068e8e8e60038f60ff19161790558151848101908782524284820152838152610b6d81610de8565b519020928391015551908152a2600160655580f35b808f918f92858252848183200154935190810190630eb2f3bf60e11b825260249485820152848152610bb381610de8565b5190885afa90610bc1610e26565b9115610c5257508381805181010312610c4d57610bed8f8f90610be5908401610e65565b508201610e65565b5060608101516001600160801b03811603610c4d57608081015163ffffffff811603610c4d578581610c2e60c0610c2760a08c9601610e79565b9201610e79565b501603610c3d5788018f610b16565b8c5163951997d360e01b81528790fd5b508f80fd5b8f8f6064928b92601392519362461bcd60e51b8552840152820152726661696c656420746f2072656164207461736b60681b6044820152fd5b508651639e6f638f60e01b8152fd5b634e487b7160e01b8b526021825260248bfd5b8380fd5b50503461015b578260031936011261015b57610ccb610e9e565b6097549060ff821615610d0d575060ff1916609755513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a180f35b606490602084519162461bcd60e51b8352820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152fd5b85903461018857816003193601126101885760cc546001600160a01b03168152602090f35b600435906001600160a01b0382168203610d8257565b600080fd5b9181601f84011215610d82578235916001600160401b038311610d82576020808501948460051b010111610d8257565b60e081019081106001600160401b03821117610dd257604052565b634e487b7160e01b600052604160045260246000fd5b606081019081106001600160401b03821117610dd257604052565b601f909101601f19168101906001600160401b03821190821017610dd257604052565b3d15610e60573d906001600160401b038211610dd25760405191610e54601f8201601f191660200184610e03565b82523d6000602084013e565b606090565b51906001600160a01b0382168203610d8257565b519060ff82168203610d8257565b6001600160401b038111610dd25760051b60200190565b6033546001600160a01b03163303610eb257565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b600260655414610f07576002606555565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b15610f5357565b60405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b603380546001600160a01b039283166001600160a01b031982168117909255909116600080516020611028833981519152600080a3565b60ff60975416610fef57565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fdfe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220346599c2ee97a05e57beb298ee85981cbd9ccf038dd4a381218b27ef29ec9a2364736f6c63430008180033",
508
- "deployedBytecode": "0x60c0604081815260048036101561001557600080fd5b60009260e0843560e01c9182630d1cfcae14610d47575081633f4ba83a14610cb157816346aec1c414610aaf57508063485cc955146109095780635ac44282146107605780635c975abb1461073c57806368233eef1461071d578063715018a6146106cf5780637beed27c146102d55780638456cb591461027a5780638da5cb5b1461025157806395ccea67146101a8578063cfdbf2541461018c578063e2fdcc171461015f5763f2fde38b146100cb57600080fd5b3461015b57602036600319011261015b576100e4610d6c565b916100ed610e9e565b6001600160a01b03831615610109578361010684610fac565b80f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b8280fd5b50503461018857816003193601126101885760cb5490516001600160a01b039091168152602090f35b5080fd5b5050346101885781600319360112610188576020905160328152f35b50903461015b578060031936011261015b576101c2610d6c565b90602435926101cf610e9e565b8480808087875af16101df610e26565b501561021d5750519182526001600160a01b0316907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd969590602090a280f35b6020606492519162461bcd60e51b8352820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b6044820152fd5b50503461018857816003193601126101885760335490516001600160a01b039091168152602090f35b50503461018857816003193601126101885760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258916102b8610e9e565b6102c0610fe3565b600160ff19609754161760975551338152a180f35b5060a036600319011261015b576001600160401b03928135848111610188576103019036908401610d87565b6024929150823586811161015b5761031c9036908601610d87565b90966044358181116106cb576103359036908801610d87565b9390506064358281116106c75761034f9036908901610d87565b9390506084359461035e610ef6565b610366610fe3565b82156106b757603294603284116106a25782841491821592610697575b50811561068c575b5061067c57841561066c5760ca54996000198b1461065a576001809b01948560ca5587608052875b848110610611575050505060805134106105f5576103e86103d382610e87565b916103e08a519384610e03565b808352610e87565b602060a052601f19013660a05183013787519361040485610db7565b33855260a08051608080519188019182528b88019485526060880193845287018881524283890190815260c089018a8152978a52925160c990528b8920975188546001600160a01b0319166001600160a01b039190911617885590518c88015592518051919460028801919083116105e357600160401b83116105e35781548383558084106105b9575b5060a0510190885260a05188208c895b8481106105a5575050505050516003850155868401905160058110156105935790600693929160ff80198354169116179055516005840155519101556080513411610528575b50505060ca549181516080518152837f271a5ac6a1edc479b01276b5d7778e201d4af7d76c64756a820efce2319e6635339260a05190a36065555190815260a05190f35b60805134033481116105825781808092335af1610543610e26565b501561054f57806104e4565b600d90606493519262461bcd60e51b845260a051908401528201526c1c99599d5b990819985a5b1959609a1b6044820152fd5b50634e487b7160e01b815260118352fd5b634e487b7160e01b8652602188528686fd5b83519360a051019381840155018d9061049e565b828a5260a0518a20908e8583015b82840181106105d85750505061048e565b8c8155018f906105c7565b634e487b7160e01b895260418b528989fd5b8751622f087f60ea1b8152348189015260805181880152604490fd5b83811015610649578060051b830135608051018060805111610637576080528c016103b3565b634e487b7160e01b8a5260118c528a8afd5b634e487b7160e01b8952818b528989fd5b634e487b7160e01b8752601189528787fd5b88516314b203f160e01b81528890fd5b88516305f8ded760e21b81528890fd5b90508214153861038b565b841415915038610383565b8a5162da0e9960e81b81526032818c01528990fd5b89516311e51d5160e31b81528990fd5b8580fd5b8480fd5b833461071a578060031936011261071a576106e8610e9e565b603380546001600160a01b0319811690915581906001600160a01b03166000805160206110288339815191528280a380f35b80fd5b50503461018857816003193601126101885760209060ca549051908152f35b50503461018857816003193601126101885760209060ff6097541690519015158152f35b50913461071a576020908160031936011261071a578060c0845161078381610db7565b82815282858201526060868201528260608201528260808201528260a082015201528335815260c982528281208351916107bc83610db7565b60018060a01b03948583541684526001936001840154948682019586526002850191835180848a82965493848152019088528a882092885b868d8383106108f4575050505061080d92500384610e03565b8381019283526003860154926060820193845260ff8b8801541694608083019560058110156108e157869a94939a52600660058901549860a08c01998a5201549860c08b01998a5281519b858d526101008d019b5116858d015251908b0152519760e060608b01528851809152826101208b01990192865b8281106108ce575050505050516080870152519060058210156108bb575084955060a08501525160c08401525160e08301520390f35b634e487b7160e01b815260218752602490fd5b84518b5299810199938101938301610885565b634e487b7160e01b885260218d52602488fd5b865485529581019589955090930192016107f4565b503461015b578160031936011261015b57610922610d6c565b6001600160a01b03919060243583811691908290036106c75785549360ff8560081c161593848095610aa2575b8015610a8b575b15610a31575060ff1985811660011788559484610a20575b5061098860ff885460081c1661098381610f4c565b610f4c565b61099133610fac565b8654946109be60ff8760081c166109a781610f4c565b6109b081610f4c565b600160655561098381610f4c565b6097541660975560018060a01b031991168160cb54161760cb5560cc54161760cc556109e8578280f35b61ff001916825551600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a138808280f35b61ffff19166101011787553861096e565b608490602088519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b50303b1580156109565750600160ff871614610956565b50600160ff87161061094f565b92905034610cad57602091826003193601126106cb57803593610ad0610ef6565b84865260c98452828620918083019182549160ff9060ff8416926005841015610c9a576001809403610c8b578a928b60029260028a0180549660018060a01b0360cb5416935b888210610b8257925050508c7f9a89f509e37dc7806bccdc9c87aef83aab35ea35ca71d6e0573a935e8938f1ba8d60068e8e8e60038f60ff19161790558151848101908782524284820152838152610b6d81610de8565b519020928391015551908152a2600160655580f35b808f918f92858252848183200154935190810190630eb2f3bf60e11b825260249485820152848152610bb381610de8565b5190885afa90610bc1610e26565b9115610c5257508381805181010312610c4d57610bed8f8f90610be5908401610e65565b508201610e65565b5060608101516001600160801b03811603610c4d57608081015163ffffffff811603610c4d578581610c2e60c0610c2760a08c9601610e79565b9201610e79565b501603610c3d5788018f610b16565b8c5163951997d360e01b81528790fd5b508f80fd5b8f8f6064928b92601392519362461bcd60e51b8552840152820152726661696c656420746f2072656164207461736b60681b6044820152fd5b508651639e6f638f60e01b8152fd5b634e487b7160e01b8b526021825260248bfd5b8380fd5b50503461015b578260031936011261015b57610ccb610e9e565b6097549060ff821615610d0d575060ff1916609755513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a180f35b606490602084519162461bcd60e51b8352820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152fd5b85903461018857816003193601126101885760cc546001600160a01b03168152602090f35b600435906001600160a01b0382168203610d8257565b600080fd5b9181601f84011215610d82578235916001600160401b038311610d82576020808501948460051b010111610d8257565b60e081019081106001600160401b03821117610dd257604052565b634e487b7160e01b600052604160045260246000fd5b606081019081106001600160401b03821117610dd257604052565b601f909101601f19168101906001600160401b03821190821017610dd257604052565b3d15610e60573d906001600160401b038211610dd25760405191610e54601f8201601f191660200184610e03565b82523d6000602084013e565b606090565b51906001600160a01b0382168203610d8257565b519060ff82168203610d8257565b6001600160401b038111610dd25760051b60200190565b6033546001600160a01b03163303610eb257565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b600260655414610f07576002606555565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b15610f5357565b60405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b603380546001600160a01b039283166001600160a01b031982168117909255909116600080516020611028833981519152600080a3565b60ff60975416610fef57565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fdfe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220346599c2ee97a05e57beb298ee85981cbd9ccf038dd4a381218b27ef29ec9a2364736f6c63430008180033",
509
- "linkReferences": {},
510
- "deployedLinkReferences": {}
511
- }