Documentation ¶
Index ¶
- Variables
- type Blockchainer
- type ChainContext
- type Contract
- func (ac *Contract) Address() common.Address
- func (ac *Contract) ApplyPerformRedistribution(transactions types.Transactions, receipts types.Receipts, header *types.Header, ...) error
- func (ac *Contract) ContractGetValidators(chain consensus.ChainReader, header *types.Header, statedb *state.StateDB) ([]common.Address, error)
- func (ac *Contract) DeployAutonityContract(chain consensus.ChainReader, header *types.Header, statedb *state.StateDB) (common.Address, error)
- func (ac *Contract) GetMinimumGasPrice(block *types.Block, db *state.StateDB) (uint64, error)
- func (ac *Contract) GetWhitelist(block *types.Block, db *state.StateDB) (*types.Nodes, error)
- func (ac *Contract) PerformRedistribution(header *types.Header, db *state.StateDB, gasUsed *big.Int) error
- func (ac *Contract) SetMinimumGasPrice(block *types.Block, db *state.StateDB, price *big.Int) error
- func (ac *Contract) UpdateEnodesWhitelist(state *state.StateDB, block *types.Block) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAutonityContract = errors.New("could not call Autonity contract")
Functions ¶
This section is empty.
Types ¶
type Blockchainer ¶
type Blockchainer interface { ChainContext GetVMConfig() *vm.Config Config() *params.ChainConfig UpdateEnodeWhitelist(newWhitelist *types.Nodes) ReadEnodeWhitelist(openNetwork bool) *types.Nodes }
type ChainContext ¶
type Contract ¶
type Contract struct { SavedValidatorsRetriever func(i uint64) ([]common.Address, error) GetHashFn func(ref *types.Header, chain ChainContext) func(n uint64) common.Hash sync.RWMutex // contains filtered or unexported fields }
func NewAutonityContract ¶
func (*Contract) ApplyPerformRedistribution ¶
func (*Contract) ContractGetValidators ¶
func (*Contract) DeployAutonityContract ¶
func (ac *Contract) DeployAutonityContract(chain consensus.ChainReader, header *types.Header, statedb *state.StateDB) (common.Address, error)
deployContract deploys the contract contained within the genesis field bytecode
func (*Contract) GetMinimumGasPrice ¶
func (*Contract) GetWhitelist ¶
func (*Contract) PerformRedistribution ¶
func (*Contract) SetMinimumGasPrice ¶
Click to show internal directories.
Click to hide internal directories.