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)
Click to show internal directories.
Click to hide internal directories.