pub trait Namespace {
    const NAMESPACE: &'static [u8];
}
Expand description

Represents a namespace, usually acting as a prefix to a dynamically generated key. We only do this so that we can have strongly typed keys and storage types. Use the namespace macro to generate one.

Examples

use fadroma::storage::Namespace;
 
fadroma::namespace!(MyNamespace, b"ns_bytes");
assert_eq!(MyNamespace::NAMESPACE, b"ns_bytes");

Required Associated Constants§

source

const NAMESPACE: &'static [u8]

Implementors§

source§

impl Namespace for AdminNs

source§

const NAMESPACE: &'static [u8] = b"ltp5P6sFZT"

source§

impl Namespace for PendingAdminNs

source§

const NAMESPACE: &'static [u8] = b"b5QaJXDibK"

source§

impl Namespace for KillswitchNs

source§

const NAMESPACE: &'static [u8] = b"zK5CBApPlV"

source§

impl Namespace for ConstantsNs

source§

const NAMESPACE: &'static [u8] = b"N3QP0mNoPG"

source§

impl Namespace for MintersNs

source§

const NAMESPACE: &'static [u8] = b"wpitCjS7wB"

source§

impl Namespace for PrngSeedNs

source§

const NAMESPACE: &'static [u8] = b"Lwr3sTJZmk"

source§

impl Namespace for SupportedDenomsNs

source§

const NAMESPACE: &'static [u8] = b"OxL3tsqB9N"

source§

impl Namespace for TotalSupplyNs

source§

const NAMESPACE: &'static [u8] = b"bx98UUOWYa"

source§

impl Namespace for TxCountNs

source§

const NAMESPACE: &'static [u8] = b"n8BHFWp7eT"

source§

impl Namespace for ViewingKeysNs

source§

const NAMESPACE: &'static [u8] = b"XXzo7ZXRJ2"