saa_common/
types.rs

1pub mod msgs;
2pub mod errors;
3
4// Apache license in both but giving the credits to the original authors
5// Copied to derive custom traits. Most of the features removed except for +/- operations
6
7// Copied from `cw_utils`  [here](https://github.com/CosmWasm/cw-minus)
8pub mod exp;
9
10// Copied from cosmwasm_std [here](https://github.com/CosmWasm/cosmwasm/tree/main/packages/std)
11#[cfg(not(feature = "wasm"))]
12mod ts;
13#[cfg(not(feature = "wasm"))]
14mod bin;
15#[cfg(not(feature = "wasm"))]
16mod uint;
17
18
19
20pub mod binary {
21    #[cfg(not(feature = "wasm"))]
22    pub use super::bin::{Binary, to_json_binary, from_json, to_json_string};
23    #[cfg(feature = "wasm")]
24    pub use crate::wasm::{Binary, to_json_binary, from_json, to_json_string};
25}
26
27pub mod uints {
28    #[cfg(not(feature = "wasm"))]
29    pub use super::uint::{Uint128, Uint64};
30    #[cfg(feature = "wasm")]
31    pub use crate::wasm::{Uint128, Uint64};
32}
33
34pub mod timestamp {
35    #[cfg(not(feature = "wasm"))]
36    pub use super::ts::Timestamp;
37    #[cfg(feature = "wasm")]
38    pub use crate::wasm::Timestamp;
39}