Versions in this module Expand all Collapse all v1 v1.0.0 Nov 8, 2022 Changes in this version + type Hooks struct + func (h Hooks) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) + func (h Hooks) BeforeEpochStart(ctx sdk.Context, epochIdentifier string, epochNumber int64) + func (h Hooks) PostTxProcessing(ctx sdk.Context, msg core.Message, receipt *ethtypes.Receipt) error + type Keeper struct + func NewKeeper(storeKey storetypes.StoreKey, cdc codec.BinaryCodec, ps paramtypes.Subspace, ...) Keeper + func (k Keeper) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, _ int64) + func (k Keeper) AllocationMeter(c context.Context, req *types.QueryAllocationMeterRequest) (*types.QueryAllocationMeterResponse, error) + func (k Keeper) AllocationMeters(c context.Context, req *types.QueryAllocationMetersRequest) (*types.QueryAllocationMetersResponse, error) + func (k Keeper) BeforeEpochStart(_ sdk.Context, _ string, _ int64) + func (k Keeper) CancelIncentive(ctx sdk.Context, contract common.Address) error + func (k Keeper) DeleteGasMeter(ctx sdk.Context, gm types.GasMeter) + func (k Keeper) DeleteIncentiveAndUpdateAllocationMeters(ctx sdk.Context, incentive types.Incentive) + func (k Keeper) DistributeRewards(ctx sdk.Context) error + func (k Keeper) GasMeter(c context.Context, req *types.QueryGasMeterRequest) (*types.QueryGasMeterResponse, error) + func (k Keeper) GasMeters(c context.Context, req *types.QueryGasMetersRequest) (*types.QueryGasMetersResponse, error) + func (k Keeper) GetAllAllocationMeters(ctx sdk.Context) []sdk.DecCoin + func (k Keeper) GetAllIncentives(ctx sdk.Context) []types.Incentive + func (k Keeper) GetAllocationMeter(ctx sdk.Context, denom string) (sdk.DecCoin, bool) + func (k Keeper) GetGasMeter(ctx sdk.Context, contract, participant common.Address) (uint64, bool) + func (k Keeper) GetIncentive(ctx sdk.Context, contract common.Address) (types.Incentive, bool) + func (k Keeper) GetIncentiveGasMeters(ctx sdk.Context, contract common.Address) []types.GasMeter + func (k Keeper) GetIncentivesGasMeters(ctx sdk.Context) []types.GasMeter + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) Hooks() Hooks + func (k Keeper) Incentive(c context.Context, req *types.QueryIncentiveRequest) (*types.QueryIncentiveResponse, error) + func (k Keeper) Incentives(c context.Context, req *types.QueryIncentivesRequest) (*types.QueryIncentivesResponse, error) + func (k Keeper) IsIncentiveRegistered(ctx sdk.Context, contract common.Address) bool + func (k Keeper) IterateIncentiveGasMeters(ctx sdk.Context, contract common.Address, ...) + func (k Keeper) IterateIncentives(ctx sdk.Context, handlerFn func(incentive types.Incentive) (stop bool)) + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) + func (k Keeper) PostTxProcessing(ctx sdk.Context, msg core.Message, receipt *ethtypes.Receipt) error + func (k Keeper) RegisterIncentive(ctx sdk.Context, contract common.Address, allocations sdk.DecCoins, ...) (*types.Incentive, error) + func (k Keeper) SetAllocationMeter(ctx sdk.Context, am sdk.DecCoin) + func (k Keeper) SetGasMeter(ctx sdk.Context, gm types.GasMeter) + func (k Keeper) SetIncentive(ctx sdk.Context, incentive types.Incentive) + func (k Keeper) SetIncentiveTotalGas(ctx sdk.Context, incentive types.Incentive, gas uint64) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + type Migrator struct + func NewMigrator(keeper Keeper) Migrator