@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 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?.blockchain_network;
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.48";
29295
+ return "0.1.49";
29297
29296
  }
29298
29297
 
29299
29298
  // src/shared/schema-validation.ts