Documentation
¶
Index ¶
- type EthermintApplication
- func (app *EthermintApplication) BeginBlock(beginBlock abciTypes.RequestBeginBlock) abciTypes.ResponseBeginBlock
- func (app *EthermintApplication) CheckTx(txBytes []byte) abciTypes.ResponseCheckTx
- func (app *EthermintApplication) CollectTx(tx *types.Transaction)
- func (app *EthermintApplication) Commit() abciTypes.ResponseCommit
- func (app *EthermintApplication) DeliverTx(txBytes []byte) abciTypes.ResponseDeliverTx
- func (app *EthermintApplication) EndBlock(endBlock abciTypes.RequestEndBlock) abciTypes.ResponseEndBlock
- func (app *EthermintApplication) GetUpdatedValidators() abciTypes.ResponseEndBlock
- func (app *EthermintApplication) Info(req abciTypes.RequestInfo) abciTypes.ResponseInfo
- func (app *EthermintApplication) InitChain(req abciTypes.RequestInitChain) abciTypes.ResponseInitChain
- func (app *EthermintApplication) Query(query abciTypes.RequestQuery) abciTypes.ResponseQuery
- func (app *EthermintApplication) Receiver() common.Address
- func (app *EthermintApplication) SetLogger(log tmLog.Logger)
- func (app *EthermintApplication) SetOption(req abciTypes.RequestSetOption) abciTypes.ResponseSetOption
- 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 #stable - 0.4.0
func NewEthermintApplication ¶
func NewEthermintApplication(backend *ethereum.Backend, client *rpc.Client, myValidator *common.Address, strategy *emtTypes.Strategy) (*EthermintApplication, error)
NewEthermintApplication creates a fully initialised instance of EthermintApplication #stable - 0.4.0
func (*EthermintApplication) BeginBlock ¶
func (app *EthermintApplication) BeginBlock(beginBlock abciTypes.RequestBeginBlock) abciTypes.ResponseBeginBlock
BeginBlock starts a new Ethereum block #stable - 0.4.0
func (*EthermintApplication) CheckTx ¶
func (app *EthermintApplication) CheckTx(txBytes []byte) abciTypes.ResponseCheckTx
CheckTx checks a transaction is valid but does not mutate the state #stable - 0.4.0
func (*EthermintApplication) CollectTx ¶
func (app *EthermintApplication) CollectTx(tx *types.Transaction)
CollectTx invokes CollectTx on the strategy #unstable
func (*EthermintApplication) Commit ¶
func (app *EthermintApplication) Commit() abciTypes.ResponseCommit
Commit commits the block and returns a hash of the current state #stable - 0.4.0
func (*EthermintApplication) DeliverTx ¶
func (app *EthermintApplication) DeliverTx(txBytes []byte) abciTypes.ResponseDeliverTx
DeliverTx executes a transaction against the latest state #stable - 0.4.0
func (*EthermintApplication) EndBlock ¶
func (app *EthermintApplication) EndBlock(endBlock abciTypes.RequestEndBlock) abciTypes.ResponseEndBlock
EndBlock accumulates rewards for the validators and updates them #stable - 0.4.0
func (*EthermintApplication) GetUpdatedValidators ¶
func (app *EthermintApplication) GetUpdatedValidators() abciTypes.ResponseEndBlock
GetUpdatedValidators returns an updated validator set from the strategy #unstable
func (*EthermintApplication) Info ¶
func (app *EthermintApplication) Info(req abciTypes.RequestInfo) abciTypes.ResponseInfo
func (*EthermintApplication) InitChain ¶
func (app *EthermintApplication) InitChain(req abciTypes.RequestInitChain) abciTypes.ResponseInitChain
InitChain initializes the validator set #stable - 0.4.0
func (*EthermintApplication) Query ¶
func (app *EthermintApplication) Query(query abciTypes.RequestQuery) abciTypes.ResponseQuery
Query queries the state of the EthermintApplication #stable - 0.4.0
func (*EthermintApplication) Receiver ¶
func (app *EthermintApplication) Receiver() common.Address
Receiver returns the receiving address based on the selected strategy #unstable
func (*EthermintApplication) SetLogger ¶ added in v0.5.2
func (app *EthermintApplication) SetLogger(log tmLog.Logger)
SetLogger sets the logger for the ethermint application #unstable
func (*EthermintApplication) SetOption ¶
func (app *EthermintApplication) SetOption(req abciTypes.RequestSetOption) abciTypes.ResponseSetOption
SetOption sets a configuration option #stable - 0.4.0
func (*EthermintApplication) SetValidators ¶
func (app *EthermintApplication) SetValidators(validators []abciTypes.Validator)
SetValidators sets new validators on the strategy #unstable