server

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 34 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginBlocker

func BeginBlocker(ctx sdk.Context, k Keeper) error

BeginBlocker checks if there are any expired sell or buy orders and removes them from state.

func NewProposalHandler

func NewProposalHandler(k ProposalKeeper) govtypes.Handler

Types

type Keeper

type Keeper interface {
	ProposalKeeper
	PruneOrders(ctx sdk.Context) error
}

Keeper defines a set of methods the ecocredit module exposes.

func RegisterServices

func RegisterServices(
	configurator server.Configurator,
	paramSpace paramtypes.Subspace,
	accountKeeper ecocredit.AccountKeeper,
	bankKeeper ecocredit.BankKeeper,
) Keeper

type ProposalKeeper

type ProposalKeeper interface {
	AddCreditType(ctx sdk.Context, ctp *core.CreditTypeProposal) error
	AllowDenom(ctx sdk.Context, proposal *marketplace.AllowDenomProposal) error
}

ProposalKeeper defines methods for ecocredit gov handlers.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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