Documentation ¶
Index ¶
- type Service
- func (s *Service) Address() string
- func (s *Service) Balance(_ context.Context, _ types.Address, _ string) (*big.Int, error)
- func (s *Service) Block(_ context.Context, _ string) (*spec.Block, error)
- func (s *Service) Call(_ context.Context, _ *execclient.CallOpts) ([]byte, error)
- func (s *Service) ChainHeight(_ context.Context) (uint32, error)
- func (s *Service) ChainID(_ context.Context) (uint64, error)
- func (s *Service) Events(_ context.Context, _ *api.EventsFilter) ([]*spec.BerlinTransactionEvent, error)
- func (s *Service) Issuance(_ context.Context, _ string) (*api.Issuance, error)
- func (s *Service) Name() string
- func (s *Service) NetworkID(_ context.Context) (uint64, error)
- func (s *Service) NewPendingTransactions(_ context.Context, _ chan *spec.Transaction) (*util.Subscription, error)
- func (s *Service) ReplayBlockTransactions(_ context.Context, _ string) ([]*api.TransactionResult, error)
- func (s *Service) Syncing(_ context.Context) (*api.SyncState, error)
- func (s *Service) Transaction(_ context.Context, _ types.Hash) (*spec.Transaction, error)
- func (s *Service) TransactionInBlock(_ context.Context, _ types.Hash, _ uint32) (*spec.Transaction, error)
- func (s *Service) TransactionReceipt(_ context.Context, _ types.Hash) (*spec.BerlinTransactionReceipt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct{}
Service is a mock execution client service.
func (*Service) ChainHeight ¶
ChainHeight returns the height of the chain as understood by the node.
func (*Service) Events ¶
func (s *Service) Events(_ context.Context, _ *api.EventsFilter) ([]*spec.BerlinTransactionEvent, error)
Events returns the events matching the filter.
func (*Service) NewPendingTransactions ¶
func (s *Service) NewPendingTransactions(_ context.Context, _ chan *spec.Transaction) (*util.Subscription, error)
NewPendingTransactions subscribes to new pending transactions.
func (*Service) ReplayBlockTransactions ¶
func (s *Service) ReplayBlockTransactions(_ context.Context, _ string) ([]*api.TransactionResult, error)
ReplayBlockTransactions obtains traces for all transactions in a block.
func (*Service) Transaction ¶
Transaction returns the transaction for the given transaction hash.
func (*Service) TransactionInBlock ¶
func (s *Service) TransactionInBlock(_ context.Context, _ types.Hash, _ uint32) (*spec.Transaction, error)
TransactionInBlock returns the transaction for the given transaction in a block at the given index.
func (*Service) TransactionReceipt ¶
func (s *Service) TransactionReceipt(_ context.Context, _ types.Hash) (*spec.BerlinTransactionReceipt, error)
TransactionReceipt returns the transaction receipt for the given transaction hash.
Click to show internal directories.
Click to hide internal directories.