Documentation
¶
Index ¶
- type Backend
- func (b *Backend) APIs() []rpc.API
- func (b *Backend) AccumulateRewards(strategy *emtTypes.Strategy)
- func (b *Backend) AddNonce(addr common.Address)
- func (b *Backend) BroadcastPtxSync(ptx *ethereum.ParalleledTransaction) (*ctypes.ResultBroadcastTx, error)
- func (b *Backend) BroadcastTxCommit(tx *ethTypes.Transaction) (*ctypes.ResultBroadcastTxCommit, error)
- func (b *Backend) BroadcastTxSync(tx *ethTypes.Transaction) (*ctypes.ResultBroadcastTx, error)
- func (b *Backend) CheckTx(tx *ethTypes.Transaction) abciTypes.ResponseCheckTx
- func (b *Backend) Commit(receiver common.Address) (common.Hash, error)
- func (b *Backend) Config() *eth.Config
- func (b *Backend) DeliverPtx(ptx *ethereum.ParalleledTransaction) abciTypes.ResponseDeliverTx
- func (b *Backend) DeliverTx(tx *ethTypes.Transaction) abciTypes.ResponseDeliverTx
- func (b *Backend) EndBlock()
- func (b *Backend) Ethereum() *eth.Ethereum
- func (b *Backend) GasLimit() big.Int
- func (b *Backend) GetTotalUsedGasFee() *big.Int
- func (b *Backend) InitEthState(receiver common.Address) error
- func (b *Backend) IsPtxEnabled() bool
- func (b *Backend) ManagedState() *state.ManagedState
- func (b *Backend) Protocols() []p2p.Protocol
- func (b *Backend) ResetState() (*state.ManagedState, error)
- func (b *Backend) SetTMNode(tmNode *tmn.Node)
- func (b *Backend) Start(_ *p2p.Server) error
- func (b *Backend) Stop() error
- func (b *Backend) UpdateHeaderWithTimeInfo(tmHeader *abciTypes.Header)
- func (b *Backend) UpdateProposer()
- type NullBlockProcessor
- type SendTxArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend handles the chain database and VM #stable - 0.4.0
func NewBackend ¶
func NewBackend(ctx *node.ServiceContext, ethConfig *eth.Config, client *rpcClient.HTTP) (*Backend, error)
NewBackend creates a new Backend #stable - 0.4.0
func (*Backend) APIs ¶
APIs returns the collection of RPC services the ethereum package offers. #stable - 0.4.0
func (*Backend) AccumulateRewards ¶
AccumulateRewards accumulates the rewards based on the given strategy #unstable
func (*Backend) BroadcastPtxSync ¶
func (b *Backend) BroadcastPtxSync(ptx *ethereum.ParalleledTransaction) (*ctypes.ResultBroadcastTx, error)
func (*Backend) BroadcastTxCommit ¶
func (b *Backend) BroadcastTxCommit(tx *ethTypes.Transaction) (*ctypes.ResultBroadcastTxCommit, error)
func (*Backend) BroadcastTxSync ¶
func (b *Backend) BroadcastTxSync(tx *ethTypes.Transaction) (*ctypes.ResultBroadcastTx, error)
BroadcastTx broadcasts a transaction to tendermint core #unstable
func (*Backend) CheckTx ¶
func (b *Backend) CheckTx(tx *ethTypes.Transaction) abciTypes.ResponseCheckTx
func (*Backend) DeliverPtx ¶
func (b *Backend) DeliverPtx(ptx *ethereum.ParalleledTransaction) abciTypes.ResponseDeliverTx
func (*Backend) DeliverTx ¶
func (b *Backend) DeliverTx(tx *ethTypes.Transaction) abciTypes.ResponseDeliverTx
DeliverTx appends a transaction to the current block #stable
func (*Backend) GetTotalUsedGasFee ¶
func (*Backend) InitEthState ¶
InitEthState initializes the EthState #unstable
func (*Backend) IsPtxEnabled ¶
func (*Backend) ManagedState ¶
func (b *Backend) ManagedState() *state.ManagedState
func (*Backend) Protocols ¶
Protocols implements node.Service, returning all the currently configured network protocols to start. #stable
func (*Backend) ResetState ¶
func (b *Backend) ResetState() (*state.ManagedState, error)
func (*Backend) Start ¶
Start implements node.Service, starting all internal goroutines needed by the Ethereum protocol implementation. #stable
func (*Backend) Stop ¶
Stop implements node.Service, terminating all internal goroutines used by the Ethereum protocol. #stable
func (*Backend) UpdateHeaderWithTimeInfo ¶
UpdateHeaderWithTimeInfo uses the tendermint header to update the ethereum header #unstable
func (*Backend) UpdateProposer ¶
func (b *Backend) UpdateProposer()
type NullBlockProcessor ¶
type NullBlockProcessor struct{}
NullBlockProcessor does not validate anything #unstable
func (NullBlockProcessor) ValidateBody ¶
func (NullBlockProcessor) ValidateBody(*ethTypes.Block) error
ValidateBody does not validate anything #unstable
type SendTxArgs ¶
type SendTxArgs struct {
From common.Address `json:"from"`
To *common.Address `json:"to"`
Gas *hexutil.Big `json:"gas"`
GasPrice *hexutil.Big `json:"gasPrice"`
Value *hexutil.Big `json:"value"`
Data hexutil.Bytes `json:"data"`
Nonce *hexutil.Uint64 `json:"nonce"`
}
SendTxArgs represents the arguments to sumbit a new transaction