Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func VerifyProof(leafNode NodeHash, proof []NodeHash, root NodeHash) bool
- type Keeper
- func (k Keeper) ClaimSwitch(goCtx context.Context, req *types.QueryClaimSwitchRequest) (*types.QueryClaimSwitchResponse, error)
- func (k Keeper) GetClaimBitMap(ctx sdk.Context, claimRound, wordIndex uint64) uint64
- func (k Keeper) GetClaimBitMapList(ctx sdk.Context) []*types.ClaimBitMap
- func (k Keeper) GetClaimSwitch(ctx sdk.Context, round uint64) bool
- func (k Keeper) GetClaimSwitchList(ctx sdk.Context) []*types.ClaimSwitch
- func (k Keeper) GetMerkleRoot(ctx sdk.Context, round uint64) (NodeHash, bool)
- func (k Keeper) GetMerkleRootList(ctx sdk.Context) []*types.MerkleRoot
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) IsClaimed(goCtx context.Context, req *types.QueryIsClaimedRequest) (*types.QueryIsClaimedResponse, error)
- func (k Keeper) IsIndexClaimed(ctx sdk.Context, claimRound, index uint64) bool
- 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) SetClaimBitMap(ctx sdk.Context, claimRound, wordIndex, bits uint64)
- func (k Keeper) SetClaimSwitch(ctx sdk.Context, round uint64, isOpen bool)
- func (k Keeper) SetIndexClaimed(ctx sdk.Context, claimRound, index uint64)
- func (k Keeper) SetMerkleRoot(ctx sdk.Context, round uint64, root NodeHash)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) ToggleClaimSwitch(ctx sdk.Context, round uint64)
- type NodeHash
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, ) *Keeper
func (Keeper) ClaimSwitch ¶
func (k Keeper) ClaimSwitch(goCtx context.Context, req *types.QueryClaimSwitchRequest) (*types.QueryClaimSwitchResponse, error)
func (Keeper) GetClaimBitMap ¶
func (Keeper) GetClaimBitMapList ¶
func (k Keeper) GetClaimBitMapList(ctx sdk.Context) []*types.ClaimBitMap
func (Keeper) GetClaimSwitchList ¶
func (k Keeper) GetClaimSwitchList(ctx sdk.Context) []*types.ClaimSwitch
func (Keeper) GetMerkleRoot ¶
func (Keeper) GetMerkleRootList ¶
func (k Keeper) GetMerkleRootList(ctx sdk.Context) []*types.MerkleRoot
func (Keeper) IsClaimed ¶
func (k Keeper) IsClaimed(goCtx context.Context, req *types.QueryIsClaimedRequest) (*types.QueryIsClaimedResponse, error)
func (Keeper) IsIndexClaimed ¶
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) SetClaimBitMap ¶
func (Keeper) SetClaimSwitch ¶
func (Keeper) SetIndexClaimed ¶
func (Keeper) SetMerkleRoot ¶
type NodeHash ¶
type NodeHash []byte
func ConbinedHash ¶
func GetNodeHash ¶
func NodeHashFromHexString ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.