Documentation
¶
Overview ¶
(c) 2023, Lux Industries, Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- func NewTestStateDB(t testing.TB) contract.StateDB
- type StateDBAdapter
- func (s *StateDBAdapter) AddBalance(addr common.Address, amount *uint256.Int, reason tracing.BalanceChangeReason) uint256.Int
- func (s *StateDBAdapter) AddBalanceMultiCoin(addr common.Address, coinID common.Hash, amount *big.Int)
- func (s *StateDBAdapter) GetBalanceMultiCoin(addr common.Address, coinID common.Hash) *big.Int
- func (s *StateDBAdapter) GetTxHash() common.Hash
- func (s *StateDBAdapter) Logs() []*types.Log
- func (s *StateDBAdapter) SubBalanceMultiCoin(addr common.Address, coinID common.Hash, amount *big.Int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StateDBAdapter ¶
StateDBAdapter wraps a state.StateDB to implement the simpler AddBalance interface
func NewStateDBAdapter ¶
func NewStateDBAdapter(statedb *state.StateDB) *StateDBAdapter
NewStateDBAdapter creates a new adapter
func (*StateDBAdapter) AddBalance ¶
func (s *StateDBAdapter) AddBalance(addr common.Address, amount *uint256.Int, reason tracing.BalanceChangeReason) uint256.Int
AddBalance implements the VmStateDB AddBalance interface
func (*StateDBAdapter) AddBalanceMultiCoin ¶
func (*StateDBAdapter) GetBalanceMultiCoin ¶
func (*StateDBAdapter) GetTxHash ¶ added in v0.8.1
func (s *StateDBAdapter) GetTxHash() common.Hash
GetTxHash returns the current transaction hash
func (*StateDBAdapter) Logs ¶ added in v0.8.1
func (s *StateDBAdapter) Logs() []*types.Log
Logs returns our log types
func (*StateDBAdapter) SubBalanceMultiCoin ¶
func (s *StateDBAdapter) SubBalanceMultiCoin(addr common.Address, coinID common.Hash, amount *big.Int)
MultiCoin methods - these are Lux-specific extensions not in geth
Click to show internal directories.
Click to hide internal directories.