ve_utils

package
v0.0.0-...-23a414b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreVEEnabled

func AreVEEnabled(ctx sdk.Context) bool

func GetPriceFromBytes

func GetPriceFromBytes(
	id uint32,
	bz []byte,
) (*big.Int, error)

func GetVEDecodedPrice

func GetVEDecodedPrice(
	priceBz []byte,
) (*big.Int, error)

func GetVEEncodedPrice

func GetVEEncodedPrice(
	price *big.Int,
) ([]byte, error)

func GetValPubKeyFromVote

func GetValPubKeyFromVote(
	ctx sdk.Context,
	vote cometabci.ExtendedVoteInfo,
	validatorStore voteweighted.ValidatorStore,
) (crypto.PubKey, error)

func MarshalDelimited

func MarshalDelimited(msg proto.Message) ([]byte, error)

marshalDelimited serializes a proto.Message into a delimited byte slice.

Types

type ValidatorNotFoundError

type ValidatorNotFoundError struct {
	Address []byte
}

func (*ValidatorNotFoundError) Error

func (e *ValidatorNotFoundError) Error() string

Jump to

Keyboard shortcuts

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