@traittech/traits-validator-2
v0.1.1
Published
Lightweight helper over the Trevo Traits Registry.
Readme
@trevo-finance/traits-validator
Lightweight helper over the Trevo Traits Registry.
What it does
- bundles
traits/JSON Schemas into a singleregistry.json; - exposes
validateMetadata(payload)andvalidateTraits(payload, registry?, traitsToValidate?); - ships both ESM and CJS builds so it can run in Token Studio, Trevo Wallet or backend tooling.
Development
yarn install
yarn buildyarn build will re-generate schemes/registry.json + schemes/metadata_schema.json before compiling TypeScript.
