@carrot-foundation/schemas 0.5.1 → 2.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrot-foundation/schemas",
3
- "version": "0.5.1",
3
+ "version": "2.0.0",
4
4
  "description": "Carrot schema definitions and zod validation schemas",
5
5
  "license": "Apache-2.0",
6
6
  "private": false,
@@ -1,9 +1,9 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.5.1/schemas/ipfs/collection/collection.schema.json",
2
+ "$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/2.0.0/schemas/ipfs/collection/collection.schema.json",
3
3
  "schema": {
4
- "hash": "ac9ab55eb672748c69c3421259fffa7e6257f080d2e722859085b245cf226f91",
4
+ "hash": "113c3f8887b98ee1d403a96ac20018b1c54cb3f6e43d7213a93471aa461e6893",
5
5
  "type": "Collection",
6
- "version": "0.5.1",
6
+ "version": "2.0.0",
7
7
  "ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
8
8
  },
9
9
  "environment": {
@@ -14,7 +14,7 @@
14
14
  "properties": {
15
15
  "hash": {
16
16
  "type": "string",
17
- "pattern": "^[0-9a-fA-F]{64}$",
17
+ "pattern": "^[a-f0-9]{64}$",
18
18
  "title": "Schema Hash",
19
19
  "description": "SHA-256 hash of the JSON Schema this record was validated against",
20
20
  "examples": [
@@ -105,7 +105,7 @@
105
105
  },
106
106
  "integrity_hash": {
107
107
  "type": "string",
108
- "pattern": "^[0-9a-fA-F]{64}$",
108
+ "pattern": "^[a-f0-9]{64}$",
109
109
  "title": "Viewer Integrity Hash",
110
110
  "description": "SHA-256 hash of the published viewer bundle to verify integrity",
111
111
  "examples": [
@@ -236,6 +236,6 @@
236
236
  "additionalProperties": false,
237
237
  "title": "Collection IPFS Record",
238
238
  "description": "Collection metadata stored in IPFS, extending the base schema with collection-specific fields used to group and organize credit purchases and retirements in Carrot's ecosystem",
239
- "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.5.1/schemas/ipfs/collection/collection.schema.json",
240
- "version": "0.5.1"
239
+ "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/2.0.0/schemas/ipfs/collection/collection.schema.json",
240
+ "version": "2.0.0"
241
241
  }
@@ -1,9 +1,9 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.5.1/schemas/ipfs/credit/credit.schema.json",
2
+ "$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/2.0.0/schemas/ipfs/credit/credit.schema.json",
3
3
  "schema": {
4
- "hash": "1847342cd37859fe53f49ff0b2811173f55bc2d68ed8f43c32381728bd21e24f",
4
+ "hash": "201ec75ec44512f97e53d166b6a6f6287b7645fea3cca56a9afcd3f4721cf633",
5
5
  "type": "Credit",
6
- "version": "0.5.1",
6
+ "version": "2.0.0",
7
7
  "ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
8
8
  },
9
9
  "environment": {
@@ -14,7 +14,7 @@
14
14
  "properties": {
15
15
  "hash": {
16
16
  "type": "string",
17
- "pattern": "^[0-9a-fA-F]{64}$",
17
+ "pattern": "^[a-f0-9]{64}$",
18
18
  "title": "Schema Hash",
19
19
  "description": "SHA-256 hash of the JSON Schema this record was validated against",
20
20
  "examples": [
@@ -105,7 +105,7 @@
105
105
  },
106
106
  "integrity_hash": {
107
107
  "type": "string",
108
- "pattern": "^[0-9a-fA-F]{64}$",
108
+ "pattern": "^[a-f0-9]{64}$",
109
109
  "title": "Viewer Integrity Hash",
110
110
  "description": "SHA-256 hash of the published viewer bundle to verify integrity",
111
111
  "examples": [
@@ -257,6 +257,6 @@
257
257
  "additionalProperties": false,
258
258
  "title": "Credit IPFS Record",
259
259
  "description": "Credit token metadata stored in IPFS, extending the base schema with ERC20-specific details",
260
- "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.5.1/schemas/ipfs/credit/credit.schema.json",
261
- "version": "0.5.1"
260
+ "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/2.0.0/schemas/ipfs/credit/credit.schema.json",
261
+ "version": "2.0.0"
262
262
  }
@@ -1,9 +1,9 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.5.1/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json",
2
+ "$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/2.0.0/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json",
3
3
  "schema": {
4
- "hash": "bc9882d5b3da7f685798b9e9c7757fddcf1cbe7f9fd6584c176d10b96a722219",
4
+ "hash": "54ec0930e3d1db3020b7956e77f3552e1a293bab5134de8b39af7feaeedfb6c5",
5
5
  "type": "CreditPurchaseReceipt",
6
- "version": "0.5.1",
6
+ "version": "2.0.0",
7
7
  "ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
8
8
  },
9
9
  "environment": {
@@ -20,7 +20,7 @@
20
20
  "created_at": "2025-02-03T12:45:30.000Z",
21
21
  "external_id": "f1a2b3c4-d5e6-4789-9012-34567890abcd",
22
22
  "external_url": "https://explore.carrot.eco/document/f1a2b3c4-d5e6-4789-9012-34567890abcd",
23
- "audit_data_hash": "de79f6ec3ef1aaab4d20d3153bb014dfd8b85a54f070f762ec2e571024978359",
23
+ "audit_data_hash": "df924898ae3d7d31998b73ecdc7fc9f3611c26d1613c6c3e098de476c10015cb",
24
24
  "viewer_reference": {
25
25
  "ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
26
26
  "integrity_hash": "87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
@@ -90,7 +90,7 @@
90
90
  "purchased_at": "2025-02-03T12:45:30.000Z"
91
91
  },
92
92
  "buyer": {
93
- "id": "b5c6d7e8-f901-4a23-9b45-6789012cdef3",
93
+ "id_hash": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
94
94
  "wallet_address": "0x1234567890abcdef1234567890abcdef12345678",
95
95
  "identity": {
96
96
  "name": "EcoTech Solutions Inc.",
@@ -137,6 +137,7 @@
137
137
  "type": "GasID",
138
138
  "token_id": "200001",
139
139
  "total_amount": 10,
140
+ "purchased_amount": 3,
140
141
  "credit_slug": "carbon-methane",
141
142
  "external_id": "d2a7f8e4-9c61-4e35-b8f2-a5c9e7d1b4f6",
142
143
  "external_url": "https://explore.carrot.eco/document/d2a7f8e4-9c61-4e35-b8f2-a5c9e7d1b4f6",
@@ -161,6 +162,7 @@
161
162
  "type": "RecycledID",
162
163
  "token_id": "300001",
163
164
  "total_amount": 6,
165
+ "purchased_amount": 2,
164
166
  "credit_slug": "biowaste",
165
167
  "external_id": "f47ac10b-58cc-4372-a567-0e02b2c3d489",
166
168
  "external_url": "https://explore.carrot.eco/document/f47ac10b-58cc-4372-a567-0e02b2c3d489",
@@ -185,6 +187,7 @@
185
187
  "type": "RecycledID",
186
188
  "token_id": "890",
187
189
  "total_amount": 8,
190
+ "purchased_amount": 3.5,
188
191
  "credit_slug": "biowaste",
189
192
  "external_id": "0f1e2d3c-4b5a-4d78-8c12-3456789abcde",
190
193
  "external_url": "https://explore.carrot.eco/document/0f1e2d3c-4b5a-4d78-8c12-3456789abcde",
@@ -14,7 +14,7 @@
14
14
  "properties": {
15
15
  "hash": {
16
16
  "type": "string",
17
- "pattern": "^[0-9a-fA-F]{64}$",
17
+ "pattern": "^[a-f0-9]{64}$",
18
18
  "title": "Schema Hash",
19
19
  "description": "SHA-256 hash of the JSON Schema this record was validated against",
20
20
  "examples": [
@@ -105,7 +105,7 @@
105
105
  },
106
106
  "integrity_hash": {
107
107
  "type": "string",
108
- "pattern": "^[0-9a-fA-F]{64}$",
108
+ "pattern": "^[a-f0-9]{64}$",
109
109
  "title": "Viewer Integrity Hash",
110
110
  "description": "SHA-256 hash of the published viewer bundle to verify integrity",
111
111
  "examples": [
@@ -194,9 +194,9 @@
194
194
  },
195
195
  "total_credits": {
196
196
  "type": "number",
197
- "minimum": 0,
197
+ "exclusiveMinimum": 0,
198
198
  "title": "Total Credits",
199
- "description": "Total number of environmental impact credits purchased in this transaction",
199
+ "description": "Total number of environmental impact credits purchased in this transaction. Must be greater than 0.",
200
200
  "examples": [
201
201
  1.5,
202
202
  100,
@@ -227,23 +227,22 @@
227
227
  "buyer": {
228
228
  "type": "object",
229
229
  "properties": {
230
- "wallet_address": {
230
+ "id_hash": {
231
231
  "type": "string",
232
- "pattern": "^0x[a-f0-9]{40}$",
233
- "title": "Buyer Wallet Address",
234
- "description": "Ethereum address receiving the credits",
232
+ "pattern": "^[a-f0-9]{64}$",
233
+ "title": "Buyer ID Hash",
234
+ "description": "Anonymized pseudonymous identifier linking this buyer to off-chain records via a keyed hash",
235
235
  "examples": [
236
- "0x1234567890abcdef1234567890abcdef12345678"
236
+ "87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
237
237
  ]
238
238
  },
239
- "id": {
240
- "title": "Buyer ID",
241
- "description": "Unique identifier for the buyer",
239
+ "wallet_address": {
240
+ "title": "Buyer Wallet Address",
241
+ "description": "Ethereum address receiving the credits",
242
242
  "type": "string",
243
- "format": "uuid",
244
- "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})$",
243
+ "pattern": "^0x[a-f0-9]{40}$",
245
244
  "examples": [
246
- "ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
245
+ "0x1234567890abcdef1234567890abcdef12345678"
247
246
  ]
248
247
  },
249
248
  "identity": {
@@ -287,14 +286,13 @@
287
286
  }
288
287
  },
289
288
  "required": [
290
- "wallet_address"
289
+ "id_hash"
291
290
  ],
292
291
  "additionalProperties": false,
293
292
  "title": "Buyer",
294
- "description": "Buyer information including wallet address, optional ID, and optional identity"
293
+ "description": "Buyer information including hashed identifier, optional wallet address, and optional identity"
295
294
  },
296
295
  "collections": {
297
- "minItems": 1,
298
296
  "type": "array",
299
297
  "items": {
300
298
  "type": "object",
@@ -373,7 +371,7 @@
373
371
  "description": "Collection included in the purchase"
374
372
  },
375
373
  "title": "Collections",
376
- "description": "Impact collections referenced by this purchase, each identified by a unique slug"
374
+ "description": "Impact collections referenced by this purchase, each identified by a unique slug. May be empty when no certificate is assigned to a collection."
377
375
  },
378
376
  "credits": {
379
377
  "minItems": 1,
@@ -623,8 +621,18 @@
623
621
  "biowaste"
624
622
  ]
625
623
  },
624
+ "purchased_amount": {
625
+ "type": "number",
626
+ "minimum": 0,
627
+ "title": "Certificate Purchased Amount",
628
+ "description": "Total credits purchased from this certificate. Authoritative source for receipt totals; cross-checked against sum(collections[].purchased_amount) when collections are non-empty.",
629
+ "examples": [
630
+ 1.5,
631
+ 100,
632
+ 2500.75
633
+ ]
634
+ },
626
635
  "collections": {
627
- "minItems": 1,
628
636
  "type": "array",
629
637
  "items": {
630
638
  "type": "object",
@@ -677,7 +685,7 @@
677
685
  "description": "Collection reference with purchased and retired amounts for a certificate in a purchase receipt"
678
686
  },
679
687
  "title": "Certificate Collections",
680
- "description": "Collections associated with this certificate, each with purchased and retired amounts"
688
+ "description": "Collections associated with this certificate, each with purchased and retired amounts. May be empty when this certificate is not assigned to any collection."
681
689
  }
682
690
  },
683
691
  "required": [
@@ -690,6 +698,7 @@
690
698
  "total_amount",
691
699
  "mass_id",
692
700
  "credit_slug",
701
+ "purchased_amount",
693
702
  "collections"
694
703
  ],
695
704
  "additionalProperties": false,
@@ -779,7 +788,7 @@
779
788
  },
780
789
  "audit_data_hash": {
781
790
  "type": "string",
782
- "pattern": "^[0-9a-fA-F]{64}$",
791
+ "pattern": "^[a-f0-9]{64}$",
783
792
  "title": "Audit Data Hash",
784
793
  "description": "SHA-256 hash of the original JSON content including private data before schema validation, used for data audit purposes",
785
794
  "examples": [
@@ -1314,7 +1323,7 @@
1314
1323
  ],
1315
1324
  "additionalProperties": false,
1316
1325
  "title": "CreditPurchaseReceipt NFT IPFS Record",
1317
- "description": "Complete CreditPurchaseReceipt NFT IPFS record including purchase summary, buyer details, credit breakdowns, certificate allocations, and NFT display attributes",
1318
- "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.5.1/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json",
1319
- "version": "0.5.1"
1326
+ "description": "Complete CreditPurchaseReceipt NFT IPFS record including purchase summary, buyer details, credit breakdowns, certificate allocations, and NFT display attributes. Supports both collection-assigned and no-collection variants.",
1327
+ "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/2.0.0/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json",
1328
+ "version": "2.0.0"
1320
1329
  }
@@ -1,9 +1,9 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.5.1/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json",
2
+ "$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/2.0.0/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json",
3
3
  "schema": {
4
- "hash": "c2762646feb40d22aef26501ad33eba7024beb5cec19e559b19fce4d8d755948",
4
+ "hash": "1d18e69818a011f212b5afab08b9f06de09c69bdb01a9c533f61db19f5f3c175",
5
5
  "type": "CreditRetirementReceipt",
6
- "version": "0.5.1",
6
+ "version": "2.0.0",
7
7
  "ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
8
8
  },
9
9
  "environment": {
@@ -83,7 +83,7 @@
83
83
  "retired_at": "2025-02-03T12:45:30.000Z"
84
84
  },
85
85
  "beneficiary": {
86
- "beneficiary_id": "c3d4e5f6-a7b8-4d12-8b56-789012cdef01",
86
+ "id_hash": "2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c",
87
87
  "identity": {
88
88
  "name": "Climate Action Corp",
89
89
  "external_id": "d4e5f6a7-b8c9-4e23-8c67-890123def012",
@@ -91,6 +91,7 @@
91
91
  }
92
92
  },
93
93
  "credit_holder": {
94
+ "id_hash": "3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d",
94
95
  "wallet_address": "0x1234567890abcdef1234567890abcdef12345678"
95
96
  },
96
97
  "collections": [
@@ -230,5 +231,5 @@
230
231
  "smart_contract_address": "0x742d35cc6634c0532925a3b8d8b5c2d4c7f8e1a9"
231
232
  }
232
233
  },
233
- "audit_data_hash": "86a67aeb7da1885b5861cbc71695e232c20e174e74e186abf94b5b90a50a9665"
234
+ "audit_data_hash": "74bfc85042ad24be6787fb47e5d8cc956b22f99545c7f393622aef911b50d81d"
234
235
  }
@@ -14,7 +14,7 @@
14
14
  "properties": {
15
15
  "hash": {
16
16
  "type": "string",
17
- "pattern": "^[0-9a-fA-F]{64}$",
17
+ "pattern": "^[a-f0-9]{64}$",
18
18
  "title": "Schema Hash",
19
19
  "description": "SHA-256 hash of the JSON Schema this record was validated against",
20
20
  "examples": [
@@ -105,7 +105,7 @@
105
105
  },
106
106
  "integrity_hash": {
107
107
  "type": "string",
108
- "pattern": "^[0-9a-fA-F]{64}$",
108
+ "pattern": "^[a-f0-9]{64}$",
109
109
  "title": "Viewer Integrity Hash",
110
110
  "description": "SHA-256 hash of the published viewer bundle to verify integrity",
111
111
  "examples": [
@@ -182,9 +182,9 @@
182
182
  },
183
183
  "total_credits_retired": {
184
184
  "type": "number",
185
- "minimum": 0,
185
+ "exclusiveMinimum": 0,
186
186
  "title": "Total Credits Retired",
187
- "description": "Total number of environmental impact credits permanently retired (removed from circulation)",
187
+ "description": "Total number of environmental impact credits permanently retired (removed from circulation). Must be greater than 0.",
188
188
  "examples": [
189
189
  1.5,
190
190
  100,
@@ -214,14 +214,22 @@
214
214
  "beneficiary": {
215
215
  "type": "object",
216
216
  "properties": {
217
- "beneficiary_id": {
217
+ "id_hash": {
218
218
  "type": "string",
219
- "format": "uuid",
220
- "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})$",
221
- "title": "Retirement Beneficiary ID",
222
- "description": "UUID identifying the beneficiary of the retirement within the Carrot platform",
219
+ "pattern": "^[a-f0-9]{64}$",
220
+ "title": "Beneficiary ID Hash",
221
+ "description": "Anonymized pseudonymous identifier linking this beneficiary to off-chain records via a keyed hash",
223
222
  "examples": [
224
- "ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
223
+ "87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
224
+ ]
225
+ },
226
+ "wallet_address": {
227
+ "title": "Beneficiary Wallet Address",
228
+ "description": "Ethereum address associated with the beneficiary, when available",
229
+ "type": "string",
230
+ "pattern": "^0x[a-f0-9]{40}$",
231
+ "examples": [
232
+ "0x1234567890abcdef1234567890abcdef12345678"
225
233
  ]
226
234
  },
227
235
  "identity": {
@@ -265,20 +273,29 @@
265
273
  }
266
274
  },
267
275
  "required": [
268
- "beneficiary_id"
276
+ "id_hash"
269
277
  ],
270
278
  "additionalProperties": false,
271
279
  "title": "Beneficiary",
272
- "description": "Beneficiary receiving the retirement benefit"
280
+ "description": "Beneficiary receiving the retirement benefit, identified by a hashed identifier with optional wallet address and identity"
273
281
  },
274
282
  "credit_holder": {
275
283
  "type": "object",
276
284
  "properties": {
277
- "wallet_address": {
285
+ "id_hash": {
278
286
  "type": "string",
279
- "pattern": "^0x[a-f0-9]{40}$",
287
+ "pattern": "^[a-f0-9]{64}$",
288
+ "title": "Credit Holder ID Hash",
289
+ "description": "Anonymized pseudonymous identifier linking this credit holder to off-chain records via a keyed hash",
290
+ "examples": [
291
+ "87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
292
+ ]
293
+ },
294
+ "wallet_address": {
280
295
  "title": "Credit Holder Wallet Address",
281
296
  "description": "Ethereum address of the wallet that held and surrendered the credits",
297
+ "type": "string",
298
+ "pattern": "^0x[a-f0-9]{40}$",
282
299
  "examples": [
283
300
  "0x1234567890abcdef1234567890abcdef12345678"
284
301
  ]
@@ -324,14 +341,13 @@
324
341
  }
325
342
  },
326
343
  "required": [
327
- "wallet_address"
344
+ "id_hash"
328
345
  ],
329
346
  "additionalProperties": false,
330
347
  "title": "Credit Holder",
331
- "description": "Credit holder wallet and optional identity information"
348
+ "description": "Credit holder information including hashed identifier, optional wallet address, and optional identity"
332
349
  },
333
350
  "collections": {
334
- "minItems": 1,
335
351
  "type": "array",
336
352
  "items": {
337
353
  "type": "object",
@@ -410,7 +426,7 @@
410
426
  "description": "Collection included in the retirement"
411
427
  },
412
428
  "title": "Collections",
413
- "description": "Impact collections referenced by this retirement, each identified by a unique slug"
429
+ "description": "Impact collections referenced by this retirement, each identified by a unique slug. May be empty when no certificate is assigned to a collection."
414
430
  },
415
431
  "credits": {
416
432
  "minItems": 1,
@@ -648,7 +664,6 @@
648
664
  "description": "Reference to a MassID record"
649
665
  },
650
666
  "collections": {
651
- "minItems": 1,
652
667
  "type": "array",
653
668
  "items": {
654
669
  "type": "object",
@@ -689,7 +704,7 @@
689
704
  "description": "Collection reference with retired amount for a certificate in a retirement receipt"
690
705
  },
691
706
  "title": "Certificate Collections",
692
- "description": "Collections associated with this certificate, each with retired amounts"
707
+ "description": "Collections associated with this certificate, each with retired amounts. May be empty when this certificate is not assigned to any collection."
693
708
  },
694
709
  "credits_retired": {
695
710
  "minItems": 1,
@@ -870,7 +885,7 @@
870
885
  },
871
886
  "audit_data_hash": {
872
887
  "type": "string",
873
- "pattern": "^[0-9a-fA-F]{64}$",
888
+ "pattern": "^[a-f0-9]{64}$",
874
889
  "title": "Audit Data Hash",
875
890
  "description": "SHA-256 hash of the original JSON content including private data before schema validation, used for data audit purposes",
876
891
  "examples": [
@@ -1432,7 +1447,7 @@
1432
1447
  ],
1433
1448
  "additionalProperties": false,
1434
1449
  "title": "CreditRetirementReceipt NFT IPFS Record",
1435
- "description": "Complete CreditRetirementReceipt NFT IPFS record including retirement summary, beneficiary and credit holder details (identity optional), credit breakdowns, certificate allocations, and NFT display attributes",
1436
- "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.5.1/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json",
1437
- "version": "0.5.1"
1450
+ "description": "Complete CreditRetirementReceipt NFT IPFS record including retirement summary, beneficiary and credit holder details (identity optional), credit breakdowns, certificate allocations, and NFT display attributes. Supports both collection-assigned and no-collection variants.",
1451
+ "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/2.0.0/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json",
1452
+ "version": "2.0.0"
1438
1453
  }
@@ -1,9 +1,9 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.5.1/schemas/ipfs/gas-id/gas-id.schema.json",
2
+ "$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/2.0.0/schemas/ipfs/gas-id/gas-id.schema.json",
3
3
  "schema": {
4
- "hash": "fefdb7b4b13e4771324b8eb65fa29c0a3894a90cda6806aa46c5d95c09e60b0d",
4
+ "hash": "dfe3989bd87dffb52c9ca67c38d21a6383cf1627e1284f7130f7ebccc66e9c40",
5
5
  "type": "GasID",
6
- "version": "0.5.1",
6
+ "version": "2.0.0",
7
7
  "ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
8
8
  },
9
9
  "environment": {
@@ -20,7 +20,7 @@
20
20
  "created_at": "2024-12-08T11:32:47.000Z",
21
21
  "external_id": "d2a7f8e4-9c61-4e35-b8f2-a5c9e7d1b4f6",
22
22
  "external_url": "https://explore.carrot.eco/document/d2a7f8e4-9c61-4e35-b8f2-a5c9e7d1b4f6",
23
- "audit_data_hash": "42f0723788bb44372433bf0eaf1d404f1674e660af0ca2ca291e981e61b3152c",
23
+ "audit_data_hash": "a22da7d417a648bb44f6b9bee99f8c85c1cae6941a1b799aa519d4190e68bc02",
24
24
  "viewer_reference": {
25
25
  "ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
26
26
  "integrity_hash": "87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
@@ -14,7 +14,7 @@
14
14
  "properties": {
15
15
  "hash": {
16
16
  "type": "string",
17
- "pattern": "^[0-9a-fA-F]{64}$",
17
+ "pattern": "^[a-f0-9]{64}$",
18
18
  "title": "Schema Hash",
19
19
  "description": "SHA-256 hash of the JSON Schema this record was validated against",
20
20
  "examples": [
@@ -105,7 +105,7 @@
105
105
  },
106
106
  "integrity_hash": {
107
107
  "type": "string",
108
- "pattern": "^[0-9a-fA-F]{64}$",
108
+ "pattern": "^[a-f0-9]{64}$",
109
109
  "title": "Viewer Integrity Hash",
110
110
  "description": "SHA-256 hash of the published viewer bundle to verify integrity",
111
111
  "examples": [
@@ -522,7 +522,7 @@
522
522
  "properties": {
523
523
  "id_hash": {
524
524
  "type": "string",
525
- "pattern": "^[0-9a-fA-F]{64}$",
525
+ "pattern": "^[a-f0-9]{64}$",
526
526
  "title": "Location ID Hash",
527
527
  "description": "SHA-256 hash anonymizing the real location identifier for privacy",
528
528
  "examples": [
@@ -565,7 +565,7 @@
565
565
  },
566
566
  "responsible_participant_id_hash": {
567
567
  "type": "string",
568
- "pattern": "^[0-9a-fA-F]{64}$",
568
+ "pattern": "^[a-f0-9]{64}$",
569
569
  "title": "Responsible Participant ID Hash",
570
570
  "description": "SHA-256 hash identifying the participant responsible for operations at this location",
571
571
  "examples": [
@@ -736,7 +736,7 @@
736
736
  },
737
737
  "audit_data_hash": {
738
738
  "type": "string",
739
- "pattern": "^[0-9a-fA-F]{64}$",
739
+ "pattern": "^[a-f0-9]{64}$",
740
740
  "title": "Audit Data Hash",
741
741
  "description": "SHA-256 hash of the original JSON content including private data before schema validation, used for data audit purposes",
742
742
  "examples": [
@@ -1522,6 +1522,6 @@
1522
1522
  "additionalProperties": false,
1523
1523
  "title": "GasID NFT IPFS Record",
1524
1524
  "description": "Complete GasID NFT IPFS record including prevented emissions calculation, source waste provenance, methodology reference, and NFT display attributes",
1525
- "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.5.1/schemas/ipfs/gas-id/gas-id.schema.json",
1526
- "version": "0.5.1"
1525
+ "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/2.0.0/schemas/ipfs/gas-id/gas-id.schema.json",
1526
+ "version": "2.0.0"
1527
1527
  }
@@ -1,9 +1,9 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.5.1/schemas/ipfs/mass-id/mass-id.schema.json",
2
+ "$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/2.0.0/schemas/ipfs/mass-id/mass-id.schema.json",
3
3
  "schema": {
4
- "hash": "519b36aab4d590ed95161acf4472eb506b2232bbc7766b20bc8682c17f7b16e6",
4
+ "hash": "6d604692ab67a3fbfe9c53e2ebc6bde71676e004577beffbe725db43754373fe",
5
5
  "type": "MassID",
6
- "version": "0.5.1",
6
+ "version": "2.0.0",
7
7
  "ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
8
8
  },
9
9
  "environment": {
@@ -108,7 +108,7 @@
108
108
  "display_type": "date"
109
109
  }
110
110
  ],
111
- "audit_data_hash": "533746d62f7d1ba1fc1d81544267efd4bbebf74da5d0595326a861c73ed295c1",
111
+ "audit_data_hash": "6d618d4e6feec1ca6272613e8d8ec6ec9ce0dcf71b541e58c7e0c00ab0317c6e",
112
112
  "data": {
113
113
  "waste_properties": {
114
114
  "type": "Organic",