@carrot-foundation/schemas 0.1.63 → 0.1.64
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 +41 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -1
- package/dist/index.d.ts +41 -1
- package/dist/index.js +41 -6
- 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 +2 -2
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +4 -4
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +2 -2
- package/schemas/ipfs/gas-id/gas-id.example.json +19 -13
- package/schemas/ipfs/gas-id/gas-id.schema.json +47 -5
- package/schemas/ipfs/mass-id/mass-id.example.json +4 -4
- package/schemas/ipfs/mass-id/mass-id.schema.json +2 -2
- 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 +10 -4
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +45 -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.1.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.63/schemas/ipfs/collection/collection.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "37162c7ce530e86a3fce61c3a78ea129322e5f9edf3fd5e7dcd936613f6b0ef4",
|
|
5
5
|
"type": "Collection",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.63",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"title": "Collection IPFS Record",
|
|
4
4
|
"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",
|
|
5
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
6
|
-
"version": "0.1.
|
|
5
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.64/schemas/ipfs/collection/collection.schema.json",
|
|
6
|
+
"version": "0.1.64",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
9
|
"$schema": {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.63/schemas/ipfs/credit/credit.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "4a7e2a492c2a8bfa13742aef5503ffebb44be5d7ac7386894bf6ad63fad4f19e",
|
|
5
5
|
"type": "Credit",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.63",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"title": "Credit IPFS Record",
|
|
4
4
|
"description": "Credit token metadata stored in IPFS, extending the base schema with ERC20-specific details",
|
|
5
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
6
|
-
"version": "0.1.
|
|
5
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.64/schemas/ipfs/credit/credit.schema.json",
|
|
6
|
+
"version": "0.1.64",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
9
|
"$schema": {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.63/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "494dc13a359545cfd4fac2f55e36c4832820983fe5b12902bfa8eff814e280ef",
|
|
5
5
|
"type": "CreditPurchaseReceipt",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.63",
|
|
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": "4da6284bde06b7410a9bab79fd8bf65b4780e10816c981ae9553009480d9741e",
|
|
24
24
|
"viewer_reference": {
|
|
25
25
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
|
|
26
26
|
"integrity_hash": "87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"title": "CreditPurchaseReceipt NFT IPFS Record",
|
|
4
4
|
"description": "Complete CreditPurchaseReceipt NFT IPFS record including attributes and credit purchase data",
|
|
5
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
6
|
-
"version": "0.1.
|
|
5
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.64/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json",
|
|
6
|
+
"version": "0.1.64",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
9
|
"$schema": {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.63/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "3123bd34ed63db8985a4478c923dedc1c17538f9b34afccd933f4d4cc7456cf8",
|
|
5
5
|
"type": "CreditRetirementReceipt",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.63",
|
|
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": "623ffa20e22522198da199fff027581ca8b58811153d27b33c793bb9331a2c17"
|
|
234
234
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"title": "CreditRetirementReceipt NFT IPFS Record",
|
|
4
4
|
"description": "Complete CreditRetirementReceipt NFT IPFS record including attributes and credit retirement data",
|
|
5
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
6
|
-
"version": "0.1.
|
|
5
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.64/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json",
|
|
6
|
+
"version": "0.1.64",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
9
|
"$schema": {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.63/schemas/ipfs/gas-id/gas-id.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "06110924cc8a184a17bb201e02ab67badb33b8dacac5664bdccb667849737312",
|
|
5
5
|
"type": "GasID",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.63",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -20,14 +20,14 @@
|
|
|
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": "fb6bc12727608bcff17ab8c8a8dbc665e55e511c9acf7ee221a9ea7fdeca470e",
|
|
24
24
|
"viewer_reference": {
|
|
25
25
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
|
|
26
26
|
"integrity_hash": "87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
27
27
|
},
|
|
28
|
-
"name": "GasID #456 • BOLD Carbon (CH₄) • 0.
|
|
28
|
+
"name": "GasID #456 • BOLD Carbon (CH₄) • 0.12t CO₂e",
|
|
29
29
|
"short_name": "GasID #456",
|
|
30
|
-
"description": "This GasID certifies 0.
|
|
30
|
+
"description": "This GasID certifies 0.12 metric tons of CO₂e emissions prevented through BOLD Carbon (CH₄) methodology composting of 3.25 metric tons of organic waste from Brasília, Brazil.",
|
|
31
31
|
"image": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
|
|
32
32
|
"background_color": "#1B4332",
|
|
33
33
|
"external_links": [
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"trait_type": "CO₂e Prevented (kg)",
|
|
56
|
-
"value":
|
|
56
|
+
"value": 123.519,
|
|
57
57
|
"display_type": "number"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"trait_type": "Credit Amount",
|
|
61
|
-
"value": 0.
|
|
61
|
+
"value": 0.123519,
|
|
62
62
|
"display_type": "number"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
@@ -91,6 +91,11 @@
|
|
|
91
91
|
"value": 1733657567000,
|
|
92
92
|
"display_type": "date"
|
|
93
93
|
},
|
|
94
|
+
{
|
|
95
|
+
"trait_type": "Recycling Date",
|
|
96
|
+
"value": 1733657567000,
|
|
97
|
+
"display_type": "date"
|
|
98
|
+
},
|
|
94
99
|
{
|
|
95
100
|
"trait_type": "Certificate Issuance Date",
|
|
96
101
|
"value": 1733657567000,
|
|
@@ -101,8 +106,9 @@
|
|
|
101
106
|
"summary": {
|
|
102
107
|
"gas_type": "Methane (CH₄)",
|
|
103
108
|
"credit_type": "Carbon (CH₄)",
|
|
104
|
-
"credit_amount": 0.
|
|
105
|
-
"prevented_co2e_kg":
|
|
109
|
+
"credit_amount": 0.123519,
|
|
110
|
+
"prevented_co2e_kg": 123.519,
|
|
111
|
+
"recycling_date": "2024-12-08T11:32:47.000Z",
|
|
106
112
|
"issued_at": "2024-12-08T11:32:47.000Z"
|
|
107
113
|
},
|
|
108
114
|
"waste_properties": {
|
|
@@ -144,7 +150,7 @@
|
|
|
144
150
|
"responsible_participant_id_hash": "a1b2c3d4e5f6789012345678901234567890abcdefabcdefabcdefabcdefabcd"
|
|
145
151
|
},
|
|
146
152
|
"prevented_emissions_calculation": {
|
|
147
|
-
"formula": "
|
|
153
|
+
"formula": "W * B - W * E",
|
|
148
154
|
"method": "UNFCCC AMS-III.F",
|
|
149
155
|
"calculated_at": "2024-12-08T11:32:47.000Z",
|
|
150
156
|
"values": [
|
|
@@ -156,7 +162,7 @@
|
|
|
156
162
|
{
|
|
157
163
|
"reference": "B",
|
|
158
164
|
"value": 0.067,
|
|
159
|
-
"label": "Prevented Emissions by Waste Subtype and Baseline Per Ton"
|
|
165
|
+
"label": "Prevented Emissions by Waste Subtype and Emissions Baseline Per Ton"
|
|
160
166
|
},
|
|
161
167
|
{
|
|
162
168
|
"reference": "W",
|
|
@@ -165,7 +171,7 @@
|
|
|
165
171
|
},
|
|
166
172
|
{
|
|
167
173
|
"reference": "R",
|
|
168
|
-
"value":
|
|
174
|
+
"value": 123.519,
|
|
169
175
|
"label": "Prevented Emissions (CO₂e kg)"
|
|
170
176
|
}
|
|
171
177
|
]
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"title": "GasID NFT IPFS Record",
|
|
4
4
|
"description": "Complete GasID NFT IPFS record including fixed attributes and detailed carbon emissions prevention data",
|
|
5
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
6
|
-
"version": "0.1.
|
|
5
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.64/schemas/ipfs/gas-id/gas-id.schema.json",
|
|
6
|
+
"version": "0.1.64",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
9
|
"$schema": {
|
|
@@ -221,6 +221,16 @@
|
|
|
221
221
|
"type": "number",
|
|
222
222
|
"minimum": 0
|
|
223
223
|
},
|
|
224
|
+
"recycling_date": {
|
|
225
|
+
"title": "Recycling Date",
|
|
226
|
+
"description": "ISO 8601 timestamp when the recycling occurred (when the environmental gain was achieved)",
|
|
227
|
+
"examples": [
|
|
228
|
+
"2024-12-05T11:02:47.000Z"
|
|
229
|
+
],
|
|
230
|
+
"type": "string",
|
|
231
|
+
"format": "date-time",
|
|
232
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
233
|
+
},
|
|
224
234
|
"issued_at": {
|
|
225
235
|
"title": "Issued At",
|
|
226
236
|
"description": "ISO 8601 timestamp when the certificate was issued",
|
|
@@ -237,6 +247,7 @@
|
|
|
237
247
|
"credit_type",
|
|
238
248
|
"credit_amount",
|
|
239
249
|
"prevented_co2e_kg",
|
|
250
|
+
"recycling_date",
|
|
240
251
|
"issued_at"
|
|
241
252
|
],
|
|
242
253
|
"additionalProperties": false
|
|
@@ -621,7 +632,7 @@
|
|
|
621
632
|
"title": "Calculation Formula",
|
|
622
633
|
"description": "Formula used to calculate the prevented emissions",
|
|
623
634
|
"examples": [
|
|
624
|
-
"
|
|
635
|
+
"W * B - W * E"
|
|
625
636
|
],
|
|
626
637
|
"type": "string",
|
|
627
638
|
"minLength": 1,
|
|
@@ -686,7 +697,7 @@
|
|
|
686
697
|
"description": "Human-readable label for this calculation value",
|
|
687
698
|
"examples": [
|
|
688
699
|
"Exceeding Emission Coefficient",
|
|
689
|
-
"Prevented Emissions by Waste Subtype and Baseline Per Ton",
|
|
700
|
+
"Prevented Emissions by Waste Subtype and Emissions Baseline Per Ton",
|
|
690
701
|
"Waste Weight",
|
|
691
702
|
"Prevented Emissions (CO₂e kg)"
|
|
692
703
|
],
|
|
@@ -909,7 +920,7 @@
|
|
|
909
920
|
},
|
|
910
921
|
"attributes": {
|
|
911
922
|
"title": "GasID NFT Attribute Array",
|
|
912
|
-
"description": "Schema for the fixed set of GasID NFT attributes, enforcing order and type for each trait.\n\nRequired attributes (
|
|
923
|
+
"description": "Schema for the fixed set of GasID NFT attributes, enforcing order and type for each trait.\n\nRequired attributes (13, in order): Methodology, Gas Type, CO₂e Prevented (kg), Credit Amount, Credit Type, Source Waste Type, Source Weight (kg), Origin City, Origin Country Subdivision, MassID, MassID Recycling Date, Recycling Date, Certificate Issuance Date.",
|
|
913
924
|
"type": "array",
|
|
914
925
|
"prefixItems": [
|
|
915
926
|
{
|
|
@@ -1414,6 +1425,37 @@
|
|
|
1414
1425
|
],
|
|
1415
1426
|
"additionalProperties": false
|
|
1416
1427
|
},
|
|
1428
|
+
{
|
|
1429
|
+
"title": "Recycling Date Attribute",
|
|
1430
|
+
"description": "Unix timestamp in milliseconds when the recycling occurred (when the environmental gain was achieved) attribute",
|
|
1431
|
+
"type": "object",
|
|
1432
|
+
"properties": {
|
|
1433
|
+
"trait_type": {
|
|
1434
|
+
"type": "string",
|
|
1435
|
+
"const": "Recycling Date"
|
|
1436
|
+
},
|
|
1437
|
+
"value": {
|
|
1438
|
+
"title": "Recycling Date",
|
|
1439
|
+
"description": "Unix timestamp in milliseconds when the recycling occurred (when the environmental gain was achieved)",
|
|
1440
|
+
"examples": [
|
|
1441
|
+
1704067200000
|
|
1442
|
+
],
|
|
1443
|
+
"type": "integer",
|
|
1444
|
+
"exclusiveMinimum": 0,
|
|
1445
|
+
"maximum": 9007199254740991
|
|
1446
|
+
},
|
|
1447
|
+
"display_type": {
|
|
1448
|
+
"type": "string",
|
|
1449
|
+
"const": "date"
|
|
1450
|
+
}
|
|
1451
|
+
},
|
|
1452
|
+
"required": [
|
|
1453
|
+
"trait_type",
|
|
1454
|
+
"value",
|
|
1455
|
+
"display_type"
|
|
1456
|
+
],
|
|
1457
|
+
"additionalProperties": false
|
|
1458
|
+
},
|
|
1417
1459
|
{
|
|
1418
1460
|
"title": "Certificate Issuance Date Attribute",
|
|
1419
1461
|
"description": "Unix timestamp in milliseconds when the certificate was issued attribute",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.63/schemas/ipfs/mass-id/mass-id.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "feca80e3a7563a7a78384af83d70c7956877d8cbbc6f190804d90a07eb801ff0",
|
|
5
5
|
"type": "MassID",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.63",
|
|
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": "a43da367c0813564308df5603103ae74d6f8eac8ae4e10811a73397b8055f778",
|
|
112
112
|
"data": {
|
|
113
113
|
"waste_properties": {
|
|
114
114
|
"type": "Organic",
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"title": "MassID NFT IPFS Record",
|
|
4
4
|
"description": "Complete MassID NFT IPFS record schema defining waste tracking metadata, chain of custody events, and NFT display attributes",
|
|
5
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
6
|
-
"version": "0.1.
|
|
5
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.64/schemas/ipfs/mass-id/mass-id.schema.json",
|
|
6
|
+
"version": "0.1.64",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
9
|
"$schema": {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.63/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "5896ad6dd33814018b2624670266177f2f14a9d06225255a6cfab32bb6f110a8",
|
|
5
5
|
"type": "MassID Audit",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.63",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"title": "MassID Audit IPFS Record",
|
|
4
4
|
"description": "MassID audit metadata stored in IPFS, extending the base schema with audit results and references",
|
|
5
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
6
|
-
"version": "0.1.
|
|
5
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.64/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json",
|
|
6
|
+
"version": "0.1.64",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
9
|
"$schema": {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.63/schemas/ipfs/methodology/methodology.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "f9c5dc5feb55a56996f54663d7216c93d21b1b1588cca772b3c57f071ab82052",
|
|
5
5
|
"type": "Methodology",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.63",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"title": "Methodology IPFS Record",
|
|
4
4
|
"description": "Methodology metadata stored in IPFS, extending the base schema with methodology data and audit rules",
|
|
5
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
6
|
-
"version": "0.1.
|
|
5
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.64/schemas/ipfs/methodology/methodology.schema.json",
|
|
6
|
+
"version": "0.1.64",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
9
|
"$schema": {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.63/schemas/ipfs/recycled-id/recycled-id.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "07c4c9e1d728bc5dcfe063fc7fd4ec8cf34621959882f1938d4f90dc5ec00d3c",
|
|
5
5
|
"type": "RecycledID",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.63",
|
|
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": "f47ac10b-58cc-4372-a567-0e02b2c3d489",
|
|
22
22
|
"external_url": "https://explore.carrot.eco/document/f47ac10b-58cc-4372-a567-0e02b2c3d489",
|
|
23
|
-
"audit_data_hash": "
|
|
23
|
+
"audit_data_hash": "263ece2de1f4e2c20bc79f5bf1f77be15afeabb5899f41267d745a3c8023dbe6",
|
|
24
24
|
"viewer_reference": {
|
|
25
25
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
|
|
26
26
|
"integrity_hash": "87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
@@ -87,6 +87,11 @@
|
|
|
87
87
|
"value": 1733657567000,
|
|
88
88
|
"display_type": "date"
|
|
89
89
|
},
|
|
90
|
+
{
|
|
91
|
+
"trait_type": "Recycling Date",
|
|
92
|
+
"value": 1733657567000,
|
|
93
|
+
"display_type": "date"
|
|
94
|
+
},
|
|
90
95
|
{
|
|
91
96
|
"trait_type": "Certificate Issuance Date",
|
|
92
97
|
"value": 1733657567000,
|
|
@@ -98,6 +103,7 @@
|
|
|
98
103
|
"recycled_mass_kg": 3250.5,
|
|
99
104
|
"credit_type": "Biowaste",
|
|
100
105
|
"credit_amount": 3,
|
|
106
|
+
"recycling_date": "2024-12-08T11:32:47.000Z",
|
|
101
107
|
"issued_at": "2024-12-08T11:32:47.000Z"
|
|
102
108
|
},
|
|
103
109
|
"methodology": {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"title": "RecycledID NFT IPFS Record",
|
|
4
4
|
"description": "Complete RecycledID NFT IPFS record including fixed attributes and recycling outcome data",
|
|
5
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.
|
|
6
|
-
"version": "0.1.
|
|
5
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.1.64/schemas/ipfs/recycled-id/recycled-id.schema.json",
|
|
6
|
+
"version": "0.1.64",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
9
|
"$schema": {
|
|
@@ -210,6 +210,16 @@
|
|
|
210
210
|
"type": "number",
|
|
211
211
|
"minimum": 0
|
|
212
212
|
},
|
|
213
|
+
"recycling_date": {
|
|
214
|
+
"title": "Recycling Date",
|
|
215
|
+
"description": "ISO 8601 timestamp when the recycling occurred (when the environmental gain was achieved)",
|
|
216
|
+
"examples": [
|
|
217
|
+
"2024-12-05T11:02:47.000Z"
|
|
218
|
+
],
|
|
219
|
+
"type": "string",
|
|
220
|
+
"format": "date-time",
|
|
221
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
222
|
+
},
|
|
213
223
|
"issued_at": {
|
|
214
224
|
"title": "Issued At",
|
|
215
225
|
"description": "ISO 8601 timestamp when the certificate was issued",
|
|
@@ -225,6 +235,7 @@
|
|
|
225
235
|
"recycled_mass_kg",
|
|
226
236
|
"credit_type",
|
|
227
237
|
"credit_amount",
|
|
238
|
+
"recycling_date",
|
|
228
239
|
"issued_at"
|
|
229
240
|
],
|
|
230
241
|
"additionalProperties": false
|
|
@@ -796,7 +807,7 @@
|
|
|
796
807
|
},
|
|
797
808
|
"attributes": {
|
|
798
809
|
"title": "RecycledID NFT Attribute Array",
|
|
799
|
-
"description": "Schema for the fixed set of RecycledID NFT attributes, enforcing order and type for each trait.\n\nRequired attributes (
|
|
810
|
+
"description": "Schema for the fixed set of RecycledID NFT attributes, enforcing order and type for each trait.\n\nRequired attributes (12, in order): Methodology, Recycled Weight (kg), Credit Amount, Credit Type, Source Waste Type, Source Weight (kg), Origin City, Origin Country Subdivision, MassID, MassID Recycling Date, Recycling Date, Certificate Issuance Date.",
|
|
800
811
|
"type": "array",
|
|
801
812
|
"prefixItems": [
|
|
802
813
|
{
|
|
@@ -1251,6 +1262,37 @@
|
|
|
1251
1262
|
],
|
|
1252
1263
|
"additionalProperties": false
|
|
1253
1264
|
},
|
|
1265
|
+
{
|
|
1266
|
+
"title": "Recycling Date Attribute",
|
|
1267
|
+
"description": "Unix timestamp in milliseconds when the recycling occurred (when the environmental gain was achieved) attribute",
|
|
1268
|
+
"type": "object",
|
|
1269
|
+
"properties": {
|
|
1270
|
+
"trait_type": {
|
|
1271
|
+
"type": "string",
|
|
1272
|
+
"const": "Recycling Date"
|
|
1273
|
+
},
|
|
1274
|
+
"value": {
|
|
1275
|
+
"title": "Recycling Date",
|
|
1276
|
+
"description": "Unix timestamp in milliseconds when the recycling occurred (when the environmental gain was achieved)",
|
|
1277
|
+
"examples": [
|
|
1278
|
+
1704067200000
|
|
1279
|
+
],
|
|
1280
|
+
"type": "integer",
|
|
1281
|
+
"exclusiveMinimum": 0,
|
|
1282
|
+
"maximum": 9007199254740991
|
|
1283
|
+
},
|
|
1284
|
+
"display_type": {
|
|
1285
|
+
"type": "string",
|
|
1286
|
+
"const": "date"
|
|
1287
|
+
}
|
|
1288
|
+
},
|
|
1289
|
+
"required": [
|
|
1290
|
+
"trait_type",
|
|
1291
|
+
"value",
|
|
1292
|
+
"display_type"
|
|
1293
|
+
],
|
|
1294
|
+
"additionalProperties": false
|
|
1295
|
+
},
|
|
1254
1296
|
{
|
|
1255
1297
|
"title": "Certificate Issuance Date Attribute",
|
|
1256
1298
|
"description": "Unix timestamp in milliseconds when the certificate was issued attribute",
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.
|
|
2
|
+
"version": "0.1.63",
|
|
3
3
|
"schemas": {
|
|
4
4
|
"ipfs/recycled-id/recycled-id.schema.json": {
|
|
5
|
-
"hash": "
|
|
5
|
+
"hash": "07c4c9e1d728bc5dcfe063fc7fd4ec8cf34621959882f1938d4f90dc5ec00d3c",
|
|
6
6
|
"path": "ipfs/recycled-id/recycled-id.schema.json"
|
|
7
7
|
},
|
|
8
8
|
"ipfs/methodology/methodology.schema.json": {
|
|
9
|
-
"hash": "
|
|
9
|
+
"hash": "f9c5dc5feb55a56996f54663d7216c93d21b1b1588cca772b3c57f071ab82052",
|
|
10
10
|
"path": "ipfs/methodology/methodology.schema.json"
|
|
11
11
|
},
|
|
12
12
|
"ipfs/mass-id-audit/mass-id-audit.schema.json": {
|
|
13
|
-
"hash": "
|
|
13
|
+
"hash": "5896ad6dd33814018b2624670266177f2f14a9d06225255a6cfab32bb6f110a8",
|
|
14
14
|
"path": "ipfs/mass-id-audit/mass-id-audit.schema.json"
|
|
15
15
|
},
|
|
16
16
|
"ipfs/mass-id/mass-id.schema.json": {
|
|
17
|
-
"hash": "
|
|
17
|
+
"hash": "feca80e3a7563a7a78384af83d70c7956877d8cbbc6f190804d90a07eb801ff0",
|
|
18
18
|
"path": "ipfs/mass-id/mass-id.schema.json"
|
|
19
19
|
},
|
|
20
20
|
"ipfs/gas-id/gas-id.schema.json": {
|
|
21
|
-
"hash": "
|
|
21
|
+
"hash": "06110924cc8a184a17bb201e02ab67badb33b8dacac5664bdccb667849737312",
|
|
22
22
|
"path": "ipfs/gas-id/gas-id.schema.json"
|
|
23
23
|
},
|
|
24
24
|
"ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json": {
|
|
25
|
-
"hash": "
|
|
25
|
+
"hash": "3123bd34ed63db8985a4478c923dedc1c17538f9b34afccd933f4d4cc7456cf8",
|
|
26
26
|
"path": "ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json"
|
|
27
27
|
},
|
|
28
28
|
"ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json": {
|
|
29
|
-
"hash": "
|
|
29
|
+
"hash": "494dc13a359545cfd4fac2f55e36c4832820983fe5b12902bfa8eff814e280ef",
|
|
30
30
|
"path": "ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json"
|
|
31
31
|
},
|
|
32
32
|
"ipfs/credit/credit.schema.json": {
|
|
33
|
-
"hash": "
|
|
33
|
+
"hash": "4a7e2a492c2a8bfa13742aef5503ffebb44be5d7ac7386894bf6ad63fad4f19e",
|
|
34
34
|
"path": "ipfs/credit/credit.schema.json"
|
|
35
35
|
},
|
|
36
36
|
"ipfs/collection/collection.schema.json": {
|
|
37
|
-
"hash": "
|
|
37
|
+
"hash": "37162c7ce530e86a3fce61c3a78ea129322e5f9edf3fd5e7dcd936613f6b0ef4",
|
|
38
38
|
"path": "ipfs/collection/collection.schema.json"
|
|
39
39
|
}
|
|
40
40
|
}
|