@carrot-foundation/schemas 0.1.48 → 0.1.49
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 +4 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -36
- package/dist/index.d.ts +36 -36
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/ipfs/collection/collection.example.json +5 -5
- package/schemas/ipfs/collection/collection.schema.json +2 -2
- package/schemas/ipfs/credit/credit.example.json +5 -5
- package/schemas/ipfs/credit/credit.schema.json +2 -2
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +9 -5
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +4 -2
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +8 -4
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +4 -2
- package/schemas/ipfs/gas-id/gas-id.example.json +9 -5
- package/schemas/ipfs/gas-id/gas-id.schema.json +4 -2
- package/schemas/ipfs/mass-id/mass-id.example.json +5 -5
- package/schemas/ipfs/mass-id/mass-id.schema.json +4 -2
- package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +173 -173
- package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +2 -2
- package/schemas/ipfs/methodology/methodology.example.json +89 -89
- package/schemas/ipfs/methodology/methodology.schema.json +2 -2
- package/schemas/ipfs/recycled-id/recycled-id.example.json +9 -5
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +4 -2
- package/schemas/schema-hashes.json +10 -10
package/dist/index.cjs
CHANGED
|
@@ -28522,6 +28522,8 @@ var NftIpfsSchema = BaseIpfsSchema.safeExtend({
|
|
|
28522
28522
|
description: "Type/category of this NFT schema"
|
|
28523
28523
|
})
|
|
28524
28524
|
}),
|
|
28525
|
+
viewer_reference: ViewerReferenceSchema,
|
|
28526
|
+
environment: RecordEnvironmentSchema,
|
|
28525
28527
|
blockchain: BlockchainReferenceSchema,
|
|
28526
28528
|
name: NonEmptyStringSchema.max(100).meta({
|
|
28527
28529
|
title: "NFT Name",
|
|
@@ -28578,10 +28580,7 @@ var NftIpfsSchema = BaseIpfsSchema.safeExtend({
|
|
|
28578
28580
|
description: "List of visual traits and filterable attributes compatible with NFT marketplaces"
|
|
28579
28581
|
})
|
|
28580
28582
|
}).superRefine((value, ctx) => {
|
|
28581
|
-
const environmentNetwork = value.environment
|
|
28582
|
-
if (!environmentNetwork) {
|
|
28583
|
-
return;
|
|
28584
|
-
}
|
|
28583
|
+
const environmentNetwork = value.environment.blockchain_network;
|
|
28585
28584
|
const config = BLOCKCHAIN_NETWORK_CONFIG[environmentNetwork];
|
|
28586
28585
|
if (value.blockchain.chain_id !== config.chain_id) {
|
|
28587
28586
|
ctx.addIssue({
|
|
@@ -29293,7 +29292,7 @@ function buildSchemaUrl(schemaPath) {
|
|
|
29293
29292
|
return `${getSchemaBaseUrl()}/${cleanPath}`;
|
|
29294
29293
|
}
|
|
29295
29294
|
function getSchemaVersionOrDefault() {
|
|
29296
|
-
return "0.1.
|
|
29295
|
+
return "0.1.49";
|
|
29297
29296
|
}
|
|
29298
29297
|
|
|
29299
29298
|
// src/shared/schema-validation.ts
|