Documentation ¶
Index ¶
- func GetClaimablePercentagePerAction() sdk.Dec
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Hooks
- func (h Hooks) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
- func (h Hooks) AfterExitPool(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, shareInAmount sdk.Int, ...)
- func (h Hooks) AfterJoinPool(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, enterCoins sdk.Coins, ...)
- func (h Hooks) AfterPoolCreated(ctx sdk.Context, sender sdk.AccAddress, poolId uint64)
- func (h Hooks) AfterProposalActive(ctx sdk.Context, proposalID uint64)
- func (h Hooks) AfterProposalDeposit(ctx sdk.Context, proposalID uint64, depositorAddr sdk.AccAddress)
- func (h Hooks) AfterProposalInactive(ctx sdk.Context, proposalID uint64)
- func (h Hooks) AfterProposalSubmission(ctx sdk.Context, proposalID uint64)
- func (h Hooks) AfterProposalVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress)
- func (h Hooks) AfterSwap(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, input sdk.Coins, ...)
- func (h Hooks) AfterValidatorBeginUnbonding(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
- func (h Hooks) AfterValidatorBonded(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
- func (h Hooks) AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress)
- func (h Hooks) AfterValidatorRemoved(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
- func (h Hooks) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
- func (h Hooks) BeforeDelegationRemoved(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
- func (h Hooks) BeforeDelegationSharesModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
- func (h Hooks) BeforeValidatorModified(ctx sdk.Context, valAddr sdk.ValAddress)
- func (h Hooks) BeforeValidatorSlashed(ctx sdk.Context, valAddr sdk.ValAddress, fraction sdk.Dec)
- type Keeper
- func (k Keeper) Activities(goCtx context.Context, req *types.ActivitiesRequest) (*types.ActivitiesResponse, error)
- func (k Keeper) AfterAddLiquidity(ctx sdk.Context, sender sdk.AccAddress)
- func (k Keeper) AfterProposalVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress)
- func (k Keeper) AfterSwap(ctx sdk.Context, sender sdk.AccAddress)
- func (k Keeper) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
- func (k Keeper) CheckAndSetUserAction(ctx sdk.Context, address sdk.AccAddress, action types.Action) bool
- func (k Keeper) ClaimCoins(ctx sdk.Context, addr string) (sdk.Coins, error)
- func (k Keeper) Claimable(goCtx context.Context, req *types.ClaimableRequest) (*types.ClaimableResponse, error)
- func (k Keeper) EndAirdrop(ctx sdk.Context) error
- func (k Keeper) GetActivities(ctx sdk.Context) []types.UserActions
- func (k Keeper) GetClaimable(ctx sdk.Context, addr string) (sdk.Coins, error)
- func (k Keeper) GetInitialClaimables(ctx sdk.Context) []banktypes.Balance
- func (k Keeper) GetModuleAccountBalance(ctx sdk.Context) sdk.Coin
- func (k Keeper) GetParams(ctx sdk.Context) (types.Params, error)
- func (k Keeper) GetUserActions(ctx sdk.Context, address sdk.AccAddress) []types.Action
- func (k Keeper) GetWithdrawableByActivity(ctx sdk.Context, addr string) (sdk.Coins, error)
- func (k Keeper) Hooks() Hooks
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetInitialClaimables(ctx sdk.Context, balances []banktypes.Balance) error
- func (k Keeper) SetModuleAccountBalance(ctx sdk.Context, amount sdk.Coin)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error
- func (k Keeper) SetUserActions(ctx sdk.Context, address sdk.AccAddress, actions []types.Action)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClaimablePercentagePerAction ¶
GetClaimablePercentagePerAction returns percentage per user's action when the weight of actions are same
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
NewQuerier returns legacy querier endpoint
Types ¶
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
Hooks wrapper struct for slashing keeper
func (Hooks) AfterDelegationModified ¶
func (h Hooks) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
func (Hooks) AfterExitPool ¶
func (Hooks) AfterJoinPool ¶
func (Hooks) AfterPoolCreated ¶
gamm hooks
func (Hooks) AfterProposalActive ¶
func (Hooks) AfterProposalDeposit ¶
func (Hooks) AfterProposalInactive ¶
func (Hooks) AfterProposalSubmission ¶
governance hooks
func (Hooks) AfterProposalVote ¶
func (Hooks) AfterValidatorBeginUnbonding ¶
func (h Hooks) AfterValidatorBeginUnbonding(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
func (Hooks) AfterValidatorBonded ¶
func (h Hooks) AfterValidatorBonded(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
func (Hooks) AfterValidatorCreated ¶
func (h Hooks) AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress)
staking hooks
func (Hooks) AfterValidatorRemoved ¶
func (h Hooks) AfterValidatorRemoved(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress)
func (Hooks) BeforeDelegationCreated ¶
func (h Hooks) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
func (Hooks) BeforeDelegationRemoved ¶
func (h Hooks) BeforeDelegationRemoved(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
func (Hooks) BeforeDelegationSharesModified ¶
func (h Hooks) BeforeDelegationSharesModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
func (Hooks) BeforeValidatorModified ¶
func (h Hooks) BeforeValidatorModified(ctx sdk.Context, valAddr sdk.ValAddress)
func (Hooks) BeforeValidatorSlashed ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper struct
func NewKeeper ¶
func NewKeeper(cdc codec.Marshaler, storeKey sdk.StoreKey, ak types.AccountKeeper, bk types.BankKeeper, sk types.StakingKeeper, dk types.DistrKeeper) *Keeper
NewKeeper returns keeper
func (Keeper) Activities ¶
func (k Keeper) Activities( goCtx context.Context, req *types.ActivitiesRequest, ) (*types.ActivitiesResponse, error)
Activities returns activities
func (Keeper) AfterAddLiquidity ¶
func (k Keeper) AfterAddLiquidity(ctx sdk.Context, sender sdk.AccAddress)
func (Keeper) AfterProposalVote ¶
func (Keeper) BeforeDelegationCreated ¶
func (k Keeper) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
func (Keeper) CheckAndSetUserAction ¶
func (Keeper) ClaimCoins ¶
ClaimCoins remove claimable amount entry and transfer it to user's account
func (Keeper) Claimable ¶
func (k Keeper) Claimable( goCtx context.Context, req *types.ClaimableRequest, ) (*types.ClaimableResponse, error)
Claimable returns claimable amount per user
func (Keeper) GetActivities ¶
func (k Keeper) GetActivities(ctx sdk.Context) []types.UserActions
GetActivities get activites of users for genesis export
func (Keeper) GetClaimable ¶
GetClaimable returns claimable amount for an address
func (Keeper) GetInitialClaimables ¶
GetClaimables get claimables for genesis export
func (Keeper) GetModuleAccountBalance ¶
GetModuleAccountBalance gets the airdrop coin balance of module account
func (Keeper) GetUserActions ¶
func (Keeper) GetWithdrawableByActivity ¶
GetClaimablesByActivity returns the withdrawal amount from users' airdrop amount and activity made
func (Keeper) SetInitialClaimables ¶
SetClaimables set claimable amount from balances object
func (Keeper) SetModuleAccountBalance ¶
SetModuleAccountBalance set balance of airdrop module