polymesh-api 0.3.8

Polymesh Rust API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
# Updating Polymesh metadata

1. Download the newest raw metadata (Can use the `dev` chain metadata for all chains):
    * The example `download_metadata` from the `crates/polymesh-api-client/examples/` folder can be used to download the metadata.
		    - `cd crates/polymesh-api-client/`
				-	`cargo run --example download_metadata -- ws://localhost:9944/` # run against a local dev-chain node.
				-	That will download the latest runtime metadata from the local node as file `polymesh_dev_spec_5002000.meta`.
2. Add the metadata file as `specs/polymesh_<chain name>_spec_<spec version>.meta`
3. Update the metadata file path in `src/lib.rs`.
4. Bump version of `polymesh-api` in `Cargo.toml`.
5. Run `cargo build` to confirm that it compiles.  (This also updates `Cargo.lock`)
6. Commit changed/added files.
7. Publish: `cargo publish`