Module fvm::kernel::prelude

source ·
Expand description

Import this module (with a glob) if you’re implementing a kernel, especially if you want to use ambassador to delegate the implementation.

Re-exports§

Structs§

  • Address is the struct that defines the protocol and data payload conversion from either a public key or value
  • ExitCode defines the exit code from the VM invocation.
  • Specifies the network version
  • Flags passed to the send syscall.
  • A quantity of native tokens. A token amount is an integer, but has a human interpretation as a value with 18 decimal places. This is a new-type in order to prevent accidental conversion from other BigInts. From/Into BigInt is missing by design.

Enums§

Constants§

Type Aliases§

  • Identifier for Actors, includes builtin and initialized actors
  • Epoch number of a chain. This acts as a proxy for time within the VM.
  • A Cid that contains a multihash with an allocated size of 512 bits.
  • Method number indicator for calling actor methods.
  • A Multihash with the same allocated size as the Multihashes produces by this derive.

Derive Macros§

  • Delegate the implementation of a trait to a struct field/enum variants by adding #[derive(Delegate)] and its associated attribute #[delegate(Trait)] to it: