integrationtests

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const MaxTrieLevelInMemory = uint(5)

MaxTrieLevelInMemory -

Variables

View Source
var TestHasher = sha256.NewSha256()

TestHasher -

View Source
var TestMarshalizer = &marshal.GogoProtoMarshalizer{}

TestMarshalizer -

Functions

func CreateAccountsDB

func CreateAccountsDB(db storage.Storer) *state.AccountsDB

CreateAccountsDB -

func CreateInMemoryShardAccountsDB

func CreateInMemoryShardAccountsDB() *state.AccountsDB

CreateInMemoryShardAccountsDB -

func CreateMemUnit

func CreateMemUnit() storage.Storer

CreateMemUnit -

func CreateStorer

func CreateStorer(parentDir string) storage.Storer

CreateStorer -

func SmartContractResultsToString

func SmartContractResultsToString(pubKeyConverter core.PubkeyConverter, scrs ...*smartContractResult.SmartContractResult) string

SmartContractResultsToString will convert smartcontract results to an easy-to-understand string

func TransactionHandlerToString

func TransactionHandlerToString(pubKeyConverter core.PubkeyConverter, txHandlers ...data.TransactionHandler) string

TransactionHandlerToString will convert the transaction data slice provided to string

Types

type TestAccountFactory

type TestAccountFactory struct {
}

TestAccountFactory -

func (*TestAccountFactory) CreateAccount

func (factory *TestAccountFactory) CreateAccount(address []byte) (vmcommon.AccountHandler, error)

CreateAccount -

func (*TestAccountFactory) IsInterfaceNil

func (factory *TestAccountFactory) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

Jump to

Keyboard shortcuts

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