@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.cjs
CHANGED
|
@@ -29522,7 +29522,7 @@ function buildSchemaUrl(schemaPath) {
|
|
|
29522
29522
|
return `${getSchemaBaseUrl()}/${cleanPath}`;
|
|
29523
29523
|
}
|
|
29524
29524
|
function getSchemaVersionOrDefault() {
|
|
29525
|
-
return "3.1.
|
|
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)
|
|
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)
|
|
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`,
|