@carrot-foundation/schemas 3.1.0 → 3.1.1

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
@@ -29522,7 +29522,7 @@ function buildSchemaUrl(schemaPath) {
29522
29522
  return `${getSchemaBaseUrl()}/${cleanPath}`;
29523
29523
  }
29524
29524
  function getSchemaVersionOrDefault() {
29525
- return "3.1.0";
29525
+ return "3.1.1";
29526
29526
  }
29527
29527
 
29528
29528
  // src/shared/schema-validation.ts
@@ -31441,7 +31441,7 @@ var CreditPurchaseReceiptIpfsSchema = NftIpfsSchema.safeExtend({
31441
31441
  message: `Attribute for credit symbol ${credit.symbol} is required`,
31442
31442
  path: ["attributes"]
31443
31443
  });
31444
- } else if (Number(attribute.value) !== expectedTotal) {
31444
+ } else if (!nearlyEqual(Number(attribute.value), expectedTotal)) {
31445
31445
  ctx.addIssue({
31446
31446
  code: "custom",
31447
31447
  message: `Attribute for credit symbol ${credit.symbol} must match sum of certificates[].purchased_amount for the credit symbol`,
@@ -31934,7 +31934,7 @@ var CreditRetirementReceiptIpfsSchema = NftIpfsSchema.safeExtend({
31934
31934
  message: `Attribute for credit symbol ${credit.symbol} is required`,
31935
31935
  path: ["attributes"]
31936
31936
  });
31937
- } else if (Number(attribute.value) !== expectedTotal) {
31937
+ } else if (!nearlyEqual(Number(attribute.value), expectedTotal)) {
31938
31938
  ctx.addIssue({
31939
31939
  code: "custom",
31940
31940
  message: `Attribute for credit symbol ${credit.symbol} must match sum of certificate credits_retired amounts for the credit symbol`,