8 releases (breaking)

0.7.0 Nov 5, 2024
0.6.0 Oct 29, 2024
0.5.0 Sep 30, 2024
0.4.0 Aug 27, 2024
0.0.0-release Jul 8, 2024

#36 in #slot

Download history 143/week @ 2024-08-31 100/week @ 2024-09-07 132/week @ 2024-09-14 99/week @ 2024-09-21 284/week @ 2024-09-28 233/week @ 2024-10-05 614/week @ 2024-10-12 236/week @ 2024-10-19 496/week @ 2024-10-26 385/week @ 2024-11-02 151/week @ 2024-11-09 131/week @ 2024-11-16 142/week @ 2024-11-23 96/week @ 2024-11-30 49/week @ 2024-12-07 31/week @ 2024-12-14

319 downloads per month
Used in 6 crates

Apache-2.0

280KB
6.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
~184K SLoC