Documentation ¶
Index ¶
- Constants
- func NewEscrowAccountName(id uint64) string
- func NewMsgServer(k Keeper) types.MsgServer
- func NewQueryServer(k Keeper) types.QueryServer
- type IncentivizationProgramState
- func (s IncentivizationProgramState) Create(program *types.IncentivizationProgram)
- func (s IncentivizationProgramState) Get(id uint64) (*types.IncentivizationProgram, error)
- func (s IncentivizationProgramState) IteratePrograms(do func(program *types.IncentivizationProgram) (stop bool))
- func (s IncentivizationProgramState) PeekNextID() uint64
- type Keeper
- func (k Keeper) CreateIncentivizationProgram(ctx sdk.Context, lpDenom string, minLockupDuration time.Duration, ...) (*types.IncentivizationProgram, error)
- func (k Keeper) Distribute(ctx sdk.Context) error
- func (k Keeper) FundIncentivizationProgram(ctx sdk.Context, id uint64, funder sdk.AccAddress, funds sdk.Coins) error
- func (k Keeper) IncentivizationProgramsState(ctx sdk.Context) IncentivizationProgramState
Constants ¶
View Source
const ( // MinLockupDuration defines the lockup minimum time // TODO(mercilex): maybe module param MinLockupDuration = 24 * time.Hour // MinEpochs defines the minimum number of epochs // TODO(mercilex): maybe module param MinEpochs int64 = 7 )
View Source
const ( // FundsModuleAccountAddressPrefix defines the prefix // of module accounts created that contain an // incentivization program funds. FundsModuleAccountAddressPrefix = "incentivization_escrow_" )
View Source
const (
IncentivizationProgramStartID uint64 = 0
)
Variables ¶
This section is empty.
Functions ¶
func NewEscrowAccountName ¶
NewEscrowAccountName returns the escrow module account name
func NewMsgServer ¶
func NewQueryServer ¶
func NewQueryServer(k Keeper) types.QueryServer
Types ¶
type IncentivizationProgramState ¶
type IncentivizationProgramState struct {
// contains filtered or unexported fields
}
func (IncentivizationProgramState) Create ¶
func (s IncentivizationProgramState) Create(program *types.IncentivizationProgram)
func (IncentivizationProgramState) Get ¶
func (s IncentivizationProgramState) Get(id uint64) (*types.IncentivizationProgram, error)
func (IncentivizationProgramState) IteratePrograms ¶ added in v0.2.5
func (s IncentivizationProgramState) IteratePrograms(do func(program *types.IncentivizationProgram) (stop bool))
IteratePrograms iterates over every program
func (IncentivizationProgramState) PeekNextID ¶
func (s IncentivizationProgramState) PeekNextID() uint64
PeekNextID returns the next ID without actually increasing the counter.
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(cdc codec.Codec, storeKey sdk.StoreKey, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, dk dexkeeper.Keeper, lk lockupkeeper.Keeper) Keeper
func (Keeper) CreateIncentivizationProgram ¶
func (Keeper) Distribute ¶
Distribute distributes incentivization rewards to accounts that meet incentivization program criteria.
func (Keeper) FundIncentivizationProgram ¶
func (Keeper) IncentivizationProgramsState ¶
func (k Keeper) IncentivizationProgramsState(ctx sdk.Context) IncentivizationProgramState
Click to show internal directories.
Click to hide internal directories.