Crate ink_primitives

Source
Expand description

Utilities in use by ink!.

These are kept separate from ink! core utilities to allow for more dynamic inter-crate dependencies. The main problem is that today Cargo manages crate features on a per-crate basis instead of a per-crate-target basis thus making dependencies from ink (or others) to ink_env or ink_storage impossible.

By introducing ink_primitives we have a way to share utility components between ink_env or ink_storage and other parts of the framework, like ink.

Structs§

AccountId
The default environment AccountId type.
Hash
The default environment Hash type.
KeyComposer
Contains all rules related to storage key creation.

Enums§

LangError
An error emitted by the smart contracting language.

Traits§

Clear
The equivalent of Zero for hashes.

Type Aliases§

ConstructorResult
The Result type for ink! constructors.
Key
A key into the smart contract storage.
MessageResult
The Result type for ink! messages.