@carrot-foundation/schemas 0.5.0 → 1.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/dist/index.cjs +30 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +107 -101
- package/dist/index.d.ts +107 -101
- package/dist/index.js +30 -23
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/ipfs/collection/collection.example.json +3 -3
- package/schemas/ipfs/collection/collection.schema.json +4 -4
- package/schemas/ipfs/credit/credit.example.json +3 -3
- package/schemas/ipfs/credit/credit.schema.json +4 -4
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +5 -5
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +21 -22
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +6 -5
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +37 -20
- package/schemas/ipfs/gas-id/gas-id.example.json +4 -4
- package/schemas/ipfs/gas-id/gas-id.schema.json +8 -8
- package/schemas/ipfs/mass-id/mass-id.example.json +4 -4
- package/schemas/ipfs/mass-id/mass-id.schema.json +25 -25
- package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +3 -3
- package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +4 -4
- package/schemas/ipfs/methodology/methodology.example.json +3 -3
- package/schemas/ipfs/methodology/methodology.schema.json +4 -4
- package/schemas/ipfs/recycled-id/recycled-id.example.json +4 -4
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +8 -8
- package/schemas/schema-hashes.json +10 -10
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/collection/collection.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "fb878d368df937ac422ef163bb0b261d8f97cd3525dc232fda128fbd0116c154",
|
|
5
5
|
"type": "Collection",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "1.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": "^[
|
|
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": "^[
|
|
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.
|
|
240
|
-
"version": "0.
|
|
239
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/collection/collection.schema.json",
|
|
240
|
+
"version": "1.0.0"
|
|
241
241
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/credit/credit.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "376766cbbb9d3cb87a29eb223776fd97ef3a95ba849c0c77b2ad22daec7510b5",
|
|
5
5
|
"type": "Credit",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "1.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": "^[
|
|
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": "^[
|
|
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.
|
|
261
|
-
"version": "0.
|
|
260
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/credit/credit.schema.json",
|
|
261
|
+
"version": "1.0.0"
|
|
262
262
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "baf3544f11c71c86c2187af967635ccf1ffdddd70cb14365f44d08a32bc3d1f7",
|
|
5
5
|
"type": "CreditPurchaseReceipt",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "1.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": "
|
|
23
|
+
"audit_data_hash": "7c06a05937239797c8f8dedf99fe59d799fd54577bff6c887bdffdb94958d7c3",
|
|
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
|
-
"
|
|
93
|
+
"id_hash": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
|
|
94
94
|
"wallet_address": "0x1234567890abcdef1234567890abcdef12345678",
|
|
95
95
|
"identity": {
|
|
96
96
|
"name": "EcoTech Solutions Inc.",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"properties": {
|
|
15
15
|
"hash": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"pattern": "^[
|
|
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": "^[
|
|
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": [
|
|
@@ -227,23 +227,22 @@
|
|
|
227
227
|
"buyer": {
|
|
228
228
|
"type": "object",
|
|
229
229
|
"properties": {
|
|
230
|
-
"
|
|
230
|
+
"id_hash": {
|
|
231
231
|
"type": "string",
|
|
232
|
-
"pattern": "^
|
|
233
|
-
"title": "Buyer
|
|
234
|
-
"description": "
|
|
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
|
-
"
|
|
236
|
+
"87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
237
237
|
]
|
|
238
238
|
},
|
|
239
|
-
"
|
|
240
|
-
"title": "Buyer
|
|
241
|
-
"description": "
|
|
239
|
+
"wallet_address": {
|
|
240
|
+
"title": "Buyer Wallet Address",
|
|
241
|
+
"description": "Ethereum address receiving the credits",
|
|
242
242
|
"type": "string",
|
|
243
|
-
"
|
|
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
|
-
"
|
|
245
|
+
"0x1234567890abcdef1234567890abcdef12345678"
|
|
247
246
|
]
|
|
248
247
|
},
|
|
249
248
|
"identity": {
|
|
@@ -262,7 +261,7 @@
|
|
|
262
261
|
},
|
|
263
262
|
"external_id": {
|
|
264
263
|
"title": "Identity External ID",
|
|
265
|
-
"description": "Unique identifier
|
|
264
|
+
"description": "Unique identifier of the associated entity in the Carrot platform",
|
|
266
265
|
"type": "string",
|
|
267
266
|
"format": "uuid",
|
|
268
267
|
"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})$",
|
|
@@ -287,11 +286,11 @@
|
|
|
287
286
|
}
|
|
288
287
|
},
|
|
289
288
|
"required": [
|
|
290
|
-
"
|
|
289
|
+
"id_hash"
|
|
291
290
|
],
|
|
292
291
|
"additionalProperties": false,
|
|
293
292
|
"title": "Buyer",
|
|
294
|
-
"description": "Buyer information including
|
|
293
|
+
"description": "Buyer information including hashed identifier, optional wallet address, and optional identity"
|
|
295
294
|
},
|
|
296
295
|
"collections": {
|
|
297
296
|
"minItems": 1,
|
|
@@ -779,7 +778,7 @@
|
|
|
779
778
|
},
|
|
780
779
|
"audit_data_hash": {
|
|
781
780
|
"type": "string",
|
|
782
|
-
"pattern": "^[
|
|
781
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
783
782
|
"title": "Audit Data Hash",
|
|
784
783
|
"description": "SHA-256 hash of the original JSON content including private data before schema validation, used for data audit purposes",
|
|
785
784
|
"examples": [
|
|
@@ -921,7 +920,7 @@
|
|
|
921
920
|
},
|
|
922
921
|
"external_links": {
|
|
923
922
|
"title": "External Links",
|
|
924
|
-
"description": "
|
|
923
|
+
"description": "Supplementary reference links (label, URL, optional description) displayed on the NFT page",
|
|
925
924
|
"type": "array",
|
|
926
925
|
"items": {
|
|
927
926
|
"type": "object",
|
|
@@ -1168,7 +1167,7 @@
|
|
|
1168
1167
|
"exclusiveMinimum": 0,
|
|
1169
1168
|
"maximum": 9007199254740991,
|
|
1170
1169
|
"title": "Retirement Date",
|
|
1171
|
-
"description": "Unix timestamp in milliseconds when credits were retired (
|
|
1170
|
+
"description": "Unix timestamp in milliseconds when credits were retired; present in the attributes array only when the purchase has been retired (data.retirement_receipt is set)",
|
|
1172
1171
|
"examples": [
|
|
1173
1172
|
1704067200000
|
|
1174
1173
|
]
|
|
@@ -1185,7 +1184,7 @@
|
|
|
1185
1184
|
],
|
|
1186
1185
|
"additionalProperties": false,
|
|
1187
1186
|
"title": "Retirement Date Attribute",
|
|
1188
|
-
"description": "Unix timestamp in milliseconds when credits were retired (
|
|
1187
|
+
"description": "Unix timestamp in milliseconds when credits were retired; present in the attributes array only when the purchase has been retired (data.retirement_receipt is set) attribute"
|
|
1189
1188
|
},
|
|
1190
1189
|
{
|
|
1191
1190
|
"type": "object",
|
|
@@ -1315,6 +1314,6 @@
|
|
|
1315
1314
|
"additionalProperties": false,
|
|
1316
1315
|
"title": "CreditPurchaseReceipt NFT IPFS Record",
|
|
1317
1316
|
"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.
|
|
1319
|
-
"version": "0.
|
|
1317
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json",
|
|
1318
|
+
"version": "1.0.0"
|
|
1320
1319
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "343a22f6bd51a89b8a6ca83c5136938a2bd3e3c1b42645d05216476085d28d06",
|
|
5
5
|
"type": "CreditRetirementReceipt",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "1.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
|
-
"
|
|
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": "
|
|
234
|
+
"audit_data_hash": "c3a15edddd68e15a5bfaa82ce6be5c131d433b23858e8511f1724fe75c3fde5e"
|
|
234
235
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"properties": {
|
|
15
15
|
"hash": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"pattern": "^[
|
|
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": "^[
|
|
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": [
|
|
@@ -214,14 +214,22 @@
|
|
|
214
214
|
"beneficiary": {
|
|
215
215
|
"type": "object",
|
|
216
216
|
"properties": {
|
|
217
|
-
"
|
|
217
|
+
"id_hash": {
|
|
218
218
|
"type": "string",
|
|
219
|
-
"
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
"description": "UUID identifying the beneficiary of the retirement (bytes16 normalized to UUID)",
|
|
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
|
-
"
|
|
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": {
|
|
@@ -240,7 +248,7 @@
|
|
|
240
248
|
},
|
|
241
249
|
"external_id": {
|
|
242
250
|
"title": "Identity External ID",
|
|
243
|
-
"description": "Unique identifier
|
|
251
|
+
"description": "Unique identifier of the associated entity in the Carrot platform",
|
|
244
252
|
"type": "string",
|
|
245
253
|
"format": "uuid",
|
|
246
254
|
"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})$",
|
|
@@ -265,20 +273,29 @@
|
|
|
265
273
|
}
|
|
266
274
|
},
|
|
267
275
|
"required": [
|
|
268
|
-
"
|
|
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": {
|
|
285
|
+
"id_hash": {
|
|
286
|
+
"type": "string",
|
|
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
|
+
},
|
|
277
294
|
"wallet_address": {
|
|
295
|
+
"title": "Credit Holder Wallet Address",
|
|
296
|
+
"description": "Ethereum address of the wallet that held and surrendered the credits",
|
|
278
297
|
"type": "string",
|
|
279
298
|
"pattern": "^0x[a-f0-9]{40}$",
|
|
280
|
-
"title": "Credit Holder Wallet Address",
|
|
281
|
-
"description": "Ethereum address of the credit holder surrendering credits",
|
|
282
299
|
"examples": [
|
|
283
300
|
"0x1234567890abcdef1234567890abcdef12345678"
|
|
284
301
|
]
|
|
@@ -299,7 +316,7 @@
|
|
|
299
316
|
},
|
|
300
317
|
"external_id": {
|
|
301
318
|
"title": "Identity External ID",
|
|
302
|
-
"description": "Unique identifier
|
|
319
|
+
"description": "Unique identifier of the associated entity in the Carrot platform",
|
|
303
320
|
"type": "string",
|
|
304
321
|
"format": "uuid",
|
|
305
322
|
"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})$",
|
|
@@ -324,11 +341,11 @@
|
|
|
324
341
|
}
|
|
325
342
|
},
|
|
326
343
|
"required": [
|
|
327
|
-
"
|
|
344
|
+
"id_hash"
|
|
328
345
|
],
|
|
329
346
|
"additionalProperties": false,
|
|
330
347
|
"title": "Credit Holder",
|
|
331
|
-
"description": "Credit holder wallet and optional identity
|
|
348
|
+
"description": "Credit holder information including hashed identifier, optional wallet address, and optional identity"
|
|
332
349
|
},
|
|
333
350
|
"collections": {
|
|
334
351
|
"minItems": 1,
|
|
@@ -870,7 +887,7 @@
|
|
|
870
887
|
},
|
|
871
888
|
"audit_data_hash": {
|
|
872
889
|
"type": "string",
|
|
873
|
-
"pattern": "^[
|
|
890
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
874
891
|
"title": "Audit Data Hash",
|
|
875
892
|
"description": "SHA-256 hash of the original JSON content including private data before schema validation, used for data audit purposes",
|
|
876
893
|
"examples": [
|
|
@@ -1012,7 +1029,7 @@
|
|
|
1012
1029
|
},
|
|
1013
1030
|
"external_links": {
|
|
1014
1031
|
"title": "External Links",
|
|
1015
|
-
"description": "
|
|
1032
|
+
"description": "Supplementary reference links (label, URL, optional description) displayed on the NFT page",
|
|
1016
1033
|
"type": "array",
|
|
1017
1034
|
"items": {
|
|
1018
1035
|
"type": "object",
|
|
@@ -1433,6 +1450,6 @@
|
|
|
1433
1450
|
"additionalProperties": false,
|
|
1434
1451
|
"title": "CreditRetirementReceipt NFT IPFS Record",
|
|
1435
1452
|
"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.
|
|
1437
|
-
"version": "0.
|
|
1453
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json",
|
|
1454
|
+
"version": "1.0.0"
|
|
1438
1455
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/gas-id/gas-id.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "e105d033ada2f243313d9da8a9d7517b8f562a47ba78df510ea8613299eb5b50",
|
|
5
5
|
"type": "GasID",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "1.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": "
|
|
23
|
+
"audit_data_hash": "e468e164e4c95a2ef36c4afd78362b172564d5b7b8e671db2d8b5dccdaf737c3",
|
|
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": "^[
|
|
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": "^[
|
|
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": "^[
|
|
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": "^[
|
|
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": "^[
|
|
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": [
|
|
@@ -878,7 +878,7 @@
|
|
|
878
878
|
},
|
|
879
879
|
"external_links": {
|
|
880
880
|
"title": "External Links",
|
|
881
|
-
"description": "
|
|
881
|
+
"description": "Supplementary reference links (label, URL, optional description) displayed on the NFT page",
|
|
882
882
|
"type": "array",
|
|
883
883
|
"items": {
|
|
884
884
|
"type": "object",
|
|
@@ -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.
|
|
1526
|
-
"version": "0.
|
|
1525
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/gas-id/gas-id.schema.json",
|
|
1526
|
+
"version": "1.0.0"
|
|
1527
1527
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/mass-id/mass-id.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "83c6cb2ac7a54c7d7830c7fd8a3953cd6e96f1a656a54e22928ea5530f229bf4",
|
|
5
5
|
"type": "MassID",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "1.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": "
|
|
111
|
+
"audit_data_hash": "87d1373493fa9871572587d9180b77f69277b5e8a37894f857bf86072fa4015f",
|
|
112
112
|
"data": {
|
|
113
113
|
"waste_properties": {
|
|
114
114
|
"type": "Organic",
|