Documentation ¶
Index ¶
- type Server
- func (m *Server) AdjustGas(msg message.Call) message.Call
- func (m *Server) BlockInfoByHash(hash common.Hash) (*machine.BlockInfo, error)
- func (m *Server) BlockInfoByNumber(height uint64) (*machine.BlockInfo, error)
- func (m *Server) BloomStatus() (uint64, uint64)
- func (m *Server) Call(msg message.Call, sender ethcommon.Address) (*evm.TxResult, error)
- func (m *Server) ChainDb() ethdb.Database
- func (m *Server) FindLogs(ctx context.Context, fromHeight, toHeight *uint64, ...) ([]evm.FullLog, error)
- func (m *Server) GetBlockCount() uint64
- func (m *Server) GetChainAddress() ethcommon.Address
- func (m *Server) GetLogs(ctx context.Context, blockHash ethcommon.Hash) ([][]*types.Log, error)
- func (m *Server) GetMachineBlockResults(block *machine.BlockInfo) ([]*evm.TxResult, error)
- func (m *Server) GetOutputMessage(args *evm.GetOutputMessageArgs, reply *evm.GetOutputMessageReply) error
- func (m *Server) GetReceipts(ctx context.Context, blockHash ethcommon.Hash) (types.Receipts, error)
- func (m *Server) GetRequestResult(requestId common.Hash) (value.Value, error)
- func (m *Server) GetSnapshot(blockHeight uint64) (*snapshot.Snapshot, error)
- func (m *Server) GetTxInBlockAtIndexResults(res *evm.BlockInfo, index uint64) (*evm.TxResult, error)
- func (m *Server) HeaderByHash(ctx context.Context, blockHash ethcommon.Hash) (*types.Header, error)
- func (m *Server) HeaderByNumber(ctx context.Context, blockNumber rpc.BlockNumber) (*types.Header, error)
- func (m *Server) LatestSnapshot() *snapshot.Snapshot
- func (m *Server) PendingCall(msg message.Call, sender ethcommon.Address) (*evm.TxResult, error)
- func (m *Server) PendingSnapshot() *snapshot.Snapshot
- func (m *Server) PendingTransactionCount(ctx context.Context, account common.Address) *uint64
- func (m *Server) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (m *Server) ServiceFilter(ctx context.Context, session *bloombits.MatcherSession)
- func (m *Server) SubscribeBlockProcessingEvent(ch chan<- []*types.Log) event.Subscription
- func (m *Server) SubscribeChainEvent(ch chan<- core.ChainEvent) event.Subscription
- func (m *Server) SubscribeChainHeadEvent(ch chan<- core.ChainEvent) event.Subscription
- func (m *Server) SubscribeChainSideEvent(ch chan<- core.ChainEvent) event.Subscription
- func (m *Server) SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscription
- func (m *Server) SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent) event.Subscription
- func (m *Server) SubscribePendingLogsEvent(ch chan<- []*types.Log) event.Subscription
- func (m *Server) SubscribeRemovedLogsEvent(ch chan<- core.RemovedLogsEvent) event.Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( batch batcher.TransactionBatcher, rollupAddress common.Address, db *txdb.TxDB, ) *Server
NewServer returns a new instance of the Server class
func (*Server) BlockInfoByHash ¶ added in v0.7.3
func (*Server) BlockInfoByNumber ¶ added in v0.7.3
func (*Server) BloomStatus ¶ added in v0.7.3
func (*Server) Call ¶
Call takes a request from a Client to process in a temporary context and return the result
func (*Server) FindLogs ¶
func (m *Server) FindLogs(ctx context.Context, fromHeight, toHeight *uint64, addresses []ethcommon.Address, topics [][]ethcommon.Hash) ([]evm.FullLog, error)
FindLogs takes a set of parameters and return the list of all logs that match the query
func (*Server) GetBlockCount ¶
func (*Server) GetChainAddress ¶
GetVMInfo returns current metadata about this VM
func (*Server) GetMachineBlockResults ¶ added in v0.7.3
func (*Server) GetOutputMessage ¶
func (m *Server) GetOutputMessage( args *evm.GetOutputMessageArgs, reply *evm.GetOutputMessageReply, ) error
func (*Server) GetReceipts ¶ added in v0.7.3
func (*Server) GetRequestResult ¶
GetMessageResult returns the value output by the VM in response to the l2message with the given hash
func (*Server) GetSnapshot ¶
func (*Server) GetTxInBlockAtIndexResults ¶ added in v0.7.2
func (*Server) HeaderByHash ¶ added in v0.7.3
func (*Server) HeaderByNumber ¶ added in v0.7.3
func (*Server) LatestSnapshot ¶
func (*Server) PendingCall ¶
PendingCall takes a request from a Client to process in a temporary context and return the result
func (*Server) PendingSnapshot ¶
func (*Server) PendingTransactionCount ¶
func (*Server) SendTransaction ¶
SendTransaction takes a request signed transaction l2message from a Client and puts it in a queue to be included in the next transaction batch
func (*Server) ServiceFilter ¶ added in v0.7.3
func (m *Server) ServiceFilter(ctx context.Context, session *bloombits.MatcherSession)
func (*Server) SubscribeBlockProcessingEvent ¶ added in v0.7.3
func (m *Server) SubscribeBlockProcessingEvent(ch chan<- []*types.Log) event.Subscription
func (*Server) SubscribeChainEvent ¶ added in v0.7.3
func (m *Server) SubscribeChainEvent(ch chan<- core.ChainEvent) event.Subscription
func (*Server) SubscribeChainHeadEvent ¶ added in v0.7.3
func (m *Server) SubscribeChainHeadEvent(ch chan<- core.ChainEvent) event.Subscription
func (*Server) SubscribeChainSideEvent ¶ added in v0.7.3
func (m *Server) SubscribeChainSideEvent(ch chan<- core.ChainEvent) event.Subscription
func (*Server) SubscribeLogsEvent ¶ added in v0.7.3
func (m *Server) SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscription
func (*Server) SubscribeNewTxsEvent ¶ added in v0.7.3
func (m *Server) SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent) event.Subscription
func (*Server) SubscribePendingLogsEvent ¶ added in v0.7.3
func (m *Server) SubscribePendingLogsEvent(ch chan<- []*types.Log) event.Subscription
func (*Server) SubscribeRemovedLogsEvent ¶ added in v0.7.3
func (m *Server) SubscribeRemovedLogsEvent(ch chan<- core.RemovedLogsEvent) event.Subscription
Click to show internal directories.
Click to hide internal directories.