validator

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DCLValidatorDisabledNodesEndpoint       = "/dcl/validator/disabled-nodes/"
	DCLValidatorProposedDisableNodeEndpoint = "/dcl/validator/proposed-disable-nodes/"
	DCLValidatorRejectedDisableNodeEndpoint = "/dcl/validator/rejected-disable-nodes/"
)

Variables

This section is empty.

Functions

func ApproveDisableValidator

func ApproveDisableValidator(
	suite *utils.TestSuite,
	valAddr sdk.ValAddress,
	signerName string,
	signerAccount *dclauthtypes.Account,
	info string,
) (*sdk.TxResponse, error)

func CreateValidator

func CreateValidator(
	suite *utils.TestSuite,
	valAddr sdk.ValAddress,
	signerName string,
	signerAccount *dclauthtypes.Account,
	pubkey cryptotypes.PubKey,
	moniker string,
) (*sdk.TxResponse, error)

func Demo

func Demo(suite *utils.TestSuite)

func DisableValidator

func DisableValidator(
	suite *utils.TestSuite,
	valAddr sdk.ValAddress,
	signerName string,
	signerAccount *dclauthtypes.Account,
) (*sdk.TxResponse, error)

func EnableValidator

func EnableValidator(
	suite *utils.TestSuite,
	valAddr sdk.ValAddress,
	signerName string,
	signerAccount *dclauthtypes.Account,
) (*sdk.TxResponse, error)

func GetDisabledValidator

func GetDisabledValidator(suite *utils.TestSuite, address sdk.ValAddress) (*validatortypes.DisabledValidator, error)

func GetDisabledValidators

func GetDisabledValidators(suite *utils.TestSuite) (res []validatortypes.DisabledValidator, err error)

func GetProposedValidatorToDisable

func GetProposedValidatorToDisable(suite *utils.TestSuite, address sdk.ValAddress) (*validatortypes.ProposedDisableValidator, error)

func GetProposedValidatorsToDisable

func GetProposedValidatorsToDisable(suite *utils.TestSuite) (
	res []validatortypes.ProposedDisableValidator, err error,
)

func GetRejectedValidatorToDisable added in v0.11.0

func GetRejectedValidatorToDisable(
	suite *utils.TestSuite, address sdk.ValAddress,
) (*validatortypes.RejectedDisableValidator, error)

func GetRejectedValidatorsToDisable added in v0.11.0

func GetRejectedValidatorsToDisable(suite *utils.TestSuite) (
	res []validatortypes.RejectedDisableValidator, err error,
)

func ProposeDisableValidator

func ProposeDisableValidator(
	suite *utils.TestSuite,
	valAddr sdk.ValAddress,
	signerName string,
	signerAccount *dclauthtypes.Account,
	info string,
) (*sdk.TxResponse, error)

func RejectDisableValidator added in v0.11.0

func RejectDisableValidator(
	suite *utils.TestSuite,
	valAddr sdk.ValAddress,
	signerName string,
	signerAccount *dclauthtypes.Account,
	info string,
) (*sdk.TxResponse, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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