Documentation
¶
Index ¶
- type EthermintApplication
- func (app *EthermintApplication) BeginBlock(hash []byte, tmHeader *abciTypes.Header)
- func (app *EthermintApplication) CheckTx(txBytes []byte) abciTypes.Result
- func (app *EthermintApplication) CollectTx(tx *types.Transaction)
- func (app *EthermintApplication) Commit() abciTypes.Result
- func (app *EthermintApplication) DeliverTx(txBytes []byte) abciTypes.Result
- func (app *EthermintApplication) EndBlock(height uint64) abciTypes.ResponseEndBlock
- func (app *EthermintApplication) GetUpdatedValidators() abciTypes.ResponseEndBlock
- func (app *EthermintApplication) Info() abciTypes.ResponseInfo
- func (app *EthermintApplication) InitChain(validators []*abciTypes.Validator)
- func (app *EthermintApplication) Query(query abciTypes.RequestQuery) abciTypes.ResponseQuery
- func (app *EthermintApplication) Receiver() common.Address
- func (app *EthermintApplication) SetOption(key string, value string) (log string)
- func (app *EthermintApplication) SetValidators(validators []*abciTypes.Validator)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthermintApplication ¶
type EthermintApplication struct {
// contains filtered or unexported fields
}
EthermintApplication implements an ABCI application
func NewEthermintApplication ¶
func NewEthermintApplication(backend *ethereum.Backend, client *rpc.Client, strategy *emtTypes.Strategy) (*EthermintApplication, error)
NewEthermintApplication creates the abci application for ethermint
func (*EthermintApplication) BeginBlock ¶
func (app *EthermintApplication) BeginBlock(hash []byte, tmHeader *abciTypes.Header)
BeginBlock starts a new Ethereum block
func (*EthermintApplication) CheckTx ¶
func (app *EthermintApplication) CheckTx(txBytes []byte) abciTypes.Result
CheckTx checks a transaction is valid but does not mutate the state
func (*EthermintApplication) CollectTx ¶
func (app *EthermintApplication) CollectTx(tx *types.Transaction)
CollectTx invokes CollectTx on the strategy
func (*EthermintApplication) Commit ¶
func (app *EthermintApplication) Commit() abciTypes.Result
Commit commits the block and returns a hash of the current state
func (*EthermintApplication) DeliverTx ¶
func (app *EthermintApplication) DeliverTx(txBytes []byte) abciTypes.Result
DeliverTx executes a transaction against the latest state
func (*EthermintApplication) EndBlock ¶
func (app *EthermintApplication) EndBlock(height uint64) abciTypes.ResponseEndBlock
EndBlock accumulates rewards for the validators and updates them
func (*EthermintApplication) GetUpdatedValidators ¶
func (app *EthermintApplication) GetUpdatedValidators() abciTypes.ResponseEndBlock
GetUpdatedValidators returns an updated validator set from the strategy
func (*EthermintApplication) Info ¶
func (app *EthermintApplication) Info() abciTypes.ResponseInfo
Info returns information about the last height and app_hash to the tendermint engine
func (*EthermintApplication) InitChain ¶
func (app *EthermintApplication) InitChain(validators []*abciTypes.Validator)
InitChain initializes the validator set
func (*EthermintApplication) Query ¶
func (app *EthermintApplication) Query(query abciTypes.RequestQuery) abciTypes.ResponseQuery
Query queries the state of EthermintApplication
func (*EthermintApplication) Receiver ¶
func (app *EthermintApplication) Receiver() common.Address
Receiver returns the receiving address based on the selected strategy
func (*EthermintApplication) SetOption ¶
func (app *EthermintApplication) SetOption(key string, value string) (log string)
SetOption sets a configuration option
func (*EthermintApplication) SetValidators ¶
func (app *EthermintApplication) SetValidators(validators []*abciTypes.Validator)
SetValidators sets new validators on the strategy