Crate kythera_lib

source ·

Modules

Structs

  • Abi is the structure we use internally to deal with Actor Binary Interface. It contains all exposed Method from a given Actor.
  • Address is the struct that defines the protocol and data payload conversion from either a public key or value
  • Apply message return data.
  • An Actor that has been deployed into a BlockStore.
  • ExitCode defines the exit code from the VM invocation.
  • 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.
  • Wrapper around fvm Executor with sane defaults.
  • Method describes an exposed method from an actor entrypoint.
  • Raw serialized cbor bytes. This data is (de)serialized as a byte string.
  • 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.
  • Output of testing a list of Tests and its Methods for a target Actor.
  • Output of running a Method of an Actor test.
  • Main interface to test Actors with Kythera.
  • 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.
  • WebAssembly Actor.

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.
  • An “event” that happened during execution.
  • Type of the Abi Method of the test Actor.
  • Payload is the data of the Address. Variants are the supported Address protocols.
  • Outcome of the test.

Traits

  • Defines an additive identity element for Self.

Functions

  • Decode a value from CBOR from the given slice.
  • Split a PascalCase string into a vector of its components. If the string is not PascalCase function returns an empty Vec.
  • Serializes a value to a vector.

Type Definitions