@carrot-foundation/schemas 0.1.39 → 0.1.41
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 +589 -524
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +466 -673
- package/dist/index.d.ts +466 -673
- package/dist/index.js +589 -522
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/ipfs/collection/collection.example.json +3 -7
- package/schemas/ipfs/collection/collection.schema.json +17 -130
- package/schemas/ipfs/credit/credit.example.json +3 -7
- package/schemas/ipfs/credit/credit.schema.json +17 -130
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +3 -7
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +144 -243
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +3 -7
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +143 -239
- package/schemas/ipfs/gas-id/gas-id.example.json +4 -9
- package/schemas/ipfs/gas-id/gas-id.schema.json +63 -206
- package/schemas/ipfs/mass-id/mass-id.example.json +88 -188
- package/schemas/ipfs/mass-id/mass-id.schema.json +675 -646
- package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +3 -7
- package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +28 -150
- package/schemas/ipfs/methodology/methodology.example.json +3 -28
- package/schemas/ipfs/methodology/methodology.schema.json +20 -145
- package/schemas/ipfs/recycled-id/recycled-id.example.json +5 -10
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +62 -203
|
@@ -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.41/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json",
|
|
6
|
+
"version": "0.1.41",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
9
|
"$schema": {
|
|
@@ -18,27 +18,12 @@
|
|
|
18
18
|
"properties": {
|
|
19
19
|
"hash": {
|
|
20
20
|
"title": "Schema Hash",
|
|
21
|
-
"description": "
|
|
21
|
+
"description": "SHA-256 hash of the JSON Schema this record was validated against",
|
|
22
22
|
"examples": [
|
|
23
|
-
"
|
|
24
|
-
"0xac08c3cf2e175e55961d6affdb38bc24591b84ceef7f3707c69ae3d52c148b2f"
|
|
23
|
+
"87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
25
24
|
],
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
"title": "Keccak256 Hash",
|
|
29
|
-
"description": "Keccak256 cryptographic hash as hexadecimal string",
|
|
30
|
-
"examples": [
|
|
31
|
-
"ac08c3cf2e175e55961d6affdb38bc24591b84ceef7f3707c69ae3d52c148b2f",
|
|
32
|
-
"b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2"
|
|
33
|
-
],
|
|
34
|
-
"type": "string",
|
|
35
|
-
"pattern": "^[0-9a-fA-F]{64}$"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"type": "string",
|
|
39
|
-
"pattern": "^0x[a-fA-F0-9]{64}$"
|
|
40
|
-
}
|
|
41
|
-
]
|
|
25
|
+
"type": "string",
|
|
26
|
+
"pattern": "^[0-9a-fA-F]{64}$"
|
|
42
27
|
},
|
|
43
28
|
"type": {
|
|
44
29
|
"title": "CreditRetirementReceipt Schema Type",
|
|
@@ -70,19 +55,16 @@
|
|
|
70
55
|
"title": "Created At",
|
|
71
56
|
"description": "ISO 8601 creation timestamp for this record",
|
|
72
57
|
"examples": [
|
|
73
|
-
"2024-12-05T11:02:47.000Z"
|
|
74
|
-
"2025-02-22T10:35:12.000Z"
|
|
58
|
+
"2024-12-05T11:02:47.000Z"
|
|
75
59
|
],
|
|
76
60
|
"type": "string",
|
|
77
|
-
"
|
|
78
|
-
"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))$"
|
|
61
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$"
|
|
79
62
|
},
|
|
80
63
|
"external_id": {
|
|
81
64
|
"title": "External ID",
|
|
82
|
-
"description": "
|
|
65
|
+
"description": "UUID identifier for external system references",
|
|
83
66
|
"examples": [
|
|
84
|
-
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
85
|
-
"b2c4e6f8-a1b3-4c5d-9e8f-123456789abc"
|
|
67
|
+
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
86
68
|
],
|
|
87
69
|
"type": "string",
|
|
88
70
|
"format": "uuid",
|
|
@@ -90,10 +72,10 @@
|
|
|
90
72
|
},
|
|
91
73
|
"external_url": {
|
|
92
74
|
"title": "External URL",
|
|
93
|
-
"description": "
|
|
75
|
+
"description": "URL pointing to external resources",
|
|
94
76
|
"examples": [
|
|
95
|
-
"https://explore.carrot.eco/
|
|
96
|
-
"https://carrot.eco/
|
|
77
|
+
"https://explore.carrot.eco/",
|
|
78
|
+
"https://https://whitepaper.carrot.eco/"
|
|
97
79
|
],
|
|
98
80
|
"type": "string",
|
|
99
81
|
"format": "uri"
|
|
@@ -102,108 +84,14 @@
|
|
|
102
84
|
"title": "Content Hash",
|
|
103
85
|
"description": "SHA-256 hash of RFC 8785 canonicalized JSON after schema validation",
|
|
104
86
|
"examples": [
|
|
105
|
-
"87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
106
|
-
"6e83b8e6373847bbdc056549bedda38dc88854ce41ba4fca11e0fc6ce3e07ef6"
|
|
87
|
+
"87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
107
88
|
],
|
|
108
89
|
"type": "string",
|
|
109
90
|
"pattern": "^[0-9a-fA-F]{64}$"
|
|
110
91
|
},
|
|
111
|
-
"creator": {
|
|
112
|
-
"title": "Creator",
|
|
113
|
-
"description": "Entity that created this record",
|
|
114
|
-
"type": "object",
|
|
115
|
-
"properties": {
|
|
116
|
-
"name": {
|
|
117
|
-
"title": "Creator Name",
|
|
118
|
-
"description": "Company or individual name that created this record",
|
|
119
|
-
"examples": [
|
|
120
|
-
"Carrot Foundation"
|
|
121
|
-
],
|
|
122
|
-
"type": "string"
|
|
123
|
-
},
|
|
124
|
-
"id": {
|
|
125
|
-
"title": "Creator ID",
|
|
126
|
-
"description": "Unique identifier for the creator",
|
|
127
|
-
"examples": [
|
|
128
|
-
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530",
|
|
129
|
-
"6f520d88-864d-432d-bf9f-5c3166c4818f",
|
|
130
|
-
"f77afa89-1c58-40fd-9bf5-8a86703a8af4"
|
|
131
|
-
],
|
|
132
|
-
"type": "string",
|
|
133
|
-
"format": "uuid",
|
|
134
|
-
"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})$"
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"required": [
|
|
138
|
-
"name",
|
|
139
|
-
"id"
|
|
140
|
-
],
|
|
141
|
-
"additionalProperties": false
|
|
142
|
-
},
|
|
143
|
-
"relationships": {
|
|
144
|
-
"title": "Relationships",
|
|
145
|
-
"description": "References to other IPFS records this record relates to",
|
|
146
|
-
"type": "array",
|
|
147
|
-
"items": {
|
|
148
|
-
"title": "Relationship",
|
|
149
|
-
"description": "Relationship to another IPFS record",
|
|
150
|
-
"type": "object",
|
|
151
|
-
"properties": {
|
|
152
|
-
"target_uri": {
|
|
153
|
-
"title": "Target IPFS URI",
|
|
154
|
-
"description": "Target IPFS URI of the referenced record",
|
|
155
|
-
"examples": [
|
|
156
|
-
"ipfs://QmTy8w65yBXgyfG2ZBg5TrfB2hPjrDQH3RCQFJGkARStJb/mass-id-organic.png",
|
|
157
|
-
"ipfs://QmYjtig7VJQ6XsnUjqqJvj7QaMcCAwtrgNdahSiFofrE7o"
|
|
158
|
-
],
|
|
159
|
-
"type": "string",
|
|
160
|
-
"minLength": 1,
|
|
161
|
-
"pattern": "^ipfs:\\/\\/[a-zA-Z0-9]+(\\/.*)?$"
|
|
162
|
-
},
|
|
163
|
-
"type": {
|
|
164
|
-
"title": "Relationship Type",
|
|
165
|
-
"description": "Type of relationship to the referenced record",
|
|
166
|
-
"examples": [
|
|
167
|
-
"mass-id",
|
|
168
|
-
"collection",
|
|
169
|
-
"credit-purchase-receipt"
|
|
170
|
-
],
|
|
171
|
-
"type": "string",
|
|
172
|
-
"enum": [
|
|
173
|
-
"collection",
|
|
174
|
-
"credit",
|
|
175
|
-
"gas-id",
|
|
176
|
-
"mass-id",
|
|
177
|
-
"mass-id-audit",
|
|
178
|
-
"methodology",
|
|
179
|
-
"credit-purchase-receipt",
|
|
180
|
-
"credit-retirement-receipt",
|
|
181
|
-
"recycled-id"
|
|
182
|
-
]
|
|
183
|
-
},
|
|
184
|
-
"description": {
|
|
185
|
-
"title": "Relationship Description",
|
|
186
|
-
"description": "Human-readable description of the relationship",
|
|
187
|
-
"examples": [
|
|
188
|
-
"This record supersedes the previous version",
|
|
189
|
-
"Related carbon credit batch",
|
|
190
|
-
"Source document for this verification",
|
|
191
|
-
"Child record derived from this parent",
|
|
192
|
-
"Updated version of original record"
|
|
193
|
-
],
|
|
194
|
-
"type": "string"
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
"required": [
|
|
198
|
-
"target_uri",
|
|
199
|
-
"type"
|
|
200
|
-
],
|
|
201
|
-
"additionalProperties": false
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
92
|
"environment": {
|
|
205
|
-
"title": "Environment",
|
|
206
|
-
"description": "Environment information",
|
|
93
|
+
"title": "Record Environment",
|
|
94
|
+
"description": "Environment information for the record",
|
|
207
95
|
"type": "object",
|
|
208
96
|
"properties": {
|
|
209
97
|
"blockchain_network": {
|
|
@@ -328,9 +216,7 @@
|
|
|
328
216
|
"title": "Retirement Date",
|
|
329
217
|
"description": "Date when the retirement occurred (YYYY-MM-DD)",
|
|
330
218
|
"examples": [
|
|
331
|
-
"2024-12-05"
|
|
332
|
-
"2025-02-22",
|
|
333
|
-
"2024-02-10"
|
|
219
|
+
"2024-12-05"
|
|
334
220
|
],
|
|
335
221
|
"type": "string",
|
|
336
222
|
"format": "date",
|
|
@@ -356,8 +242,7 @@
|
|
|
356
242
|
"title": "Retirement Beneficiary ID",
|
|
357
243
|
"description": "UUID identifying the beneficiary of the retirement (bytes16 normalized to UUID)",
|
|
358
244
|
"examples": [
|
|
359
|
-
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
360
|
-
"b2c4e6f8-a1b3-4c5d-9e8f-123456789abc"
|
|
245
|
+
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
361
246
|
],
|
|
362
247
|
"type": "string",
|
|
363
248
|
"format": "uuid",
|
|
@@ -383,8 +268,7 @@
|
|
|
383
268
|
"title": "Identity External ID",
|
|
384
269
|
"description": "External identifier for the participant",
|
|
385
270
|
"examples": [
|
|
386
|
-
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
387
|
-
"b2c4e6f8-a1b3-4c5d-9e8f-123456789abc"
|
|
271
|
+
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
388
272
|
],
|
|
389
273
|
"type": "string",
|
|
390
274
|
"format": "uuid",
|
|
@@ -394,8 +278,8 @@
|
|
|
394
278
|
"title": "Identity External URL",
|
|
395
279
|
"description": "External URL for the participant profile",
|
|
396
280
|
"examples": [
|
|
397
|
-
"https://explore.carrot.eco/
|
|
398
|
-
"https://carrot.eco/
|
|
281
|
+
"https://explore.carrot.eco/",
|
|
282
|
+
"https://https://whitepaper.carrot.eco/"
|
|
399
283
|
],
|
|
400
284
|
"type": "string",
|
|
401
285
|
"format": "uri"
|
|
@@ -424,8 +308,7 @@
|
|
|
424
308
|
"title": "Credit Holder Wallet Address",
|
|
425
309
|
"description": "Ethereum address of the credit holder surrendering credits",
|
|
426
310
|
"examples": [
|
|
427
|
-
"0x1234567890abcdef1234567890abcdef12345678"
|
|
428
|
-
"0xabcdef1234567890abcdef1234567890abcdef12"
|
|
311
|
+
"0x1234567890abcdef1234567890abcdef12345678"
|
|
429
312
|
],
|
|
430
313
|
"type": "string",
|
|
431
314
|
"pattern": "^0x[a-f0-9]{40}$"
|
|
@@ -450,8 +333,7 @@
|
|
|
450
333
|
"title": "Identity External ID",
|
|
451
334
|
"description": "External identifier for the participant",
|
|
452
335
|
"examples": [
|
|
453
|
-
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
454
|
-
"b2c4e6f8-a1b3-4c5d-9e8f-123456789abc"
|
|
336
|
+
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
455
337
|
],
|
|
456
338
|
"type": "string",
|
|
457
339
|
"format": "uuid",
|
|
@@ -461,8 +343,8 @@
|
|
|
461
343
|
"title": "Identity External URL",
|
|
462
344
|
"description": "External URL for the participant profile",
|
|
463
345
|
"examples": [
|
|
464
|
-
"https://explore.carrot.eco/
|
|
465
|
-
"https://carrot.eco/
|
|
346
|
+
"https://explore.carrot.eco/",
|
|
347
|
+
"https://https://whitepaper.carrot.eco/"
|
|
466
348
|
],
|
|
467
349
|
"type": "string",
|
|
468
350
|
"format": "uri"
|
|
@@ -507,8 +389,7 @@
|
|
|
507
389
|
"title": "Collection External ID",
|
|
508
390
|
"description": "External identifier for the collection",
|
|
509
391
|
"examples": [
|
|
510
|
-
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
511
|
-
"b2c4e6f8-a1b3-4c5d-9e8f-123456789abc"
|
|
392
|
+
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
512
393
|
],
|
|
513
394
|
"type": "string",
|
|
514
395
|
"format": "uuid",
|
|
@@ -529,8 +410,8 @@
|
|
|
529
410
|
"title": "Collection External URL",
|
|
530
411
|
"description": "External URL for the collection",
|
|
531
412
|
"examples": [
|
|
532
|
-
"https://explore.carrot.eco/
|
|
533
|
-
"https://carrot.eco/
|
|
413
|
+
"https://explore.carrot.eco/",
|
|
414
|
+
"https://https://whitepaper.carrot.eco/"
|
|
534
415
|
],
|
|
535
416
|
"type": "string",
|
|
536
417
|
"format": "uri"
|
|
@@ -610,8 +491,7 @@
|
|
|
610
491
|
"title": "Credit External ID",
|
|
611
492
|
"description": "External identifier for the credit",
|
|
612
493
|
"examples": [
|
|
613
|
-
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
614
|
-
"b2c4e6f8-a1b3-4c5d-9e8f-123456789abc"
|
|
494
|
+
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
615
495
|
],
|
|
616
496
|
"type": "string",
|
|
617
497
|
"format": "uuid",
|
|
@@ -621,8 +501,8 @@
|
|
|
621
501
|
"title": "Credit External URL",
|
|
622
502
|
"description": "External URL for the credit",
|
|
623
503
|
"examples": [
|
|
624
|
-
"https://explore.carrot.eco/
|
|
625
|
-
"https://carrot.eco/
|
|
504
|
+
"https://explore.carrot.eco/",
|
|
505
|
+
"https://https://whitepaper.carrot.eco/"
|
|
626
506
|
],
|
|
627
507
|
"type": "string",
|
|
628
508
|
"format": "uri"
|
|
@@ -647,35 +527,41 @@
|
|
|
647
527
|
"title": "Smart Contract Address",
|
|
648
528
|
"description": "Address of the smart contract",
|
|
649
529
|
"examples": [
|
|
650
|
-
"0x1234567890abcdef1234567890abcdef12345678"
|
|
651
|
-
"0xabcdef1234567890abcdef1234567890abcdef12"
|
|
530
|
+
"0x1234567890abcdef1234567890abcdef12345678"
|
|
652
531
|
],
|
|
653
532
|
"type": "string",
|
|
654
533
|
"pattern": "^0x[a-f0-9]{40}$"
|
|
655
534
|
},
|
|
656
535
|
"chain_id": {
|
|
657
536
|
"title": "Chain ID",
|
|
658
|
-
"description": "
|
|
537
|
+
"description": "Supported Polygon chain identifiers",
|
|
659
538
|
"examples": [
|
|
660
|
-
1,
|
|
661
539
|
137,
|
|
662
|
-
|
|
540
|
+
80002
|
|
663
541
|
],
|
|
664
|
-
"
|
|
665
|
-
|
|
666
|
-
|
|
542
|
+
"anyOf": [
|
|
543
|
+
{
|
|
544
|
+
"type": "number",
|
|
545
|
+
"const": 137
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"type": "number",
|
|
549
|
+
"const": 80002
|
|
550
|
+
}
|
|
551
|
+
]
|
|
667
552
|
},
|
|
668
553
|
"network_name": {
|
|
669
554
|
"title": "Blockchain Network Name",
|
|
670
|
-
"description": "
|
|
555
|
+
"description": "Supported Polygon network names",
|
|
671
556
|
"examples": [
|
|
672
557
|
"Polygon",
|
|
673
|
-
"
|
|
674
|
-
"Sepolia"
|
|
558
|
+
"Amoy"
|
|
675
559
|
],
|
|
676
560
|
"type": "string",
|
|
677
|
-
"
|
|
678
|
-
|
|
561
|
+
"enum": [
|
|
562
|
+
"Polygon",
|
|
563
|
+
"Amoy"
|
|
564
|
+
]
|
|
679
565
|
}
|
|
680
566
|
},
|
|
681
567
|
"required": [
|
|
@@ -723,7 +609,6 @@
|
|
|
723
609
|
"title": "Certificate Token ID",
|
|
724
610
|
"description": "Token ID of the certificate",
|
|
725
611
|
"examples": [
|
|
726
|
-
"123",
|
|
727
612
|
"456789",
|
|
728
613
|
"1000000"
|
|
729
614
|
],
|
|
@@ -744,8 +629,7 @@
|
|
|
744
629
|
"title": "Certificate External ID",
|
|
745
630
|
"description": "External identifier for the certificate",
|
|
746
631
|
"examples": [
|
|
747
|
-
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
748
|
-
"b2c4e6f8-a1b3-4c5d-9e8f-123456789abc"
|
|
632
|
+
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
749
633
|
],
|
|
750
634
|
"type": "string",
|
|
751
635
|
"format": "uuid",
|
|
@@ -755,8 +639,8 @@
|
|
|
755
639
|
"title": "Certificate External URL",
|
|
756
640
|
"description": "External URL for the certificate",
|
|
757
641
|
"examples": [
|
|
758
|
-
"https://explore.carrot.eco/
|
|
759
|
-
"https://carrot.eco/
|
|
642
|
+
"https://explore.carrot.eco/",
|
|
643
|
+
"https://https://whitepaper.carrot.eco/"
|
|
760
644
|
],
|
|
761
645
|
"type": "string",
|
|
762
646
|
"format": "uri"
|
|
@@ -781,35 +665,41 @@
|
|
|
781
665
|
"title": "Smart Contract Address",
|
|
782
666
|
"description": "Address of the smart contract",
|
|
783
667
|
"examples": [
|
|
784
|
-
"0x1234567890abcdef1234567890abcdef12345678"
|
|
785
|
-
"0xabcdef1234567890abcdef1234567890abcdef12"
|
|
668
|
+
"0x1234567890abcdef1234567890abcdef12345678"
|
|
786
669
|
],
|
|
787
670
|
"type": "string",
|
|
788
671
|
"pattern": "^0x[a-f0-9]{40}$"
|
|
789
672
|
},
|
|
790
673
|
"chain_id": {
|
|
791
674
|
"title": "Chain ID",
|
|
792
|
-
"description": "
|
|
675
|
+
"description": "Supported Polygon chain identifiers",
|
|
793
676
|
"examples": [
|
|
794
|
-
1,
|
|
795
677
|
137,
|
|
796
|
-
|
|
678
|
+
80002
|
|
797
679
|
],
|
|
798
|
-
"
|
|
799
|
-
|
|
800
|
-
|
|
680
|
+
"anyOf": [
|
|
681
|
+
{
|
|
682
|
+
"type": "number",
|
|
683
|
+
"const": 137
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"type": "number",
|
|
687
|
+
"const": 80002
|
|
688
|
+
}
|
|
689
|
+
]
|
|
801
690
|
},
|
|
802
691
|
"network_name": {
|
|
803
692
|
"title": "Blockchain Network Name",
|
|
804
|
-
"description": "
|
|
693
|
+
"description": "Supported Polygon network names",
|
|
805
694
|
"examples": [
|
|
806
695
|
"Polygon",
|
|
807
|
-
"
|
|
808
|
-
"Sepolia"
|
|
696
|
+
"Amoy"
|
|
809
697
|
],
|
|
810
698
|
"type": "string",
|
|
811
|
-
"
|
|
812
|
-
|
|
699
|
+
"enum": [
|
|
700
|
+
"Polygon",
|
|
701
|
+
"Amoy"
|
|
702
|
+
]
|
|
813
703
|
}
|
|
814
704
|
},
|
|
815
705
|
"required": [
|
|
@@ -851,8 +741,7 @@
|
|
|
851
741
|
"title": "MassID External ID",
|
|
852
742
|
"description": "Unique identifier for the MassID",
|
|
853
743
|
"examples": [
|
|
854
|
-
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
855
|
-
"b2c4e6f8-a1b3-4c5d-9e8f-123456789abc"
|
|
744
|
+
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
856
745
|
],
|
|
857
746
|
"type": "string",
|
|
858
747
|
"format": "uuid",
|
|
@@ -862,7 +751,6 @@
|
|
|
862
751
|
"title": "MassID Token ID",
|
|
863
752
|
"description": "NFT token ID of the MassID",
|
|
864
753
|
"examples": [
|
|
865
|
-
"123",
|
|
866
754
|
"456789",
|
|
867
755
|
"1000000"
|
|
868
756
|
],
|
|
@@ -874,8 +762,8 @@
|
|
|
874
762
|
"title": "MassID External URL",
|
|
875
763
|
"description": "URL to view the MassID on Carrot Explorer",
|
|
876
764
|
"examples": [
|
|
877
|
-
"https://explore.carrot.eco/
|
|
878
|
-
"https://carrot.eco/
|
|
765
|
+
"https://explore.carrot.eco/",
|
|
766
|
+
"https://https://whitepaper.carrot.eco/"
|
|
879
767
|
],
|
|
880
768
|
"type": "string",
|
|
881
769
|
"format": "uri"
|
|
@@ -900,35 +788,41 @@
|
|
|
900
788
|
"title": "Smart Contract Address",
|
|
901
789
|
"description": "Address of the smart contract",
|
|
902
790
|
"examples": [
|
|
903
|
-
"0x1234567890abcdef1234567890abcdef12345678"
|
|
904
|
-
"0xabcdef1234567890abcdef1234567890abcdef12"
|
|
791
|
+
"0x1234567890abcdef1234567890abcdef12345678"
|
|
905
792
|
],
|
|
906
793
|
"type": "string",
|
|
907
794
|
"pattern": "^0x[a-f0-9]{40}$"
|
|
908
795
|
},
|
|
909
796
|
"chain_id": {
|
|
910
797
|
"title": "Chain ID",
|
|
911
|
-
"description": "
|
|
798
|
+
"description": "Supported Polygon chain identifiers",
|
|
912
799
|
"examples": [
|
|
913
|
-
1,
|
|
914
800
|
137,
|
|
915
|
-
|
|
801
|
+
80002
|
|
916
802
|
],
|
|
917
|
-
"
|
|
918
|
-
|
|
919
|
-
|
|
803
|
+
"anyOf": [
|
|
804
|
+
{
|
|
805
|
+
"type": "number",
|
|
806
|
+
"const": 137
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"type": "number",
|
|
810
|
+
"const": 80002
|
|
811
|
+
}
|
|
812
|
+
]
|
|
920
813
|
},
|
|
921
814
|
"network_name": {
|
|
922
815
|
"title": "Blockchain Network Name",
|
|
923
|
-
"description": "
|
|
816
|
+
"description": "Supported Polygon network names",
|
|
924
817
|
"examples": [
|
|
925
818
|
"Polygon",
|
|
926
|
-
"
|
|
927
|
-
"Sepolia"
|
|
819
|
+
"Amoy"
|
|
928
820
|
],
|
|
929
821
|
"type": "string",
|
|
930
|
-
"
|
|
931
|
-
|
|
822
|
+
"enum": [
|
|
823
|
+
"Polygon",
|
|
824
|
+
"Amoy"
|
|
825
|
+
]
|
|
932
826
|
}
|
|
933
827
|
},
|
|
934
828
|
"required": [
|
|
@@ -1008,8 +902,7 @@
|
|
|
1008
902
|
"title": "Retired Credit External ID",
|
|
1009
903
|
"description": "External identifier for the retired credit entry",
|
|
1010
904
|
"examples": [
|
|
1011
|
-
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
1012
|
-
"b2c4e6f8-a1b3-4c5d-9e8f-123456789abc"
|
|
905
|
+
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
1013
906
|
],
|
|
1014
907
|
"type": "string",
|
|
1015
908
|
"format": "uuid",
|
|
@@ -1019,8 +912,8 @@
|
|
|
1019
912
|
"title": "Retired Credit External URL",
|
|
1020
913
|
"description": "External URL for the retired credit entry",
|
|
1021
914
|
"examples": [
|
|
1022
|
-
"https://explore.carrot.eco/
|
|
1023
|
-
"https://carrot.eco/
|
|
915
|
+
"https://explore.carrot.eco/",
|
|
916
|
+
"https://https://whitepaper.carrot.eco/"
|
|
1024
917
|
],
|
|
1025
918
|
"type": "string",
|
|
1026
919
|
"format": "uri"
|
|
@@ -1062,7 +955,6 @@
|
|
|
1062
955
|
"title": "Purchase Receipt Token ID",
|
|
1063
956
|
"description": "Token ID of the credit purchase receipt",
|
|
1064
957
|
"examples": [
|
|
1065
|
-
"123",
|
|
1066
958
|
"456789",
|
|
1067
959
|
"1000000"
|
|
1068
960
|
],
|
|
@@ -1074,8 +966,7 @@
|
|
|
1074
966
|
"title": "Purchase Receipt External ID",
|
|
1075
967
|
"description": "External identifier for the purchase receipt",
|
|
1076
968
|
"examples": [
|
|
1077
|
-
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
1078
|
-
"b2c4e6f8-a1b3-4c5d-9e8f-123456789abc"
|
|
969
|
+
"ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
|
|
1079
970
|
],
|
|
1080
971
|
"type": "string",
|
|
1081
972
|
"format": "uuid",
|
|
@@ -1085,8 +976,8 @@
|
|
|
1085
976
|
"title": "Purchase Receipt External URL",
|
|
1086
977
|
"description": "External URL for the purchase receipt",
|
|
1087
978
|
"examples": [
|
|
1088
|
-
"https://explore.carrot.eco/
|
|
1089
|
-
"https://carrot.eco/
|
|
979
|
+
"https://explore.carrot.eco/",
|
|
980
|
+
"https://https://whitepaper.carrot.eco/"
|
|
1090
981
|
],
|
|
1091
982
|
"type": "string",
|
|
1092
983
|
"format": "uri"
|
|
@@ -1111,35 +1002,41 @@
|
|
|
1111
1002
|
"title": "Smart Contract Address",
|
|
1112
1003
|
"description": "Address of the smart contract",
|
|
1113
1004
|
"examples": [
|
|
1114
|
-
"0x1234567890abcdef1234567890abcdef12345678"
|
|
1115
|
-
"0xabcdef1234567890abcdef1234567890abcdef12"
|
|
1005
|
+
"0x1234567890abcdef1234567890abcdef12345678"
|
|
1116
1006
|
],
|
|
1117
1007
|
"type": "string",
|
|
1118
1008
|
"pattern": "^0x[a-f0-9]{40}$"
|
|
1119
1009
|
},
|
|
1120
1010
|
"chain_id": {
|
|
1121
1011
|
"title": "Chain ID",
|
|
1122
|
-
"description": "
|
|
1012
|
+
"description": "Supported Polygon chain identifiers",
|
|
1123
1013
|
"examples": [
|
|
1124
|
-
1,
|
|
1125
1014
|
137,
|
|
1126
|
-
|
|
1015
|
+
80002
|
|
1127
1016
|
],
|
|
1128
|
-
"
|
|
1129
|
-
|
|
1130
|
-
|
|
1017
|
+
"anyOf": [
|
|
1018
|
+
{
|
|
1019
|
+
"type": "number",
|
|
1020
|
+
"const": 137
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"type": "number",
|
|
1024
|
+
"const": 80002
|
|
1025
|
+
}
|
|
1026
|
+
]
|
|
1131
1027
|
},
|
|
1132
1028
|
"network_name": {
|
|
1133
1029
|
"title": "Blockchain Network Name",
|
|
1134
|
-
"description": "
|
|
1030
|
+
"description": "Supported Polygon network names",
|
|
1135
1031
|
"examples": [
|
|
1136
1032
|
"Polygon",
|
|
1137
|
-
"
|
|
1138
|
-
"Sepolia"
|
|
1033
|
+
"Amoy"
|
|
1139
1034
|
],
|
|
1140
1035
|
"type": "string",
|
|
1141
|
-
"
|
|
1142
|
-
|
|
1036
|
+
"enum": [
|
|
1037
|
+
"Polygon",
|
|
1038
|
+
"Amoy"
|
|
1039
|
+
]
|
|
1143
1040
|
}
|
|
1144
1041
|
},
|
|
1145
1042
|
"required": [
|
|
@@ -1179,8 +1076,7 @@
|
|
|
1179
1076
|
"title": "Smart Contract Address",
|
|
1180
1077
|
"description": "A valid Ethereum address in hexadecimal format",
|
|
1181
1078
|
"examples": [
|
|
1182
|
-
"0x1234567890abcdef1234567890abcdef12345678"
|
|
1183
|
-
"0xabcdef1234567890abcdef1234567890abcdef12"
|
|
1079
|
+
"0x1234567890abcdef1234567890abcdef12345678"
|
|
1184
1080
|
],
|
|
1185
1081
|
"type": "string",
|
|
1186
1082
|
"pattern": "^0x[a-f0-9]{40}$"
|
|
@@ -1189,26 +1085,37 @@
|
|
|
1189
1085
|
"title": "Chain ID",
|
|
1190
1086
|
"description": "Blockchain chain ID",
|
|
1191
1087
|
"examples": [
|
|
1192
|
-
1,
|
|
1193
1088
|
137,
|
|
1194
|
-
|
|
1089
|
+
80002
|
|
1195
1090
|
],
|
|
1196
|
-
"
|
|
1197
|
-
|
|
1198
|
-
|
|
1091
|
+
"anyOf": [
|
|
1092
|
+
{
|
|
1093
|
+
"type": "number",
|
|
1094
|
+
"const": 137
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
"type": "number",
|
|
1098
|
+
"const": 80002
|
|
1099
|
+
}
|
|
1100
|
+
]
|
|
1199
1101
|
},
|
|
1200
1102
|
"network_name": {
|
|
1201
|
-
"title": "Network Name",
|
|
1202
|
-
"description": "
|
|
1103
|
+
"title": "Blockchain Network Name",
|
|
1104
|
+
"description": "Supported Polygon network names",
|
|
1105
|
+
"examples": [
|
|
1106
|
+
"Polygon",
|
|
1107
|
+
"Amoy"
|
|
1108
|
+
],
|
|
1203
1109
|
"type": "string",
|
|
1204
|
-
"
|
|
1205
|
-
|
|
1110
|
+
"enum": [
|
|
1111
|
+
"Polygon",
|
|
1112
|
+
"Amoy"
|
|
1113
|
+
]
|
|
1206
1114
|
},
|
|
1207
1115
|
"token_id": {
|
|
1208
1116
|
"title": "Token ID",
|
|
1209
1117
|
"description": "NFT token ID",
|
|
1210
1118
|
"examples": [
|
|
1211
|
-
"123",
|
|
1212
1119
|
"456789",
|
|
1213
1120
|
"1000000"
|
|
1214
1121
|
],
|
|
@@ -1276,8 +1183,7 @@
|
|
|
1276
1183
|
"description": "Hex color code for marketplace background display",
|
|
1277
1184
|
"examples": [
|
|
1278
1185
|
"#2D5A27",
|
|
1279
|
-
"#FF5733"
|
|
1280
|
-
"#1E90FF"
|
|
1186
|
+
"#FF5733"
|
|
1281
1187
|
],
|
|
1282
1188
|
"type": "string",
|
|
1283
1189
|
"minLength": 1,
|
|
@@ -1556,9 +1462,7 @@
|
|
|
1556
1462
|
"title": "Retirement Date",
|
|
1557
1463
|
"description": "Unix timestamp in milliseconds when the retirement was completed",
|
|
1558
1464
|
"examples": [
|
|
1559
|
-
1704067200000
|
|
1560
|
-
1735689600000,
|
|
1561
|
-
1762371245149
|
|
1465
|
+
1704067200000
|
|
1562
1466
|
],
|
|
1563
1467
|
"type": "integer",
|
|
1564
1468
|
"exclusiveMinimum": 0,
|