Documentation ¶
Index ¶
- func EcRecover(data []byte, sig hexutil.Bytes) (common.Address, error)
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Hooks
- func (h Hooks) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
- func (h Hooks) AfterProposalActive(ctx sdk.Context, proposalID uint64)
- func (h Hooks) AfterProposalDeposit(ctx sdk.Context, proposalID uint64, depositorAddr sdk.AccAddress)
- func (h Hooks) AfterProposalFailedMinDeposit(ctx sdk.Context, proposalID uint64)
- 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) AfterProposalVotingPeriodEnded(ctx sdk.Context, proposalID uint64)
- 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) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
- func (k Keeper) AfterProposalVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress)
- func (k Keeper) AirdropEnabled(ctx sdk.Context) (res bool)
- func (k Keeper) AirdropStartTime(ctx sdk.Context) (res time.Time)
- func (k Keeper) ClaimCoinsForAction(ctx sdk.Context, addr sdk.AccAddress, clanAddr sdk.AccAddress, ...) (sdk.Coins, error)
- func (k Keeper) ClaimCoinsForEthAddress(ctx sdk.Context, addrEth []byte, addr sdk.AccAddress) (sdk.Coins, error)
- func (k Keeper) ClaimDenom(ctx sdk.Context) (res string)
- func (k Keeper) ClaimEthRecord(c context.Context, req *types.QueryClaimEthRecordRequest) (*types.QueryClaimEthRecordResponse, error)
- func (k Keeper) ClaimRecord(goCtx context.Context, req *types.QueryClaimRecordRequest) (*types.QueryClaimRecordResponse, error)
- func (k Keeper) ClaimableForAction(goCtx context.Context, req *types.QueryClaimableForActionRequest) (*types.QueryClaimableForActionResponse, error)
- func (k Keeper) CreateModuleAccount(ctx sdk.Context, amount sdk.Coin)
- func (k Keeper) DurationOfDecay(ctx sdk.Context) (res time.Duration)
- func (k Keeper) DurationUntilDecay(ctx sdk.Context) (res time.Duration)
- func (k Keeper) EndAirdrop(ctx sdk.Context) error
- func (k Keeper) GetActionRecord(ctx sdk.Context, addr sdk.AccAddress) (types.ActionRecord, error)
- func (k Keeper) GetActionRecords(ctx sdk.Context) []types.ActionRecord
- func (k Keeper) GetClaimEthRecord(ctx sdk.Context, addr []byte) (types.ClaimEthRecord, error)
- func (k Keeper) GetClaimEthRecords(ctx sdk.Context) []types.ClaimEthRecord
- func (k Keeper) GetClaimRecord(ctx sdk.Context, addr sdk.AccAddress) (types.ClaimRecord, error)
- func (k Keeper) GetClaimRecords(ctx sdk.Context) []types.ClaimRecord
- func (k Keeper) GetClaimableAmountForAction(ctx sdk.Context, addr sdk.AccAddress, action types.Action) (sdk.Coins, error)
- func (k Keeper) GetClaimableAmountForEthAddress(ctx sdk.Context, addr []byte) (sdk.Coins, 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 sdk.AccAddress) (sdk.Coins, error)
- func (k Keeper) Hooks() Hooks
- func (k Keeper) InitClaimCoinsForAllAction(ctx sdk.Context, addr sdk.AccAddress, clanAddr sdk.AccAddress) (sdk.Coins, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) ModuleAccountBalance(c context.Context, req *types.QueryModuleAccountBalanceRequest) (*types.QueryModuleAccountBalanceResponse, error)
- func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetActionCompleted(ctx sdk.Context, addr sdk.AccAddress, action types.Action) (sdk.Coins, error)
- func (k Keeper) SetActionRecord(ctx sdk.Context, claimRecord types.ActionRecord) error
- func (k Keeper) SetActionRecords(ctx sdk.Context, claimRecords []types.ActionRecord) error
- func (k Keeper) SetClaimEthRecord(ctx sdk.Context, claimEthRecord types.ClaimEthRecord) error
- func (k Keeper) SetClaimEthRecords(ctx sdk.Context, claimEthRecords []types.ClaimEthRecord) 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)
- func (k Keeper) TotalClaimable(goCtx context.Context, req *types.QueryTotalClaimableRequest) (*types.QueryTotalClaimableResponse, error)
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 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) AfterProposalActive ¶
func (Hooks) AfterProposalDeposit ¶
func (Hooks) AfterProposalFailedMinDeposit ¶
func (Hooks) AfterProposalInactive ¶
func (Hooks) AfterProposalSubmission ¶
governance hooks
func (Hooks) AfterProposalVote ¶
func (Hooks) AfterProposalVotingPeriodEnded ¶
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
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, ps paramtypes.Subspace, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, stakingKeeper types.StakingKeeper, distrKeeper types.DistrKeeper, ) *Keeper
func (Keeper) AfterDelegationModified ¶
func (k Keeper) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
func (Keeper) AfterProposalVote ¶
func (Keeper) AirdropEnabled ¶
AirdropEnabled returns the AirdropEnabled param
func (Keeper) AirdropStartTime ¶
AirdropStartTime returns the AirdropStartTime param
func (Keeper) ClaimCoinsForAction ¶
func (k Keeper) ClaimCoinsForAction(ctx sdk.Context, addr sdk.AccAddress, clanAddr sdk.AccAddress, action types.Action) (sdk.Coins, error)
ClaimCoins remove claimable amount entry and transfer it to user's account
func (Keeper) ClaimCoinsForEthAddress ¶
func (k Keeper) ClaimCoinsForEthAddress(ctx sdk.Context, addrEth []byte, addr sdk.AccAddress) (sdk.Coins, error)
ClaimCoins remove claimable amount entry and transfer it to user's account
func (Keeper) ClaimDenom ¶
ClaimDenom returns the ClaimDenom param
func (Keeper) ClaimEthRecord ¶
func (k Keeper) ClaimEthRecord(c context.Context, req *types.QueryClaimEthRecordRequest) (*types.QueryClaimEthRecordResponse, error)
func (Keeper) ClaimRecord ¶
func (k Keeper) ClaimRecord( goCtx context.Context, req *types.QueryClaimRecordRequest, ) (*types.QueryClaimRecordResponse, error)
func (Keeper) ClaimableForAction ¶
func (k Keeper) ClaimableForAction( goCtx context.Context, req *types.QueryClaimableForActionRequest, ) (*types.QueryClaimableForActionResponse, error)
func (Keeper) CreateModuleAccount ¶
CreateModuleAccount creates module account of airdrop module
func (Keeper) DurationOfDecay ¶
DurationOfDecay returns the DurationOfDecay param
func (Keeper) DurationUntilDecay ¶
DurationUntilDecay returns the DurationUntilDecay param
func (Keeper) GetActionRecord ¶
func (k Keeper) GetActionRecord(ctx sdk.Context, addr sdk.AccAddress) (types.ActionRecord, error)
GetActionRecord returns the claim record for a specific address
func (Keeper) GetActionRecords ¶
func (k Keeper) GetActionRecords(ctx sdk.Context) []types.ActionRecord
GetActionRecords get claimables for genesis export
func (Keeper) GetClaimEthRecord ¶
GetClaimEthRecord returns claimEthRecord
func (Keeper) GetClaimEthRecords ¶
func (k Keeper) GetClaimEthRecords(ctx sdk.Context) []types.ClaimEthRecord
GetClaimEthRecords get claimables eth for genesis export
func (Keeper) GetClaimRecord ¶
func (k Keeper) GetClaimRecord(ctx sdk.Context, addr sdk.AccAddress) (types.ClaimRecord, error)
GetClaimRecord returns the claim record for a specific address
func (Keeper) GetClaimRecords ¶
func (k Keeper) GetClaimRecords(ctx sdk.Context) []types.ClaimRecord
GetClaimRecords get claimables for genesis export
func (Keeper) GetClaimableAmountForAction ¶
func (k Keeper) GetClaimableAmountForAction(ctx sdk.Context, addr sdk.AccAddress, action types.Action) (sdk.Coins, error)
GetClaimable returns claimable amount for a specific action done by an address
func (Keeper) GetClaimableAmountForEthAddress ¶
GetClaimableAmountForEthAddress returns claimable amount for an eth 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 ¶
GetClaimable returns claimable amount for a specific action done by an address
func (Keeper) InitClaimCoinsForAllAction ¶
func (k Keeper) InitClaimCoinsForAllAction(ctx sdk.Context, addr sdk.AccAddress, clanAddr sdk.AccAddress) (sdk.Coins, error)
InitClaimCoinsForAllAction remove claimable amount entry and transfer it to user's account for all completed actions
func (Keeper) ModuleAccountBalance ¶
func (k Keeper) ModuleAccountBalance(c context.Context, req *types.QueryModuleAccountBalanceRequest) (*types.QueryModuleAccountBalanceResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) SetActionCompleted ¶
func (k Keeper) SetActionCompleted(ctx sdk.Context, addr sdk.AccAddress, action types.Action) (sdk.Coins, error)
SetActionCompleted update addr record that action completed and transfer all exisiting claim records
func (Keeper) SetActionRecord ¶
SetActionables set claimable amount from balances object
func (Keeper) SetActionRecords ¶
SetActionables set claimable amount from balances object
func (Keeper) SetClaimEthRecord ¶
SetClaimEthRecord set claimEthRecord in the store
func (Keeper) SetClaimEthRecords ¶
SetClaimables set claimable amount from balances object
func (Keeper) SetClaimRecord ¶
SetClaimables set claimable amount from balances object
func (Keeper) SetClaimRecords ¶
SetClaimables set claimable amount from balances object
func (Keeper) TotalClaimable ¶
func (k Keeper) TotalClaimable( goCtx context.Context, req *types.QueryTotalClaimableRequest, ) (*types.QueryTotalClaimableResponse, error)
Source Files ¶
- action_record.go
- claim.go
- claim_eth_record.go
- claim_record.go
- grpc_query.go
- grpc_query_claim_eth_record.go
- grpc_query_claim_record.go
- grpc_query_claimable_for_action.go
- grpc_query_module_account_balance.go
- grpc_query_params.go
- grpc_query_total_claimable.go
- hooks.go
- keeper.go
- msg_server.go
- msg_server_claim_for_eth_address.go
- msg_server_initial_claim.go
- params.go