utils

package
v2.0.0-b2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MinDaoMemberIDLength int = 3
	MinPasswordLength    int = 12
)

Config

Variables

This section is empty.

Functions

func ValidateArgCount

func ValidateArgCount(c *cli.Context, expectedCount int)

Validate command argument count - only used by the CLI TODO: refactor CLI arg validation and move it out of shared

func ValidateBurnableTokenType

func ValidateBurnableTokenType(name, value string) (string, error)

Validate a burnable token type

func ValidateDaoMemberID

func ValidateDaoMemberID(name, value string) (string, error)

Validate a DAO member ID

func ValidateProposalType

func ValidateProposalType(name, value string) (string, error)

Validate a proposal type

func ValidateTokenType

func ValidateTokenType(name, value string) (string, error)

Validate a token type

func ValidateVoteDirection

func ValidateVoteDirection(name, value string) (types.VoteDirection, error)

Validate a vote direction

Types

This section is empty.

Jump to

Keyboard shortcuts

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