Documentation
¶
Index ¶
- type Config
- type Metrics
- type MockBackend
- func (m *MockBackend) CheckBlock(chainID *hexutil.U256, blockHash common.Hash, blockNumber hexutil.Uint64) (types.SafetyLevel, error)
- func (m *MockBackend) CheckMessage(identifier types.Identifier, payloadHash common.Hash) (types.SafetyLevel, error)
- func (m *MockBackend) CheckMessages(messages []types.Message, minSafety types.SafetyLevel) error
- func (m *MockBackend) Close() error
- func (m *MockBackend) Start(ctx context.Context) error
- func (m *MockBackend) Stop(ctx context.Context) error
- type SupervisorBackend
- func (su *SupervisorBackend) CheckBlock(chainID *hexutil.U256, blockHash common.Hash, blockNumber hexutil.Uint64) (types.SafetyLevel, error)
- func (su *SupervisorBackend) CheckMessage(identifier types.Identifier, payloadHash common.Hash) (types.SafetyLevel, error)
- func (su *SupervisorBackend) CheckMessages(messages []types.Message, minSafety types.SafetyLevel) error
- func (su *SupervisorBackend) Close() error
- func (su *SupervisorBackend) Start(ctx context.Context) error
- func (su *SupervisorBackend) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBackend ¶
type MockBackend struct {
// contains filtered or unexported fields
}
func NewMockBackend ¶
func NewMockBackend() *MockBackend
func (*MockBackend) CheckBlock ¶
func (m *MockBackend) CheckBlock(chainID *hexutil.U256, blockHash common.Hash, blockNumber hexutil.Uint64) (types.SafetyLevel, error)
func (*MockBackend) CheckMessage ¶
func (m *MockBackend) CheckMessage(identifier types.Identifier, payloadHash common.Hash) (types.SafetyLevel, error)
func (*MockBackend) CheckMessages ¶ added in v1.9.1
func (m *MockBackend) CheckMessages(messages []types.Message, minSafety types.SafetyLevel) error
func (*MockBackend) Close ¶
func (m *MockBackend) Close() error
type SupervisorBackend ¶
type SupervisorBackend struct {
// contains filtered or unexported fields
}
func NewSupervisorBackend ¶
func (*SupervisorBackend) CheckBlock ¶
func (su *SupervisorBackend) CheckBlock(chainID *hexutil.U256, blockHash common.Hash, blockNumber hexutil.Uint64) (types.SafetyLevel, error)
CheckBlock checks if the block is safe according to the safety level The block is considered safe if all logs in the block are safe this is decided by finding the last log in the block and
func (*SupervisorBackend) CheckMessage ¶
func (su *SupervisorBackend) CheckMessage(identifier types.Identifier, payloadHash common.Hash) (types.SafetyLevel, error)
func (*SupervisorBackend) CheckMessages ¶ added in v1.9.1
func (su *SupervisorBackend) CheckMessages( messages []types.Message, minSafety types.SafetyLevel) error
func (*SupervisorBackend) Close ¶
func (su *SupervisorBackend) Close() error
Click to show internal directories.
Click to hide internal directories.