Documentation ¶
Index ¶
- type Blockchain
- func (b *Blockchain) AccountExists(c m.K, lbl m.KLabel, sort m.Sort, config m.K) (m.K, error)
- func (b *Blockchain) ConvertKIntToAddress(addrAsK m.K) ([]byte, bool)
- func (b *Blockchain) GetBalance(c m.K, lbl m.KLabel, sort m.Sort, config m.K) (m.K, error)
- func (b *Blockchain) GetBlockhash(c m.K, lbl m.KLabel, sort m.Sort, config m.K) (m.K, error)
- func (b *Blockchain) GetCode(c m.K, lbl m.KLabel, sort m.Sort, config m.K) (m.K, error)
- func (b *Blockchain) GetNonce(c m.K, lbl m.KLabel, sort m.Sort, config m.K) (m.K, error)
- func (b *Blockchain) GetStorageData(kaddr m.K, kindex m.K, lbl m.KLabel, sort m.Sort, config m.K) (m.K, error)
- func (b *Blockchain) IsCodeEmpty(c m.K, lbl m.KLabel, sort m.Sort, config m.K) (m.K, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blockchain ¶
type Blockchain struct { // Upstream is the world state callback, which is common to all VMs Upstream vmi.BlockchainHook // AddressLength is the expected length of an address, in bytes AddressLength int }
Blockchain is an adapter between K and the outside world This class is specific to only 1 generated interpreter
func (*Blockchain) AccountExists ¶
AccountExists adapts between K model and elrond function
func (*Blockchain) ConvertKIntToAddress ¶
func (b *Blockchain) ConvertKIntToAddress(addrAsK m.K) ([]byte, bool)
ConvertKIntToAddress takes a K Int and converts it to an address with the correct number of bytes, will pad left with zeroes, based on the configured address length
func (*Blockchain) GetBalance ¶
GetBalance adapts between K model and elrond function
func (*Blockchain) GetBlockhash ¶
GetBlockhash adapts between K model and elrond function
Click to show internal directories.
Click to hide internal directories.