@carrot-foundation/schemas 0.2.3 → 0.3.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.
Files changed (27) hide show
  1. package/README.md +144 -116
  2. package/dist/index.cjs +204 -267
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +23 -23
  5. package/dist/index.d.ts +23 -23
  6. package/dist/index.js +204 -267
  7. package/dist/index.js.map +1 -1
  8. package/package.json +20 -20
  9. package/schemas/ipfs/collection/collection.example.json +3 -3
  10. package/schemas/ipfs/collection/collection.schema.json +77 -77
  11. package/schemas/ipfs/credit/credit.example.json +4 -4
  12. package/schemas/ipfs/credit/credit.schema.json +85 -85
  13. package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +15 -15
  14. package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +432 -424
  15. package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +15 -15
  16. package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +465 -457
  17. package/schemas/ipfs/gas-id/gas-id.example.json +9 -9
  18. package/schemas/ipfs/gas-id/gas-id.schema.json +448 -432
  19. package/schemas/ipfs/mass-id/mass-id.example.json +7 -7
  20. package/schemas/ipfs/mass-id/mass-id.schema.json +533 -512
  21. package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +57 -57
  22. package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +225 -217
  23. package/schemas/ipfs/methodology/methodology.example.json +5 -5
  24. package/schemas/ipfs/methodology/methodology.schema.json +124 -124
  25. package/schemas/ipfs/recycled-id/recycled-id.example.json +9 -9
  26. package/schemas/ipfs/recycled-id/recycled-id.schema.json +400 -384
  27. package/schemas/schema-hashes.json +10 -10
@@ -1,9 +1,9 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.2.3/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json",
2
+ "$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.3.0/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json",
3
3
  "schema": {
4
- "hash": "e933b8d991da1296dca6f4a2130f75c5d9b355cd273e6587a861eeff78c4fa5f",
4
+ "hash": "7c938d21afec1de8a8a6aee7a1ad3bbb07e091294b8d85a8464d47939b846b78",
5
5
  "type": "CreditRetirementReceipt",
6
- "version": "0.2.3",
6
+ "version": "0.3.0",
7
7
  "ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
8
8
  },
9
9
  "environment": {
@@ -12,7 +12,7 @@
12
12
  "data_set_name": "TEST"
13
13
  },
14
14
  "blockchain": {
15
- "token_id": "1200",
15
+ "token_id": "600001",
16
16
  "smart_contract_address": "0x742d35cc6634c0532925a3b8d8b5c2d4c7f8e1a9",
17
17
  "chain_id": 80002,
18
18
  "network_name": "Amoy"
@@ -24,8 +24,8 @@
24
24
  "ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
25
25
  "integrity_hash": "87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
26
26
  },
27
- "name": "Credit Retirement Receipt #1200 • 3.0 Credits Retired",
28
- "short_name": "Retirement Receipt #1200",
27
+ "name": "Credit Retirement Receipt #600001 • 3.0 Credits Retired",
28
+ "short_name": "Retirement Receipt #600001",
29
29
  "description": "Permanent proof of credit retirement: 3.0 credits (C-CARB.CH4 and C-BIOW) retired by EcoTech Solutions Inc. on behalf of beneficiary Climate Action Corp, from 3 certificates across 2 collections.",
30
30
  "image": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
31
31
  "background_color": "#1B4332",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  {
75
75
  "trait_type": "Purchase Receipt",
76
- "value": "#987"
76
+ "value": "#500001"
77
77
  }
78
78
  ],
79
79
  "data": {
@@ -122,14 +122,14 @@
122
122
  "slug": "biowaste",
123
123
  "symbol": "C-BIOW",
124
124
  "external_id": "e710790f-5909-4a54-ab89-6a59819472ee",
125
- "external_url": "https://explore.carrot.eco/credit/9f3c4556-fg90-5ef8-9e06-8d925e6d9bg0",
125
+ "external_url": "https://explore.carrot.eco/credit/e710790f-5909-4a54-ab89-6a59819472ee",
126
126
  "ipfs_uri": "ipfs://bafybeicnuw2ytgukpr5uzmdyt6gdsbkq2xvula4odrqpnbx2ens4qfoywm",
127
127
  "smart_contract_address": "0xfedcba0987654321fedcba0987654321fedcba09"
128
128
  }
129
129
  ],
130
130
  "certificates": [
131
131
  {
132
- "token_id": "456",
132
+ "token_id": "200001",
133
133
  "type": "GasID",
134
134
  "external_id": "d2a7f8e4-9c61-4e35-b8f2-a5c9e7d1b4f6",
135
135
  "external_url": "https://explore.carrot.eco/document/d2a7f8e4-9c61-4e35-b8f2-a5c9e7d1b4f6",
@@ -153,14 +153,14 @@
153
153
  ],
154
154
  "mass_id": {
155
155
  "external_id": "ad44dd3f-f176-4b98-bf78-5ee6e77d0530",
156
- "token_id": "1034",
156
+ "token_id": "100001",
157
157
  "external_url": "https://explore.carrot.eco/document/ad44dd3f-f176-4b98-bf78-5ee6e77d0530",
158
158
  "ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
159
159
  "smart_contract_address": "0x1234567890abcdef1234567890abcdef12345678"
160
160
  }
161
161
  },
162
162
  {
163
- "token_id": "789",
163
+ "token_id": "300001",
164
164
  "type": "RecycledID",
165
165
  "external_id": "f47ac10b-58cc-4372-a567-0e02b2c3d489",
166
166
  "external_url": "https://explore.carrot.eco/document/f47ac10b-58cc-4372-a567-0e02b2c3d489",
@@ -183,7 +183,7 @@
183
183
  }
184
184
  ],
185
185
  "mass_id": {
186
- "token_id": "1034",
186
+ "token_id": "100001",
187
187
  "external_id": "ad44dd3f-f176-4b98-bf78-5ee6e77d0530",
188
188
  "external_url": "https://explore.carrot.eco/document/ad44dd3f-f176-4b98-bf78-5ee6e77d0530",
189
189
  "ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
@@ -214,7 +214,7 @@
214
214
  }
215
215
  ],
216
216
  "mass_id": {
217
- "token_id": "1034",
217
+ "token_id": "100001",
218
218
  "external_id": "ad44dd3f-f176-4b98-bf78-5ee6e77d0530",
219
219
  "external_url": "https://explore.carrot.eco/document/ad44dd3f-f176-4b98-bf78-5ee6e77d0530",
220
220
  "ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
@@ -223,12 +223,12 @@
223
223
  }
224
224
  ],
225
225
  "purchase_receipt": {
226
- "token_id": "987",
226
+ "token_id": "500001",
227
227
  "external_id": "f1a2b3c4-d5e6-4789-9012-34567890abcd",
228
228
  "external_url": "https://explore.carrot.eco/document/f1a2b3c4-d5e6-4789-9012-34567890abcd",
229
229
  "ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
230
230
  "smart_contract_address": "0x742d35cc6634c0532925a3b8d8b5c2d4c7f8e1a9"
231
231
  }
232
232
  },
233
- "audit_data_hash": "cb90836b0d6b31f35871ceeba3883bfa4874d2b5403bc75dea958b1af8c1e0cb"
233
+ "audit_data_hash": "71769d6768ca46ae221604b971dd596864c3d507b53db4493f2f80d1fda4b494"
234
234
  }