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

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