validators

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: GPL-3.0, GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

You should have received a copy of the GNU General Public License along with MAP Protocol. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeRegisterValidatorsInPending

func DeRegisterValidatorsInPending(vmRunner vm.EVMRunner) (*[]common.Address, error)

func DeRegisterValidatorsInPending2

func DeRegisterValidatorsInPending2(vmRunner vm.EVMRunner) (*[]common.Address, error)

func DistributeEpochReward

func DistributeEpochReward(vmRunner vm.EVMRunner, address common.Address, maxReward *big.Int, scoreDenominator *big.Int) (*big.Int, *big.Int, error)

func GetPledgeMultiplierInReward

func GetPledgeMultiplierInReward(vmRunner vm.EVMRunner) (*big.Int, error)

func GetValidatorData

func GetValidatorData(vmRunner vm.EVMRunner, validatorAddresses []common.Address) ([]istanbul.ValidatorData, error)

func RetrieveRegisteredValidatorSigners

func RetrieveRegisteredValidatorSigners(vmRunner vm.EVMRunner) ([]common.Address, error)

func RetrieveRegisteredValidators

func RetrieveRegisteredValidators(vmRunner vm.EVMRunner) ([]common.Address, error)

func UpdateValidatorScore

func UpdateValidatorScore(vmRunner vm.EVMRunner, address common.Address, uptime *big.Int) (*big.Int, bool, error)

Types

type ValidatorContractData

type ValidatorContractData struct {
	EcdsaPublicKey []byte
	BlsPublicKey   []byte
	Affiliation    common.Address
	Score          *big.Int
	Signer         common.Address
}

func GetValidator

func GetValidator(vmRunner vm.EVMRunner, validatorAddress common.Address) (ValidatorContractData, error)

Jump to

Keyboard shortcuts

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