state

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: GPL-3.0, GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxTrieCacheGen = uint16(120)

Functions

func NewStateSync

func NewStateSync(root common.Hash) *trie.TrieSync

Types

type ContractAccount

type ContractAccount struct {
	Address   common.Address         `json:"address"`   // user accounts address
	Contracts map[string]ContractObj `json:"contracts"` // user contracts
}

type ContractObj

type ContractObj struct {
	TplID         string                 `json:"tpl_id"`        // contract template address
	Address       common.Address         `json:"address"`       // the contract instance address
	Params        map[string]interface{} `json:"params"`        // contract params status
	Status        string                 `json:"status"`        // the contract status, like 'good', 'bad', 'close' etc.
	CreationDate  time.Time              `json:"creation_date"` // contract template create time
	DestroyedDate time.Time              `json:"destroyed_date"`
}

instance of contract

type ContractTplObj

type ContractTplObj struct {
	TplID        string    `json:"address"`       // contract template address
	CodeHash     string    `json:"codeHash"`      // contract code hash
	Code         []byte    `json:"code"`          // contract bytecode
	CreationDate time.Time `json:"creation_date"` // contract template create time
}

contract template

type StateDB

type StateDB struct{}

Jump to

Keyboard shortcuts

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