remotedb

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MPL-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteDB

type RemoteDB struct {
	Trace bool

	Accounts map[web3.Address]*storage.EthAccount
	Storage  map[storageKey]web3.Hash
	// contains filtered or unexported fields
}

func NewRemoteDB

func NewRemoteDB(client *jsonrpc.Client) *RemoteDB

func (*RemoteDB) BatchDelete

func (self *RemoteDB) BatchDelete(key []byte)

func (*RemoteDB) BatchPut

func (self *RemoteDB) BatchPut(key []byte, value []byte)

func (*RemoteDB) Get

func (self *RemoteDB) Get(key []byte) ([]byte, error)

func (*RemoteDB) GetAccount

func (self *RemoteDB) GetAccount(addr web3.Address) *storage.EthAccount

func (*RemoteDB) GetBlockHash

func (self *RemoteDB) GetBlockHash(height uint64) web3.Hash

func (*RemoteDB) GetStorage

func (self *RemoteDB) GetStorage(addr web3.Address, key web3.Hash) web3.Hash

func (*RemoteDB) NewIterator

func (self *RemoteDB) NewIterator(prefix []byte) schema.StoreIterator

Jump to

Keyboard shortcuts

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