Documentation ¶
Index ¶
- Constants
- Variables
- func CreateAccountsDB(db storage.Storer) *state.AccountsDB
- func CreateInMemoryShardAccountsDB() *state.AccountsDB
- func CreateMemUnit() storage.Storer
- func CreateStorer(parentDir string) storage.Storer
- func SmartContractResultsToString(pubKeyConverter core.PubkeyConverter, ...) string
- func TransactionHandlerToString(pubKeyConverter core.PubkeyConverter, txHandlers ...data.TransactionHandler) string
- type TestAccountFactory
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 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
Click to show internal directories.
Click to hide internal directories.