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