Skip to content

Commit

Permalink
pick up the new nexus Coin and remove axelarnet Coin
Browse files Browse the repository at this point in the history
  • Loading branch information
fish-sammy committed Sep 23, 2024
1 parent 1562207 commit 501f5c3
Show file tree
Hide file tree
Showing 10 changed files with 1,299 additions and 516 deletions.
3 changes: 0 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ func NewAxelarApp(
*GetKeeper[axelarnetKeeper.IBCKeeper](keepers),
GetKeeper[nexusKeeper.Keeper](keepers),
axelarbankkeeper.NewBankKeeper(GetKeeper[bankkeeper.BaseKeeper](keepers)),
GetKeeper[authkeeper.AccountKeeper](keepers),
logger,
),
)
Expand Down Expand Up @@ -446,12 +445,10 @@ func initMessageRouter(keepers *KeeperCache) nexusTypes.MessageRouter {
messageRouter := nexusTypes.NewMessageRouter().
AddRoute(evmTypes.ModuleName, evmKeeper.NewMessageRoute()).
AddRoute(axelarnetTypes.ModuleName, axelarnetKeeper.NewMessageRoute(
*GetKeeper[axelarnetKeeper.Keeper](keepers),
GetKeeper[axelarnetKeeper.IBCKeeper](keepers),
GetKeeper[feegrantkeeper.Keeper](keepers),
axelarbankkeeper.NewBankKeeper(GetKeeper[bankkeeper.BaseKeeper](keepers)),
GetKeeper[nexusKeeper.Keeper](keepers),
GetKeeper[authkeeper.AccountKeeper](keepers),
GetKeeper[stakingkeeper.Keeper](keepers),
))

Expand Down
4 changes: 2 additions & 2 deletions x/axelarnet/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
)

// NewHandler returns the handler of the Cosmos module
func NewHandler(k keeper.Keeper, n types.Nexus, b types.BankKeeper, a types.AccountKeeper, ibcK keeper.IBCKeeper) sdk.Handler {
server := keeper.NewMsgServerImpl(k, n, b, a, ibcK)
func NewHandler(k keeper.Keeper, n types.Nexus, b types.BankKeeper, ibcK keeper.IBCKeeper) sdk.Handler {
server := keeper.NewMsgServerImpl(k, n, b, ibcK)
h := func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) {
ctx = ctx.WithEventManager(sdk.NewEventManager())
switch msg := msg.(type) {
Expand Down
185 changes: 0 additions & 185 deletions x/axelarnet/keeper/coin.go

This file was deleted.

Loading

0 comments on commit 501f5c3

Please sign in to comment.