types

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCodeSpace btypes.CodespaceType = "params"

	CodeInvalidParam btypes.CodeType = 701 // invalid param
)

QCP errors reserve 600 ~ 699.

Variables

Functions

func ErrInvalidParam

func ErrInvalidParam(msg string) btypes.Error

func RegisterCodec

func RegisterCodec(cdc *amino.Codec)

Types

type KeyValuePair

type KeyValuePair struct {
	Key   []byte
	Value interface{}
}

type KeyValuePairs

type KeyValuePairs []KeyValuePair

type ParamSet

type ParamSet interface {
	KeyValuePairs() KeyValuePairs
	Validate(key string, value string) (interface{}, btypes.Error)
	GetParamSpace() string
}

Jump to

Keyboard shortcuts

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