aurora-engine-types 3.0.0

Essential types which used in Aurora Engine
Documentation
#![cfg_attr(not(any(feature = "std", feature = "contracts-std")), no_std)]

pub mod account_id;
pub mod parameters;
pub mod public_key;
pub mod storage;
pub mod types;

mod v0 {
    extern crate alloc;
    extern crate core;

    pub use alloc::{
        borrow::ToOwned,
        borrow::{Cow, Cow::*},
        boxed::Box,
        collections::BTreeMap as HashMap,
        collections::BTreeMap,
        collections::BTreeSet,
        fmt, format, str,
        string::String,
        string::ToString,
        vec,
        vec::Vec,
    };
    pub use borsh;
    pub use core::{
        cmp::Ordering, fmt::Display, marker::PhantomData, mem, ops::Add, ops::AddAssign, ops::Div,
        ops::Mul, ops::Sub, ops::SubAssign,
    };
    pub use primitive_types::{H160, H256, U256};
}

pub use v0::*;

pub trait AsBytes {
    fn as_bytes(&self) -> &[u8];
}