1#![cfg_attr(not(feature = "std"), no_std)]
2
3mod errors;
4mod traits;
5mod macros;
6
7pub mod types;
8pub mod utils;
9pub mod hashes;
10
11pub use errors::*;
12pub use types::Empty;
13pub use types::binary::*;
14pub use types::uints::Uint64;
15pub use types::expiration::Expiration;
16pub type CredentialId = String;
17
18
19#[cfg(feature = "native")]
20pub mod crypto {pub use cosmwasm_crypto::*;}
21#[cfg(feature = "wasm")]
22pub mod wasm;
23
24#[cfg(any(feature = "std", not(feature = "substrate")))]
25pub use {core::str::FromStr, std::{string::{ToString, String}, vec, vec::Vec, format}};
26#[cfg(all(not(feature = "std"), feature = "substrate"))]
27pub use ink::prelude::{string::{String, ToString, FromStr}, vec, vec::Vec, format};
28
29pub use traits::Verifiable;
30
31#[cfg(feature = "substrate")]
32pub mod substrate {
33 pub use ink::env as ink_env;
34 pub use {ink_env::Environment as InkEnvironment, ink::EnvAccess as InkApi};
35 pub mod default {
36 use ink::env as ink_env;
37 pub use ink_env::DefaultEnvironment;
38 pub type AccountId = <DefaultEnvironment as ink_env::Environment>::AccountId;
39 pub type EnvAccess<'a> = ink::EnvAccess<'a, DefaultEnvironment>;
40 }
41}