keeper

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: Apache-2.0 Imports: 11 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 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) ActDetail

func (Keeper) GetActCurrentCycle

func (k Keeper) GetActCurrentCycle(ctx sdk.Context, denom string) (uint64, bool)

func (Keeper) GetActCurrentCycleList

func (k Keeper) GetActCurrentCycleList(ctx sdk.Context) []*types.ActCurrentCycle

func (Keeper) GetActLatestCycle

func (k Keeper) GetActLatestCycle(ctx sdk.Context, denom string) (uint64, bool)

func (Keeper) GetActLatestCycleList

func (k Keeper) GetActLatestCycleList(ctx sdk.Context) []*types.ActLatestCycle

func (Keeper) GetMintRewardAct

func (k Keeper) GetMintRewardAct(ctx sdk.Context, denom string, cycle uint64) (*types.MintRewardAct, bool)

func (Keeper) GetMintRewardActList

func (k Keeper) GetMintRewardActList(ctx sdk.Context) []*types.GenesisMintRewardAct

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetUserActs

func (k Keeper) GetUserActs(ctx sdk.Context, account sdk.AccAddress, denom string) (*types.Acts, bool)

func (Keeper) GetUserActsList

func (k Keeper) GetUserActsList(ctx sdk.Context) []*types.GenesisUserAct

func (Keeper) GetUserClaimInfo

func (k Keeper) GetUserClaimInfo(ctx sdk.Context, account sdk.AccAddress, denom string, cycle uint64, mintIndex uint64) (*types.UserClaimInfo, bool)

func (Keeper) GetUserClaimInfoList

func (k Keeper) GetUserClaimInfoList(ctx sdk.Context) []*types.GenesisUserClaimInfo

func (Keeper) GetUserMintCount

func (k Keeper) GetUserMintCount(ctx sdk.Context, account sdk.AccAddress, denom string, cycle uint64) (uint64, bool)

func (Keeper) GetUserMintCountList

func (k Keeper) GetUserMintCountList(ctx sdk.Context) []*types.UserMintCount

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) SetActCurrentCycle

func (k Keeper) SetActCurrentCycle(ctx sdk.Context, denom string, cycle uint64)

func (Keeper) SetActLatestCycle

func (k Keeper) SetActLatestCycle(ctx sdk.Context, denom string, cycle uint64)

func (Keeper) SetMintRewardAct

func (k Keeper) SetMintRewardAct(ctx sdk.Context, denom string, cycle uint64, act *types.MintRewardAct)

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetUserActs

func (k Keeper) SetUserActs(ctx sdk.Context, account sdk.AccAddress, denom string, actCycles *types.Acts)

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 (k Keeper) SetUserMintCount(ctx sdk.Context, account sdk.AccAddress, denom string, cycle, count uint64)

func (Keeper) UpdateActCurrentCycle

func (k Keeper) UpdateActCurrentCycle(ctx sdk.Context, denom string)

func (Keeper) UpdateUserClaimInfo

func (k Keeper) UpdateUserClaimInfo(ctx sdk.Context, user sdk.AccAddress, denom string, mintRTokenAmount, nativeTokenAmount sdk.Int)

func (Keeper) UserActs

Jump to

Keyboard shortcuts

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