keeper

package
v0.0.0-...-dd98aab Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

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

Keeper is the keeper.

func NewKeeper

func NewKeeper(storeService store.KVStoreService) Keeper

NewKeeper creates a new keeper.

func (Keeper) Balance

Balance implements the Query/Balance method.

func (Keeper) BalancesByAddress

BalancesByAddress implements the Query/BalancesByAddress method.

func (Keeper) BalancesByVoucher

BalancesByVoucher implements the Query/BalancesByVoucher method.

func (Keeper) Create

func (k Keeper) Create(ctx context.Context, req *v1.MsgCreate) (*v1.MsgCreateResponse, error)

Create implements Msg/Create.

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context, _ codec.JSONCodec) (json.RawMessage, error)

ExportGenesis exports genesis state.

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, _ codec.JSONCodec, data json.RawMessage) error

InitGenesis initializes genesis state.

func (Keeper) Issue

func (k Keeper) Issue(ctx context.Context, req *v1.MsgIssue) (*v1.MsgIssueResponse, error)

Issue implements Msg/Issue.

func (Keeper) PruneVouchers

func (k Keeper) PruneVouchers(ctx sdk.Context) error

PruneVouchers removes expired vouchers from state.

func (Keeper) UpdateIssuer

func (k Keeper) UpdateIssuer(ctx context.Context, req *v1.MsgUpdateIssuer) (*v1.MsgUpdateIssuerResponse, error)

UpdateIssuer implements the Msg/UpdateIssuer method.

func (Keeper) UpdateMetadata

func (k Keeper) UpdateMetadata(ctx context.Context, req *v1.MsgUpdateMetadata) (*v1.MsgUpdateMetadataResponse, error)

UpdateMetadata implements the Msg/UpdateMetadata method.

func (Keeper) Voucher

Voucher implements the Query/Voucher method.

func (Keeper) Vouchers

Vouchers implements the Query/Vouchers method.

func (Keeper) VouchersByIssuer

VouchersByIssuer implements the Query/VouchersByIssuer method.

Jump to

Keyboard shortcuts

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