testutils

package
v1.16.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2025 License: GPL-3.0, LGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapStateDB added in v0.8.8

func WrapStateDB(stateDB *state.StateDB) contract.StateDB

WrapStateDB wraps an *state.StateDB to implement contract.StateDB

Types

type StateDBAdapter added in v0.8.8

type StateDBAdapter struct {
	*state.StateDB
}

StateDBAdapter wraps *state.StateDB to implement contract.StateDB

func (*StateDBAdapter) AddBalance added in v0.8.8

func (s *StateDBAdapter) AddBalance(address common.Address, amount *uint256.Int)

AddBalance adapts the AddBalance method to match the contract.StateDB interface

func (*StateDBAdapter) GetPredicateStorageSlots added in v0.8.8

func (s *StateDBAdapter) GetPredicateStorageSlots(address common.Address, index int) ([]byte, bool)

GetPredicateStorageSlots implements the contract.StateDB interface

func (*StateDBAdapter) SetNonce added in v0.8.8

func (s *StateDBAdapter) SetNonce(address common.Address, nonce uint64)

SetNonce implements the contract.StateDB interface

func (*StateDBAdapter) SetState added in v0.8.8

func (s *StateDBAdapter) SetState(address common.Address, key, value common.Hash)

SetState implements the contract.StateDB interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL