@carrot-foundation/schemas 0.4.2 → 0.5.1
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 +33 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -43
- package/dist/index.d.ts +43 -43
- package/dist/index.js +33 -26
- 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 +2 -2
- package/schemas/ipfs/credit/credit.example.json +3 -3
- package/schemas/ipfs/credit/credit.schema.json +2 -2
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +4 -4
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +14 -19
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +4 -4
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +75 -86
- package/schemas/ipfs/gas-id/gas-id.example.json +4 -4
- package/schemas/ipfs/gas-id/gas-id.schema.json +3 -3
- package/schemas/ipfs/mass-id/mass-id.example.json +4 -4
- package/schemas/ipfs/mass-id/mass-id.schema.json +9 -9
- package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +3 -3
- package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +2 -2
- package/schemas/ipfs/methodology/methodology.example.json +3 -3
- package/schemas/ipfs/methodology/methodology.schema.json +2 -2
- package/schemas/ipfs/recycled-id/recycled-id.example.json +4 -4
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +3 -3
- 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/0.5.1/schemas/ipfs/collection/collection.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "ac9ab55eb672748c69c3421259fffa7e6257f080d2e722859085b245cf226f91",
|
|
5
5
|
"type": "Collection",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.5.1",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -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/0.5.1/schemas/ipfs/collection/collection.schema.json",
|
|
240
|
+
"version": "0.5.1"
|
|
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/0.5.1/schemas/ipfs/credit/credit.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "1847342cd37859fe53f49ff0b2811173f55bc2d68ed8f43c32381728bd21e24f",
|
|
5
5
|
"type": "Credit",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.5.1",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -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/0.5.1/schemas/ipfs/credit/credit.schema.json",
|
|
261
|
+
"version": "0.5.1"
|
|
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/0.5.1/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "bc9882d5b3da7f685798b9e9c7757fddcf1cbe7f9fd6584c176d10b96a722219",
|
|
5
5
|
"type": "CreditPurchaseReceipt",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.5.1",
|
|
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": "de79f6ec3ef1aaab4d20d3153bb014dfd8b85a54f070f762ec2e571024978359",
|
|
24
24
|
"viewer_reference": {
|
|
25
25
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
|
|
26
26
|
"integrity_hash": "87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
@@ -250,45 +250,40 @@
|
|
|
250
250
|
"type": "object",
|
|
251
251
|
"properties": {
|
|
252
252
|
"name": {
|
|
253
|
-
"type": "string",
|
|
254
|
-
"minLength": 1,
|
|
255
|
-
"maxLength": 100,
|
|
256
253
|
"title": "Identity Name",
|
|
257
254
|
"description": "Display name of the buyer or beneficiary on the receipt",
|
|
258
255
|
"examples": [
|
|
259
256
|
"EcoTech Solutions Inc.",
|
|
260
257
|
"Climate Action Corp"
|
|
261
|
-
]
|
|
258
|
+
],
|
|
259
|
+
"type": "string",
|
|
260
|
+
"minLength": 1,
|
|
261
|
+
"maxLength": 100
|
|
262
262
|
},
|
|
263
263
|
"external_id": {
|
|
264
|
+
"title": "Identity External ID",
|
|
265
|
+
"description": "Unique identifier of the associated entity in the Carrot platform",
|
|
264
266
|
"type": "string",
|
|
265
267
|
"format": "uuid",
|
|
266
268
|
"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})$",
|
|
267
|
-
"title": "Identity External ID",
|
|
268
|
-
"description": "Unique identifier for the buyer or beneficiary in the Carrot platform",
|
|
269
269
|
"examples": [
|
|
270
270
|
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
271
271
|
]
|
|
272
272
|
},
|
|
273
273
|
"external_url": {
|
|
274
|
-
"type": "string",
|
|
275
|
-
"format": "uri",
|
|
276
274
|
"title": "Identity External URL",
|
|
277
275
|
"description": "Link to the buyer or beneficiary profile page on the Carrot platform",
|
|
276
|
+
"type": "string",
|
|
277
|
+
"format": "uri",
|
|
278
278
|
"examples": [
|
|
279
279
|
"https://explore.carrot.eco/",
|
|
280
280
|
"https://whitepaper.carrot.eco/"
|
|
281
281
|
]
|
|
282
282
|
}
|
|
283
283
|
},
|
|
284
|
-
"required": [
|
|
285
|
-
"name",
|
|
286
|
-
"external_id",
|
|
287
|
-
"external_url"
|
|
288
|
-
],
|
|
289
284
|
"additionalProperties": false,
|
|
290
285
|
"title": "Identity",
|
|
291
|
-
"description": "Identity information for the buyer or beneficiary associated with this receipt"
|
|
286
|
+
"description": "Identity information for the buyer or beneficiary associated with this receipt. All fields are optional, but at least one must be provided when the identity block is present."
|
|
292
287
|
}
|
|
293
288
|
},
|
|
294
289
|
"required": [
|
|
@@ -926,7 +921,7 @@
|
|
|
926
921
|
},
|
|
927
922
|
"external_links": {
|
|
928
923
|
"title": "External Links",
|
|
929
|
-
"description": "
|
|
924
|
+
"description": "Supplementary reference links (label, URL, optional description) displayed on the NFT page",
|
|
930
925
|
"type": "array",
|
|
931
926
|
"items": {
|
|
932
927
|
"type": "object",
|
|
@@ -1173,7 +1168,7 @@
|
|
|
1173
1168
|
"exclusiveMinimum": 0,
|
|
1174
1169
|
"maximum": 9007199254740991,
|
|
1175
1170
|
"title": "Retirement Date",
|
|
1176
|
-
"description": "Unix timestamp in milliseconds when credits were retired (
|
|
1171
|
+
"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)",
|
|
1177
1172
|
"examples": [
|
|
1178
1173
|
1704067200000
|
|
1179
1174
|
]
|
|
@@ -1190,7 +1185,7 @@
|
|
|
1190
1185
|
],
|
|
1191
1186
|
"additionalProperties": false,
|
|
1192
1187
|
"title": "Retirement Date Attribute",
|
|
1193
|
-
"description": "Unix timestamp in milliseconds when credits were retired (
|
|
1188
|
+
"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"
|
|
1194
1189
|
},
|
|
1195
1190
|
{
|
|
1196
1191
|
"type": "object",
|
|
@@ -1320,6 +1315,6 @@
|
|
|
1320
1315
|
"additionalProperties": false,
|
|
1321
1316
|
"title": "CreditPurchaseReceipt NFT IPFS Record",
|
|
1322
1317
|
"description": "Complete CreditPurchaseReceipt NFT IPFS record including purchase summary, buyer details, credit breakdowns, certificate allocations, and NFT display attributes",
|
|
1323
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
1324
|
-
"version": "0.
|
|
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"
|
|
1325
1320
|
}
|
|
@@ -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/0.5.1/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "c2762646feb40d22aef26501ad33eba7024beb5cec19e559b19fce4d8d755948",
|
|
5
5
|
"type": "CreditRetirementReceipt",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.5.1",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -230,5 +230,5 @@
|
|
|
230
230
|
"smart_contract_address": "0x742d35cc6634c0532925a3b8d8b5c2d4c7f8e1a9"
|
|
231
231
|
}
|
|
232
232
|
},
|
|
233
|
-
"audit_data_hash": "
|
|
233
|
+
"audit_data_hash": "86a67aeb7da1885b5861cbc71695e232c20e174e74e186abf94b5b90a50a9665"
|
|
234
234
|
}
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
"format": "uuid",
|
|
220
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
221
|
"title": "Retirement Beneficiary ID",
|
|
222
|
-
"description": "UUID identifying the beneficiary of the retirement
|
|
222
|
+
"description": "UUID identifying the beneficiary of the retirement within the Carrot platform",
|
|
223
223
|
"examples": [
|
|
224
224
|
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
225
225
|
]
|
|
@@ -228,50 +228,44 @@
|
|
|
228
228
|
"type": "object",
|
|
229
229
|
"properties": {
|
|
230
230
|
"name": {
|
|
231
|
-
"type": "string",
|
|
232
|
-
"minLength": 1,
|
|
233
|
-
"maxLength": 100,
|
|
234
231
|
"title": "Identity Name",
|
|
235
232
|
"description": "Display name of the buyer or beneficiary on the receipt",
|
|
236
233
|
"examples": [
|
|
237
234
|
"EcoTech Solutions Inc.",
|
|
238
235
|
"Climate Action Corp"
|
|
239
|
-
]
|
|
236
|
+
],
|
|
237
|
+
"type": "string",
|
|
238
|
+
"minLength": 1,
|
|
239
|
+
"maxLength": 100
|
|
240
240
|
},
|
|
241
241
|
"external_id": {
|
|
242
|
+
"title": "Identity External ID",
|
|
243
|
+
"description": "Unique identifier of the associated entity in the Carrot platform",
|
|
242
244
|
"type": "string",
|
|
243
245
|
"format": "uuid",
|
|
244
246
|
"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})$",
|
|
245
|
-
"title": "Identity External ID",
|
|
246
|
-
"description": "Unique identifier for the buyer or beneficiary in the Carrot platform",
|
|
247
247
|
"examples": [
|
|
248
248
|
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
249
249
|
]
|
|
250
250
|
},
|
|
251
251
|
"external_url": {
|
|
252
|
-
"type": "string",
|
|
253
|
-
"format": "uri",
|
|
254
252
|
"title": "Identity External URL",
|
|
255
253
|
"description": "Link to the buyer or beneficiary profile page on the Carrot platform",
|
|
254
|
+
"type": "string",
|
|
255
|
+
"format": "uri",
|
|
256
256
|
"examples": [
|
|
257
257
|
"https://explore.carrot.eco/",
|
|
258
258
|
"https://whitepaper.carrot.eco/"
|
|
259
259
|
]
|
|
260
260
|
}
|
|
261
261
|
},
|
|
262
|
-
"required": [
|
|
263
|
-
"name",
|
|
264
|
-
"external_id",
|
|
265
|
-
"external_url"
|
|
266
|
-
],
|
|
267
262
|
"additionalProperties": false,
|
|
268
263
|
"title": "Identity",
|
|
269
|
-
"description": "Identity information for the buyer or beneficiary associated with this receipt"
|
|
264
|
+
"description": "Identity information for the buyer or beneficiary associated with this receipt. All fields are optional, but at least one must be provided when the identity block is present."
|
|
270
265
|
}
|
|
271
266
|
},
|
|
272
267
|
"required": [
|
|
273
|
-
"beneficiary_id"
|
|
274
|
-
"identity"
|
|
268
|
+
"beneficiary_id"
|
|
275
269
|
],
|
|
276
270
|
"additionalProperties": false,
|
|
277
271
|
"title": "Beneficiary",
|
|
@@ -284,7 +278,7 @@
|
|
|
284
278
|
"type": "string",
|
|
285
279
|
"pattern": "^0x[a-f0-9]{40}$",
|
|
286
280
|
"title": "Credit Holder Wallet Address",
|
|
287
|
-
"description": "Ethereum address of the
|
|
281
|
+
"description": "Ethereum address of the wallet that held and surrendered the credits",
|
|
288
282
|
"examples": [
|
|
289
283
|
"0x1234567890abcdef1234567890abcdef12345678"
|
|
290
284
|
]
|
|
@@ -293,45 +287,40 @@
|
|
|
293
287
|
"type": "object",
|
|
294
288
|
"properties": {
|
|
295
289
|
"name": {
|
|
296
|
-
"type": "string",
|
|
297
|
-
"minLength": 1,
|
|
298
|
-
"maxLength": 100,
|
|
299
290
|
"title": "Identity Name",
|
|
300
291
|
"description": "Display name of the buyer or beneficiary on the receipt",
|
|
301
292
|
"examples": [
|
|
302
293
|
"EcoTech Solutions Inc.",
|
|
303
294
|
"Climate Action Corp"
|
|
304
|
-
]
|
|
295
|
+
],
|
|
296
|
+
"type": "string",
|
|
297
|
+
"minLength": 1,
|
|
298
|
+
"maxLength": 100
|
|
305
299
|
},
|
|
306
300
|
"external_id": {
|
|
301
|
+
"title": "Identity External ID",
|
|
302
|
+
"description": "Unique identifier of the associated entity in the Carrot platform",
|
|
307
303
|
"type": "string",
|
|
308
304
|
"format": "uuid",
|
|
309
305
|
"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})$",
|
|
310
|
-
"title": "Identity External ID",
|
|
311
|
-
"description": "Unique identifier for the buyer or beneficiary in the Carrot platform",
|
|
312
306
|
"examples": [
|
|
313
307
|
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
314
308
|
]
|
|
315
309
|
},
|
|
316
310
|
"external_url": {
|
|
317
|
-
"type": "string",
|
|
318
|
-
"format": "uri",
|
|
319
311
|
"title": "Identity External URL",
|
|
320
312
|
"description": "Link to the buyer or beneficiary profile page on the Carrot platform",
|
|
313
|
+
"type": "string",
|
|
314
|
+
"format": "uri",
|
|
321
315
|
"examples": [
|
|
322
316
|
"https://explore.carrot.eco/",
|
|
323
317
|
"https://whitepaper.carrot.eco/"
|
|
324
318
|
]
|
|
325
319
|
}
|
|
326
320
|
},
|
|
327
|
-
"required": [
|
|
328
|
-
"name",
|
|
329
|
-
"external_id",
|
|
330
|
-
"external_url"
|
|
331
|
-
],
|
|
332
321
|
"additionalProperties": false,
|
|
333
322
|
"title": "Identity",
|
|
334
|
-
"description": "Identity information for the buyer or beneficiary associated with this receipt"
|
|
323
|
+
"description": "Identity information for the buyer or beneficiary associated with this receipt. All fields are optional, but at least one must be provided when the identity block is present."
|
|
335
324
|
}
|
|
336
325
|
},
|
|
337
326
|
"required": [
|
|
@@ -1023,7 +1012,7 @@
|
|
|
1023
1012
|
},
|
|
1024
1013
|
"external_links": {
|
|
1025
1014
|
"title": "External Links",
|
|
1026
|
-
"description": "
|
|
1015
|
+
"description": "Supplementary reference links (label, URL, optional description) displayed on the NFT page",
|
|
1027
1016
|
"type": "array",
|
|
1028
1017
|
"items": {
|
|
1029
1018
|
"type": "object",
|
|
@@ -1067,7 +1056,7 @@
|
|
|
1067
1056
|
}
|
|
1068
1057
|
},
|
|
1069
1058
|
"attributes": {
|
|
1070
|
-
"minItems":
|
|
1059
|
+
"minItems": 3,
|
|
1071
1060
|
"type": "array",
|
|
1072
1061
|
"items": {
|
|
1073
1062
|
"anyOf": [
|
|
@@ -1114,54 +1103,6 @@
|
|
|
1114
1103
|
"title": "Total Credits Retired Attribute",
|
|
1115
1104
|
"description": "Total number of credits retired across all tokens attribute with numeric display"
|
|
1116
1105
|
},
|
|
1117
|
-
{
|
|
1118
|
-
"type": "object",
|
|
1119
|
-
"properties": {
|
|
1120
|
-
"trait_type": {
|
|
1121
|
-
"type": "string",
|
|
1122
|
-
"const": "Beneficiary"
|
|
1123
|
-
},
|
|
1124
|
-
"value": {
|
|
1125
|
-
"type": "string",
|
|
1126
|
-
"minLength": 1,
|
|
1127
|
-
"maxLength": 100,
|
|
1128
|
-
"title": "Beneficiary",
|
|
1129
|
-
"description": "Beneficiary receiving the retirement benefit",
|
|
1130
|
-
"examples": [
|
|
1131
|
-
"Climate Action Corp"
|
|
1132
|
-
]
|
|
1133
|
-
},
|
|
1134
|
-
"display_type": {
|
|
1135
|
-
"title": "Display Type",
|
|
1136
|
-
"description": "How the trait should be displayed in marketplace UIs",
|
|
1137
|
-
"type": "string",
|
|
1138
|
-
"enum": [
|
|
1139
|
-
"number",
|
|
1140
|
-
"date",
|
|
1141
|
-
"boost_number",
|
|
1142
|
-
"boost_percentage"
|
|
1143
|
-
]
|
|
1144
|
-
},
|
|
1145
|
-
"max_value": {
|
|
1146
|
-
"title": "Max Value",
|
|
1147
|
-
"description": "Maximum possible value for numeric traits",
|
|
1148
|
-
"type": "number",
|
|
1149
|
-
"minimum": 0,
|
|
1150
|
-
"examples": [
|
|
1151
|
-
0,
|
|
1152
|
-
45.2,
|
|
1153
|
-
72.5
|
|
1154
|
-
]
|
|
1155
|
-
}
|
|
1156
|
-
},
|
|
1157
|
-
"required": [
|
|
1158
|
-
"trait_type",
|
|
1159
|
-
"value"
|
|
1160
|
-
],
|
|
1161
|
-
"additionalProperties": false,
|
|
1162
|
-
"title": "Beneficiary Attribute",
|
|
1163
|
-
"description": "Attribute containing the beneficiary display name"
|
|
1164
|
-
},
|
|
1165
1106
|
{
|
|
1166
1107
|
"type": "object",
|
|
1167
1108
|
"properties": {
|
|
@@ -1237,6 +1178,54 @@
|
|
|
1237
1178
|
"title": "Certificates Retired Attribute",
|
|
1238
1179
|
"description": "Total number of certificates retired attribute with numeric display"
|
|
1239
1180
|
},
|
|
1181
|
+
{
|
|
1182
|
+
"type": "object",
|
|
1183
|
+
"properties": {
|
|
1184
|
+
"trait_type": {
|
|
1185
|
+
"type": "string",
|
|
1186
|
+
"const": "Beneficiary"
|
|
1187
|
+
},
|
|
1188
|
+
"value": {
|
|
1189
|
+
"type": "string",
|
|
1190
|
+
"minLength": 1,
|
|
1191
|
+
"maxLength": 100,
|
|
1192
|
+
"title": "Beneficiary",
|
|
1193
|
+
"description": "Beneficiary receiving the retirement benefit",
|
|
1194
|
+
"examples": [
|
|
1195
|
+
"Climate Action Corp"
|
|
1196
|
+
]
|
|
1197
|
+
},
|
|
1198
|
+
"display_type": {
|
|
1199
|
+
"title": "Display Type",
|
|
1200
|
+
"description": "How the trait should be displayed in marketplace UIs",
|
|
1201
|
+
"type": "string",
|
|
1202
|
+
"enum": [
|
|
1203
|
+
"number",
|
|
1204
|
+
"date",
|
|
1205
|
+
"boost_number",
|
|
1206
|
+
"boost_percentage"
|
|
1207
|
+
]
|
|
1208
|
+
},
|
|
1209
|
+
"max_value": {
|
|
1210
|
+
"title": "Max Value",
|
|
1211
|
+
"description": "Maximum possible value for numeric traits",
|
|
1212
|
+
"type": "number",
|
|
1213
|
+
"minimum": 0,
|
|
1214
|
+
"examples": [
|
|
1215
|
+
0,
|
|
1216
|
+
45.2,
|
|
1217
|
+
72.5
|
|
1218
|
+
]
|
|
1219
|
+
}
|
|
1220
|
+
},
|
|
1221
|
+
"required": [
|
|
1222
|
+
"trait_type",
|
|
1223
|
+
"value"
|
|
1224
|
+
],
|
|
1225
|
+
"additionalProperties": false,
|
|
1226
|
+
"title": "Beneficiary Attribute",
|
|
1227
|
+
"description": "Attribute containing the beneficiary display name"
|
|
1228
|
+
},
|
|
1240
1229
|
{
|
|
1241
1230
|
"type": "object",
|
|
1242
1231
|
"properties": {
|
|
@@ -1421,7 +1410,7 @@
|
|
|
1421
1410
|
]
|
|
1422
1411
|
},
|
|
1423
1412
|
"title": "Credit Retirement Receipt NFT Attribute Array",
|
|
1424
|
-
"description": "Attributes for credit retirement receipts including per-credit breakdowns, totals, beneficiary, credit holder, retirement date, certificate count, and optional purchase info. Fixed required attributes: Total Credits Retired,
|
|
1413
|
+
"description": "Attributes for credit retirement receipts including per-credit breakdowns, totals, beneficiary, credit holder, retirement date, certificate count, and optional purchase info. Fixed required attributes: Total Credits Retired, Retirement Date, Certificates Retired. Conditional attributes: Beneficiary (required when beneficiary.identity.name is provided), Credit Holder (required when credit_holder.identity.name is provided), Purchase Date (optional, when purchase_receipt is present), Purchase Receipt (optional, when purchase_receipt is present). Dynamic attributes: Credit attributes (one per credit symbol in data.credits).\n\nRequired attributes (3): Total Credits Retired, Retirement Date, Certificates Retired"
|
|
1425
1414
|
}
|
|
1426
1415
|
},
|
|
1427
1416
|
"required": [
|
|
@@ -1443,7 +1432,7 @@
|
|
|
1443
1432
|
],
|
|
1444
1433
|
"additionalProperties": false,
|
|
1445
1434
|
"title": "CreditRetirementReceipt NFT IPFS Record",
|
|
1446
|
-
"description": "Complete CreditRetirementReceipt NFT IPFS record including retirement summary, beneficiary and credit holder details, credit breakdowns, certificate allocations, and NFT display attributes",
|
|
1447
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
1448
|
-
"version": "0.
|
|
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"
|
|
1449
1438
|
}
|
|
@@ -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/0.5.1/schemas/ipfs/gas-id/gas-id.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "fefdb7b4b13e4771324b8eb65fa29c0a3894a90cda6806aa46c5d95c09e60b0d",
|
|
5
5
|
"type": "GasID",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.5.1",
|
|
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": "42f0723788bb44372433bf0eaf1d404f1674e660af0ca2ca291e981e61b3152c",
|
|
24
24
|
"viewer_reference": {
|
|
25
25
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
|
|
26
26
|
"integrity_hash": "87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
@@ -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/0.5.1/schemas/ipfs/gas-id/gas-id.schema.json",
|
|
1526
|
+
"version": "0.5.1"
|
|
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/0.5.1/schemas/ipfs/mass-id/mass-id.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "519b36aab4d590ed95161acf4472eb506b2232bbc7766b20bc8682c17f7b16e6",
|
|
5
5
|
"type": "MassID",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.5.1",
|
|
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": "533746d62f7d1ba1fc1d81544267efd4bbebf74da5d0595326a861c73ed295c1",
|
|
112
112
|
"data": {
|
|
113
113
|
"waste_properties": {
|
|
114
114
|
"type": "Organic",
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
"type": "number",
|
|
234
234
|
"exclusiveMinimum": 0,
|
|
235
235
|
"title": "Net Weight",
|
|
236
|
-
"description": "
|
|
236
|
+
"description": "Weight in kilograms of the entire waste batch tracked through the chain of custody",
|
|
237
237
|
"examples": [
|
|
238
238
|
3000
|
|
239
239
|
]
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
"type": "string",
|
|
453
453
|
"pattern": "^[0-9a-fA-F]{64}$",
|
|
454
454
|
"title": "Location ID Hash",
|
|
455
|
-
"description": "
|
|
455
|
+
"description": "Hash reference to the geographic location where this event occurred; matches an entry in `data.locations`",
|
|
456
456
|
"examples": [
|
|
457
457
|
"87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
458
458
|
]
|
|
@@ -552,7 +552,7 @@
|
|
|
552
552
|
"type": "string",
|
|
553
553
|
"pattern": "^[0-9a-fA-F]{64}$",
|
|
554
554
|
"title": "Location ID Hash",
|
|
555
|
-
"description": "
|
|
555
|
+
"description": "Hash reference to the geographic location where this event occurred; matches an entry in `data.locations`",
|
|
556
556
|
"examples": [
|
|
557
557
|
"87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
558
558
|
]
|
|
@@ -727,7 +727,7 @@
|
|
|
727
727
|
"type": "string",
|
|
728
728
|
"pattern": "^[0-9a-fA-F]{64}$",
|
|
729
729
|
"title": "Location ID Hash",
|
|
730
|
-
"description": "
|
|
730
|
+
"description": "Hash reference to the geographic location where this event occurred; matches an entry in `data.locations`",
|
|
731
731
|
"examples": [
|
|
732
732
|
"87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
733
733
|
]
|
|
@@ -789,7 +789,7 @@
|
|
|
789
789
|
"type": "string",
|
|
790
790
|
"pattern": "^[0-9a-fA-F]{64}$",
|
|
791
791
|
"title": "Location ID Hash",
|
|
792
|
-
"description": "
|
|
792
|
+
"description": "Hash reference to the geographic location where this event occurred; matches an entry in `data.locations`",
|
|
793
793
|
"examples": [
|
|
794
794
|
"87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
795
795
|
]
|
|
@@ -877,7 +877,7 @@
|
|
|
877
877
|
"type": "string",
|
|
878
878
|
"pattern": "^[0-9a-fA-F]{64}$",
|
|
879
879
|
"title": "Location ID Hash",
|
|
880
|
-
"description": "
|
|
880
|
+
"description": "Hash reference to the geographic location where this event occurred; matches an entry in `data.locations`",
|
|
881
881
|
"examples": [
|
|
882
882
|
"87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
883
883
|
]
|
|
@@ -1126,7 +1126,7 @@
|
|
|
1126
1126
|
},
|
|
1127
1127
|
"external_links": {
|
|
1128
1128
|
"title": "External Links",
|
|
1129
|
-
"description": "
|
|
1129
|
+
"description": "Supplementary reference links (label, URL, optional description) displayed on the NFT page",
|
|
1130
1130
|
"type": "array",
|
|
1131
1131
|
"items": {
|
|
1132
1132
|
"type": "object",
|
|
@@ -1911,6 +1911,6 @@
|
|
|
1911
1911
|
"additionalProperties": false,
|
|
1912
1912
|
"title": "MassID NFT IPFS Record",
|
|
1913
1913
|
"description": "Complete MassID NFT IPFS record including waste classification, chain-of-custody lifecycle events, geographic locations, supply-chain participants, and NFT display attributes",
|
|
1914
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
1915
|
-
"version": "0.
|
|
1914
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.5.1/schemas/ipfs/mass-id/mass-id.schema.json",
|
|
1915
|
+
"version": "0.5.1"
|
|
1916
1916
|
}
|
|
@@ -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/0.5.1/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "5bbadb90250c41ef61aa1beaa7f146f3f4c7b5cba78b25f71b152624cdf8ded7",
|
|
5
5
|
"type": "MassID Audit",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.5.1",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -674,6 +674,6 @@
|
|
|
674
674
|
"additionalProperties": false,
|
|
675
675
|
"title": "MassID Audit IPFS Record",
|
|
676
676
|
"description": "MassID audit record stored in IPFS, containing methodology reference, audit summary, rule execution results, and links to the source MassID and resulting GasID or RecycledID",
|
|
677
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
678
|
-
"version": "0.
|
|
677
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.5.1/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json",
|
|
678
|
+
"version": "0.5.1"
|
|
679
679
|
}
|