Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddMiningProvider(ctx sdk.Context, addr sdk.AccAddress)
- func (k Keeper) AddRewardToken(ctx sdk.Context, rewardToken *types.RewardToken)
- func (k Keeper) AddStakeToken(ctx sdk.Context, denom string)
- func (k Keeper) GetAllStakeItemList(ctx sdk.Context) []*types.StakeItem
- func (k Keeper) GetAllUserStakeRecordList(ctx sdk.Context) []*types.UserStakeRecord
- func (k Keeper) GetMaxRewardPoolNumber(ctx sdk.Context) uint32
- func (k Keeper) GetMaxStakeItemNumber(ctx sdk.Context) uint32
- func (k Keeper) GetMiningProviderList(ctx sdk.Context) []string
- func (k Keeper) GetMiningProviderSwitch(ctx sdk.Context) bool
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetRewardToken(ctx sdk.Context, denom string) (*types.RewardToken, bool)
- func (k Keeper) GetRewardTokenList(ctx sdk.Context) []*types.RewardToken
- func (k Keeper) GetStakeItem(ctx sdk.Context, stakePoolIndex, index uint32) (*types.StakeItem, bool)
- func (k Keeper) GetStakeItemLimit(ctx sdk.Context) *types.StakeItemLimit
- func (k Keeper) GetStakeItemList(ctx sdk.Context, stakePoolIndex uint32) []*types.StakeItem
- func (k Keeper) GetStakeItemNextIndex(ctx sdk.Context, stakePoolIndex uint32) uint32
- func (k Keeper) GetStakePool(ctx sdk.Context, stakePoolIndex uint32) (*types.StakePool, bool)
- func (k Keeper) GetStakePoolList(ctx sdk.Context) []*types.StakePool
- func (k Keeper) GetStakePoolNextIndex(ctx sdk.Context) uint32
- func (k Keeper) GetStakeTokenList(ctx sdk.Context) []string
- func (k Keeper) GetUserStakeRecord(ctx sdk.Context, userAddress string, stakePoolIndex, index uint32) (*types.UserStakeRecord, bool)
- func (k Keeper) GetUserStakeRecordList(ctx sdk.Context, userAddress string, stakePoolIndex uint32) []*types.UserStakeRecord
- func (k Keeper) GetUserStakeRecordNextIndex(ctx sdk.Context, userAddress string, stakePoolIndex uint32) uint32
- func (k Keeper) HasMiningProvider(ctx sdk.Context, addr sdk.AccAddress) bool
- func (k Keeper) HasRewardToken(ctx sdk.Context, denom string) bool
- func (k Keeper) HasStakeToken(ctx sdk.Context, denom string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MaxRewardPoolNumber(goCtx context.Context, req *types.QueryMaxRewardPoolNumberRequest) (*types.QueryMaxRewardPoolNumberResponse, error)
- func (k Keeper) MaxStakeItemNumber(goCtx context.Context, req *types.QueryMaxStakeItemNumberRequest) (*types.QueryMaxStakeItemNumberResponse, error)
- func (k Keeper) MiningProviderList(goCtx context.Context, req *types.QueryMiningProviderListRequest) (*types.QueryMiningProviderListResponse, error)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) ProviderSwitch(goCtx context.Context, req *types.QueryProviderSwitchRequest) (*types.QueryProviderSwitchResponse, error)
- func (k Keeper) RemoveMiningProvider(ctx sdk.Context, addr sdk.AccAddress)
- func (k Keeper) RemoveRewardToken(ctx sdk.Context, denom string)
- func (k Keeper) RemoveStakeToken(ctx sdk.Context, denom string)
- func (k Keeper) RewardTokenList(goCtx context.Context, req *types.QueryRewardTokenListRequest) (*types.QueryRewardTokenListResponse, error)
- func (k Keeper) SetMaxRewardPoolNumber(ctx sdk.Context, number uint32)
- func (k Keeper) SetMaxStakeItemNumber(ctx sdk.Context, number uint32)
- func (k Keeper) SetMiningProviderSwitch(ctx sdk.Context, isOpen bool)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetStakeItem(ctx sdk.Context, stakeItem *types.StakeItem)
- func (k Keeper) SetStakeItemIndex(ctx sdk.Context, stakePoolIndex, index uint32)
- func (k Keeper) SetStakeItemLimit(ctx sdk.Context, limit *types.StakeItemLimit)
- func (k Keeper) SetStakePool(ctx sdk.Context, stakePool *types.StakePool)
- func (k Keeper) SetStakePoolIndex(ctx sdk.Context, index uint32)
- func (k Keeper) SetUserStakeRecord(ctx sdk.Context, userStakeRecord *types.UserStakeRecord)
- func (k Keeper) SetUserStakeRecordIndex(ctx sdk.Context, userAddress string, stakePoolIndex, index uint32)
- func (k Keeper) StakeItemList(goCtx context.Context, req *types.QueryStakeItemListRequest) (*types.QueryStakeItemListResponse, error)
- func (k Keeper) StakePoolInfo(goCtx context.Context, req *types.QueryStakePoolInfoRequest) (*types.QueryStakePoolInfoResponse, error)
- func (k Keeper) StakePoolList(goCtx context.Context, req *types.QueryStakePoolListRequest) (*types.QueryStakePoolListResponse, error)
- func (k Keeper) StakeRecord(goCtx context.Context, req *types.QueryStakeRecordRequest) (*types.QueryStakeRecordResponse, error)
- func (k Keeper) StakeRecordCount(goCtx context.Context, req *types.QueryStakeRecordCountRequest) (*types.QueryStakeRecordCountResponse, error)
- func (k Keeper) StakeRecordList(goCtx context.Context, req *types.QueryStakeRecordListRequest) (*types.QueryStakeRecordListResponse, error)
- func (k Keeper) StakeReward(goCtx context.Context, req *types.QueryStakeRewardRequest) (*types.QueryStakeRewardResponse, error)
- func (k Keeper) ToggleMiningProviderSwitch(ctx sdk.Context)
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 sdk.StoreKey, ps paramtypes.Subspace, sudoKeeper types.SudoKeeper, bankKeeper types.BankKeeper, rDexKeeper types.RDexKeeper, ) *Keeper
func (Keeper) AddMiningProvider ¶
func (k Keeper) AddMiningProvider(ctx sdk.Context, addr sdk.AccAddress)
func (Keeper) AddRewardToken ¶
func (k Keeper) AddRewardToken(ctx sdk.Context, rewardToken *types.RewardToken)
func (Keeper) GetAllStakeItemList ¶
func (Keeper) GetAllUserStakeRecordList ¶
func (k Keeper) GetAllUserStakeRecordList(ctx sdk.Context) []*types.UserStakeRecord
func (Keeper) GetMaxRewardPoolNumber ¶
func (Keeper) GetMiningProviderList ¶
func (Keeper) GetMiningProviderSwitch ¶
func (Keeper) GetRewardToken ¶
func (Keeper) GetRewardTokenList ¶
func (k Keeper) GetRewardTokenList(ctx sdk.Context) []*types.RewardToken
func (Keeper) GetStakeItem ¶
func (Keeper) GetStakeItemLimit ¶
func (k Keeper) GetStakeItemLimit(ctx sdk.Context) *types.StakeItemLimit
func (Keeper) GetStakeItemList ¶
func (Keeper) GetStakeItemNextIndex ¶
func (Keeper) GetStakePool ¶
func (Keeper) GetStakePoolList ¶
func (Keeper) GetUserStakeRecord ¶
func (Keeper) GetUserStakeRecordList ¶
func (k Keeper) GetUserStakeRecordList(ctx sdk.Context, userAddress string, stakePoolIndex uint32) []*types.UserStakeRecord
prefix + len(userAddress) + userAddress + stakePoolIndex + index
func (Keeper) GetUserStakeRecordNextIndex ¶
func (Keeper) HasMiningProvider ¶
func (Keeper) MaxRewardPoolNumber ¶
func (k Keeper) MaxRewardPoolNumber(goCtx context.Context, req *types.QueryMaxRewardPoolNumberRequest) (*types.QueryMaxRewardPoolNumberResponse, error)
func (Keeper) MaxStakeItemNumber ¶
func (k Keeper) MaxStakeItemNumber(goCtx context.Context, req *types.QueryMaxStakeItemNumberRequest) (*types.QueryMaxStakeItemNumberResponse, error)
func (Keeper) MiningProviderList ¶
func (k Keeper) MiningProviderList(goCtx context.Context, req *types.QueryMiningProviderListRequest) (*types.QueryMiningProviderListResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) ProviderSwitch ¶
func (k Keeper) ProviderSwitch(goCtx context.Context, req *types.QueryProviderSwitchRequest) (*types.QueryProviderSwitchResponse, error)
func (Keeper) RemoveMiningProvider ¶
func (k Keeper) RemoveMiningProvider(ctx sdk.Context, addr sdk.AccAddress)
func (Keeper) RewardTokenList ¶
func (k Keeper) RewardTokenList(goCtx context.Context, req *types.QueryRewardTokenListRequest) (*types.QueryRewardTokenListResponse, error)
func (Keeper) SetMaxRewardPoolNumber ¶
func (Keeper) SetMaxStakeItemNumber ¶
func (Keeper) SetMiningProviderSwitch ¶
func (Keeper) SetStakeItem ¶
func (Keeper) SetStakeItemIndex ¶
func (Keeper) SetStakeItemLimit ¶
func (k Keeper) SetStakeItemLimit(ctx sdk.Context, limit *types.StakeItemLimit)
func (Keeper) SetStakePool ¶
func (Keeper) SetUserStakeRecord ¶
func (k Keeper) SetUserStakeRecord(ctx sdk.Context, userStakeRecord *types.UserStakeRecord)
func (Keeper) SetUserStakeRecordIndex ¶
func (Keeper) StakeItemList ¶
func (k Keeper) StakeItemList(goCtx context.Context, req *types.QueryStakeItemListRequest) (*types.QueryStakeItemListResponse, error)
func (Keeper) StakePoolInfo ¶
func (k Keeper) StakePoolInfo(goCtx context.Context, req *types.QueryStakePoolInfoRequest) (*types.QueryStakePoolInfoResponse, error)
func (Keeper) StakePoolList ¶
func (k Keeper) StakePoolList(goCtx context.Context, req *types.QueryStakePoolListRequest) (*types.QueryStakePoolListResponse, error)
func (Keeper) StakeRecord ¶
func (k Keeper) StakeRecord(goCtx context.Context, req *types.QueryStakeRecordRequest) (*types.QueryStakeRecordResponse, error)
func (Keeper) StakeRecordCount ¶
func (k Keeper) StakeRecordCount(goCtx context.Context, req *types.QueryStakeRecordCountRequest) (*types.QueryStakeRecordCountResponse, error)
func (Keeper) StakeRecordList ¶
func (k Keeper) StakeRecordList(goCtx context.Context, req *types.QueryStakeRecordListRequest) (*types.QueryStakeRecordListResponse, error)
func (Keeper) StakeReward ¶
func (k Keeper) StakeReward(goCtx context.Context, req *types.QueryStakeRewardRequest) (*types.QueryStakeRewardResponse, error)
func (Keeper) ToggleMiningProviderSwitch ¶
Source Files ¶
- cal.go
- grpc_query.go
- grpc_query_max_reward_pool_number.go
- grpc_query_max_stake_item_number.go
- grpc_query_mining_provider_list.go
- grpc_query_params.go
- grpc_query_provider_switch.go
- grpc_query_reward_token_list.go
- grpc_query_stake_item_list.go
- grpc_query_stake_pool_info.go
- grpc_query_stake_pool_list.go
- grpc_query_stake_record.go
- grpc_query_stake_record_count.go
- grpc_query_stake_record_list.go
- grpc_query_stake_reward.go
- keeper.go
- msg_server.go
- msg_server_add_mining_provider.go
- msg_server_add_reward.go
- msg_server_add_reward_pool.go
- msg_server_add_reward_token.go
- msg_server_add_stake_item.go
- msg_server_add_stake_pool.go
- msg_server_add_stake_token.go
- msg_server_claim_reward.go
- msg_server_emergency_withdraw.go
- msg_server_rm_mining_provider.go
- msg_server_rm_reward_token.go
- msg_server_rm_stake_token.go
- msg_server_set_max_reward_pool_number.go
- msg_server_set_max_stake_item_number.go
- msg_server_set_stake_item_limit.go
- msg_server_stake.go
- msg_server_toggle_emergency_switch.go
- msg_server_toggle_provider_switch.go
- msg_server_update_reward_pool.go
- msg_server_update_stake_item.go
- msg_server_withdraw.go
- msg_server_withdraw_reward_token.go
- params.go
Click to show internal directories.
Click to hide internal directories.