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)
- func (s *StateDBAdapter) AddBalanceMultiCoin(addr common.Address, coinID common.Hash, amount *big.Int)
- func (s *StateDBAdapter) AddLog(addr common.Address, topics []common.Hash, data []byte, blockNumber uint64)
- func (s *StateDBAdapter) GetBalanceMultiCoin(addr common.Address, coinID common.Hash) *big.Int
- 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)
AddBalance implements the simplified AddBalance interface by providing a default reason
func (*StateDBAdapter) AddBalanceMultiCoin ¶
func (*StateDBAdapter) AddLog ¶
func (s *StateDBAdapter) AddLog(addr common.Address, topics []common.Hash, data []byte, blockNumber uint64)
AddLog implements the Lux-specific AddLog signature
func (*StateDBAdapter) GetBalanceMultiCoin ¶
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.