New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@frequency-chain/schemas

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frequency-chain/schemas

A static package which allows getting schemas locally

  • 1.15.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
Maintainers
0
Weekly downloads
 
Created
Source

Static Schemas package

Contributors Forks Stargazers Issues MIT License NPM @latest NPM @next

Static schemas

A convenient way to get schema details locally with TypeScript.

Getting Started

  • npm install @frequency-chain/schemas (static schemas library)

Usage

After importing, any of the following Maps can be used to fetch desired schema information.

  • ID_TO_SCHEMA_FULL_NAME is a Map that returns full names from schema ids (example dsnp.tombstone@v1)
  • FULL_NAME_TO_ID is a Map that returns schema id from full name
  • ID_TO_SCHEMA_INFO is a Map that return SchemaInfo from schema id

Here is an example of a schema info object

  {
    id: 7,
    namespace: 'dsnp',
    name: 'public-key-key-agreement',
    version: 1,
    deprecated: false,
    modelType: 'AvroBinary',
    payloadLocation: 'Itemized',
    appendOnly: true,
    signatureRequired: true,
  },

Upgrades and Matching Versions

Assuming you are using no deprecated methods, any release version of @frequency-chain/schemas should work against a release version of a Frequency node. If you are working against a development node it is suggested that you match the package version against the commit hash using v0.0.0-[First 6 of the commit hash].

Changelog is maintained in the releases for Frequency.

Contributing

See CONTRIBUTING.md for more information.

License

Distributed under the Apache 2.0 License. See LICENSE for more information.

FAQs

Package last updated on 07 Jan 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc