Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ ldflags := $(strip $(ldflags))
BUILD_FLAGS := -tags "$(build_tags)" -ldflags '$(ldflags)'
# check for nostrip option
ifeq (,$(findstring nostrip,$(ATOMONE_BUILD_OPTIONS)))
BUILD_FLAGS += -trimpath
# BUILD_FLAGS += -trimpath
endif

###############################################################################
Expand Down
3 changes: 3 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import (
"github.com/gorilla/mux"
"github.com/spf13/cast"

// Force registration of gno proto types
_ "github.com/atomone-hub/atomone/modules/10-gno"

abci "github.com/cometbft/cometbft/abci/types"

dbm "github.com/cosmos/cosmos-db"
Expand Down
20 changes: 13 additions & 7 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import (
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"

ibcgno "github.com/atomone-hub/atomone/modules/10-gno"
coredaoskeeper "github.com/atomone-hub/atomone/x/coredaos/keeper"
coredaostypes "github.com/atomone-hub/atomone/x/coredaos/types"
dynamicfeekeeper "github.com/atomone-hub/atomone/x/dynamicfee/keeper"
Expand Down Expand Up @@ -95,6 +96,7 @@ type AppKeepers struct {
ICAModule ica.AppModule
TransferModule transfer.AppModule
TMClientModule ibctm.AppModule
GnoModule ibcgno.AppModule
}

func NewAppKeeper(
Expand Down Expand Up @@ -347,10 +349,14 @@ func NewAppKeeper(
storeProvider := clientKeeper.GetStoreProvider()

tmLightClientModule := ibctm.NewLightClientModule(appCodec, storeProvider)

gnoLightClientModule := ibcgno.NewLightClientModule(appCodec, storeProvider)

appKeepers.IBCKeeper.ClientKeeper.AddRoute(ibctm.ModuleName, &tmLightClientModule)
appKeepers.IBCKeeper.ClientKeeper.AddRoute(ibcgno.ModuleName, &gnoLightClientModule)

appKeepers.TMClientModule = ibctm.NewAppModule(tmLightClientModule)

appKeepers.GnoModule = ibcgno.NewAppModule(gnoLightClientModule)
return appKeepers
}

Expand All @@ -369,12 +375,12 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino

//nolint: staticcheck // SA1019: moduletypes.ParamKeyTable is deprecated
paramsKeeper.Subspace(authtypes.ModuleName).WithKeyTable(authtypes.ParamKeyTable())
paramsKeeper.Subspace(stakingtypes.ModuleName).WithKeyTable(stakingtypes.ParamKeyTable()) //nolint:staticcheck // SA1019
paramsKeeper.Subspace(banktypes.ModuleName).WithKeyTable(banktypes.ParamKeyTable()) //nolint:staticcheck // SA1019
paramsKeeper.Subspace(minttypes.ModuleName).WithKeyTable(minttypes.ParamKeyTable()) //nolint:staticcheck // SA1019
paramsKeeper.Subspace(distrtypes.ModuleName).WithKeyTable(distrtypes.ParamKeyTable()) //nolint:staticcheck // SA1019
paramsKeeper.Subspace(slashingtypes.ModuleName).WithKeyTable(slashingtypes.ParamKeyTable()) //nolint:staticcheck // SA1019
paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govv1.ParamKeyTable()) //nolint:staticcheck // SA1019
paramsKeeper.Subspace(stakingtypes.ModuleName).WithKeyTable(stakingtypes.ParamKeyTable())
paramsKeeper.Subspace(banktypes.ModuleName).WithKeyTable(banktypes.ParamKeyTable()) //nolint:staticcheck // SA1019
paramsKeeper.Subspace(minttypes.ModuleName).WithKeyTable(minttypes.ParamKeyTable()) //nolint:staticcheck // SA1019
paramsKeeper.Subspace(distrtypes.ModuleName).WithKeyTable(distrtypes.ParamKeyTable())
paramsKeeper.Subspace(slashingtypes.ModuleName).WithKeyTable(slashingtypes.ParamKeyTable())
paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govv1.ParamKeyTable()) //nolint:staticcheck // SA1019
paramsKeeper.Subspace(ibctransfertypes.ModuleName)
paramsKeeper.Subspace(ibcexported.ModuleName)
paramsKeeper.Subspace(icahosttypes.SubModuleName)
Expand Down
1 change: 1 addition & 0 deletions app/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ func appModules(
app.TransferModule,
app.ICAModule,
app.TMClientModule,
app.GnoModule,
}
}

Expand Down
1 change: 1 addition & 0 deletions docs/static/openapi.json

Large diffs are not rendered by default.

301 changes: 255 additions & 46 deletions go.mod

Large diffs are not rendered by default.

689 changes: 594 additions & 95 deletions go.sum

Large diffs are not rendered by default.

Loading