[][src]Trait ink_env::Environment

pub trait Environment {
    type AccountId: 'static + Codec + Clone + PartialEq + Eq + Ord;
    type Balance: 'static + Codec + Copy + Clone + PartialEq + Eq + AtLeast32BitUnsigned;
    type Hash: 'static + Codec + Copy + Clone + Clear + PartialEq + Eq + Ord + AsRef<[u8]> + AsMut<[u8]>;
    type Timestamp: 'static + Codec + Copy + Clone + PartialEq + Eq + AtLeast32BitUnsigned;
    type BlockNumber: 'static + Codec + Copy + Clone + PartialEq + Eq + AtLeast32BitUnsigned;

    const MAX_EVENT_TOPICS: usize;
}

The environmental types usable by contracts defined with ink!.

Associated Types

type AccountId: 'static + Codec + Clone + PartialEq + Eq + Ord

The type of an address.

type Balance: 'static + Codec + Copy + Clone + PartialEq + Eq + AtLeast32BitUnsigned

The type of balances.

type Hash: 'static + Codec + Copy + Clone + Clear + PartialEq + Eq + Ord + AsRef<[u8]> + AsMut<[u8]>

The type of hash.

type Timestamp: 'static + Codec + Copy + Clone + PartialEq + Eq + AtLeast32BitUnsigned

The type of timestamps.

type BlockNumber: 'static + Codec + Copy + Clone + PartialEq + Eq + AtLeast32BitUnsigned

The type of block number.

Loading content...

Associated Constants

const MAX_EVENT_TOPICS: usize

The maximum number of supported event topics provided by the runtime.

The value must match the maximum number of supported event topics of the used runtime.

Loading content...

Implementors

Loading content...