@carrot-foundation/schemas 0.2.3 → 0.3.0

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 (27) hide show
  1. package/README.md +144 -116
  2. package/dist/index.cjs +204 -267
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +23 -23
  5. package/dist/index.d.ts +23 -23
  6. package/dist/index.js +204 -267
  7. package/dist/index.js.map +1 -1
  8. package/package.json +20 -20
  9. package/schemas/ipfs/collection/collection.example.json +3 -3
  10. package/schemas/ipfs/collection/collection.schema.json +77 -77
  11. package/schemas/ipfs/credit/credit.example.json +4 -4
  12. package/schemas/ipfs/credit/credit.schema.json +85 -85
  13. package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +15 -15
  14. package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +432 -424
  15. package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +15 -15
  16. package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +465 -457
  17. package/schemas/ipfs/gas-id/gas-id.example.json +9 -9
  18. package/schemas/ipfs/gas-id/gas-id.schema.json +448 -432
  19. package/schemas/ipfs/mass-id/mass-id.example.json +7 -7
  20. package/schemas/ipfs/mass-id/mass-id.schema.json +533 -512
  21. package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +57 -57
  22. package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +225 -217
  23. package/schemas/ipfs/methodology/methodology.example.json +5 -5
  24. package/schemas/ipfs/methodology/methodology.schema.json +124 -124
  25. package/schemas/ipfs/recycled-id/recycled-id.example.json +9 -9
  26. package/schemas/ipfs/recycled-id/recycled-id.schema.json +400 -384
  27. package/schemas/schema-hashes.json +10 -10
@@ -1,9 +1,9 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.2.3/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json",
2
+ "$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.3.0/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json",
3
3
  "schema": {
4
- "hash": "f8190361195c1267eede7e2f43572fd71df62a309940b209b84256b3ed5d07e1",
4
+ "hash": "05d4c353673565d0c681653d52703993b973695d4cffc0bd51aa6f7d31fbafef",
5
5
  "type": "MassID Audit",
6
- "version": "0.2.3",
6
+ "version": "0.3.0",
7
7
  "ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
8
8
  },
9
9
  "environment": {
@@ -11,13 +11,13 @@
11
11
  "deployment": "development",
12
12
  "data_set_name": "TEST"
13
13
  },
14
- "created_at": "2024-12-08T11:32:47.000Z",
14
+ "created_at": "2024-12-08T11:32:48.200Z",
15
15
  "external_id": "80011d61-fe40-4aa2-9031-4f2aafad5d42",
16
16
  "external_url": "https://explore.carrot.eco/document/80011d61-fe40-4aa2-9031-4f2aafad5d42",
17
17
  "data": {
18
18
  "audit_summary": {
19
19
  "started_at": "2024-12-08T11:32:46.000Z",
20
- "completed_at": "2024-12-08T11:32:47.000Z",
20
+ "completed_at": "2024-12-08T11:32:48.200Z",
21
21
  "result": "PASSED"
22
22
  },
23
23
  "methodology": {
@@ -29,33 +29,33 @@
29
29
  },
30
30
  "mass_id": {
31
31
  "external_id": "ad44dd3f-f176-4b98-bf78-5ee6e77d0530",
32
- "token_id": "1034",
32
+ "token_id": "100001",
33
33
  "external_url": "https://explore.carrot.eco/document/ad44dd3f-f176-4b98-bf78-5ee6e77d0530",
34
34
  "ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
35
35
  "smart_contract_address": "0x1234567890abcdef1234567890abcdef12345678"
36
36
  },
37
37
  "gas_id": {
38
38
  "external_id": "d2a7f8e4-9c61-4e35-b8f2-a5c9e7d1b4f6",
39
- "token_id": "456",
39
+ "token_id": "200001",
40
40
  "external_url": "https://explore.carrot.eco/document/d2a7f8e4-9c61-4e35-b8f2-a5c9e7d1b4f6",
41
41
  "ipfs_uri": "ipfs://bafybeicnuw2ytgukpr5uzmdyt6gdsbkq2xvula4odrqpnbx2ens4qfoywm",
42
42
  "smart_contract_address": "0x1234567890abcdef1234567890abcdef12345678"
43
43
  },
44
44
  "rule_execution_results": [
45
45
  {
46
- "rule_id": "00000000-0000-4000-8000-000000000001",
47
- "rule_slug": "waste-mass-is-unique",
48
46
  "rule_name": "Waste Mass is Unique",
49
- "rule_description": "Validates that each MassID is unique within the system to prevent duplicate entries and double counting",
50
- "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/waste-mass-is-unique",
51
- "rule_execution_order": 1,
52
- "execution_id": "b7708f8b-ef9d-4e79-8b7e-fe1acbc63866",
53
- "execution_started_at": "2024-12-08T11:32:46.000Z",
54
- "execution_completed_at": "2024-12-08T11:32:46.050Z",
47
+ "rule_slug": "waste-mass-is-unique",
48
+ "rule_id": "00000000-0000-4000-8000-000000000001",
55
49
  "result": "PASSED",
56
50
  "execution_message": "No other MassIDs with the same attributes were found.",
57
51
  "rule_processor_checksum": "06230ee263852c67332b50c3ea12ceb7",
58
- "rule_source_code_version": "2e9cbbfd397027a03fb1561e431fcc156580459f"
52
+ "rule_source_code_version": "2e9cbbfd397027a03fb1561e431fcc156580459f",
53
+ "rule_description": "Validates that each MassID is unique within the system to prevent duplicate entries and double counting",
54
+ "rule_execution_order": 1,
55
+ "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/waste-mass-is-unique",
56
+ "execution_id": "b7708f8b-ef9d-4e79-8b7e-fe1acbc63866",
57
+ "execution_started_at": "2024-12-08T11:32:46.100Z",
58
+ "execution_completed_at": "2024-12-08T11:32:46.150Z"
59
59
  },
60
60
  {
61
61
  "rule_name": "No Conflicting GasID or Credit",
@@ -69,8 +69,8 @@
69
69
  "rule_execution_order": 2,
70
70
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/no-conflicting-gas-id-or-credit",
71
71
  "execution_id": "f17c73ed-5f0b-4d81-90fd-10c629112da2",
72
- "execution_started_at": "2024-12-08T11:32:46.100Z",
73
- "execution_completed_at": "2024-12-08T11:32:46.150Z"
72
+ "execution_started_at": "2024-12-08T11:32:46.200Z",
73
+ "execution_completed_at": "2024-12-08T11:32:46.250Z"
74
74
  },
75
75
  {
76
76
  "rule_name": "Project Period Limit",
@@ -84,8 +84,8 @@
84
84
  "rule_execution_order": 3,
85
85
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/project-period-limit",
86
86
  "execution_id": "84ad7f66-70fb-4737-bac3-834a50a82578",
87
- "execution_started_at": "2024-12-08T11:32:46.200Z",
88
- "execution_completed_at": "2024-12-08T11:32:46.250Z"
87
+ "execution_started_at": "2024-12-08T11:32:46.300Z",
88
+ "execution_completed_at": "2024-12-08T11:32:46.350Z"
89
89
  },
90
90
  {
91
91
  "rule_name": "Participant Accreditations & Verifications Requirements",
@@ -95,12 +95,12 @@
95
95
  "execution_message": "All participant accreditations-and-verifications are active and approved.",
96
96
  "rule_processor_checksum": "e014fc2e2c85aba826ad8b079f9f8bd7",
97
97
  "rule_source_code_version": "2e9cbbfd397027a03fb1561e431fcc156580459f",
98
- "rule_description": "Checks if all participating entities have valid certifications and permissions",
98
+ "rule_description": "Checks if all participating entities have valid accreditations and permissions",
99
99
  "rule_execution_order": 4,
100
100
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/participant-accreditations-and-verifications-requirements",
101
101
  "execution_id": "9eb0e3f4-6f7d-4820-b3f2-83d314a48dea",
102
- "execution_started_at": "2024-12-08T11:32:46.300Z",
103
- "execution_completed_at": "2024-12-08T11:32:46.350Z"
102
+ "execution_started_at": "2024-12-08T11:32:46.400Z",
103
+ "execution_completed_at": "2024-12-08T11:32:46.450Z"
104
104
  },
105
105
  {
106
106
  "rule_name": "MassID Qualifications",
@@ -114,8 +114,8 @@
114
114
  "rule_execution_order": 5,
115
115
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/mass-id-qualifications",
116
116
  "execution_id": "0d56dc15-b502-4ad9-b0b6-721ac1ecf9c2",
117
- "execution_started_at": "2024-12-08T11:32:46.400Z",
118
- "execution_completed_at": "2024-12-08T11:32:46.450Z"
117
+ "execution_started_at": "2024-12-08T11:32:46.500Z",
118
+ "execution_completed_at": "2024-12-08T11:32:46.550Z"
119
119
  },
120
120
  {
121
121
  "rule_name": "Regional Waste Classification",
@@ -128,8 +128,8 @@
128
128
  "rule_execution_order": 6,
129
129
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/regional-waste-classification",
130
130
  "execution_id": "547ab47d-313a-4124-a15c-b63663c59e4b",
131
- "execution_started_at": "2024-12-08T11:32:46.500Z",
132
- "execution_completed_at": "2024-12-08T11:32:46.550Z"
131
+ "execution_started_at": "2024-12-08T11:32:46.600Z",
132
+ "execution_completed_at": "2024-12-08T11:32:46.650Z"
133
133
  },
134
134
  {
135
135
  "rule_name": "Geolocation and Address Precision",
@@ -142,8 +142,8 @@
142
142
  "rule_execution_order": 7,
143
143
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/geolocation-and-address-precision",
144
144
  "execution_id": "e12f4fcd-2690-484c-b9eb-add72db613e9",
145
- "execution_started_at": "2024-12-08T11:32:46.600Z",
146
- "execution_completed_at": "2024-12-08T11:32:46.650Z"
145
+ "execution_started_at": "2024-12-08T11:32:46.700Z",
146
+ "execution_completed_at": "2024-12-08T11:32:46.750Z"
147
147
  },
148
148
  {
149
149
  "rule_name": "Waste Origin Identification",
@@ -156,8 +156,8 @@
156
156
  "rule_execution_order": 8,
157
157
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/waste-origin-identification",
158
158
  "execution_id": "4dcf8498-85af-4cbf-ab9c-e9fbdc11c942",
159
- "execution_started_at": "2024-12-08T11:32:46.700Z",
160
- "execution_completed_at": "2024-12-08T11:32:46.750Z"
159
+ "execution_started_at": "2024-12-08T11:32:46.800Z",
160
+ "execution_completed_at": "2024-12-08T11:32:46.850Z"
161
161
  },
162
162
  {
163
163
  "rule_name": "Hauler Identification",
@@ -170,8 +170,8 @@
170
170
  "rule_execution_order": 9,
171
171
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/hauler-identification",
172
172
  "execution_id": "b1d07bbb-c158-453d-88ec-6a0bcb860196",
173
- "execution_started_at": "2024-12-08T11:32:46.800Z",
174
- "execution_completed_at": "2024-12-08T11:32:46.850Z"
173
+ "execution_started_at": "2024-12-08T11:32:46.900Z",
174
+ "execution_completed_at": "2024-12-08T11:32:46.950Z"
175
175
  },
176
176
  {
177
177
  "rule_name": "Vehicle Identification",
@@ -184,8 +184,8 @@
184
184
  "rule_execution_order": 10,
185
185
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/vehicle-identification",
186
186
  "execution_id": "9ac0195e-bbbc-44e7-976e-776f2f282e80",
187
- "execution_started_at": "2024-12-08T11:32:46.900Z",
188
- "execution_completed_at": "2024-12-08T11:32:46.950Z"
187
+ "execution_started_at": "2024-12-08T11:32:47.000Z",
188
+ "execution_completed_at": "2024-12-08T11:32:47.050Z"
189
189
  },
190
190
  {
191
191
  "rule_name": "Driver Identification",
@@ -198,8 +198,8 @@
198
198
  "rule_execution_order": 11,
199
199
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/driver-identification",
200
200
  "execution_id": "8ed8e48f-f749-46dc-ab4b-b509dfdada1d",
201
- "execution_started_at": "2024-12-08T11:32:47.000Z",
202
- "execution_completed_at": "2024-12-08T11:32:47.050Z"
201
+ "execution_started_at": "2024-12-08T11:32:47.100Z",
202
+ "execution_completed_at": "2024-12-08T11:32:47.150Z"
203
203
  },
204
204
  {
205
205
  "rule_name": "Transport Manifest Data",
@@ -212,8 +212,8 @@
212
212
  "rule_execution_order": 12,
213
213
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/transport-manifest-data",
214
214
  "execution_id": "74ce0927-cde8-4b27-bbb3-e16bcf749896",
215
- "execution_started_at": "2024-12-08T11:32:47.100Z",
216
- "execution_completed_at": "2024-12-08T11:32:47.150Z"
215
+ "execution_started_at": "2024-12-08T11:32:47.200Z",
216
+ "execution_completed_at": "2024-12-08T11:32:47.250Z"
217
217
  },
218
218
  {
219
219
  "rule_name": "Processor Identification",
@@ -226,8 +226,8 @@
226
226
  "rule_execution_order": 13,
227
227
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/processor-identification",
228
228
  "execution_id": "3d865091-b639-41f5-b36e-48ed9214b1e0",
229
- "execution_started_at": "2024-12-08T11:32:47.200Z",
230
- "execution_completed_at": "2024-12-08T11:32:47.250Z"
229
+ "execution_started_at": "2024-12-08T11:32:47.300Z",
230
+ "execution_completed_at": "2024-12-08T11:32:47.350Z"
231
231
  },
232
232
  {
233
233
  "rule_name": "Recycler Identification",
@@ -240,8 +240,8 @@
240
240
  "rule_execution_order": 14,
241
241
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/recycler-identification",
242
242
  "execution_id": "229a046b-b9d4-4471-bf6f-82c7a26cd4f3",
243
- "execution_started_at": "2024-12-08T11:32:47.300Z",
244
- "execution_completed_at": "2024-12-08T11:32:47.350Z"
243
+ "execution_started_at": "2024-12-08T11:32:47.400Z",
244
+ "execution_completed_at": "2024-12-08T11:32:47.450Z"
245
245
  },
246
246
  {
247
247
  "rule_name": "Weighing",
@@ -254,8 +254,8 @@
254
254
  "rule_execution_order": 15,
255
255
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/weighing",
256
256
  "execution_id": "6a3e3f28-32a4-4811-beb9-c3ab0dbc63df",
257
- "execution_started_at": "2024-12-08T11:32:47.400Z",
258
- "execution_completed_at": "2024-12-08T11:32:47.450Z"
257
+ "execution_started_at": "2024-12-08T11:32:47.500Z",
258
+ "execution_completed_at": "2024-12-08T11:32:47.550Z"
259
259
  },
260
260
  {
261
261
  "rule_name": "Drop-off at Recycler",
@@ -268,8 +268,8 @@
268
268
  "rule_execution_order": 16,
269
269
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/drop-off-at-recycler",
270
270
  "execution_id": "1cd41078-6c09-46f7-8032-9ddc98c42ab4",
271
- "execution_started_at": "2024-12-08T11:32:47.500Z",
272
- "execution_completed_at": "2024-12-08T11:32:47.550Z"
271
+ "execution_started_at": "2024-12-08T11:32:47.600Z",
272
+ "execution_completed_at": "2024-12-08T11:32:47.650Z"
273
273
  },
274
274
  {
275
275
  "rule_name": "MassID Sorting",
@@ -282,8 +282,8 @@
282
282
  "rule_execution_order": 17,
283
283
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/mass-id-sorting",
284
284
  "execution_id": "0412bd25-58b6-4349-b882-a775eb418b16",
285
- "execution_started_at": "2024-12-08T11:32:47.600Z",
286
- "execution_completed_at": "2024-12-08T11:32:47.650Z"
285
+ "execution_started_at": "2024-12-08T11:32:47.700Z",
286
+ "execution_completed_at": "2024-12-08T11:32:47.750Z"
287
287
  },
288
288
  {
289
289
  "rule_name": "Composting Cycle Timeframe",
@@ -297,8 +297,8 @@
297
297
  "rule_execution_order": 18,
298
298
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/composting-cycle-timeframe",
299
299
  "execution_id": "26482345-0ce3-4e7c-a0bd-6d8cf6004ec1",
300
- "execution_started_at": "2024-12-08T11:32:47.700Z",
301
- "execution_completed_at": "2024-12-08T11:32:47.750Z"
300
+ "execution_started_at": "2024-12-08T11:32:47.800Z",
301
+ "execution_completed_at": "2024-12-08T11:32:47.850Z"
302
302
  },
303
303
  {
304
304
  "rule_name": "Recycling Manifest Data",
@@ -312,8 +312,8 @@
312
312
  "rule_execution_order": 19,
313
313
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/recycling-manifest-data",
314
314
  "execution_id": "6964440e-9fed-4db8-a3e5-bf32e8e22b17",
315
- "execution_started_at": "2024-12-08T11:32:47.800Z",
316
- "execution_completed_at": "2024-12-08T11:32:47.850Z"
315
+ "execution_started_at": "2024-12-08T11:32:47.900Z",
316
+ "execution_completed_at": "2024-12-08T11:32:47.950Z"
317
317
  },
318
318
  {
319
319
  "rule_name": "Project Boundary",
@@ -327,8 +327,8 @@
327
327
  "rule_execution_order": 20,
328
328
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/project-boundary",
329
329
  "execution_id": "3859a3d1-b864-483e-a25f-86a363d43e54",
330
- "execution_started_at": "2024-12-08T11:32:47.900Z",
331
- "execution_completed_at": "2024-12-08T11:32:47.950Z"
330
+ "execution_started_at": "2024-12-08T11:32:48.000Z",
331
+ "execution_completed_at": "2024-12-08T11:32:48.050Z"
332
332
  },
333
333
  {
334
334
  "rule_name": "Prevented CO₂e",
@@ -342,8 +342,8 @@
342
342
  "rule_execution_order": 21,
343
343
  "rule_source_code_url": "https://github.com/carrot-foundation/methodology-rules/tree/2e9cbbfd397027a03fb1561e431fcc156580459f/apps/methodologies/bold-carbon/rule-processors/mass-id/prevented-emissions",
344
344
  "execution_id": "17d88045-564b-48ca-aa76-beb12c94681c",
345
- "execution_started_at": "2024-12-08T11:32:48.000Z",
346
- "execution_completed_at": "2024-12-08T11:32:48.050Z"
345
+ "execution_started_at": "2024-12-08T11:32:48.100Z",
346
+ "execution_completed_at": "2024-12-08T11:32:48.150Z"
347
347
  }
348
348
  ]
349
349
  }