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.

Re-exports§

Modules§

Structs§

  • Fixed-size uninterpreted hash type with 20 bytes (160 bits) size.
  • Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
  • Contains all rules related to storage key creation.
  • Little-endian large integer type 256-bit unsigned integer.

Enums§

  • An error emitted by the smart contracting language.

Type Aliases§