5 releases (breaking)

0.4.0 Aug 27, 2024
0.3.0 Aug 13, 2024
0.2.0 Jul 24, 2024
0.1.0 Jul 8, 2024
0.0.0-release Jul 8, 2024

#41 in #slot

Download history 315/week @ 2024-07-05 80/week @ 2024-07-12 224/week @ 2024-07-19 96/week @ 2024-07-26 33/week @ 2024-08-02 227/week @ 2024-08-09 118/week @ 2024-08-16 277/week @ 2024-08-23 120/week @ 2024-08-30 126/week @ 2024-09-06

662 downloads per month
Used in 8 crates (7 directly)

Apache-2.0

215KB
4.5K SLoC

essential-state-read-vm

Crates.io Documentation license Build Status

The Essential state reading VM.


lib.rs:

The essential state read VM implementation.

Reading State

The primary entrypoint for this crate is the [Vm type][Vm].

The Vm allows for executing operations that read state and apply any necessary operations in order to form the final, expected state slot layout within the VM's Memory. The Vm's memory can be accessed directly from the Vm, or the Vm can be consumed and state slots returned with Vm::into_state_slots.

Executing Ops

There are three primary methods available for executing operations:

Each have slightly different performance implications, so be sure to read the docs before selecting a method.

Execution Future

The Vm::exec_* functions all return Futures that not only yield on async operations, but yield based on a user-specified gas limit too. See the ExecFuture docs for further details on the implementation.

Dependencies

~12MB
~183K SLoC