@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.js CHANGED
@@ -29516,7 +29516,7 @@ function buildSchemaUrl(schemaPath) {
29516
29516
  return `${getSchemaBaseUrl()}/${cleanPath}`;
29517
29517
  }
29518
29518
  function getSchemaVersionOrDefault() {
29519
- return "3.1.0";
29519
+ return "3.1.1";
29520
29520
  }
29521
29521
 
29522
29522
  // src/shared/schema-validation.ts
@@ -31435,7 +31435,7 @@ var CreditPurchaseReceiptIpfsSchema = NftIpfsSchema.safeExtend({
31435
31435
  message: `Attribute for credit symbol ${credit.symbol} is required`,
31436
31436
  path: ["attributes"]
31437
31437
  });
31438
- } else if (Number(attribute.value) !== expectedTotal) {
31438
+ } else if (!nearlyEqual(Number(attribute.value), expectedTotal)) {
31439
31439
  ctx.addIssue({
31440
31440
  code: "custom",
31441
31441
  message: `Attribute for credit symbol ${credit.symbol} must match sum of certificates[].purchased_amount for the credit symbol`,
@@ -31928,7 +31928,7 @@ var CreditRetirementReceiptIpfsSchema = NftIpfsSchema.safeExtend({
31928
31928
  message: `Attribute for credit symbol ${credit.symbol} is required`,
31929
31929
  path: ["attributes"]
31930
31930
  });
31931
- } else if (Number(attribute.value) !== expectedTotal) {
31931
+ } else if (!nearlyEqual(Number(attribute.value), expectedTotal)) {
31932
31932
  ctx.addIssue({
31933
31933
  code: "custom",
31934
31934
  message: `Attribute for credit symbol ${credit.symbol} must match sum of certificate credits_retired amounts for the credit symbol`,