Crate kythera_fvm

source ·

Modules

Structs

  • Address is the struct that defines the protocol and data payload conversion from either a public key or value
  • A typesafe representation of gas (internally stored as milligas).
  • Single gas charge in the VM. Contains information about what gas was for, as well as the amount of gas needed for computation and storage respectively.
  • Result of a state transition from a message
  • Represents an error from a syscall. It can optionally contain a syscall-advised exit code for the kind of error that was raised. We may want to add an optional source error here.
  • 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

  • When a syscall fails, it returns an ErrorNumber to indicate why. The syscalls themselves include documentation on which syscall errors they can be expected to return, and what they mean in the context of the syscall.
  • Payload is the data of the Address. Variants are the supported Address protocols.

Type Definitions