 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
func Configure(stateUpgrade *extras.StateUpgrade, chainConfig ChainContext, state StateDB, blockContext BlockContext) error
Configure applies the state upgrade to the state.
Types ¶
type BlockContext ¶
BlockContext defines an interface that provides information to a state upgrade about the block that activates the upgrade.
type ChainContext ¶
ChainContext defines an interface that provides information to a state upgrade about the chain configuration.
type StateDB ¶
type StateDB interface {
	SetState(common.Address, common.Hash, common.Hash, ...stateconf.StateDBStateOption)
	SetCode(common.Address, []byte)
	AddBalance(common.Address, *uint256.Int)
	GetNonce(common.Address) uint64
	SetNonce(common.Address, uint64)
	CreateAccount(common.Address)
	Exist(common.Address) bool
}
    StateDB is the interface for accessing EVM state in state upgrades
 Click to show internal directories. 
   Click to hide internal directories.