@carrot-foundation/schemas 0.1.39 → 0.1.41
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/dist/index.cjs +589 -524
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +466 -673
- package/dist/index.d.ts +466 -673
- package/dist/index.js +589 -522
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/ipfs/collection/collection.example.json +3 -7
- package/schemas/ipfs/collection/collection.schema.json +17 -130
- package/schemas/ipfs/credit/credit.example.json +3 -7
- package/schemas/ipfs/credit/credit.schema.json +17 -130
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +3 -7
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +144 -243
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +3 -7
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +143 -239
- package/schemas/ipfs/gas-id/gas-id.example.json +4 -9
- package/schemas/ipfs/gas-id/gas-id.schema.json +63 -206
- package/schemas/ipfs/mass-id/mass-id.example.json +88 -188
- package/schemas/ipfs/mass-id/mass-id.schema.json +675 -646
- package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +3 -7
- package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +28 -150
- package/schemas/ipfs/methodology/methodology.example.json +3 -28
- package/schemas/ipfs/methodology/methodology.schema.json +20 -145
- package/schemas/ipfs/recycled-id/recycled-id.example.json +5 -10
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +62 -203
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.40/schemas/ipfs/mass-id/mass-id.schema.json",
|
|
3
3
|
"schema": {
|
|
4
4
|
"hash": "ac08c3cf2e175e55961d6affdb38bc24591b84ceef7f3707c69ae3d52c148b2f",
|
|
5
5
|
"type": "MassID",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.40"
|
|
7
7
|
},
|
|
8
8
|
"environment": {
|
|
9
9
|
"blockchain_network": "testnet",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"blockchain": {
|
|
14
14
|
"token_id": "123",
|
|
15
15
|
"smart_contract_address": "0x1234567890abcdef1234567890abcdef12345678",
|
|
16
|
-
"chain_id":
|
|
17
|
-
"network_name": "
|
|
16
|
+
"chain_id": 80002,
|
|
17
|
+
"network_name": "Amoy"
|
|
18
18
|
},
|
|
19
19
|
"created_at": "2024-12-05T11:02:47.000Z",
|
|
20
20
|
"external_id": "ad44dd3f-f176-4b98-bf78-5ee6e77d0530",
|
|
@@ -63,49 +63,46 @@
|
|
|
63
63
|
"value": "Amapá"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
"trait_type": "Vehicle Type",
|
|
66
|
+
"trait_type": "Pick-up Vehicle Type",
|
|
67
67
|
"value": "Truck"
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
"trait_type": "Recycling Method",
|
|
71
71
|
"value": "Composting"
|
|
72
72
|
},
|
|
73
|
-
{
|
|
74
|
-
"trait_type": "Processing Time (hours)",
|
|
75
|
-
"value": 72.5
|
|
76
|
-
},
|
|
77
73
|
{
|
|
78
74
|
"trait_type": "Local Waste Classification ID",
|
|
79
75
|
"value": "04 02 20"
|
|
80
76
|
},
|
|
81
77
|
{
|
|
82
|
-
"trait_type": "Recycling Manifest
|
|
83
|
-
"value": "
|
|
78
|
+
"trait_type": "Recycling Manifest Number",
|
|
79
|
+
"value": "2353"
|
|
84
80
|
},
|
|
85
81
|
{
|
|
86
|
-
"trait_type": "Transport Manifest
|
|
87
|
-
"value": "
|
|
82
|
+
"trait_type": "Transport Manifest Number",
|
|
83
|
+
"value": "4126"
|
|
88
84
|
},
|
|
89
85
|
{
|
|
90
86
|
"trait_type": "Weighing Capture Method",
|
|
91
|
-
"value": "Digital"
|
|
87
|
+
"value": "Digital scale integration"
|
|
92
88
|
},
|
|
93
89
|
{
|
|
94
90
|
"trait_type": "Scale Type",
|
|
95
91
|
"value": "Weighbridge (Truck Scale)"
|
|
96
92
|
},
|
|
97
|
-
{
|
|
98
|
-
"trait_type": "Container Type",
|
|
99
|
-
"value": "Truck"
|
|
100
|
-
},
|
|
101
93
|
{
|
|
102
94
|
"trait_type": "Pick-up Date",
|
|
103
95
|
"value": 1733396567000,
|
|
104
96
|
"display_type": "date"
|
|
105
97
|
},
|
|
98
|
+
{
|
|
99
|
+
"trait_type": "Drop-off Date",
|
|
100
|
+
"value": 1733407367000,
|
|
101
|
+
"display_type": "date"
|
|
102
|
+
},
|
|
106
103
|
{
|
|
107
104
|
"trait_type": "Recycling Date",
|
|
108
|
-
"value":
|
|
105
|
+
"value": 1733657567000,
|
|
109
106
|
"display_type": "date"
|
|
110
107
|
}
|
|
111
108
|
],
|
|
@@ -117,10 +114,8 @@
|
|
|
117
114
|
"subtype": "Food, Food Waste and Beverages",
|
|
118
115
|
"local_classification": {
|
|
119
116
|
"code": "04 02 20",
|
|
120
|
-
"
|
|
121
|
-
"system": "IBAMA"
|
|
117
|
+
"system": "Ibama"
|
|
122
118
|
},
|
|
123
|
-
"measurement_unit": "kg",
|
|
124
119
|
"net_weight": 3000
|
|
125
120
|
},
|
|
126
121
|
"locations": [
|
|
@@ -131,7 +126,6 @@
|
|
|
131
126
|
"administrative_division_code": "BR-AP",
|
|
132
127
|
"country": "Brazil",
|
|
133
128
|
"country_code": "BR",
|
|
134
|
-
"facility_type": "Collection Point",
|
|
135
129
|
"coordinates": {
|
|
136
130
|
"latitude": -0.02,
|
|
137
131
|
"longitude": -51.06,
|
|
@@ -146,7 +140,6 @@
|
|
|
146
140
|
"administrative_division_code": "BR-ES",
|
|
147
141
|
"country": "Brazil",
|
|
148
142
|
"country_code": "BR",
|
|
149
|
-
"facility_type": "Recycling Facility",
|
|
150
143
|
"coordinates": {
|
|
151
144
|
"latitude": -20.38,
|
|
152
145
|
"longitude": -40.34,
|
|
@@ -167,170 +160,77 @@
|
|
|
167
160
|
"roles": ["Hauler", "Recycler"]
|
|
168
161
|
}
|
|
169
162
|
],
|
|
170
|
-
"
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
"
|
|
180
|
-
{
|
|
181
|
-
"name": "Vehicle Type",
|
|
182
|
-
"value": "Truck"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"name": "Driver Identifier",
|
|
186
|
-
"value": "645eb901-bc17-497f-b53b-9bdd619ae2ec"
|
|
187
|
-
}
|
|
188
|
-
]
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"event_id": "9f6c6855-0a6b-4989-a3fc-1a8a38f919ec",
|
|
192
|
-
"event_name": "Transport",
|
|
193
|
-
"timestamp": 1733396567000,
|
|
194
|
-
"description": "Waste transported to recycling facility",
|
|
195
|
-
"participant_id_hash": "b2c3d4e5f6789012345678901234567890abcdefabcdefabcdefabcdefabcdef",
|
|
196
|
-
"location_id_hash": "6e83b8e6373847bbdc056549bedda38dc88854ce41ba4fca11e0fc6ce3e07ef6",
|
|
197
|
-
"weight": 3000,
|
|
198
|
-
"attributes": [
|
|
199
|
-
{
|
|
200
|
-
"name": "Document Type",
|
|
201
|
-
"value": "MTR"
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
"name": "Document Number",
|
|
205
|
-
"value": "4126"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"name": "Issue Date",
|
|
209
|
-
"value": "2024-02-10",
|
|
210
|
-
"format": "DATE"
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
"attachments": [
|
|
214
|
-
{
|
|
215
|
-
"type": "Transport Manifest",
|
|
216
|
-
"document_number": "MTR-4126",
|
|
217
|
-
"reference": "transport-manifest.pdf",
|
|
218
|
-
"issue_timestamp": 1707523200000
|
|
219
|
-
}
|
|
220
|
-
]
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"event_id": "591eb414-a678-486d-982c-3c25f3cb52de",
|
|
224
|
-
"event_name": "Weighing",
|
|
225
|
-
"timestamp": 1733396567000,
|
|
226
|
-
"description": "Waste weighed at recycling facility",
|
|
227
|
-
"participant_id_hash": "b2c3d4e5f6789012345678901234567890abcdefabcdefabcdefabcdefabcdef",
|
|
228
|
-
"location_id_hash": "6e83b8e6373847bbdc056549bedda38dc88854ce41ba4fca11e0fc6ce3e07ef6",
|
|
229
|
-
"attributes": [
|
|
230
|
-
{
|
|
231
|
-
"name": "Weighing Capture Method",
|
|
232
|
-
"value": "Digital"
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"name": "Scale Type",
|
|
236
|
-
"value": "Weighbridge (Truck Scale)"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"name": "Container Type",
|
|
240
|
-
"value": "Truck"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"name": "Container Capacity",
|
|
244
|
-
"value": 12000,
|
|
245
|
-
"format": "KILOGRAM"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"name": "Gross Weight",
|
|
249
|
-
"value": 22700,
|
|
250
|
-
"format": "KILOGRAM"
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
"name": "Tare",
|
|
254
|
-
"value": 19700,
|
|
255
|
-
"format": "KILOGRAM"
|
|
256
|
-
}
|
|
257
|
-
]
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"event_id": "5d4b0723-b3a6-4659-8d80-d74f5e842af7",
|
|
261
|
-
"event_name": "Drop-off",
|
|
262
|
-
"description": "Waste deposited in Windrow number 1",
|
|
263
|
-
"timestamp": 1733396567000,
|
|
264
|
-
"participant_id_hash": "b2c3d4e5f6789012345678901234567890abcdefabcdefabcdefabcdefabcdef",
|
|
265
|
-
"location_id_hash": "6e83b8e6373847bbdc056549bedda38dc88854ce41ba4fca11e0fc6ce3e07ef6",
|
|
266
|
-
"attributes": [
|
|
267
|
-
{
|
|
268
|
-
"name": "Recycler Operator Identifier",
|
|
269
|
-
"value": "d596521f-8f98-401d-ba55-93246d57c6fb"
|
|
270
|
-
}
|
|
271
|
-
]
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"event_id": "ca509646-e35a-47b5-aff7-39595125effe",
|
|
275
|
-
"event_name": "Sorting",
|
|
276
|
-
"description": "This MassID sorting is being defined by the sorting factor calculated by a third party audit for Eco Reciclagem",
|
|
277
|
-
"timestamp": 1733396567000,
|
|
278
|
-
"participant_id_hash": "b2c3d4e5f6789012345678901234567890abcdefabcdefabcdefabcdefabcdef",
|
|
279
|
-
"location_id_hash": "6e83b8e6373847bbdc056549bedda38dc88854ce41ba4fca11e0fc6ce3e07ef6",
|
|
280
|
-
"attributes": [
|
|
281
|
-
{
|
|
282
|
-
"name": "Sorting Factor",
|
|
283
|
-
"value": 0.5
|
|
284
|
-
}
|
|
285
|
-
]
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"event_id": "df7d3cac-81a1-46db-8486-b3fe4ec4ea32",
|
|
289
|
-
"event_name": "Documentation",
|
|
290
|
-
"description": "Attached the recycling manifest documentation",
|
|
291
|
-
"timestamp": 1733396567000,
|
|
292
|
-
"participant_id_hash": "b2c3d4e5f6789012345678901234567890abcdefabcdefabcdefabcdefabcdef",
|
|
293
|
-
"location_id_hash": "6e83b8e6373847bbdc056549bedda38dc88854ce41ba4fca11e0fc6ce3e07ef6",
|
|
294
|
-
"attributes": [
|
|
295
|
-
{
|
|
296
|
-
"name": "Document Type",
|
|
297
|
-
"value": "CDF"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
"name": "Document Number",
|
|
301
|
-
"value": "2353"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
"name": "Issue Date",
|
|
305
|
-
"value": "2024-03-10",
|
|
306
|
-
"format": "DATE"
|
|
307
|
-
}
|
|
308
|
-
],
|
|
309
|
-
"attachments": [
|
|
310
|
-
{
|
|
311
|
-
"type": "Recycling Certificate",
|
|
312
|
-
"document_number": "CDF-2353",
|
|
313
|
-
"reference": "recycling-manifest.pdf",
|
|
314
|
-
"issue_timestamp": 1710028800000
|
|
315
|
-
}
|
|
316
|
-
]
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"event_id": "b544695f-c3ba-4b97-9b24-c13dd32e4db8",
|
|
320
|
-
"event_name": "Recycling",
|
|
321
|
-
"description": "Composting process completed",
|
|
322
|
-
"timestamp": 1740213312000,
|
|
323
|
-
"participant_id_hash": "b2c3d4e5f6789012345678901234567890abcdefabcdefabcdefabcdefabcdef",
|
|
324
|
-
"location_id_hash": "6e83b8e6373847bbdc056549bedda38dc88854ce41ba4fca11e0fc6ce3e07ef6"
|
|
163
|
+
"events": [
|
|
164
|
+
{
|
|
165
|
+
"event_id": "8f799606-4ed5-49ce-8310-83b0c56ac01e",
|
|
166
|
+
"event_name": "Pick-up",
|
|
167
|
+
"description": "Waste picked up by hauler Eco Reciclagem at Enlatados Produção",
|
|
168
|
+
"timestamp": "2024-12-05T11:02:47.000Z",
|
|
169
|
+
"participant_id_hash": "a1b2c3d4e5f6789012345678901234567890abcdefabcdefabcdefabcdefabcd",
|
|
170
|
+
"location_id_hash": "87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489",
|
|
171
|
+
"data": {
|
|
172
|
+
"vehicle_type": "Truck"
|
|
325
173
|
}
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"event_id": "591eb414-a678-486d-982c-3c25f3cb52de",
|
|
177
|
+
"event_name": "Weighing",
|
|
178
|
+
"timestamp": "2024-12-05T13:02:47.000Z",
|
|
179
|
+
"description": "Waste weighed at recycling facility",
|
|
180
|
+
"participant_id_hash": "b2c3d4e5f6789012345678901234567890abcdefabcdefabcdefabcdefabcdef",
|
|
181
|
+
"location_id_hash": "6e83b8e6373847bbdc056549bedda38dc88854ce41ba4fca11e0fc6ce3e07ef6",
|
|
182
|
+
"data": {
|
|
183
|
+
"weighing_capture_method": "Digital scale integration",
|
|
184
|
+
"scale_type": "Weighbridge (Truck Scale)",
|
|
185
|
+
"container_type": "Roll-off container",
|
|
186
|
+
"vehicle_type": "Truck",
|
|
187
|
+
"container_capacity": 12000,
|
|
188
|
+
"gross_weight": 9500,
|
|
189
|
+
"tare": 3500
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"event_id": "5d4b0723-b3a6-4659-8d80-d74f5e842af7",
|
|
194
|
+
"event_name": "Drop-off",
|
|
195
|
+
"description": "Waste deposited in Windrow number 1",
|
|
196
|
+
"timestamp": "2024-12-05T14:02:47.000Z",
|
|
197
|
+
"participant_id_hash": "b2c3d4e5f6789012345678901234567890abcdefabcdefabcdefabcdefabcdef",
|
|
198
|
+
"location_id_hash": "6e83b8e6373847bbdc056549bedda38dc88854ce41ba4fca11e0fc6ce3e07ef6"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"event_id": "ca509646-e35a-47b5-aff7-39595125effe",
|
|
202
|
+
"event_name": "Sorting",
|
|
203
|
+
"description": "This MassID sorting is being defined by the sorting factor calculated by a third party audit for Eco Reciclagem",
|
|
204
|
+
"timestamp": "2024-12-05T15:02:47.000Z",
|
|
205
|
+
"participant_id_hash": "b2c3d4e5f6789012345678901234567890abcdefabcdefabcdefabcdefabcdef",
|
|
206
|
+
"location_id_hash": "6e83b8e6373847bbdc056549bedda38dc88854ce41ba4fca11e0fc6ce3e07ef6",
|
|
207
|
+
"data": {
|
|
208
|
+
"initial_weight": 5000,
|
|
209
|
+
"deducted_weight": 250
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"event_id": "b544695f-c3ba-4b97-9b24-c13dd32e4db8",
|
|
214
|
+
"event_name": "Recycling",
|
|
215
|
+
"description": "Composting process completed",
|
|
216
|
+
"timestamp": "2024-12-08T11:32:47.000Z",
|
|
217
|
+
"participant_id_hash": "b2c3d4e5f6789012345678901234567890abcdefabcdefabcdefabcdefabcdef",
|
|
218
|
+
"location_id_hash": "6e83b8e6373847bbdc056549bedda38dc88854ce41ba4fca11e0fc6ce3e07ef6"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"attachments": [
|
|
222
|
+
{
|
|
223
|
+
"event_id": "5d4b0723-b3a6-4659-8d80-d74f5e842af7",
|
|
224
|
+
"type": "Transport Manifest",
|
|
225
|
+
"document_number": "4126",
|
|
226
|
+
"issued_at": "2024-02-10T00:00:00.000Z"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"event_id": "b544695f-c3ba-4b97-9b24-c13dd32e4db8",
|
|
230
|
+
"type": "Recycling Manifest",
|
|
231
|
+
"document_number": "2353",
|
|
232
|
+
"issued_at": "2024-03-10T00:00:00.000Z"
|
|
233
|
+
}
|
|
234
|
+
]
|
|
335
235
|
}
|
|
336
236
|
}
|