cosmos-sdk/x/mint/abci.go
Alex | Interchain Labs c5cbda08f2
feat: custom x/mint minting function (#24436)
Co-authored-by: Tyler <48813565+technicallyty@users.noreply.github.com>
2025-04-14 15:58:34 +00:00

19 lines
503 B
Go

package mint
import (
"context"
"github.com/cosmos/cosmos-sdk/telemetry"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/mint/keeper"
"github.com/cosmos/cosmos-sdk/x/mint/types"
)
// BeginBlocker mints new tokens for the previous block.
func BeginBlocker(ctx context.Context, k keeper.Keeper) error {
defer telemetry.ModuleMeasureSince(types.ModuleName, telemetry.Now(), telemetry.MetricKeyBeginBlocker)
sdkCtx := sdk.UnwrapSDKContext(ctx)
return k.MintFn(sdkCtx)
}