package
0.2.1-a20230808192317-m1unchained
Repository: https://github.com/merlins-labs/merlin.git
Documentation: pkg.go.dev
# Functions
DefaultGenesis returns the incentive module's default genesis state.
DefaultParams returns the default incentives module parameters.
GetGenesisStateFromAppState returns an incentive module GenesisState given a raw application genesis state.
No description provided by the author
NewGauge creates a new gauge struct given the required gauge parameters.
NewMsgAddToGauge creates a message to add rewards to a specific gauge.
No description provided by the author
NewMsgCreateGauge creates a message to create a gauge with the provided parameters.
NewMultiIncentiveHooks combines multiple incentive hooks into a single IncentiveHooks array.
NewParams takes an epoch distribution identifier, then returns an incentives Params struct.
No description provided by the author
NoLockExternalGaugeDenom returns the gauge denom for the no-lock external gauge for the given pool ID.
NoLockInternalGaugeDenom returns the gauge denom for the no-lock internal gauge for the given pool ID.
ParamKeyTable returns the key table for the incentive module's parameters.
RegisterCodec registers the necessary x/incentives interfaces and concrete types on the provided LegacyAmino codec.
RegisterInterfaces registers interfaces and implementations of the incentives module.
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
# Constants
Incentive module event types.
Incentive module event types.
Incentive module event types.
Incentive module event types.
DefaultIndex is the default incentive module's global index.
Incentive module event types.
Incentive module event types.
Incentive module event types.
No description provided by the author
No description provided by the author
# Variables
AddToGagugeFee is the fee required to add to gauge.
No description provided by the author
No description provided by the author
CreateGaugeFee is the fee required to create a new gauge.
We set the default value to 1ns, as this is the only uptime we support as long as charging is disabled (or until more supported uptimes are authorized by governance).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Incentives parameters key store.
KeyIndexSeparator defines key for merging bytes.
KeyLastGaugeID defines key for setting last gauge ID.
KeyPrefixActiveGauges defines prefix key for storing reference key for active gauges.
KeyPrefixFinishedGauges defines prefix key for storing reference key for finished gauges.
KeyPrefixGauges defines prefix key for storing reference key for all gauges.
KeyPrefixGaugesByDenom defines prefix key for storing indexes of gauge IDs by denomination.
KeyPrefixPeriodGauge defines prefix key for storing gauges.
KeyPrefixTimestamp defines prefix key for timestamp iterator key.
KeyPrefixUpcomingGauges defines prefix key for storing reference key for upcoming gauges.
LockableDurationsKey defines key for storing valid durations for giving incentives.
MemStoreKey defines the in-memory store key.
No description provided by the author
ModuleName defines the module name.
No description provided by the author
No description provided by the author
QuerierRoute defines the module's query routing key.
RouterKey is the message route for slashing.
StoreKey defines the primary module store key.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Gauge is an object that stores and distributes yields to recipients who satisfy certain conditions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenesisState defines the incentives module's various parameters when first initialized.
No description provided by the author
No description provided by the author
No description provided by the author
MsgAddToGauge adds coins to a previously created gauge.
No description provided by the author
MsgCreateGauge creates a gague to distribute rewards to users.
No description provided by the author
Params holds parameters for the incentives module.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
BankKeeper defines the expected interface needed to retrieve account balances.
CommunityPoolKeeper defines the contract needed to be fulfilled for distribution keeper.
No description provided by the author
EpochKeeper defines the expected interface needed to retrieve epoch info.
No description provided by the author
No description provided by the author
LockupKeeper defines the expected interface needed to retrieve locks.
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
No description provided by the author
No description provided by the author
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
TxFeesKeeper defines the expected interface needed to managing transaction fees.
# Type aliases
MultiIncentiveHooks combines multiple incentive hooks.