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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleSetProjectVerifiedProposal

func HandleSetProjectVerifiedProposal(ctx sdk.Context, k Keeper, p *types.SetProjectVerifiedProposal) error

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 sdk.StoreKey,
	ps paramtypes.Subspace,
	accountKeeper types.AccountKeeper,
	bankKeeper types.BankKeeper,
) *Keeper

func (Keeper) CreateProject

func (k Keeper) CreateProject(ctx sdk.Context, projectOwner sdk.AccAddress, msg *types.MsgCreateProjectRequest) (uint64, error)

func (Keeper) DeleteProject

func (k Keeper) DeleteProject(ctx sdk.Context, projectOwner sdk.AccAddress, msg *types.MsgDeleteProjectRequest) error

func (Keeper) DeleteProjectById

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

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState

ExportGenesis returns the capability module's exported genesis.

func (Keeper) GetAllProjects

func (k Keeper) GetAllProjects(ctx sdk.Context) (res []*types.Project, err error)

func (Keeper) GetModuleAccountAddress

func (k Keeper) GetModuleAccountAddress(ctx sdk.Context) sdk.AccAddress

GetModuleAccountAddress gets the address of module account

func (Keeper) GetNextProjectIDAndIncrement

func (k Keeper) GetNextProjectIDAndIncrement(ctx sdk.Context) uint64

GetNextProjectIDAndIncrement returns the next project id, and increments the corresponding state entry.

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetProjectById

func (k Keeper) GetProjectById(ctx sdk.Context, projectId uint64) (types.Project, error)

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)

InitGenesis initializes the capability module's state from a provided genesis state.

func (Keeper) IterateProjectInfo

func (k Keeper) IterateProjectInfo(ctx sdk.Context, fn func(index uint64, projectInfo types.Project) (stop bool))

func (Keeper) Logger

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

func (Keeper) MarshalProject

func (k Keeper) MarshalProject(project types.Project) ([]byte, error)

func (Keeper) MarshalReleaseMechanism

func (k Keeper) MarshalReleaseMechanism(rm types.ReleaseMechanismI) ([]byte, error)

func (Keeper) NewProjectAddress

func (k Keeper) NewProjectAddress(projectID uint64) sdk.AccAddress

Get new project address

func (Keeper) ParseAnyReleaseMechanism

func (k Keeper) ParseAnyReleaseMechanism(any *codectypes.Any) (types.ReleaseMechanismI, error)

func (Keeper) RegisterReleaseMechanismToProject

func (k Keeper) RegisterReleaseMechanismToProject(ctx sdk.Context, projectId uint64, rm types.ReleaseMechanismI) error

func (*Keeper) SetHooks

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

Set the gamm hooks.

func (Keeper) SetNextProjectID

func (k Keeper) SetNextProjectID(ctx sdk.Context, projectID uint64)

SetNextProjectID sets next project ID.

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetProject

func (k Keeper) SetProject(ctx sdk.Context, project types.Project) error

func (Keeper) SetProjectActive

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

func (Keeper) SetProjectEndable

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

func (Keeper) UnmarshalProject

func (k Keeper) UnmarshalProject(bz []byte) (types.Project, error)

func (Keeper) UnmarshalReleaseMechanism

func (k Keeper) UnmarshalReleaseMechanism(bz []byte) (types.ReleaseMechanismI, error)

func (Keeper) UnregisterReleaseMechanismFromProject

func (k Keeper) UnregisterReleaseMechanismFromProject(ctx sdk.Context, projectId uint64, rm_type string) error

func (Keeper) WithdrawTokens

func (k Keeper) WithdrawTokens(ctx sdk.Context, projectOwner sdk.AccAddress, msg *types.MsgWithdrawAllTokensRequest) error

type Querier

type Querier struct {
	Keeper
}

func NewQuerier

func NewQuerier(k Keeper) Querier

func (Querier) Params

func (Querier) Project

func (Querier) ProjectBalances

func (Querier) TotalProject

Jump to

Keyboard shortcuts

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