keeper

package
v0.0.0-...-3d89e14 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 16 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 Hooks

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

Hooks wrapper struct for incentives keeper.

func (Hooks) AfterProjectDeteted

func (h Hooks) AfterProjectDeteted(ctx sdk.Context, projectId uint64)

hooks.

func (Hooks) AfterWithdrawTokens

func (h Hooks) AfterWithdrawTokens(ctx sdk.Context, projectId uint64)

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey sdk.StoreKey,
	ps paramtypes.Subspace,
	launchpadKeeper types.LaunchpadKeeper,
	bankKeeper types.BankKeeper,
	accKeeper types.AccountKeeper,
) *Keeper

func (Keeper) AfterProjectDeteted

func (k Keeper) AfterProjectDeteted(ctx sdk.Context, projectId uint64)

func (Keeper) AfterWithdrawTokens

func (k Keeper) AfterWithdrawTokens(ctx sdk.Context, projectId uint64)

func (Keeper) BeginBlocker

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

func (Keeper) CalculateCommitTokens

func (k Keeper) CalculateCommitTokens(tokenDistribution, tokenListingPrice sdk.Coins, distributionDenom string) sdk.Coins

func (Keeper) CalculateDistributionTokens

func (k Keeper) CalculateDistributionTokens(tokenCommit, tokenListingPrice sdk.Coins, distributionDenom string) sdk.Coins

func (Keeper) CommitParticipation

func (k Keeper) CommitParticipation(ctx sdk.Context, participant sdk.AccAddress, msg *types.MsgCommitParticipationRequest) error

func (Keeper) DeleteIDOById

func (k Keeper) DeleteIDOById(ctx sdk.Context, projectId uint64)

func (Keeper) EnableIDO

func (k Keeper) EnableIDO(ctx sdk.Context, owner sdk.AccAddress, msg *types.MsgEnableIDORequest) error

func (Keeper) GetIDOByID

func (k Keeper) GetIDOByID(ctx sdk.Context, project_id uint64) (types.IDO, error)

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) HasIDO

func (k Keeper) HasIDO(ctx sdk.Context, project_id uint64) bool

func (Keeper) Hooks

func (k Keeper) Hooks() Hooks

Return the wrapper struct.

func (Keeper) IterateIDO

func (k Keeper) IterateIDO(ctx sdk.Context, fn func(index int64, ido types.IDO) (stop bool))

func (Keeper) Logger

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

func (Keeper) MarshalIDO

func (k Keeper) MarshalIDO(ido types.IDO) ([]byte, error)

func (Keeper) SetIDO

func (k Keeper) SetIDO(ctx sdk.Context, ido types.IDO) error

func (Keeper) SetIDOAndRegisterLaunchpad

func (k Keeper) SetIDOAndRegisterLaunchpad(ctx sdk.Context, ido types.IDO) error

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) UnmarshalIDO

func (k Keeper) UnmarshalIDO(bz []byte) (types.IDO, error)

type Querier

type Querier struct {
	Keeper
}

func NewQuerier

func NewQuerier(k Keeper) Querier

func (Querier) IDO

func (q Querier) IDO(goCtx context.Context, req *types.IDORequest) (*types.IDOResponse, error)

func (Querier) Params

func (Querier) TotalIDO

Jump to

Keyboard shortcuts

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