local

package
v0.0.0-...-369a1d7 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

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

func Connect

func Connect(operatorAddress chain.Address) *Chain

func (*Chain) CanRestoreRewardEligibility

func (c *Chain) CanRestoreRewardEligibility() (bool, error)

func (*Chain) EligibleStake

func (c *Chain) EligibleStake(stakingProvider chain.Address) (*big.Int, error)

func (*Chain) GetOperatorID

func (c *Chain) GetOperatorID(
	operatorAddress chain.Address,
) (chain.OperatorID, error)

func (*Chain) IsBetaOperator

func (c *Chain) IsBetaOperator() (bool, error)

func (*Chain) IsChaosnetActive

func (c *Chain) IsChaosnetActive() (bool, error)

func (*Chain) IsEligibleForRewards

func (c *Chain) IsEligibleForRewards() (bool, error)

func (*Chain) IsOperatorInPool

func (c *Chain) IsOperatorInPool() (bool, error)

func (*Chain) IsOperatorUpToDate

func (c *Chain) IsOperatorUpToDate() (bool, error)

func (*Chain) IsPoolLocked

func (c *Chain) IsPoolLocked() (bool, error)

func (*Chain) JoinSortitionPool

func (c *Chain) JoinSortitionPool() error

func (*Chain) OperatorToStakingProvider

func (c *Chain) OperatorToStakingProvider() (chain.Address, bool, error)

func (*Chain) RegisterOperator

func (c *Chain) RegisterOperator(stakingProvider chain.Address, operator chain.Address)

This is a test util function to setup the chain

func (*Chain) RestoreRewardEligibility

func (c *Chain) RestoreRewardEligibility() error

func (*Chain) SetBetaOperatorStatus

func (c *Chain) SetBetaOperatorStatus(isBeta bool)

func (*Chain) SetChaosnetStatus

func (c *Chain) SetChaosnetStatus(isChaosnetActive bool)

func (*Chain) SetCurrentTimestamp

func (c *Chain) SetCurrentTimestamp(currentTimestamp *big.Int)

func (*Chain) SetEligibleStake

func (c *Chain) SetEligibleStake(stakingProvider chain.Address, stake *big.Int)

This is a test util function to setup the chain

func (*Chain) SetRewardIneligibility

func (c *Chain) SetRewardIneligibility(until *big.Int)

func (*Chain) UpdateOperatorStatus

func (c *Chain) UpdateOperatorStatus() error

Jump to

Keyboard shortcuts

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