Documentation ¶
Index ¶
- func ParseCallResultToBig(result string) *big.Int
- func ParseCallResultToString(result string) string
- type Evm
- func (e *Evm) AddBalance(addr common.Address, amount *big.Int)
- func (e *Evm) AddLog(lg *types.Log)
- func (e *Evm) Call(contAddr common.Address, origin common.Address, inputCode []byte) ([]byte, uint64, error)
- func (e *Evm) Create(code []byte, origin common.Address) ([]byte, common.Address, uint64, error)
- func (e *Evm) GetBalance(addr common.Address) *big.Int
- func (e *Evm) GetCode(contAddr common.Address) []byte
- func (e *Evm) GetConfig() *runtime.Config
- func (e *Evm) GetLogs(txHash, blockH common.Hash) []*types.Log
- func (e *Evm) GetNonce(addr common.Address) uint64
- func (e *Evm) GetSnapshot() int
- func (e *Evm) GetStorageAt(addr common.Address, hash common.Hash) common.Hash
- func (e *Evm) Logs() []*types.Log
- func (e *Evm) Prepare(txhash, blhash common.Hash, txindex int)
- func (e *Evm) RawDump() state.Dump
- func (e *Evm) RevertToSnapshot(sp int)
- func (e *Evm) SetBalance(addr common.Address, amount *big.Int)
- func (e *Evm) SetBlockInfo(num, tm uint64, miner common.Address, difficulty *big.Int)
- func (e *Evm) SetCode(contAddr common.Address, code []byte)
- func (e *Evm) SetConfig(val, price *big.Int, limit uint64, origin common.Address)
- func (e *Evm) SetNonce(addr common.Address, nonce uint64)
- func (e *Evm) SubBalance(addr common.Address, amount *big.Int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCallResultToBig ¶
parse token decimal or totalSupply by call result.
func ParseCallResultToString ¶
parse token name or symbol by call result.
Types ¶
type Evm ¶
type Evm struct {
// contains filtered or unexported fields
}
Evm struct
func (*Evm) Call ¶
func (e *Evm) Call(contAddr common.Address, origin common.Address, inputCode []byte) ([]byte, uint64, error)
Call contract
func (*Evm) GetStorageAt ¶
Get Storage At address
func (*Evm) SetBlockInfo ¶
SetBlockInfo set block info into evm
Click to show internal directories.
Click to hide internal directories.