Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockReplaysProvider ¶
type BlockReplaysProvider interface {
// ReplayBlockTransactions obtains traces for all transactions in a block.
ReplayBlockTransactions(ctx context.Context, blockID string) ([]*api.TransactionResult, error)
}
BlockReplaysProvider is the interface for providing block replays.
type BlocksProvider ¶
type BlocksProvider interface {
// Block returns the block with the given ID.
Block(ctx context.Context, blockID string) (*spec.Block, error)
}
BlocksProvider is the interface for providing blocks.
type ChainHeightProvider ¶
type ChainHeightProvider interface {
// ChainHeight returns the height of the chain as understood by the node.
ChainHeight(ctx context.Context) (uint32, error)
}
ChainHeightProvider is the interface for providing chain height.
type IssuanceProvider ¶ added in v0.2.1
type IssuanceProvider interface {
// Issuance returns the issuance of a block.
Issuance(ctx context.Context, blockID string) (*api.Issuance, error)
}
IssuanceProvider is the interface for providing issuance.
type NetworkIDProvider ¶
type NetworkIDProvider interface {
// NetworkID returns the network ID.
NetworkID(ctx context.Context) (uint64, error)
}
NetworkIDProvider is the interface for providing the network ID.
type Service ¶
type Service interface {
// Name returns the name of the client implementation.
Name() string
// Address returns the address of the client.
Address() string
}
Service is the service providing a connection to an execution client.
type SyncingProvider ¶ added in v0.2.0
type SyncingProvider interface {
// Syncing obtains information about the sync state of the node.
Syncing(ctx context.Context) (*api.SyncState, error)
}
SyncingProvider is the interface for providing syncing information.
type TransactionReceiptsProvider ¶
type TransactionReceiptsProvider interface {
// TransactionReceipt returns the transaction receipt for the given transaction hash.
TransactionReceipt(ctx context.Context, hash []byte) (*spec.TransactionReceipt, error)
}
TransactionReceiptsProvider is the interface for providing transaction receipts.
Click to show internal directories.
Click to hide internal directories.