validatorstest

package
v1.11.14 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package validatorstest provides test utilities for validators

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Helper added in v1.11.14

func Helper(t *testing.T)

Helper provides test helper functions

Types

type TestValidator added in v1.11.14

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

TestValidator is a test validator implementation

func NewTestValidator added in v1.11.14

func NewTestValidator(id string, weight uint64) *TestValidator

NewTestValidator creates a new test validator

func (*TestValidator) ID added in v1.11.14

func (v *TestValidator) ID() string

ID returns the validator's unique identifier

func (*TestValidator) PublicKey added in v1.11.14

func (v *TestValidator) PublicKey() []byte

PublicKey returns the validator's public key

func (*TestValidator) Weight added in v1.11.14

func (v *TestValidator) Weight() uint64

Weight returns the validator's stake weight

Jump to

Keyboard shortcuts

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