registry

package
v1.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2024 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressToBLSKey added in v1.10.3

type AddressToBLSKey interface {
	GetAddressForBLSKey(publicKeys multibls.PublicKeys, shardState FindCommitteeByID, blskey *bls_core.PublicKey, epoch *big.Int) common.Address
	GetAddresses(publicKeys multibls.PublicKeys, shardState FindCommitteeByID, epoch *big.Int) map[string]common.Address
}

type FindCommitteeByID added in v1.10.3

type FindCommitteeByID interface {
	FindCommitteeByID(shardID uint32) (*shard.Committee, error)
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry consolidates services at one place.

func New

func New() *Registry

New creates a new registry.

func (*Registry) GetAddressToBLSKey added in v1.10.3

func (r *Registry) GetAddressToBLSKey() AddressToBLSKey

func (*Registry) GetBeaconchain

func (r *Registry) GetBeaconchain() core.BlockChain

GetBeaconchain gets the beaconchain from registry.

func (*Registry) GetBlockchain

func (r *Registry) GetBlockchain() core.BlockChain

GetBlockchain gets the blockchain from registry.

func (*Registry) GetCxPool

func (r *Registry) GetCxPool() *core.CxPool

GetCxPool gets the cxpool from registry.

func (*Registry) GetEngine

func (r *Registry) GetEngine() engine.Engine

GetEngine gets the engine from registry.

func (*Registry) GetNodeConfig added in v1.10.3

func (r *Registry) GetNodeConfig() *nodeconfig.ConfigType

func (*Registry) GetShardChainCollection

func (r *Registry) GetShardChainCollection() *shardchain.CollectionImpl

GetShardChainCollection gets the shard chain collection from registry.

func (*Registry) GetTxPool

func (r *Registry) GetTxPool() *core.TxPool

GetTxPool gets the txpool from registry.

func (*Registry) GetWebHooks

func (r *Registry) GetWebHooks() *webhooks.Hooks

GetWebHooks gets the webhooks from registry.

func (*Registry) GetWorker added in v1.10.3

func (r *Registry) GetWorker() *worker.Worker

GetWorker gets the worker from registry.

func (*Registry) IsBackup

func (r *Registry) IsBackup() bool

func (*Registry) SetAddressToBLSKey added in v1.10.3

func (r *Registry) SetAddressToBLSKey(a AddressToBLSKey) *Registry

func (*Registry) SetBeaconchain

func (r *Registry) SetBeaconchain(bc core.BlockChain) *Registry

SetBeaconchain sets the beaconchain to registry.

func (*Registry) SetBlockchain

func (r *Registry) SetBlockchain(bc core.BlockChain) *Registry

SetBlockchain sets the blockchain to registry.

func (*Registry) SetCxPool

func (r *Registry) SetCxPool(cxPool *core.CxPool) *Registry

SetCxPool sets the cxpool to registry.

func (*Registry) SetEngine

func (r *Registry) SetEngine(engine engine.Engine) *Registry

SetEngine sets the engine to registry.

func (*Registry) SetIsBackup

func (r *Registry) SetIsBackup(isBackup bool) *Registry

func (*Registry) SetNodeConfig added in v1.10.3

func (r *Registry) SetNodeConfig(n *nodeconfig.ConfigType) *Registry

func (*Registry) SetShardChainCollection

func (r *Registry) SetShardChainCollection(collection *shardchain.CollectionImpl) *Registry

SetShardChainCollection sets the shard chain collection to registry.

func (*Registry) SetTxPool

func (r *Registry) SetTxPool(txPool *core.TxPool) *Registry

SetTxPool sets the txpool to registry.

func (*Registry) SetWebHooks

func (r *Registry) SetWebHooks(hooks *webhooks.Hooks) *Registry

SetWebHooks sets the webhooks to registry.

func (*Registry) SetWorker added in v1.10.3

func (r *Registry) SetWorker(w *worker.Worker) *Registry

SetWorker sets the worker to registry.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL