Documentation ¶
Index ¶
- func HandleSetProjectVerifiedProposal(ctx sdk.Context, k Keeper, p *types.SetProjectVerifiedProposal) error
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) CreateProject(ctx sdk.Context, projectOwner sdk.AccAddress, ...) (uint64, error)
- func (k Keeper) DeleteProject(ctx sdk.Context, projectOwner sdk.AccAddress, ...) error
- func (k Keeper) DeleteProjectById(ctx sdk.Context, projectId uint64)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetAllProjects(ctx sdk.Context) (res []*types.Project, err error)
- func (k Keeper) GetModuleAccountAddress(ctx sdk.Context) sdk.AccAddress
- func (k Keeper) GetNextProjectIDAndIncrement(ctx sdk.Context) uint64
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetProjectById(ctx sdk.Context, projectId uint64) (types.Project, error)
- func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
- func (k Keeper) IterateProjectInfo(ctx sdk.Context, fn func(index uint64, projectInfo types.Project) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MarshalProject(project types.Project) ([]byte, error)
- func (k Keeper) MarshalReleaseMechanism(rm types.ReleaseMechanismI) ([]byte, error)
- func (k Keeper) NewProjectAddress(projectID uint64) sdk.AccAddress
- func (k Keeper) ParseAnyReleaseMechanism(any *codectypes.Any) (types.ReleaseMechanismI, error)
- func (k Keeper) RegisterReleaseMechanismToProject(ctx sdk.Context, projectId uint64, rm types.ReleaseMechanismI) error
- func (k *Keeper) SetHooks(gh types.LaunchpadHooks) *Keeper
- func (k Keeper) SetNextProjectID(ctx sdk.Context, projectID uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetProject(ctx sdk.Context, project types.Project) error
- func (k Keeper) SetProjectActive(ctx sdk.Context, projectId uint64) error
- func (k Keeper) SetProjectEndable(ctx sdk.Context, projectId uint64) error
- func (k Keeper) UnmarshalProject(bz []byte) (types.Project, error)
- func (k Keeper) UnmarshalReleaseMechanism(bz []byte) (types.ReleaseMechanismI, error)
- func (k Keeper) UnregisterReleaseMechanismFromProject(ctx sdk.Context, projectId uint64, rm_type string) error
- func (k Keeper) WithdrawTokens(ctx sdk.Context, projectOwner sdk.AccAddress, ...) error
- type Querier
- func (q Querier) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (q Querier) Project(ctx context.Context, req *types.ProjectRequest) (*types.ProjectResponse, error)
- func (q Querier) ProjectBalances(ctx context.Context, req *types.ProjectBalancesRequest) (*types.ProjectBalancesResponse, error)
- func (q Querier) TotalProject(ctx context.Context, req *types.TotalProjectRequest) (*types.TotalProjectResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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 (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns the capability module's exported genesis.
func (Keeper) GetAllProjects ¶
func (Keeper) GetModuleAccountAddress ¶
func (k Keeper) GetModuleAccountAddress(ctx sdk.Context) sdk.AccAddress
GetModuleAccountAddress gets the address of module account
func (Keeper) GetNextProjectIDAndIncrement ¶
GetNextProjectIDAndIncrement returns the next project id, and increments the corresponding state entry.
func (Keeper) GetProjectById ¶
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 (Keeper) MarshalProject ¶
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 (*Keeper) SetHooks ¶
func (k *Keeper) SetHooks(gh types.LaunchpadHooks) *Keeper
Set the gamm hooks.
func (Keeper) SetNextProjectID ¶
SetNextProjectID sets next project ID.
func (Keeper) SetProjectActive ¶
func (Keeper) SetProjectEndable ¶
func (Keeper) UnmarshalReleaseMechanism ¶
func (k Keeper) UnmarshalReleaseMechanism(bz []byte) (types.ReleaseMechanismI, error)
func (Keeper) UnregisterReleaseMechanismFromProject ¶
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 (Querier) Params ¶
func (q Querier) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Querier) Project ¶
func (q Querier) Project(ctx context.Context, req *types.ProjectRequest) (*types.ProjectResponse, error)
func (Querier) ProjectBalances ¶
func (q Querier) ProjectBalances(ctx context.Context, req *types.ProjectBalancesRequest) (*types.ProjectBalancesResponse, error)
func (Querier) TotalProject ¶
func (q Querier) TotalProject(ctx context.Context, req *types.TotalProjectRequest) (*types.TotalProjectResponse, error)
Click to show internal directories.
Click to hide internal directories.