Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogToString ¶
LogToString returns a json representation of a log entry, we use it for debugging
func ToJSONString ¶
ToJSONString converts a test object to its JSON representation.
func ToOrderedJSON ¶
func ToOrderedJSON(testTopLevel []*Test) oj.OJsonObject
ToOrderedJSON converts a test object to an ordered JSON object.
Types ¶
type Account ¶
type Account struct { Address []byte Nonce *big.Int Balance *big.Int Storage []*StorageKeyValuePair Code string OriginalCode string }
Account is a json object representing an account.
func FindAccount ¶
FindAccount searches an account list by address.
type Block ¶
type Block struct { Results []*TransactionResult Transactions []*Transaction BlockHeader *BlockHeader }
Block is a json object representing a block.
type BlockHeader ¶
type BlockHeader struct { Beneficiary *big.Int // "coinbase" Difficulty *big.Int Number *big.Int GasLimit *big.Int UnixTimestamp *big.Int }
BlockHeader is a json object representing the block header.
type StorageKeyValuePair ¶
StorageKeyValuePair is a json key value pair in the storage map.
type Test ¶
type Test struct { TestName string CheckGas bool Pre []*Account Blocks []*Block Network string BlockHashes [][]byte PostState []*Account }
Test is a json object representing a test.
func ParseTopLevel ¶
ParseTopLevel converts json string to object representation
Click to show internal directories.
Click to hide internal directories.