Documentation ¶
Index ¶
- Variables
- func CreateFileTests(t *testing.T, fn string, value interface{})
- func CreateHttpTests(t *testing.T, uri string, value interface{})
- func FromHex(h string) []byte
- func NewTrie() *trie.Trie
- func RunState(statedb *state.StateDB, env, tx map[string]string) ([]byte, state.Logs, *big.Int, error)
- func RunVm(state *state.StateDB, env, exec map[string]string) ([]byte, state.Logs, *big.Int, error)
- type Env
- func (self *Env) AddLog(log *state.Log)
- func (self *Env) AddStructLog(log vm.StructLog)
- func (self *Env) BlockNumber() *big.Int
- func (self *Env) Call(caller vm.ContextRef, addr common.Address, data []byte, ...) ([]byte, error)
- func (self *Env) CallCode(caller vm.ContextRef, addr common.Address, data []byte, ...) ([]byte, error)
- func (self *Env) Coinbase() common.Address
- func (self *Env) Create(caller vm.ContextRef, data []byte, gas, price, value *big.Int) ([]byte, error, vm.ContextRef)
- func (self *Env) Depth() int
- func (self *Env) Difficulty() *big.Int
- func (self *Env) GasLimit() *big.Int
- func (self *Env) GetHash(n uint64) common.Hash
- func (self *Env) Origin() common.Address
- func (self *Env) SetDepth(i int)
- func (self *Env) State() *state.StateDB
- func (self *Env) StructLogs() []vm.StructLog
- func (self *Env) Time() int64
- func (self *Env) Transfer(from, to vm.Account, amount *big.Int) error
- func (self *Env) VmType() vm.Type
- type MemDatabase
- type Message
- func (self Message) Data() []byte
- func (self Message) From() (common.Address, error)
- func (self Message) Gas() *big.Int
- func (self Message) GasPrice() *big.Int
- func (self Message) Hash() []byte
- func (self Message) Nonce() uint64
- func (self Message) To() *common.Address
- func (self Message) Value() *big.Int
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = logpkg.NewLogger("TEST")
View Source
var Logger *logpkg.StdLogSystem
Functions ¶
func CreateFileTests ¶
func CreateHttpTests ¶
Types ¶
type Env ¶
func NewEnvFromMap ¶
func (*Env) AddStructLog ¶ added in v0.9.30
func (*Env) BlockNumber ¶
func (*Env) Create ¶
func (self *Env) Create(caller vm.ContextRef, data []byte, gas, price, value *big.Int) ([]byte, error, vm.ContextRef)
func (*Env) Difficulty ¶
func (*Env) StructLogs ¶ added in v0.9.30
type MemDatabase ¶
type MemDatabase struct {
// contains filtered or unexported fields
}
func NewMemDatabase ¶
func NewMemDatabase() (*MemDatabase, error)
func (*MemDatabase) Close ¶
func (db *MemDatabase) Close()
func (*MemDatabase) Delete ¶
func (db *MemDatabase) Delete(key []byte) error
func (*MemDatabase) LastKnownTD ¶
func (db *MemDatabase) LastKnownTD() []byte
func (*MemDatabase) Print ¶
func (db *MemDatabase) Print()
func (*MemDatabase) Put ¶
func (db *MemDatabase) Put(key []byte, value []byte)
Click to show internal directories.
Click to hide internal directories.