keeper

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IDRegExprString = "[a-f0-9]{8}"
)

Variables

View Source
var (
	IDRegExpr = regexp.MustCompile(fmt.Sprintf("^%s$", IDRegExprString))
)

Functions

func VerifyContractID

func VerifyContractID(contractID string) bool

Types

type BaseContractKeeper

type BaseContractKeeper struct {
	// contains filtered or unexported fields
}

func (BaseContractKeeper) DeleteContractID

func (k BaseContractKeeper) DeleteContractID(ctx sdk.Context, contractID string)

func (BaseContractKeeper) HasContractID

func (k BaseContractKeeper) HasContractID(ctx sdk.Context, contractID string) bool

func (BaseContractKeeper) NewContractID

func (k BaseContractKeeper) NewContractID(ctx sdk.Context) string

type ContractKeeper

type ContractKeeper interface {
	NewContractID(ctx sdk.Context) string
	HasContractID(ctx sdk.Context, contractID string) bool
	DeleteContractID(ctx sdk.Context, contractID string)
}

func NewContractKeeper

func NewContractKeeper(cdc *codec.Codec, storeKey sdk.StoreKey) ContractKeeper

Jump to

Keyboard shortcuts

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