class Fremkit::Core::MapState(T)

Overview

A simple state representation in which values are stored in a HashMap. This is intended to run tests for the VM.

Defined in:

core/state.cr

Constructors

Instance Method Summary

Instance methods inherited from class Fremkit::Core::State(BigInt, T)

[](address : A) : T [], []=(address : A, value : T) : T []=, get_word(address : A) : T get_word, has_address?(address : A) : Bool has_address?, set_word(address : A, value : T) set_word

Instance methods inherited from class Object

from_rlp(rlp : Bytes) : Tuple(self, UInt32) from_rlp, to_rlp : Bytes to_rlp

Class methods inherited from class Object

from_rlp(rlp : Bytes) : Tuple(self, UInt32) from_rlp

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def get_word(address : BigInt) : T #

[View source]
def has_address?(address : BigInt) : Bool #

[View source]
def set_word(address : BigInt, bytes : T) #

[View source]