Skip to content

Commit

Permalink
update htlc module
Browse files Browse the repository at this point in the history
  • Loading branch information
avery committed Nov 20, 2024
1 parent 3452658 commit 39a1452
Show file tree
Hide file tree
Showing 24 changed files with 735 additions and 659 deletions.
126 changes: 60 additions & 66 deletions api/irismod/htlc/htlc.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion modules/htlc/abci.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package htlc

import (
"context"
"fmt"

tmbytes "github.com/cometbft/cometbft/libs/bytes"
Expand All @@ -11,7 +12,8 @@ import (
)

// BeginBlocker handles block beginning logic for HTLC
func BeginBlocker(ctx sdk.Context, k keeper.Keeper) {
func BeginBlocker(c context.Context, k keeper.Keeper) {
ctx := sdk.UnwrapSDKContext(c)
ctx = ctx.WithLogger(ctx.Logger().With("handler", "beginBlock").With("module", "irismod/htlc"))

currentBlockHeight := uint64(ctx.BlockHeight())
Expand Down
4 changes: 2 additions & 2 deletions modules/htlc/depinject.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package htlc
import (
"cosmossdk.io/core/appmodule"
"cosmossdk.io/depinject"
storetypes "cosmossdk.io/store/types"
"github.com/cosmos/cosmos-sdk/codec"
store "github.com/cosmos/cosmos-sdk/store/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"

Expand Down Expand Up @@ -42,7 +42,7 @@ type Inputs struct {

Config *modulev1.Module
Cdc codec.Codec
Key *store.KVStoreKey
Key *storetypes.KVStoreKey

AccountKeeper types.AccountKeeper
BankKeeper types.BankKeeper
Expand Down
Loading

0 comments on commit 39a1452

Please sign in to comment.