@carrot-foundation/schemas 0.1.21 → 0.1.22
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.
- package/README.md +55 -7
- package/dist/index.cjs +50 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -34
- package/dist/index.d.ts +37 -34
- package/dist/index.js +50 -35
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/schemas/ipfs/gas-id/gas-id.example.json +1 -1
- package/schemas/ipfs/mass-id/mass-id.example.json +5 -5
- package/schemas/ipfs/mass-id/mass-id.schema.json +306 -89
- package/schemas/ipfs/recycled-id/recycled-id.example.json +1 -1
- package/schemas/ipfs/shared/definitions/definitions.schema.json +3 -8
- package/schemas/ipfs/shared/entities/location/location.schema.json +3 -8
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"title": "MassID NFT IPFS Record",
|
|
4
4
|
"description": "Complete MassID NFT IPFS record including fixed attributes and detailed waste tracking data",
|
|
5
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/
|
|
6
|
-
"version": "
|
|
5
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.22/schemas/ipfs/mass-id/mass-id.schema.json",
|
|
6
|
+
"version": "0.1.22",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
9
|
"$schema": {
|
|
@@ -35,19 +35,30 @@
|
|
|
35
35
|
"version": {
|
|
36
36
|
"title": "Schema Version",
|
|
37
37
|
"description": "Version of the schema, using semantic versioning",
|
|
38
|
-
"examples": [
|
|
38
|
+
"examples": [
|
|
39
|
+
"0.1.0",
|
|
40
|
+
"1.0.0",
|
|
41
|
+
"2.1.3"
|
|
42
|
+
],
|
|
39
43
|
"type": "string",
|
|
40
44
|
"minLength": 1,
|
|
41
45
|
"pattern": "^v?\\d+\\.\\d+\\.\\d+(-[a-zA-Z0-9.-]+)?(\\+[a-zA-Z0-9.-]+)?$"
|
|
42
46
|
}
|
|
43
47
|
},
|
|
44
|
-
"required": [
|
|
48
|
+
"required": [
|
|
49
|
+
"hash",
|
|
50
|
+
"type",
|
|
51
|
+
"version"
|
|
52
|
+
],
|
|
45
53
|
"additionalProperties": false
|
|
46
54
|
},
|
|
47
55
|
"created_at": {
|
|
48
56
|
"title": "Created At",
|
|
49
57
|
"description": "ISO 8601 creation timestamp for this record",
|
|
50
|
-
"examples": [
|
|
58
|
+
"examples": [
|
|
59
|
+
"2024-12-05T11:02:47.000Z",
|
|
60
|
+
"2025-02-22T10:35:12.000Z"
|
|
61
|
+
],
|
|
51
62
|
"type": "string",
|
|
52
63
|
"format": "date-time",
|
|
53
64
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
@@ -101,7 +112,11 @@
|
|
|
101
112
|
"name": {
|
|
102
113
|
"title": "Creator Name",
|
|
103
114
|
"description": "Company or individual name that created this record",
|
|
104
|
-
"examples": [
|
|
115
|
+
"examples": [
|
|
116
|
+
"Carrot Foundation",
|
|
117
|
+
"Alice",
|
|
118
|
+
"Bob"
|
|
119
|
+
],
|
|
105
120
|
"type": "string"
|
|
106
121
|
},
|
|
107
122
|
"id": {
|
|
@@ -117,7 +132,10 @@
|
|
|
117
132
|
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"
|
|
118
133
|
}
|
|
119
134
|
},
|
|
120
|
-
"required": [
|
|
135
|
+
"required": [
|
|
136
|
+
"name",
|
|
137
|
+
"id"
|
|
138
|
+
],
|
|
121
139
|
"additionalProperties": false
|
|
122
140
|
},
|
|
123
141
|
"relationships": {
|
|
@@ -143,7 +161,11 @@
|
|
|
143
161
|
"type": {
|
|
144
162
|
"title": "Relationship Type",
|
|
145
163
|
"description": "Type of relationship to the referenced record",
|
|
146
|
-
"examples": [
|
|
164
|
+
"examples": [
|
|
165
|
+
"mass-id",
|
|
166
|
+
"audit",
|
|
167
|
+
"collection"
|
|
168
|
+
],
|
|
147
169
|
"type": "string",
|
|
148
170
|
"enum": [
|
|
149
171
|
"collection",
|
|
@@ -169,7 +191,10 @@
|
|
|
169
191
|
"type": "string"
|
|
170
192
|
}
|
|
171
193
|
},
|
|
172
|
-
"required": [
|
|
194
|
+
"required": [
|
|
195
|
+
"target_uri",
|
|
196
|
+
"type"
|
|
197
|
+
],
|
|
173
198
|
"additionalProperties": false
|
|
174
199
|
}
|
|
175
200
|
},
|
|
@@ -182,22 +207,36 @@
|
|
|
182
207
|
"title": "Blockchain Network",
|
|
183
208
|
"description": "Blockchain Network Environment",
|
|
184
209
|
"type": "string",
|
|
185
|
-
"enum": [
|
|
210
|
+
"enum": [
|
|
211
|
+
"mainnet",
|
|
212
|
+
"testnet"
|
|
213
|
+
]
|
|
186
214
|
},
|
|
187
215
|
"deployment": {
|
|
188
216
|
"title": "Deployment Environment",
|
|
189
217
|
"description": "System environment where this record was generated",
|
|
190
218
|
"type": "string",
|
|
191
|
-
"enum": [
|
|
219
|
+
"enum": [
|
|
220
|
+
"production",
|
|
221
|
+
"development",
|
|
222
|
+
"testing"
|
|
223
|
+
]
|
|
192
224
|
},
|
|
193
225
|
"data_set_name": {
|
|
194
226
|
"title": "Data Set Name",
|
|
195
227
|
"description": "Name of the data set for this record",
|
|
196
228
|
"type": "string",
|
|
197
|
-
"enum": [
|
|
229
|
+
"enum": [
|
|
230
|
+
"TEST",
|
|
231
|
+
"PROD"
|
|
232
|
+
]
|
|
198
233
|
}
|
|
199
234
|
},
|
|
200
|
-
"required": [
|
|
235
|
+
"required": [
|
|
236
|
+
"blockchain_network",
|
|
237
|
+
"deployment",
|
|
238
|
+
"data_set_name"
|
|
239
|
+
],
|
|
201
240
|
"additionalProperties": false
|
|
202
241
|
},
|
|
203
242
|
"data": {
|
|
@@ -205,15 +244,19 @@
|
|
|
205
244
|
"description": "MassID-specific data containing waste tracking and chain of custody information",
|
|
206
245
|
"type": "object",
|
|
207
246
|
"properties": {
|
|
208
|
-
"
|
|
209
|
-
"title": "Waste
|
|
210
|
-
"description": "Standardized waste material
|
|
247
|
+
"waste_properties": {
|
|
248
|
+
"title": "Waste Properties",
|
|
249
|
+
"description": "Standardized waste material properties and regulatory information",
|
|
211
250
|
"type": "object",
|
|
212
251
|
"properties": {
|
|
213
|
-
"
|
|
214
|
-
"title": "
|
|
215
|
-
"description": "
|
|
216
|
-
"examples": [
|
|
252
|
+
"type": {
|
|
253
|
+
"title": "Waste Type",
|
|
254
|
+
"description": "Waste material category",
|
|
255
|
+
"examples": [
|
|
256
|
+
"Organic",
|
|
257
|
+
"Plastic",
|
|
258
|
+
"Metal"
|
|
259
|
+
],
|
|
217
260
|
"type": "string",
|
|
218
261
|
"minLength": 1
|
|
219
262
|
},
|
|
@@ -237,7 +280,12 @@
|
|
|
237
280
|
"code": {
|
|
238
281
|
"title": "Classification Code",
|
|
239
282
|
"description": "Local waste classification code",
|
|
240
|
-
"examples": [
|
|
283
|
+
"examples": [
|
|
284
|
+
"20 01 01",
|
|
285
|
+
"D001",
|
|
286
|
+
"EWC-150101",
|
|
287
|
+
"IBAMA-A001"
|
|
288
|
+
],
|
|
241
289
|
"type": "string",
|
|
242
290
|
"minLength": 1,
|
|
243
291
|
"maxLength": 20
|
|
@@ -257,45 +305,66 @@
|
|
|
257
305
|
},
|
|
258
306
|
"system": {
|
|
259
307
|
"title": "Classification System",
|
|
260
|
-
"description": "Classification system name (
|
|
308
|
+
"description": "Classification system name - currently supports IBAMA (Instituto Brasileiro do Meio Ambiente e dos Recursos Naturais Renováveis)",
|
|
261
309
|
"examples": [
|
|
262
|
-
"
|
|
263
|
-
"US EPA Codes",
|
|
264
|
-
"Ibama Waste Code",
|
|
265
|
-
"Brazilian ABNT Classification"
|
|
310
|
+
"IBAMA"
|
|
266
311
|
],
|
|
267
312
|
"type": "string",
|
|
268
|
-
"
|
|
269
|
-
|
|
313
|
+
"enum": [
|
|
314
|
+
"IBAMA"
|
|
315
|
+
]
|
|
270
316
|
}
|
|
271
317
|
},
|
|
272
|
-
"required": [
|
|
318
|
+
"required": [
|
|
319
|
+
"code",
|
|
320
|
+
"description",
|
|
321
|
+
"system"
|
|
322
|
+
],
|
|
273
323
|
"additionalProperties": false
|
|
274
324
|
},
|
|
275
325
|
"measurement_unit": {
|
|
276
326
|
"title": "Measurement Unit",
|
|
277
327
|
"description": "Unit of measurement for the waste quantity",
|
|
278
|
-
"examples": [
|
|
328
|
+
"examples": [
|
|
329
|
+
"kg",
|
|
330
|
+
"ton"
|
|
331
|
+
],
|
|
279
332
|
"type": "string",
|
|
280
|
-
"enum": [
|
|
333
|
+
"enum": [
|
|
334
|
+
"kg",
|
|
335
|
+
"ton"
|
|
336
|
+
]
|
|
281
337
|
},
|
|
282
338
|
"net_weight": {
|
|
283
339
|
"title": "Net Weight",
|
|
284
340
|
"description": "Net weight of the waste batch in the specified measurement unit",
|
|
285
|
-
"examples": [
|
|
341
|
+
"examples": [
|
|
342
|
+
0,
|
|
343
|
+
45.2,
|
|
344
|
+
72.5
|
|
345
|
+
],
|
|
286
346
|
"type": "number",
|
|
287
347
|
"minimum": 0
|
|
288
348
|
},
|
|
289
349
|
"contamination_level": {
|
|
290
350
|
"title": "Contamination Level",
|
|
291
351
|
"description": "Level of contamination in the waste batch",
|
|
292
|
-
"examples": [
|
|
352
|
+
"examples": [
|
|
353
|
+
"Low",
|
|
354
|
+
"Medium",
|
|
355
|
+
"None"
|
|
356
|
+
],
|
|
293
357
|
"type": "string",
|
|
294
|
-
"enum": [
|
|
358
|
+
"enum": [
|
|
359
|
+
"None",
|
|
360
|
+
"Low",
|
|
361
|
+
"Medium",
|
|
362
|
+
"High"
|
|
363
|
+
]
|
|
295
364
|
}
|
|
296
365
|
},
|
|
297
366
|
"required": [
|
|
298
|
-
"
|
|
367
|
+
"type",
|
|
299
368
|
"subtype",
|
|
300
369
|
"measurement_unit",
|
|
301
370
|
"net_weight"
|
|
@@ -327,7 +396,12 @@
|
|
|
327
396
|
"municipality": {
|
|
328
397
|
"title": "Municipality",
|
|
329
398
|
"description": "Municipality or city name",
|
|
330
|
-
"examples": [
|
|
399
|
+
"examples": [
|
|
400
|
+
"New York",
|
|
401
|
+
"São Paulo",
|
|
402
|
+
"London",
|
|
403
|
+
"Tokyo"
|
|
404
|
+
],
|
|
331
405
|
"type": "string",
|
|
332
406
|
"minLength": 1,
|
|
333
407
|
"maxLength": 50
|
|
@@ -335,7 +409,12 @@
|
|
|
335
409
|
"administrative_division": {
|
|
336
410
|
"title": "Administrative Division",
|
|
337
411
|
"description": "State, province, or administrative region",
|
|
338
|
-
"examples": [
|
|
412
|
+
"examples": [
|
|
413
|
+
"California",
|
|
414
|
+
"Ontario",
|
|
415
|
+
"Bavaria",
|
|
416
|
+
"Queensland"
|
|
417
|
+
],
|
|
339
418
|
"type": "string",
|
|
340
419
|
"minLength": 1,
|
|
341
420
|
"maxLength": 50
|
|
@@ -343,14 +422,23 @@
|
|
|
343
422
|
"administrative_division_code": {
|
|
344
423
|
"title": "Administrative Division Code",
|
|
345
424
|
"description": "ISO 3166-2 administrative division code",
|
|
346
|
-
"examples": [
|
|
425
|
+
"examples": [
|
|
426
|
+
"BR-AP",
|
|
427
|
+
"BR-ES",
|
|
428
|
+
"US-CA"
|
|
429
|
+
],
|
|
347
430
|
"type": "string",
|
|
348
431
|
"pattern": "^[A-Z]{2}-[A-Z0-9]{1,3}$"
|
|
349
432
|
},
|
|
350
433
|
"country": {
|
|
351
434
|
"title": "Country",
|
|
352
435
|
"description": "Full country name in English",
|
|
353
|
-
"examples": [
|
|
436
|
+
"examples": [
|
|
437
|
+
"United States",
|
|
438
|
+
"Canada",
|
|
439
|
+
"Germany",
|
|
440
|
+
"Australia"
|
|
441
|
+
],
|
|
354
442
|
"type": "string",
|
|
355
443
|
"minLength": 1,
|
|
356
444
|
"maxLength": 50
|
|
@@ -358,7 +446,11 @@
|
|
|
358
446
|
"country_code": {
|
|
359
447
|
"title": "Country Code",
|
|
360
448
|
"description": "ISO 3166-1 alpha-2 country code",
|
|
361
|
-
"examples": [
|
|
449
|
+
"examples": [
|
|
450
|
+
"BR",
|
|
451
|
+
"US",
|
|
452
|
+
"DE"
|
|
453
|
+
],
|
|
362
454
|
"type": "string",
|
|
363
455
|
"pattern": "^[A-Z]{2}$"
|
|
364
456
|
},
|
|
@@ -382,23 +474,37 @@
|
|
|
382
474
|
"latitude": {
|
|
383
475
|
"title": "Latitude",
|
|
384
476
|
"description": "GPS latitude coordinate",
|
|
385
|
-
"examples": [
|
|
477
|
+
"examples": [
|
|
478
|
+
-0.02,
|
|
479
|
+
-20.38,
|
|
480
|
+
40.713
|
|
481
|
+
],
|
|
386
482
|
"type": "number",
|
|
387
483
|
"minimum": -90,
|
|
388
|
-
"maximum": 90
|
|
484
|
+
"maximum": 90,
|
|
485
|
+
"multipleOf": 0.001
|
|
389
486
|
},
|
|
390
487
|
"longitude": {
|
|
391
488
|
"title": "Longitude",
|
|
392
489
|
"description": "GPS longitude coordinate",
|
|
393
|
-
"examples": [
|
|
490
|
+
"examples": [
|
|
491
|
+
-51.06,
|
|
492
|
+
-40.34,
|
|
493
|
+
-74.006
|
|
494
|
+
],
|
|
394
495
|
"type": "number",
|
|
395
496
|
"minimum": -180,
|
|
396
|
-
"maximum": 180
|
|
497
|
+
"maximum": 180,
|
|
498
|
+
"multipleOf": 0.001
|
|
397
499
|
},
|
|
398
500
|
"precision_level": {
|
|
399
501
|
"title": "Precision Level",
|
|
400
502
|
"description": "Level of coordinate precision",
|
|
401
|
-
"examples": [
|
|
503
|
+
"examples": [
|
|
504
|
+
"city",
|
|
505
|
+
"exact",
|
|
506
|
+
"neighborhood"
|
|
507
|
+
],
|
|
402
508
|
"type": "string",
|
|
403
509
|
"enum": [
|
|
404
510
|
"exact",
|
|
@@ -409,28 +515,27 @@
|
|
|
409
515
|
]
|
|
410
516
|
}
|
|
411
517
|
},
|
|
412
|
-
"required": [
|
|
518
|
+
"required": [
|
|
519
|
+
"latitude",
|
|
520
|
+
"longitude",
|
|
521
|
+
"precision_level"
|
|
522
|
+
],
|
|
413
523
|
"additionalProperties": false
|
|
414
524
|
},
|
|
415
525
|
"facility_type": {
|
|
416
526
|
"title": "Facility Type",
|
|
417
527
|
"description": "Type of facility at this location",
|
|
418
528
|
"examples": [
|
|
419
|
-
"
|
|
529
|
+
"Collection Point",
|
|
420
530
|
"Recycling Facility",
|
|
421
|
-
"
|
|
531
|
+
"Administrative Office"
|
|
422
532
|
],
|
|
423
533
|
"type": "string",
|
|
424
534
|
"enum": [
|
|
425
|
-
"Waste Generation",
|
|
426
535
|
"Collection Point",
|
|
427
|
-
"Transfer Station",
|
|
428
|
-
"Sorting Facility",
|
|
429
|
-
"Composting Facility",
|
|
430
536
|
"Recycling Facility",
|
|
431
|
-
"
|
|
432
|
-
"
|
|
433
|
-
"Administrative Office"
|
|
537
|
+
"Administrative Office",
|
|
538
|
+
"Other"
|
|
434
539
|
]
|
|
435
540
|
}
|
|
436
541
|
},
|
|
@@ -488,14 +593,22 @@
|
|
|
488
593
|
"items": {
|
|
489
594
|
"title": "Participant Role",
|
|
490
595
|
"description": "Role that a participant plays in the waste management supply chain",
|
|
491
|
-
"examples": [
|
|
596
|
+
"examples": [
|
|
597
|
+
"Waste Generator",
|
|
598
|
+
"Hauler",
|
|
599
|
+
"Recycler"
|
|
600
|
+
],
|
|
492
601
|
"type": "string",
|
|
493
602
|
"minLength": 1,
|
|
494
603
|
"maxLength": 100
|
|
495
604
|
}
|
|
496
605
|
}
|
|
497
606
|
},
|
|
498
|
-
"required": [
|
|
607
|
+
"required": [
|
|
608
|
+
"id",
|
|
609
|
+
"name",
|
|
610
|
+
"roles"
|
|
611
|
+
],
|
|
499
612
|
"additionalProperties": false
|
|
500
613
|
}
|
|
501
614
|
},
|
|
@@ -592,7 +705,11 @@
|
|
|
592
705
|
"weight": {
|
|
593
706
|
"title": "Event Weight",
|
|
594
707
|
"description": "Mass weight after this event",
|
|
595
|
-
"examples": [
|
|
708
|
+
"examples": [
|
|
709
|
+
0,
|
|
710
|
+
45.2,
|
|
711
|
+
72.5
|
|
712
|
+
],
|
|
596
713
|
"type": "number",
|
|
597
714
|
"minimum": 0
|
|
598
715
|
},
|
|
@@ -647,10 +764,19 @@
|
|
|
647
764
|
}
|
|
648
765
|
]
|
|
649
766
|
},
|
|
767
|
+
"preserved_sensitivity": {
|
|
768
|
+
"title": "Preserved Sensitivity",
|
|
769
|
+
"description": "Indicates if the attribute contains sensitive information that was preserved",
|
|
770
|
+
"type": "boolean"
|
|
771
|
+
},
|
|
650
772
|
"format": {
|
|
651
773
|
"title": "Event Attribute Format",
|
|
652
774
|
"description": "Data format hint for proper display",
|
|
653
|
-
"examples": [
|
|
775
|
+
"examples": [
|
|
776
|
+
"KILOGRAM",
|
|
777
|
+
"DATE",
|
|
778
|
+
"PERCENTAGE"
|
|
779
|
+
],
|
|
654
780
|
"type": "string",
|
|
655
781
|
"enum": [
|
|
656
782
|
"KILOGRAM",
|
|
@@ -661,7 +787,9 @@
|
|
|
661
787
|
]
|
|
662
788
|
}
|
|
663
789
|
},
|
|
664
|
-
"required": [
|
|
790
|
+
"required": [
|
|
791
|
+
"name"
|
|
792
|
+
],
|
|
665
793
|
"additionalProperties": false
|
|
666
794
|
}
|
|
667
795
|
},
|
|
@@ -746,7 +874,10 @@
|
|
|
746
874
|
"maxLength": 100
|
|
747
875
|
}
|
|
748
876
|
},
|
|
749
|
-
"required": [
|
|
877
|
+
"required": [
|
|
878
|
+
"type",
|
|
879
|
+
"reference"
|
|
880
|
+
],
|
|
750
881
|
"additionalProperties": false
|
|
751
882
|
}
|
|
752
883
|
},
|
|
@@ -771,20 +902,32 @@
|
|
|
771
902
|
"total_distance_km": {
|
|
772
903
|
"title": "Total Distance (km)",
|
|
773
904
|
"description": "Total distance traveled across all transport events",
|
|
774
|
-
"examples": [
|
|
905
|
+
"examples": [
|
|
906
|
+
0,
|
|
907
|
+
45.2,
|
|
908
|
+
72.5
|
|
909
|
+
],
|
|
775
910
|
"type": "number",
|
|
776
911
|
"minimum": 0
|
|
777
912
|
},
|
|
778
913
|
"total_duration_hours": {
|
|
779
914
|
"title": "Total Duration (hours)",
|
|
780
915
|
"description": "Total time from first to last event in hours",
|
|
781
|
-
"examples": [
|
|
916
|
+
"examples": [
|
|
917
|
+
72.5,
|
|
918
|
+
24,
|
|
919
|
+
168.5
|
|
920
|
+
],
|
|
782
921
|
"type": "number",
|
|
783
922
|
"minimum": 0,
|
|
784
923
|
"multipleOf": 0.1
|
|
785
924
|
}
|
|
786
925
|
},
|
|
787
|
-
"required": [
|
|
926
|
+
"required": [
|
|
927
|
+
"events",
|
|
928
|
+
"total_distance_km",
|
|
929
|
+
"total_duration_hours"
|
|
930
|
+
],
|
|
788
931
|
"additionalProperties": false
|
|
789
932
|
},
|
|
790
933
|
"geographic_data": {
|
|
@@ -869,7 +1012,11 @@
|
|
|
869
1012
|
"distance_km": {
|
|
870
1013
|
"title": "Distance (km)",
|
|
871
1014
|
"description": "Distance for this route segment in kilometers",
|
|
872
|
-
"examples": [
|
|
1015
|
+
"examples": [
|
|
1016
|
+
0,
|
|
1017
|
+
45.2,
|
|
1018
|
+
72.5
|
|
1019
|
+
],
|
|
873
1020
|
"type": "number",
|
|
874
1021
|
"minimum": 0
|
|
875
1022
|
},
|
|
@@ -893,7 +1040,11 @@
|
|
|
893
1040
|
"duration_hours": {
|
|
894
1041
|
"title": "Duration (hours)",
|
|
895
1042
|
"description": "Time taken for this route segment in hours",
|
|
896
|
-
"examples": [
|
|
1043
|
+
"examples": [
|
|
1044
|
+
72.5,
|
|
1045
|
+
24,
|
|
1046
|
+
168.5
|
|
1047
|
+
],
|
|
897
1048
|
"type": "number",
|
|
898
1049
|
"minimum": 0,
|
|
899
1050
|
"multipleOf": 0.1
|
|
@@ -919,7 +1070,7 @@
|
|
|
919
1070
|
}
|
|
920
1071
|
},
|
|
921
1072
|
"required": [
|
|
922
|
-
"
|
|
1073
|
+
"waste_properties",
|
|
923
1074
|
"locations",
|
|
924
1075
|
"participants",
|
|
925
1076
|
"chain_of_custody",
|
|
@@ -945,7 +1096,11 @@
|
|
|
945
1096
|
"chain_id": {
|
|
946
1097
|
"title": "Chain ID",
|
|
947
1098
|
"description": "Blockchain chain ID",
|
|
948
|
-
"examples": [
|
|
1099
|
+
"examples": [
|
|
1100
|
+
1,
|
|
1101
|
+
137,
|
|
1102
|
+
11155111
|
|
1103
|
+
],
|
|
949
1104
|
"type": "integer",
|
|
950
1105
|
"minimum": 1,
|
|
951
1106
|
"maximum": 9007199254740991
|
|
@@ -960,7 +1115,11 @@
|
|
|
960
1115
|
"token_id": {
|
|
961
1116
|
"title": "Token ID",
|
|
962
1117
|
"description": "NFT token ID",
|
|
963
|
-
"examples": [
|
|
1118
|
+
"examples": [
|
|
1119
|
+
"123",
|
|
1120
|
+
"456789",
|
|
1121
|
+
"1000000"
|
|
1122
|
+
],
|
|
964
1123
|
"type": "string",
|
|
965
1124
|
"minLength": 1,
|
|
966
1125
|
"pattern": "^\\d+$"
|
|
@@ -989,7 +1148,11 @@
|
|
|
989
1148
|
"short_name": {
|
|
990
1149
|
"title": "Short Name",
|
|
991
1150
|
"description": "Compact name for UI summaries, tables, or tooltips",
|
|
992
|
-
"examples": [
|
|
1151
|
+
"examples": [
|
|
1152
|
+
"MassID #123",
|
|
1153
|
+
"RecycledID #456",
|
|
1154
|
+
"GasID #789"
|
|
1155
|
+
],
|
|
993
1156
|
"type": "string",
|
|
994
1157
|
"minLength": 1,
|
|
995
1158
|
"maxLength": 50
|
|
@@ -1019,7 +1182,11 @@
|
|
|
1019
1182
|
"background_color": {
|
|
1020
1183
|
"title": "Background Color",
|
|
1021
1184
|
"description": "Hex color code for marketplace background display",
|
|
1022
|
-
"examples": [
|
|
1185
|
+
"examples": [
|
|
1186
|
+
"#2D5A27",
|
|
1187
|
+
"#FF5733",
|
|
1188
|
+
"#1E90FF"
|
|
1189
|
+
],
|
|
1023
1190
|
"type": "string",
|
|
1024
1191
|
"minLength": 1,
|
|
1025
1192
|
"pattern": "^#[0-9A-F]{6}$"
|
|
@@ -1080,7 +1247,10 @@
|
|
|
1080
1247
|
"maxLength": 100
|
|
1081
1248
|
}
|
|
1082
1249
|
},
|
|
1083
|
-
"required": [
|
|
1250
|
+
"required": [
|
|
1251
|
+
"label",
|
|
1252
|
+
"url"
|
|
1253
|
+
],
|
|
1084
1254
|
"additionalProperties": false
|
|
1085
1255
|
}
|
|
1086
1256
|
},
|
|
@@ -1099,12 +1269,19 @@
|
|
|
1099
1269
|
"value": {
|
|
1100
1270
|
"title": "Waste Type",
|
|
1101
1271
|
"description": "Category or type of waste material",
|
|
1102
|
-
"examples": [
|
|
1272
|
+
"examples": [
|
|
1273
|
+
"Organic",
|
|
1274
|
+
"Plastic",
|
|
1275
|
+
"Metal"
|
|
1276
|
+
],
|
|
1103
1277
|
"type": "string",
|
|
1104
1278
|
"minLength": 1
|
|
1105
1279
|
}
|
|
1106
1280
|
},
|
|
1107
|
-
"required": [
|
|
1281
|
+
"required": [
|
|
1282
|
+
"trait_type",
|
|
1283
|
+
"value"
|
|
1284
|
+
],
|
|
1108
1285
|
"additionalProperties": false
|
|
1109
1286
|
},
|
|
1110
1287
|
{
|
|
@@ -1129,7 +1306,10 @@
|
|
|
1129
1306
|
"maxLength": 100
|
|
1130
1307
|
}
|
|
1131
1308
|
},
|
|
1132
|
-
"required": [
|
|
1309
|
+
"required": [
|
|
1310
|
+
"trait_type",
|
|
1311
|
+
"value"
|
|
1312
|
+
],
|
|
1133
1313
|
"additionalProperties": false
|
|
1134
1314
|
},
|
|
1135
1315
|
{
|
|
@@ -1144,7 +1324,11 @@
|
|
|
1144
1324
|
"value": {
|
|
1145
1325
|
"title": "Weight (kg)",
|
|
1146
1326
|
"description": "Weight measurement in kilograms",
|
|
1147
|
-
"examples": [
|
|
1327
|
+
"examples": [
|
|
1328
|
+
3000,
|
|
1329
|
+
1500,
|
|
1330
|
+
500
|
|
1331
|
+
],
|
|
1148
1332
|
"type": "number",
|
|
1149
1333
|
"minimum": 0
|
|
1150
1334
|
},
|
|
@@ -1153,7 +1337,11 @@
|
|
|
1153
1337
|
"const": "number"
|
|
1154
1338
|
}
|
|
1155
1339
|
},
|
|
1156
|
-
"required": [
|
|
1340
|
+
"required": [
|
|
1341
|
+
"trait_type",
|
|
1342
|
+
"value",
|
|
1343
|
+
"display_type"
|
|
1344
|
+
],
|
|
1157
1345
|
"additionalProperties": false
|
|
1158
1346
|
},
|
|
1159
1347
|
{
|
|
@@ -1172,7 +1360,10 @@
|
|
|
1172
1360
|
"maxLength": 100
|
|
1173
1361
|
}
|
|
1174
1362
|
},
|
|
1175
|
-
"required": [
|
|
1363
|
+
"required": [
|
|
1364
|
+
"trait_type",
|
|
1365
|
+
"value"
|
|
1366
|
+
],
|
|
1176
1367
|
"additionalProperties": false
|
|
1177
1368
|
},
|
|
1178
1369
|
{
|
|
@@ -1191,7 +1382,10 @@
|
|
|
1191
1382
|
"maxLength": 100
|
|
1192
1383
|
}
|
|
1193
1384
|
},
|
|
1194
|
-
"required": [
|
|
1385
|
+
"required": [
|
|
1386
|
+
"trait_type",
|
|
1387
|
+
"value"
|
|
1388
|
+
],
|
|
1195
1389
|
"additionalProperties": false
|
|
1196
1390
|
},
|
|
1197
1391
|
{
|
|
@@ -1210,7 +1404,10 @@
|
|
|
1210
1404
|
"maxLength": 100
|
|
1211
1405
|
}
|
|
1212
1406
|
},
|
|
1213
|
-
"required": [
|
|
1407
|
+
"required": [
|
|
1408
|
+
"trait_type",
|
|
1409
|
+
"value"
|
|
1410
|
+
],
|
|
1214
1411
|
"additionalProperties": false
|
|
1215
1412
|
},
|
|
1216
1413
|
{
|
|
@@ -1229,7 +1426,10 @@
|
|
|
1229
1426
|
"maxLength": 100
|
|
1230
1427
|
}
|
|
1231
1428
|
},
|
|
1232
|
-
"required": [
|
|
1429
|
+
"required": [
|
|
1430
|
+
"trait_type",
|
|
1431
|
+
"value"
|
|
1432
|
+
],
|
|
1233
1433
|
"additionalProperties": false
|
|
1234
1434
|
},
|
|
1235
1435
|
{
|
|
@@ -1248,12 +1448,15 @@
|
|
|
1248
1448
|
"maxLength": 100
|
|
1249
1449
|
}
|
|
1250
1450
|
},
|
|
1251
|
-
"required": [
|
|
1451
|
+
"required": [
|
|
1452
|
+
"trait_type",
|
|
1453
|
+
"value"
|
|
1454
|
+
],
|
|
1252
1455
|
"additionalProperties": false
|
|
1253
1456
|
},
|
|
1254
1457
|
{
|
|
1255
1458
|
"title": "Pick-up Date Attribute",
|
|
1256
|
-
"description": "Pick-up date attribute",
|
|
1459
|
+
"description": "Pick-up date attribute with Unix timestamp",
|
|
1257
1460
|
"type": "object",
|
|
1258
1461
|
"properties": {
|
|
1259
1462
|
"trait_type": {
|
|
@@ -1262,16 +1465,26 @@
|
|
|
1262
1465
|
},
|
|
1263
1466
|
"value": {
|
|
1264
1467
|
"title": "Pick-up Date Value",
|
|
1265
|
-
"description": "
|
|
1266
|
-
"
|
|
1267
|
-
|
|
1468
|
+
"description": "Unix timestamp in milliseconds when the waste was picked up from the source",
|
|
1469
|
+
"examples": [
|
|
1470
|
+
1704067200000,
|
|
1471
|
+
1735689600000,
|
|
1472
|
+
1762371245149
|
|
1473
|
+
],
|
|
1474
|
+
"type": "integer",
|
|
1475
|
+
"exclusiveMinimum": 0,
|
|
1476
|
+
"maximum": 9007199254740991
|
|
1268
1477
|
},
|
|
1269
1478
|
"display_type": {
|
|
1270
1479
|
"type": "string",
|
|
1271
1480
|
"const": "date"
|
|
1272
1481
|
}
|
|
1273
1482
|
},
|
|
1274
|
-
"required": [
|
|
1483
|
+
"required": [
|
|
1484
|
+
"trait_type",
|
|
1485
|
+
"value",
|
|
1486
|
+
"display_type"
|
|
1487
|
+
],
|
|
1275
1488
|
"additionalProperties": false
|
|
1276
1489
|
},
|
|
1277
1490
|
{
|
|
@@ -1294,7 +1507,11 @@
|
|
|
1294
1507
|
"const": "date"
|
|
1295
1508
|
}
|
|
1296
1509
|
},
|
|
1297
|
-
"required": [
|
|
1510
|
+
"required": [
|
|
1511
|
+
"trait_type",
|
|
1512
|
+
"value",
|
|
1513
|
+
"display_type"
|
|
1514
|
+
],
|
|
1298
1515
|
"additionalProperties": false
|
|
1299
1516
|
}
|
|
1300
1517
|
],
|
|
@@ -1319,4 +1536,4 @@
|
|
|
1319
1536
|
"attributes"
|
|
1320
1537
|
],
|
|
1321
1538
|
"additionalProperties": false
|
|
1322
|
-
}
|
|
1539
|
+
}
|