@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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/ipfs/collection/collection.example.json +3 -3
- package/schemas/ipfs/collection/collection.schema.json +2 -2
- package/schemas/ipfs/credit/credit.example.json +3 -3
- package/schemas/ipfs/credit/credit.schema.json +2 -2
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +4 -4
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +2 -2
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +4 -4
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +2 -2
- package/schemas/ipfs/gas-id/gas-id.example.json +4 -4
- package/schemas/ipfs/gas-id/gas-id.schema.json +2 -2
- package/schemas/ipfs/mass-id/mass-id.example.json +4 -4
- package/schemas/ipfs/mass-id/mass-id.schema.json +2 -2
- package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +3 -3
- package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +2 -2
- package/schemas/ipfs/methodology/methodology.example.json +3 -3
- package/schemas/ipfs/methodology/methodology.schema.json +2 -2
- package/schemas/ipfs/recycled-id/recycled-id.example.json +4 -4
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +2 -2
- package/schemas/schema-hashes.json +10 -10
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.
|
|
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)
|
|
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)
|
|
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`,
|