types

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrQueryTx        = sdkerrors.Register(string(DefaultCodespace), uint32(CodeQueryTxError), "query Tx failed")
	ErrInvalidTxHash  = sdkerrors.Register(string(DefaultCodespace), uint32(CodeCheckParamsError), "invalid tx hash")
	ErrGetNodeFailed  = sdkerrors.Register(string(DefaultCodespace), uint32(CodeGetNodeFailed), "get node failed")
	ErrGetBlockFailed = sdkerrors.Register(string(DefaultCodespace), uint32(CodeGetBlockFailed), "get block with height failed")
)
View Source
var (
	EventType = "account"

	//AttributeKeyMethod = "operation"
	AttributeValueTransfer = "transfer"

	AttributeValueCategory = "account"
)

Functions

This section is empty.

Types

type CodeType

type CodeType = sdk.CodeType
const (
	DefaultCodespace     sdk.CodespaceType = "transfer"
	CodeInvalidAmount    CodeType          = 201
	CodeInvalidReceiver  CodeType          = 202
	CodeCheckParamsError CodeType          = 203
	CodeQueryTxError     CodeType          = 204
	CodeGetNodeFailed    CodeType          = 205
	CodeGetBlockFailed   CodeType          = 206
)

// transfer errors reserve 200 ~ 299.

Jump to

Keyboard shortcuts

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