Documentation ¶
Index ¶
- func GenerateClaimTypedDataBytes(ethAddress, arkeoAddress, amount string) ([]byte, error)
- func IsValidClaimSignature(ethAddress, arkeoAdddress, amount, signature string) (bool, error)
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Hooks
- func (h Hooks) AfterDelegationModified(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
- func (h Hooks) AfterProposalDeposit(ctx context.Context, proposalID uint64, depositorAddr sdk.AccAddress) error
- func (h Hooks) AfterProposalFailedMinDeposit(ctx context.Context, proposalID uint64) error
- func (h Hooks) AfterProposalSubmission(ctx context.Context, proposalID uint64) error
- func (h Hooks) AfterProposalVote(ctx context.Context, proposalID uint64, voterAddr sdk.AccAddress) error
- func (h Hooks) AfterProposalVotingPeriodEnded(ctx context.Context, proposalID uint64) error
- func (h Hooks) AfterUnbondingInitiated(ctx context.Context, id uint64) error
- func (h Hooks) AfterValidatorBeginUnbonding(ctx context.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error
- func (h Hooks) AfterValidatorBonded(ctx context.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error
- func (h Hooks) AfterValidatorCreated(ctx context.Context, valAddr sdk.ValAddress) error
- func (h Hooks) AfterValidatorRemoved(ctx context.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error
- func (h Hooks) BeforeDelegationCreated(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
- func (h Hooks) BeforeDelegationRemoved(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
- func (h Hooks) BeforeDelegationSharesModified(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
- func (h Hooks) BeforeValidatorModified(ctx context.Context, valAddr sdk.ValAddress) error
- func (h Hooks) BeforeValidatorSlashed(ctx context.Context, valAddr sdk.ValAddress, fraction math.LegacyDec) error
- type Keeper
- func (k Keeper) AfterDelegationModified(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
- func (k Keeper) AfterProposalVote(ctx context.Context, proposalID uint64, voterAddr sdk.AccAddress)
- func (k Keeper) AirdropStartTime(ctx sdk.Context) (res time.Time)
- func (k Keeper) ClaimCoinsForAction(ctx sdk.Context, addr string, action types.Action) (sdk.Coin, error)
- func (k Keeper) ClaimDenom(ctx sdk.Context) (res string)
- func (k Keeper) ClaimRecord(goCtx context.Context, req *types.QueryClaimRecordRequest) (*types.QueryClaimRecordResponse, error)
- func (k Keeper) DurationOfDecay(ctx sdk.Context) (res time.Duration)
- func (k Keeper) DurationUntilDecay(ctx sdk.Context) (res time.Duration)
- func (k Keeper) GetAllClaimRecords(ctx sdk.Context) ([]types.ClaimRecord, error)
- func (k Keeper) GetClaimRecord(ctx sdk.Context, addr string, chain types.Chain) (types.ClaimRecord, error)
- func (k Keeper) GetClaimRecords(ctx sdk.Context, chain types.Chain) ([]types.ClaimRecord, error)
- func (k Keeper) GetClaimableAmountForAction(ctx sdk.Context, addr string, action types.Action, chain types.Chain) (sdk.Coin, error)
- func (k Keeper) GetModuleAccountAddress(ctx sdk.Context) sdk.AccAddress
- func (k Keeper) GetModuleAccountBalance(ctx sdk.Context) sdk.Coin
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetUserTotalClaimable(ctx sdk.Context, addr string, chain types.Chain) (sdk.Coin, error)
- func (k Keeper) Hooks() Hooks
- func (k Keeper) Logger(ctx context.Context) log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetClaimRecord(ctx sdk.Context, claimRecord types.ClaimRecord) error
- func (k Keeper) SetClaimRecords(ctx sdk.Context, claimRecords []types.ClaimRecord) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidClaimSignature ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
Hooks wrapper struct
func (Hooks) AfterDelegationModified ¶
func (h Hooks) AfterDelegationModified(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
func (Hooks) AfterProposalDeposit ¶
func (Hooks) AfterProposalFailedMinDeposit ¶
func (Hooks) AfterProposalSubmission ¶
governance hooks
func (Hooks) AfterProposalVote ¶
func (Hooks) AfterProposalVotingPeriodEnded ¶
func (Hooks) AfterUnbondingInitiated ¶
func (Hooks) AfterValidatorBeginUnbonding ¶
func (h Hooks) AfterValidatorBeginUnbonding(ctx context.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error
func (Hooks) AfterValidatorBonded ¶
func (h Hooks) AfterValidatorBonded(ctx context.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error
func (Hooks) AfterValidatorCreated ¶
staking hooks
func (Hooks) AfterValidatorRemoved ¶
func (h Hooks) AfterValidatorRemoved(ctx context.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error
func (Hooks) BeforeDelegationCreated ¶
func (h Hooks) BeforeDelegationCreated(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
func (Hooks) BeforeDelegationRemoved ¶
func (h Hooks) BeforeDelegationRemoved(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
func (Hooks) BeforeDelegationSharesModified ¶
func (h Hooks) BeforeDelegationSharesModified(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
func (Hooks) BeforeValidatorModified ¶
func (Hooks) BeforeValidatorSlashed ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey storetypes.StoreKey, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, memKey storetypes.StoreKey, ps paramtypes.Subspace, logger log.Logger, ) Keeper
func (Keeper) AfterDelegationModified ¶
func (k Keeper) AfterDelegationModified(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
func (Keeper) AfterProposalVote ¶
func (Keeper) ClaimCoinsForAction ¶
func (k Keeper) ClaimCoinsForAction(ctx sdk.Context, addr string, action types.Action) (sdk.Coin, error)
ClaimCoins remove claimable amount entry and transfer it to user's account
func (Keeper) ClaimDenom ¶
ClaimDenom returns the ClaimDenom param
func (Keeper) ClaimRecord ¶
func (k Keeper) ClaimRecord(goCtx context.Context, req *types.QueryClaimRecordRequest) (*types.QueryClaimRecordResponse, error)
func (Keeper) DurationOfDecay ¶
DurationOfDecay returns the DurationOfDecay param
func (Keeper) DurationUntilDecay ¶
DurationUntilDecay returns the DurationUntilDecay param
func (Keeper) GetAllClaimRecords ¶
func (Keeper) GetClaimRecord ¶
func (k Keeper) GetClaimRecord(ctx sdk.Context, addr string, chain types.Chain) (types.ClaimRecord, error)
GetClaimRecord returns the claim record for a specific address
func (Keeper) GetClaimRecords ¶
GetClaimables get claimables for genesis export
func (Keeper) GetClaimableAmountForAction ¶
func (k Keeper) GetClaimableAmountForAction(ctx sdk.Context, addr string, action types.Action, chain types.Chain) (sdk.Coin, error)
GetClaimable returns claimable amount for a specific action done by an address
func (Keeper) GetModuleAccountAddress ¶
func (k Keeper) GetModuleAccountAddress(ctx sdk.Context) sdk.AccAddress
GetModuleAccountBalance gets the airdrop coin balance of module account
func (Keeper) GetModuleAccountBalance ¶
GetModuleAccountBalance gets the airdrop coin balance of module account
func (Keeper) GetUserTotalClaimable ¶
func (k Keeper) GetUserTotalClaimable(ctx sdk.Context, addr string, chain types.Chain) (sdk.Coin, error)
GetUserTotalClaimable returns the total claimable amount for an address across all actions
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) SetClaimRecord ¶
SetClaimRecord sets a claim record for an address in store
func (Keeper) SetClaimRecords ¶
SetClaimables set claimable amount from balances object