Skip to main content

Crate eros_nft

Crate eros_nft 

Source
Expand description

eros-nft: reference implementation of the eros-nft v1 spec.

See https://github.com/etherfunlab/eros-nft for the spec and samples.

§Quick start

use eros_nft::{PersonaManifest, load_sample};

let (_draft, manifest) = load_sample("yuki-warm-senpai").unwrap();
// manifest.validate().unwrap(); // validate() added in Phase 6

Re-exports§

pub use error::ValidationError;
pub use sample::list_samples;
pub use sample::load_sample;
pub use schema::json_schema_draft;
pub use schema::json_schema_manifest;
pub use types::*;

Modules§

error
Error types for parsing and validation.
sample
Embedded sample loader. Each sample lives at samples/persona-<slug>/{draft.json,manifest.json,README.md} in the repo.
schema
Embedded JSON Schema 2020-12 documents for PersonaDraft and PersonaManifest.
types
Wire types for PersonaDraft and PersonaManifest.
validate
JSON Schema 2020-12 validators backed by the embedded spec schemas.