guardiansets

package
v0.0.0-...-4318582 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGuardianSetsFromChain

func GetGuardianSetsFromChain(ctx context.Context, ethRpcUrl string, ethGovernanceAddress eth_common.Address, fromIndex uint32) ([]*common.GuardianSet, error)

Types

type GuardianSets

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

func NewGuardianSets

func NewGuardianSets(
	guardianSets []*common.GuardianSet,
	ethRpcUrl string,
	logger *zap.Logger,
	duration time.Duration,
	ethGovernanceAddress eth_common.Address,
	guardianSetC chan<- *common.GuardianSet,
) *GuardianSets

func (*GuardianSets) GetCurrentGuardianSet

func (gs *GuardianSets) GetCurrentGuardianSet() *common.GuardianSet

func (*GuardianSets) GetGuardianSet

func (gs *GuardianSets) GetGuardianSet(ctx context.Context, index int) (*common.GuardianSet, error)

func (*GuardianSets) UpdateGuardianSet

func (gs *GuardianSets) UpdateGuardianSet(ctx context.Context)

Jump to

Keyboard shortcuts

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