drivercall

package
v0.0.0-...-34d0e24 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ContractABI = "" /* 9534-byte string literal not displayed */

Variables

This section is empty.

Functions

func DeactivateValidator

func DeactivateValidator(validatorID idx.ValidatorID, status uint64) []byte

func SealEpoch

func SealEpoch(metrics []ValidatorEpochMetric) []byte

func SealEpochValidators

func SealEpochValidators(_validators []idx.ValidatorID) []byte

func SetGenesisDelegation

func SetGenesisDelegation(d Delegation) []byte

func SetGenesisValidator

func SetGenesisValidator(v gpos.Validator) []byte

Types

type Delegation

type Delegation struct {
	Address            common.Address
	ValidatorID        idx.ValidatorID
	Stake              *big.Int
	LockedStake        *big.Int
	LockupFromEpoch    idx.Epoch
	LockupEndTime      idx.Epoch
	LockupDuration     uint64
	EarlyUnlockPenalty *big.Int
	Rewards            *big.Int
}

type ValidatorEpochMetric

type ValidatorEpochMetric struct {
	Missed          opera.BlocksMissed
	Uptime          inter.Timestamp
	OriginatedTxFee *big.Int
}

Jump to

Keyboard shortcuts

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