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 ¶
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
Click to show internal directories.
Click to hide internal directories.