8 releases (breaking)

new 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

#959 in Magic Beans

Download history 70/week @ 2024-07-15 237/week @ 2024-07-22 80/week @ 2024-07-29 17/week @ 2024-08-05 258/week @ 2024-08-12 131/week @ 2024-08-19 284/week @ 2024-08-26 114/week @ 2024-09-02 95/week @ 2024-09-09 136/week @ 2024-09-16 101/week @ 2024-09-23 287/week @ 2024-09-30 236/week @ 2024-10-07 777/week @ 2024-10-14 89/week @ 2024-10-21 503/week @ 2024-10-28

1,611 downloads per month
Used in 15 crates (7 directly)

Apache-2.0

305KB
7K 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