types

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ModuleName = "contract"

	StoreKey = ModuleName
)

Variables

View Source
var (
	ErrInvalidContractID = sdkerrors.Register(ModuleName, 1, "invalid contractID")
	ErrContractNotExist  = sdkerrors.Register(ModuleName, 2, "contract does not exist")
)
View Source
var (
	LastContractCountStoreKeyPrefix = []byte{0x01}
	ContractIDStoreKeyPrefix        = []byte{0x02}
)

Functions

func ContractIDStoreKey

func ContractIDStoreKey(contractID string) []byte

func LastContractCountStoreKey

func LastContractCountStoreKey() []byte

Types

type ContractMsg

type ContractMsg interface {
	sdk.Msg
	GetContractID() string
}

type CtxKey

type CtxKey struct{}

Jump to

Keyboard shortcuts

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