Documentation
¶
Index ¶
- func DefaultDBProvider(ctx *DBContext) (dbm.DB, error)
- type AggregatorDVSInteractor
- func (a *AggregatorDVSInteractor) GetCheckSignaturesIndices(blockNumber uint32, groupNumbers types.GroupNumbers, ...) (types.CheckSignaturesIndices, error)
- func (a *AggregatorDVSInteractor) GetGroupsDVSStateAtBlock(groupNumbers types.GroupNumbers, blockNumber uint32) (map[types.GroupNumber]types.GroupDVSState, error)
- func (a *AggregatorDVSInteractor) GetOperatorInfoByAddress(operatorAddress common.Address) (types.OperatorInfo, error)
- func (a *AggregatorDVSInteractor) GetOperatorInfoByID(operatorID types.OperatorID) (types.OperatorInfo, error)
- func (a *AggregatorDVSInteractor) GetOperatorsDVSStateAtBlock(groupNumbers types.GroupNumbers, blockNumber uint32) (map[types.OperatorID]types.OperatorDVSState, error)
- type AggregatorDVSInteractorer
- type DBContext
- type DBProvider
- type OperatorStakeInfo
- type OperatorStateInfo
- type RPCClientAggregator
- type RPCServerAggregator
- type ResultDigest
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AggregatorDVSInteractor ¶
type AggregatorDVSInteractor struct {
// contains filtered or unexported fields
}
func NewAggregatorDVSInteractor ¶
func NewAggregatorDVSInteractor( operatorStateRetrieverInteractor operatorinfoprovider.OperatorInfoProvider, pellStore store.PellStore, ) *AggregatorDVSInteractor
func (*AggregatorDVSInteractor) GetCheckSignaturesIndices ¶
func (a *AggregatorDVSInteractor) GetCheckSignaturesIndices(blockNumber uint32, groupNumbers types.GroupNumbers, nonSignerOperatorIds []types.OperatorID) (types.CheckSignaturesIndices, error)
func (*AggregatorDVSInteractor) GetGroupsDVSStateAtBlock ¶
func (a *AggregatorDVSInteractor) GetGroupsDVSStateAtBlock(groupNumbers types.GroupNumbers, blockNumber uint32) (map[types.GroupNumber]types.GroupDVSState, error)
func (*AggregatorDVSInteractor) GetOperatorInfoByAddress ¶
func (a *AggregatorDVSInteractor) GetOperatorInfoByAddress(operatorAddress common.Address) (types.OperatorInfo, error)
func (*AggregatorDVSInteractor) GetOperatorInfoByID ¶
func (a *AggregatorDVSInteractor) GetOperatorInfoByID(operatorID types.OperatorID) (types.OperatorInfo, error)
func (*AggregatorDVSInteractor) GetOperatorsDVSStateAtBlock ¶
func (a *AggregatorDVSInteractor) GetOperatorsDVSStateAtBlock(groupNumbers types.GroupNumbers, blockNumber uint32) (map[types.OperatorID]types.OperatorDVSState, error)
type AggregatorDVSInteractorer ¶
type AggregatorDVSInteractorer interface {
GetOperatorsDVSStateAtBlock(groupNumbers types.GroupNumbers, blockNumber uint32) (map[types.OperatorID]types.OperatorDVSState, error)
GetGroupsDVSStateAtBlock(groupNumbers types.GroupNumbers, blockNumber uint32) (map[types.GroupNumber]types.GroupDVSState, error)
GetOperatorInfoByID(operatorID types.OperatorID) (types.OperatorInfo, error)
GetCheckSignaturesIndices(blockNumber uint32, groupNumbers types.GroupNumbers, nonSignerOperatorIds []types.OperatorID) (types.CheckSignaturesIndices, error)
// contains filtered or unexported methods
}
type DBProvider ¶
DBProvider takes a DBContext and returns an instantiated DB.
type OperatorStakeInfo ¶
type OperatorStateInfo ¶
type OperatorStateInfo struct {
Operators map[types.OperatorID]common.Address
GroupStakes map[types.GroupNumber]*big.Int
GroupOperatorMap map[types.GroupNumber][]OperatorStakeInfo
}
type RPCClientAggregator ¶
type RPCClientAggregator struct {
// contains filtered or unexported fields
}
RPCClientAggregator is an implementation that interacts with the aggregator via RPC
func NewRPCClientAggregator ¶
func NewRPCClientAggregator(address string) (*RPCClientAggregator, error)
NewRPCClientAggregator creates a new instance of RPCClientAggregator
func (*RPCClientAggregator) CollectResponseSignature ¶
func (ra *RPCClientAggregator) CollectResponseSignature(response *aggTypes.ResponseWithSignature, validatedResponseCh chan<- aggTypes.ValidatedResponse) error
CollectResponseSignature implements the CollectResponseSignature method of the Aggregator interface
type RPCServerAggregator ¶
type RPCServerAggregator struct {
service.BaseService
Logger log.Logger
// contains filtered or unexported fields
}
RPCServerAggregator is an RPC implementation of the Aggregator interface
func NewRPCServerAggregator ¶
func NewRPCServerAggregator( ctx context.Context, cfg *config.Config, aggConfig *aggregator.AggregatorConfig, logger log.Logger, ) (*RPCServerAggregator, error)
func (*RPCServerAggregator) CollectResponseSignature ¶
func (ra *RPCServerAggregator) CollectResponseSignature(response *aggregator.ResponseWithSignature, result *aggregator.ValidatedResponse) error
func (*RPCServerAggregator) IsRunning ¶
func (ra *RPCServerAggregator) IsRunning() bool
func (*RPCServerAggregator) OnStart ¶
func (ra *RPCServerAggregator) OnStart() error
func (*RPCServerAggregator) OnStop ¶
func (ra *RPCServerAggregator) OnStop()
type ResultDigest ¶
type ResultDigest [32]byte
Click to show internal directories.
Click to hide internal directories.