Expand description

Prelude for Fuel indexers.

Modules

  • Bincode is a crate for encoding and decoding using a tiny binary serialization strategy. Using it, you can easily go from having an object in memory, quickly serialize it to bytes, and then deserialize it back just as fast!
  • Serde
  • Serde JSON

Macros

Structs

Enums

Constants

Traits

Functions

  • Converts a given input into a Bytes32 object by taking the first 32 bytes of the input.
  • Deserialize a generic byte array reference.
  • Serialize a generic byte array reference.
  • Returns the lower hex representation of a [sha2::SHA256] digest of the provided input.
  • Derive a type ID from a namespace and given abstraction name.
  • Returns the unique ID (UID) of an input.

Type Aliases

  • Scalar for 256-bit value.
  • Scalar for boolean.
  • Scalar for arbitrarily-sized byte payloads.
  • Scalar for 8-bit signed integers.
  • Scalar for 16-bit unsigned integers.
  • Scalar for 32-bit signed integers.
  • Scalar for 64-bit signed integers.
  • Scalar for 128-bit signed integers.
  • Scalar for object IDs.
  • Identification of transaction (also called transaction hash)
  • Scalar for 8-bit unsigned integers.
  • Scalar for 16-bit signed integers.
  • Scalar for 32-bit unsigned integers.
  • Scalar for 64-bit unsigned integers.
  • Scalar for 128-bit unsigned integers.
  • Scalar for 512-bit unique ID payloads.
  • Register value type

Attribute Macros