Coder Social home page Coder Social logo

ybomb-meta's Introduction

Yearn metadata storage

Validation Deployment Styled With Prettier

What?

This repo contains all the metadata of the yearn ecosystem. Contents of the data directory are synced to IPFS for storage, accessible through our gateway meta.yearn.network. Consistency of the stored data is verified by smalls scripts and schemas.

Adding documents

Any document can be added to the data directory, but there are some special checks to ensure consistency and ease of accessibility:

  • All JSON files that share names with the files in the schema directory must follow the defined schema, otherwise verification will fail.
  • Any folder that begins with 0x is considered as an address. The address must be checksummed, otherwise verification will fail.
  • All files named index.json will be ignored by git and will be overwritten by the indexing process. (see indexing)

Yearn has also a naming standard that is not enforced programmatically but should be followed.

Adding schemas

Schemas can be created in the root of the schema folder. For syntax you can take a look at the JSON schema specs. The AJV library is used to validate the data with the provided schemas.

Syncing with IPFS

After each commit to master, direct or as a result of a merged pull request, a sync to IPFS is triggered. After the upload is complete the meta.yearn.network is updated automatically to point to the latest IPFS cid.

We rely on pinata.cloud for the IPFS hosting, and on cloudflare for the the gateway proxy.

Indexes

Before each deployment the data directory is scanned and an index.json file is generated inside each directory (root included). The file follows the index.json schema and will contain information about the files and folders stored in that directory. For an example see meta.yearn.network/index.json

Helpful links

Contributing

Code style follows prettier conventions (yarn format). Commit messages follow Conventional Commits.

ybomb-meta's People

Contributors

dudesahn avatar nymmrx avatar jstashh avatar darkghost7 avatar milkyklim avatar foxthesin avatar philburrrt avatar xgambitox avatar patcito avatar cryptoaaron avatar fameal avatar

Stargazers

AboveWallStreet avatar

Watchers

Aaron Shames avatar  avatar

Forkers

avax-tomb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.