checkers

package
v5.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package checkers provides functions and structures to verify common types and aggregate errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGovAuthority

func IsGovAuthority(authority string) error

IsGovAuthority errors is the authority is the gov module address

func Signers

func Signers(signers ...string) []sdk.AccAddress

Signers converts signer bech32 addresses to sdk.AccAddress list. The function ignores errors. It is supposed to be used within Msg.GetSigners implementation.

func ValidateAddr

func ValidateAddr(addr, name string) error

func ValidateProposal

func ValidateProposal(title, description, authority string) error

ValidateProposal checks the format of the title, description, and authority of a gov message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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