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) BlockHash() []byte
- func (self *Env) BlockNumber() *big.Int
- func (self *Env) Call(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error)
- func (self *Env) CallCode(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error)
- func (self *Env) Coinbase() []byte
- func (self *Env) Create(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error, vm.ClosureRef)
- func (self *Env) Depth() int
- func (self *Env) Difficulty() *big.Int
- func (self *Env) GasLimit() *big.Int
- func (self *Env) Origin() []byte
- func (self *Env) PrevHash() []byte
- func (self *Env) SetDepth(i int)
- func (self *Env) State() *state.StateDB
- func (self *Env) Time() int64
- func (self *Env) Transfer(from, to vm.Account, amount *big.Int) error
- type MemDatabase
- type Message
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = logpkg.NewLogger("TEST")
View Source
var Logger logpkg.LogSystem
Functions ¶
func CreateFileTests ¶
func CreateHttpTests ¶
Types ¶
type Env ¶
func NewEnvFromMap ¶
func (*Env) BlockNumber ¶
func (*Env) Create ¶
func (self *Env) Create(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error, vm.ClosureRef)
func (*Env) Difficulty ¶
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.