Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@meemproject/metadata
Advanced tools
Metadata types and validator.
This package contains types for all supported Meem metadata schemas. Import the metadata type as shown below to ensure metadata will pass validation when parsed by the Meem API.
See the types
folder for currently supported metadata types.
import { MeemAgreement_Contract_20221116 } from '@meemproject/metadata'
const metadata: MeemAgreement_Contract_20221116 = {
meem_metadata_version: "MeemAgreement_Contract_20221116",
meem_metadata_type: "MeemAgreement",
name: "Strongly typed Agreement!",
description: "Now with tokens!",
external_url: "",
image: ""
}
The parser can take a metadata object or JSON string and parse/validate it against supported metadata versions.
const parser = new Parser()
try {
const parsedMetadata = parser.parse(
metadata as unknown as MeemMetadataLike
)
const { name, type, calVer, metadata } = parsedMetadata
console.log(name, type, calVer, metadata)
} catch (e) {
console.log(e)
}
Here's an example of how to validate metadata for a MeemAgreement contract
const metadata = {
meem_metadata_version: "20221116",
meem_metadata_type: "MeemAgreement_Contract",
name: "Strongly typed Agreement!",
description: "Now with tokens!",
external_url: "",
image: ""
}
const validator = new Validator(metadata)
const result = validator.validate(metadata)
const isValid = result.valid
FAQs
Meem metadata types and validator.
We found that @meemproject/metadata demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.