keeper

package
v0.52.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StoreKey = "Counter"

Functions

This section is empty.

Types

type Hooks

type Hooks struct {
	AfterCounterIncreased bool
}

func (*Hooks) AfterIncreaseCount

func (h *Hooks) AfterIncreaseCount(ctx context.Context, n int64) error

type Keeper

type Keeper struct {
	appmodule.Environment

	CountStore collections.Item[int64]
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(env appmodule.Environment) *Keeper

func (Keeper) GetCount

Params queries params of consensus module

func (*Keeper) Hooks

func (k *Keeper) Hooks() types.CounterHooks

Hooks gets the hooks for counter Keeper

func (Keeper) IncreaseCount

func (*Keeper) SetHooks

func (k *Keeper) SetHooks(gh types.CounterHooks) *Keeper

SetHooks sets the hooks for counter

Jump to

Keyboard shortcuts

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