polymesh_api/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2
3extern crate alloc;
4
5use polymesh_api_codegen_macro::*;
6
7#[cfg_attr(
8  all(not(feature = "download_metadata"), feature = "polymesh_v6"),
9  codegen_api(metadata_file = "specs/polymesh_dev_spec_6002000.meta")
10)]
11#[cfg_attr(
12  all(not(feature = "download_metadata"), feature = "polymesh_v7"),
13  codegen_api(metadata_file = "specs/polymesh_dev_spec_7000005.meta")
14)]
15#[cfg_attr(
16  feature = "download_metadata",
17  codegen_api(metadata_url = "POLYMESH_NODE_URL")
18)]
19mod polymesh {}
20
21pub use polymesh::*;
22
23// re-export core client and common types.
24#[cfg(feature = "rpc")]
25pub use polymesh_api_client as client;
26#[cfg(feature = "rpc")]
27pub use polymesh_api_client::{ChainApi, Client};
28
29#[cfg(feature = "ink")]
30pub use polymesh_api_ink as ink;