1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Use this module as an interface to export all types declared inside of endpoints/
//
// These are not used in here, just exporting
pub use crate;
/// Enum for any possible JSON value.
///
/// Declared as the following:
///
/// ```no_run
/// # use f64 as Number;
/// # use std::collections::HashMap as Map;
/// pub enum Value {
/// Null,
/// Bool(bool),
/// Number(Number),
/// String(String),
/// Array(Vec<Value>),
/// Object(Map<String, Value>),
/// }
/// ```
pub type JsonValue = Value;
/// Integer used in other types.
///
/// A signed 128-bit integer can store up to 2^127, or 340282366920938463463374607431768211456.
///
/// This integer can store a number with 38 digits, the max supply of ADA is 45 billion (11 digits).
pub type Integer = i128;
/// Float used in other types.
pub type Float = f64;
/// JSON Map (or JSON object) made of key-value pairs.
///
/// Used in types:
/// [`EpochParameters`]
/// [`AssetDetails`]
pub type JsonMap = Map;