largestake

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DAY_BLOCK_NUMBER     = 60 * 60 * 24 / 12
	TWO_DAY_BLOCK_NUMBER = DAY_BLOCK_NUMBER * 2
)

Variables

This section is empty.

Functions

func EncodeLargeStakeReportData

func EncodeLargeStakeReportData(reportData *largeStakeOracle.LargeStakeOracleReportData) ([32]byte, error)

Types

type LargeStakeHelper

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

func NewLargeStakeHelper

func NewLargeStakeHelper(refSlot, consensusVersion, refBlockNumber *big.Int) *LargeStakeHelper

func (*LargeStakeHelper) ProcessReportData

func (v *LargeStakeHelper) ProcessReportData(ctx context.Context) (*LargeStakeReportRes, error)

type LargeStakeReportRes

type LargeStakeReportRes struct {
	IsNeedReport   bool
	ReportData     *largeStakeOracle.LargeStakeOracleReportData
	ReportDataHash [32]byte
}

type LargeStakeValidator

type LargeStakeValidator struct {
	Validator *consensusApi.Validator
	IsExited  bool
	StakingId *big.Int
}

Jump to

Keyboard shortcuts

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