Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) ActCurrentCycle(goCtx context.Context, req *types.QueryActCurrentCycleRequest) (*types.QueryActCurrentCycleResponse, error)
- func (k Keeper) ActDetail(goCtx context.Context, req *types.QueryActDetailRequest) (*types.QueryActDetailResponse, error)
- func (k Keeper) ActLatestCycle(goCtx context.Context, req *types.QueryActLatestCycleRequest) (*types.QueryActLatestCycleResponse, error)
- func (k Keeper) ClaimInfoDetail(goCtx context.Context, req *types.QueryClaimInfoDetailRequest) (*types.QueryClaimInfoDetailResponse, error)
- func (k Keeper) GetActCurrentCycle(ctx sdk.Context, denom string) (uint64, bool)
- func (k Keeper) GetActCurrentCycleList(ctx sdk.Context) []*types.ActCurrentCycle
- func (k Keeper) GetActLatestCycle(ctx sdk.Context, denom string) (uint64, bool)
- func (k Keeper) GetActLatestCycleList(ctx sdk.Context) []*types.ActLatestCycle
- func (k Keeper) GetMintRewardAct(ctx sdk.Context, denom string, cycle uint64) (*types.MintRewardAct, bool)
- func (k Keeper) GetMintRewardActList(ctx sdk.Context) []*types.GenesisMintRewardAct
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetUserActs(ctx sdk.Context, account sdk.AccAddress, denom string) (*types.Acts, bool)
- func (k Keeper) GetUserActsList(ctx sdk.Context) []*types.GenesisUserAct
- func (k Keeper) GetUserClaimInfo(ctx sdk.Context, account sdk.AccAddress, denom string, cycle uint64, ...) (*types.UserClaimInfo, bool)
- func (k Keeper) GetUserClaimInfoList(ctx sdk.Context) []*types.GenesisUserClaimInfo
- func (k Keeper) GetUserMintCount(ctx sdk.Context, account sdk.AccAddress, denom string, cycle uint64) (uint64, bool)
- func (k Keeper) GetUserMintCountList(ctx sdk.Context) []*types.UserMintCount
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetActCurrentCycle(ctx sdk.Context, denom string, cycle uint64)
- func (k Keeper) SetActLatestCycle(ctx sdk.Context, denom string, cycle uint64)
- func (k Keeper) SetMintRewardAct(ctx sdk.Context, denom string, cycle uint64, act *types.MintRewardAct)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetUserActs(ctx sdk.Context, account sdk.AccAddress, denom string, actCycles *types.Acts)
- func (k Keeper) SetUserClaimInfo(ctx sdk.Context, account sdk.AccAddress, denom string, cycle uint64, ...)
- func (k Keeper) SetUserMintCount(ctx sdk.Context, account sdk.AccAddress, denom string, cycle, count uint64)
- func (k Keeper) UpdateActCurrentCycle(ctx sdk.Context, denom string)
- func (k Keeper) UpdateUserClaimInfo(ctx sdk.Context, user sdk.AccAddress, denom string, ...)
- func (k Keeper) UserActs(goCtx context.Context, req *types.QueryUserActsRequest) (*types.QueryUserActsResponse, error)
- func (k Keeper) UserMintCount(goCtx context.Context, req *types.QueryUserMintCountRequest) (*types.QueryUserMintCountResponse, 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, memKey storetypes.StoreKey, ps paramtypes.Subspace, sudoKeeper types.SudoKeeper, bankKeeper types.BankKeeper, ) *Keeper
func (Keeper) ActCurrentCycle ¶
func (k Keeper) ActCurrentCycle(goCtx context.Context, req *types.QueryActCurrentCycleRequest) (*types.QueryActCurrentCycleResponse, error)
func (Keeper) ActDetail ¶
func (k Keeper) ActDetail(goCtx context.Context, req *types.QueryActDetailRequest) (*types.QueryActDetailResponse, error)
func (Keeper) ActLatestCycle ¶
func (k Keeper) ActLatestCycle(goCtx context.Context, req *types.QueryActLatestCycleRequest) (*types.QueryActLatestCycleResponse, error)
func (Keeper) ClaimInfoDetail ¶
func (k Keeper) ClaimInfoDetail(goCtx context.Context, req *types.QueryClaimInfoDetailRequest) (*types.QueryClaimInfoDetailResponse, error)
func (Keeper) GetActCurrentCycle ¶
func (Keeper) GetActCurrentCycleList ¶
func (k Keeper) GetActCurrentCycleList(ctx sdk.Context) []*types.ActCurrentCycle
func (Keeper) GetActLatestCycle ¶
func (Keeper) GetActLatestCycleList ¶
func (k Keeper) GetActLatestCycleList(ctx sdk.Context) []*types.ActLatestCycle
func (Keeper) GetMintRewardAct ¶
func (Keeper) GetMintRewardActList ¶
func (k Keeper) GetMintRewardActList(ctx sdk.Context) []*types.GenesisMintRewardAct
func (Keeper) GetUserActs ¶
func (Keeper) GetUserActsList ¶
func (k Keeper) GetUserActsList(ctx sdk.Context) []*types.GenesisUserAct
func (Keeper) GetUserClaimInfo ¶
func (Keeper) GetUserClaimInfoList ¶
func (k Keeper) GetUserClaimInfoList(ctx sdk.Context) []*types.GenesisUserClaimInfo
func (Keeper) GetUserMintCount ¶
func (Keeper) GetUserMintCountList ¶
func (k Keeper) GetUserMintCountList(ctx sdk.Context) []*types.UserMintCount
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) SetActCurrentCycle ¶
func (Keeper) SetActLatestCycle ¶
func (Keeper) SetMintRewardAct ¶
func (Keeper) SetUserActs ¶
func (Keeper) SetUserClaimInfo ¶
func (k Keeper) SetUserClaimInfo(ctx sdk.Context, account sdk.AccAddress, denom string, cycle uint64, mintIndex uint64, claimInfo *types.UserClaimInfo)
func (Keeper) SetUserMintCount ¶
func (Keeper) UpdateActCurrentCycle ¶
func (Keeper) UpdateUserClaimInfo ¶
func (Keeper) UserActs ¶
func (k Keeper) UserActs(goCtx context.Context, req *types.QueryUserActsRequest) (*types.QueryUserActsResponse, error)
func (Keeper) UserMintCount ¶
func (k Keeper) UserMintCount(goCtx context.Context, req *types.QueryUserMintCountRequest) (*types.QueryUserMintCountResponse, error)
Source Files ¶
- grpc_query.go
- grpc_query_act_current_cycle.go
- grpc_query_act_detail.go
- grpc_query_act_latest_cycle.go
- grpc_query_claim_info_detail.go
- grpc_query_params.go
- grpc_query_user_acts.go
- grpc_query_user_mint_count.go
- keeper.go
- msg_server.go
- msg_server_add_mint_reward_act.go
- msg_server_claim_mint_reward.go
- msg_server_provide_reward_token.go
- msg_server_update_mint_reward_act.go
- params.go
- update_act.go
Click to show internal directories.
Click to hide internal directories.