keeper

package
v0.0.17-testnet Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	ps paramtypes.Subspace,
	authority sdk.AccAddress,
) *Keeper

func (Keeper) CreateProject added in v0.1.0

CreateProject create a new project

func (Keeper) GetByWallet added in v0.0.6

func (k Keeper) GetByWallet(ctx sdk.Context, wallet string) (types.Investor, error)

func (Keeper) GetInvestor

func (k Keeper) GetInvestor(ctx sdk.Context, investorID string) types.Investor

func (Keeper) GetInvestorWallets added in v0.0.6

func (k Keeper) GetInvestorWallets(ctx sdk.Context, investorID string) (types.Investor, error)

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) GetProject added in v0.1.0

func (k Keeper) GetProject(ctx sdk.Context, index int32) (val types.ProjectInfo, found bool)

func (Keeper) GetSubmitter

func (k Keeper) GetSubmitter(ctx sdk.Context) (submitters []sdk.AccAddress)

func (Keeper) ListAllProjects added in v0.1.0

func (Keeper) ListInvestors

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) Params

func (Keeper) QueryByWallet

func (Keeper) QueryProject added in v0.1.0

func (Keeper) SetInvestor

func (k Keeper) SetInvestor(ctx sdk.Context, investor types.Investor) *types.Investor

SetInvestor set a specific issueToken in the store from its index

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

func (Keeper) SetProject added in v0.1.0

func (k Keeper) SetProject(ctx sdk.Context, p *types.ProjectInfo) (int32, error)

type Migrator added in v0.1.0

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

Migrator is a struct for handling in-place store migrations.

func NewMigrator added in v0.1.0

func NewMigrator(keeper Keeper) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate1to2 added in v0.1.0

func (m Migrator) Migrate1to2(ctx sdk.Context) error

Migrate1to2 from version 1 to 2.

Jump to

Keyboard shortcuts

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