Skip to content

Commit

Permalink
Merge pull request #237 from notional-labs/dang/add-ics
Browse files Browse the repository at this point in the history
Add consumer module
  • Loading branch information
vuong177 authored Sep 22, 2023
2 parents c0b3ea4 + 745aac0 commit ed05df7
Show file tree
Hide file tree
Showing 112 changed files with 1,172 additions and 281 deletions.
13 changes: 10 additions & 3 deletions app/ante/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ import (
ante "github.com/cosmos/cosmos-sdk/x/auth/ante"
"github.com/cosmos/cosmos-sdk/x/auth/signing"

tfmwKeeper "github.com/notional-labs/centauri/v5/x/transfermiddleware/keeper"
txBoundaryAnte "github.com/notional-labs/centauri/v5/x/tx-boundary/ante"
txBoundaryKeeper "github.com/notional-labs/centauri/v5/x/tx-boundary/keeper"
tfmwKeeper "github.com/notional-labs/centauri/v6/x/transfermiddleware/keeper"
txBoundaryAnte "github.com/notional-labs/centauri/v6/x/tx-boundary/ante"
txBoundaryKeeper "github.com/notional-labs/centauri/v6/x/tx-boundary/keeper"

democracyante "github.com/cosmos/interchain-security/v3/app/consumer-democracy/ante"
consumerante "github.com/cosmos/interchain-security/v3/app/consumer/ante"
ccvconsumerkeeper "github.com/cosmos/interchain-security/v3/x/ccv/consumer/keeper"
)

// Link to default ante handler used by cosmos sdk:
Expand All @@ -25,10 +29,13 @@ func NewAnteHandler(
channelKeeper *ibckeeper.Keeper,
tfmwKeeper tfmwKeeper.Keeper,
txBoundaryKeeper txBoundaryKeeper.Keeper,
consumerKeeper ccvconsumerkeeper.Keeper,
codec codec.BinaryCodec,
) sdk.AnteHandler {
return sdk.ChainAnteDecorators(
ante.NewSetUpContextDecorator(), // // outermost AnteDecorator. SetUpContext must be called first
consumerante.NewDisabledModulesDecorator("/cosmos.evidence", "/cosmos.slashing"),
democracyante.NewForbiddenProposalsDecorator(IsProposalWhitelisted, IsModuleWhiteList),
ante.NewValidateBasicDecorator(),
ante.NewTxTimeoutHeightDecorator(),
ante.NewValidateMemoDecorator(ak),
Expand Down
2 changes: 1 addition & 1 deletion app/ante/ibc_ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/cosmos/cosmos-sdk/x/authz"
clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"

tfmwKeeper "github.com/notional-labs/centauri/v5/x/transfermiddleware/keeper"
tfmwKeeper "github.com/notional-labs/centauri/v6/x/transfermiddleware/keeper"
)

type IBCPermissionDecorator struct {
Expand Down
111 changes: 111 additions & 0 deletions app/ante/proposals_whitelist.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
package ante

import (
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
"github.com/cosmos/cosmos-sdk/x/params/types/proposal"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"

icahosttypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host/types"

upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"

ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types"
ccvgov "github.com/cosmos/interchain-security/v3/x/ccv/democracy/governance"
)

var WhiteListModule = map[string]struct{}{
"/cosmos.gov.v1.MsgUpdateParams": {},
"/cosmos.bank.v1beta1.MsgUpdateParams": {},
"/cosmos.staking.v1beta1.MsgUpdateParams": {},
"/cosmos.distribution.v1beta1.MsgUpdateParams": {},
"/cosmos.mint.v1beta1.MsgUpdateParams": {},
"/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade": {},
"/cosmos.upgrade.v1beta1.MsgCancelUpgrade": {},
"/centauri.transfermiddleware.v1beta1.MsgAddParachainIBCTokenInfo": {},
"/centauri.transfermiddleware.v1beta1.MsgRemoveParachainIBCTokenInfo": {},
"/centauri.transfermiddleware.v1beta1.MsgAddRlyAddress": {},
}

func IsModuleWhiteList(typeUrl string) bool {
_, found := WhiteListModule[typeUrl]
return found
}

func IsProposalWhitelisted(content govv1beta1.Content) bool {
switch c := content.(type) {
case *proposal.ParameterChangeProposal:
return isParamChangeWhitelisted(getParamChangesMapFromArray(c.Changes))
case *upgradetypes.SoftwareUpgradeProposal, //nolint:staticcheck
*upgradetypes.CancelSoftwareUpgradeProposal: //nolint:staticcheck
return true

default:
return false
}
}

func getParamChangesMapFromArray(paramChanges []proposal.ParamChange) map[ccvgov.ParamChangeKey]struct{} {
res := map[ccvgov.ParamChangeKey]struct{}{}
for _, paramChange := range paramChanges {
key := ccvgov.ParamChangeKey{
MsgType: paramChange.Subspace,
Key: paramChange.Key,
}

res[key] = struct{}{}
}

return res
}

func isParamChangeWhitelisted(paramChanges map[ccvgov.ParamChangeKey]struct{}) bool {
for paramChangeKey := range paramChanges {
_, found := WhitelistedParams[paramChangeKey]
if !found {
return false
}
}
return true
}

var WhitelistedParams = map[ccvgov.ParamChangeKey]struct{}{
//bank

Check failure on line 77 in app/ante/proposals_whitelist.go

View workflow job for this annotation

GitHub Actions / lint

commentFormatting: put a space between `//` and comment text (gocritic)
{MsgType: banktypes.ModuleName, Key: string(banktypes.KeySendEnabled)}: {},
{MsgType: banktypes.ModuleName, Key: string(banktypes.KeyDefaultSendEnabled)}: {},
//governance

Check failure on line 80 in app/ante/proposals_whitelist.go

View workflow job for this annotation

GitHub Actions / lint

commentFormatting: put a space between `//` and comment text (gocritic)
{MsgType: govtypes.ModuleName, Key: string(govv1.ParamStoreKeyDepositParams)}: {}, //min_deposit, max_deposit_period

Check failure on line 81 in app/ante/proposals_whitelist.go

View workflow job for this annotation

GitHub Actions / lint

commentFormatting: put a space between `//` and comment text (gocritic)
{MsgType: govtypes.ModuleName, Key: string(govv1.ParamStoreKeyVotingParams)}: {}, //voting_period

Check failure on line 82 in app/ante/proposals_whitelist.go

View workflow job for this annotation

GitHub Actions / lint

commentFormatting: put a space between `//` and comment text (gocritic)
{MsgType: govtypes.ModuleName, Key: string(govv1.ParamStoreKeyTallyParams)}: {}, //quorum,threshold,veto_threshold

Check failure on line 83 in app/ante/proposals_whitelist.go

View workflow job for this annotation

GitHub Actions / lint

commentFormatting: put a space between `//` and comment text (gocritic)
//staking

Check failure on line 84 in app/ante/proposals_whitelist.go

View workflow job for this annotation

GitHub Actions / lint

commentFormatting: put a space between `//` and comment text (gocritic)
{MsgType: stakingtypes.ModuleName, Key: string(stakingtypes.KeyUnbondingTime)}: {},
{MsgType: stakingtypes.ModuleName, Key: string(stakingtypes.KeyMaxValidators)}: {},
{MsgType: stakingtypes.ModuleName, Key: string(stakingtypes.KeyMaxEntries)}: {},
{MsgType: stakingtypes.ModuleName, Key: string(stakingtypes.KeyHistoricalEntries)}: {},
{MsgType: stakingtypes.ModuleName, Key: string(stakingtypes.KeyBondDenom)}: {},
{MsgType: stakingtypes.ModuleName, Key: string(stakingtypes.KeyMinCommissionRate)}: {},
//ccv consumer

Check failure on line 91 in app/ante/proposals_whitelist.go

View workflow job for this annotation

GitHub Actions / lint

commentFormatting: put a space between `//` and comment text (gocritic)
{MsgType: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyRewardDenoms)}: {},
{MsgType: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyEnabled)}: {},
{MsgType: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyBlocksPerDistributionTransmission)}: {},
{MsgType: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyDistributionTransmissionChannel)}: {},
{MsgType: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyProviderFeePoolAddrStr)}: {},
{MsgType: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyTransferTimeoutPeriod)}: {},
{MsgType: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyConsumerRedistributionFrac)}: {},
{MsgType: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyHistoricalEntries)}: {},
{MsgType: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyConsumerUnbondingPeriod)}: {},
{MsgType: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeySoftOptOutThreshold)}: {},
{MsgType: ccvconsumertypes.ModuleName, Key: string(ccvconsumertypes.KeyProviderRewardDenoms)}: {},
//distribution

Check failure on line 103 in app/ante/proposals_whitelist.go

View workflow job for this annotation

GitHub Actions / lint

commentFormatting: put a space between `//` and comment text (gocritic)
{MsgType: distrtypes.ModuleName, Key: string(distrtypes.ParamStoreKeyCommunityTax)}: {},
{MsgType: distrtypes.ModuleName, Key: string(distrtypes.ParamStoreKeyWithdrawAddrEnabled)}: {},
//ibc transfer

Check failure on line 106 in app/ante/proposals_whitelist.go

View workflow job for this annotation

GitHub Actions / lint

commentFormatting: put a space between `//` and comment text (gocritic)
{MsgType: ibctransfertypes.ModuleName, Key: string(ibctransfertypes.KeySendEnabled)}: {},
//ica

Check failure on line 108 in app/ante/proposals_whitelist.go

View workflow job for this annotation

GitHub Actions / lint

commentFormatting: put a space between `//` and comment text (gocritic)
{MsgType: icahosttypes.SubModuleName, Key: string(icahosttypes.KeyHostEnabled)}: {},
{MsgType: icahosttypes.SubModuleName, Key: string(icahosttypes.KeyAllowMessages)}: {},
}
90 changes: 53 additions & 37 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ import (
vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
"github.com/cosmos/cosmos-sdk/x/bank"

"github.com/notional-labs/centauri/v5/app/keepers"
v4 "github.com/notional-labs/centauri/v5/app/upgrades/v4"
v5 "github.com/notional-labs/centauri/v5/app/upgrades/v5"
"github.com/notional-labs/centauri/v6/app/keepers"
v4 "github.com/notional-labs/centauri/v6/app/upgrades/v4"
v5 "github.com/notional-labs/centauri/v6/app/upgrades/v5"

// bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
Expand All @@ -43,7 +43,6 @@ import (
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
"github.com/cosmos/cosmos-sdk/x/crisis"
crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
distr "github.com/cosmos/cosmos-sdk/x/distribution"
distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
"github.com/cosmos/cosmos-sdk/x/evidence"
evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types"
Expand All @@ -68,7 +67,6 @@ import (
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/cosmos/cosmos-sdk/x/slashing"
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
"github.com/cosmos/cosmos-sdk/x/staking"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/cosmos/cosmos-sdk/x/upgrade"
upgradeclient "github.com/cosmos/cosmos-sdk/x/upgrade/client"
Expand All @@ -92,37 +90,46 @@ import (
alliancemoduleclient "github.com/terra-money/alliance/x/alliance/client"
alliancemoduletypes "github.com/terra-money/alliance/x/alliance/types"

custombankmodule "github.com/notional-labs/centauri/v5/custom/bank"
custombankmodule "github.com/notional-labs/centauri/v6/custom/bank"

"github.com/notional-labs/centauri/v5/app/ante"
transfermiddleware "github.com/notional-labs/centauri/v5/x/transfermiddleware"
transfermiddlewaretypes "github.com/notional-labs/centauri/v5/x/transfermiddleware/types"
"github.com/notional-labs/centauri/v6/app/ante"
transfermiddleware "github.com/notional-labs/centauri/v6/x/transfermiddleware"
transfermiddlewaretypes "github.com/notional-labs/centauri/v6/x/transfermiddleware/types"

txBoundary "github.com/notional-labs/centauri/v5/x/tx-boundary"
txBoundaryTypes "github.com/notional-labs/centauri/v5/x/tx-boundary/types"
txBoundary "github.com/notional-labs/centauri/v6/x/tx-boundary"
txBoundaryTypes "github.com/notional-labs/centauri/v6/x/tx-boundary/types"

ratelimitmodule "github.com/notional-labs/centauri/v5/x/ratelimit"
ratelimitmoduletypes "github.com/notional-labs/centauri/v5/x/ratelimit/types"
ratelimitmodule "github.com/notional-labs/centauri/v6/x/ratelimit"
ratelimitmoduletypes "github.com/notional-labs/centauri/v6/x/ratelimit/types"

consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types"

"github.com/notional-labs/centauri/v5/x/mint"
minttypes "github.com/notional-labs/centauri/v5/x/mint/types"
"github.com/notional-labs/centauri/v6/x/mint"
minttypes "github.com/notional-labs/centauri/v6/x/mint/types"

ibctestingtypes "github.com/cosmos/ibc-go/v7/testing/types"

ibc_hooks "github.com/notional-labs/centauri/v5/x/ibc-hooks"
ibchookstypes "github.com/notional-labs/centauri/v5/x/ibc-hooks/types"
ibc_hooks "github.com/notional-labs/centauri/v6/x/ibc-hooks"
ibchookstypes "github.com/notional-labs/centauri/v6/x/ibc-hooks/types"

"github.com/CosmWasm/wasmd/x/wasm"
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"

v4_5 "github.com/notional-labs/centauri/v5/app/upgrades/v4_5"
v4_5_1 "github.com/notional-labs/centauri/v5/app/upgrades/v4_5_1"
v5_1_0 "github.com/notional-labs/centauri/v5/app/upgrades/v5_1_0"
v4_5 "github.com/notional-labs/centauri/v6/app/upgrades/v4_5"
v4_5_1 "github.com/notional-labs/centauri/v6/app/upgrades/v4_5_1"
v5_1_0 "github.com/notional-labs/centauri/v6/app/upgrades/v5_1_0"
v6 "github.com/notional-labs/centauri/v6/app/upgrades/v6"

upgrades "github.com/notional-labs/centauri/v5/app/upgrades"
upgrades "github.com/notional-labs/centauri/v6/app/upgrades"

ccvdistr "github.com/cosmos/interchain-security/v3/x/ccv/democracy/distribution"
ccvgov "github.com/cosmos/interchain-security/v3/x/ccv/democracy/governance"
ccvstaking "github.com/cosmos/interchain-security/v3/x/ccv/democracy/staking"

ccvconsumer "github.com/cosmos/interchain-security/v3/x/ccv/consumer"
// ccvconsumerkeeper "github.com/cosmos/interchain-security/v3/x/ccv/consumer/keeper"
ccvconsumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types"
)

const (
Expand All @@ -140,7 +147,7 @@ var (
// https://github.com/CosmWasm/wasmd/blob/02a54d33ff2c064f3539ae12d75d027d9c665f05/x/wasm/internal/types/proposal.go#L28-L34
EnableSpecificProposals = ""

Upgrades = []upgrades.Upgrade{v4.Upgrade, v5.Upgrade}
Upgrades = []upgrades.Upgrade{v4.Upgrade, v5.Upgrade, v6.Upgrade}
Forks = []upgrades.Fork{v4_5.Fork, v4_5_1.Fork, v5_1_0.Fork}
)

Expand Down Expand Up @@ -194,8 +201,8 @@ var (
genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator),
bank.AppModuleBasic{},
capability.AppModuleBasic{},
staking.AppModuleBasic{},
distr.AppModuleBasic{},
ccvstaking.AppModuleBasic{},
ccvdistr.AppModuleBasic{},
gov.NewAppModuleBasic(getGovProposalHandlers()),
params.AppModuleBasic{},
crisis.AppModuleBasic{},
Expand All @@ -220,6 +227,7 @@ var (
ratelimitmodule.AppModuleBasic{},
consensus.AppModuleBasic{},
alliancemodule.AppModuleBasic{},
ccvconsumer.AppModuleBasic{},
// this line is used by starport scaffolding # stargate/app/moduleBasic
)

Expand All @@ -228,15 +236,17 @@ var (
authtypes.FeeCollectorName: nil,
distrtypes.ModuleName: nil,
// mint module needs burn access to remove excess validator tokens (it overallocates, then burns)
minttypes.ModuleName: {authtypes.Minter},
stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking},
stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking},
govtypes.ModuleName: {authtypes.Burner},
transfermiddlewaretypes.ModuleName: {authtypes.Minter, authtypes.Burner},
ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
alliancemoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner},
alliancemoduletypes.RewardsPoolName: nil,
icatypes.ModuleName: nil,
ccvconsumertypes.ConsumerRedistributeName: nil,
ccvconsumertypes.ConsumerToSendToProviderName: nil,
minttypes.ModuleName: {authtypes.Minter},
stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking},
stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking},
govtypes.ModuleName: {authtypes.Burner},
transfermiddlewaretypes.ModuleName: {authtypes.Minter, authtypes.Burner},
ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
alliancemoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner},
alliancemoduletypes.RewardsPoolName: nil,
icatypes.ModuleName: nil,
// this line is used by starport scaffolding # stargate/app/maccPerms
}
)
Expand Down Expand Up @@ -336,6 +346,7 @@ func NewCentauriApp(
icqModule := icq.NewAppModule(app.ICQKeeper)
ibcHooksModule := ibc_hooks.NewAppModule()
icaModule := ica.NewAppModule(nil, &app.ICAHostKeeper) // Only ICA Host
consumerModule := ccvconsumer.NewAppModule(app.ConsumerKeeper, app.GetSubspace(ccvconsumertypes.ModuleName))
/**** Module Options ****/

// NOTE: we may consider parsing `appOpts` inside module constructors. For the moment
Expand All @@ -357,11 +368,11 @@ func NewCentauriApp(
feegrantmodule.NewAppModule(appCodec, app.AccountKeeper, app.BankKeeper, app.FeeGrantKeeper, app.interfaceRegistry),
groupmodule.NewAppModule(appCodec, app.GroupKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry),
crisis.NewAppModule(app.CrisisKeeper, skipGenesisInvariants, app.GetSubspace(crisistypes.ModuleName)),
gov.NewAppModule(appCodec, &app.GovKeeper, app.AccountKeeper, app.BankKeeper, app.GetSubspace(govtypes.ModuleName)),
ccvgov.NewAppModule(appCodec, app.GovKeeper, app.AccountKeeper, app.BankKeeper, ante.IsProposalWhitelisted, app.GetSubspace(govtypes.ModuleName), func(_ string) bool { return true }),
mint.NewAppModule(appCodec, app.MintKeeper, app.AccountKeeper, nil),
slashing.NewAppModule(appCodec, app.SlashingKeeper, app.AccountKeeper, app.BankKeeper, app.StakingKeeper, app.GetSubspace(slashingtypes.ModuleName)),
distr.NewAppModule(appCodec, app.DistrKeeper, app.AccountKeeper, app.BankKeeper, app.StakingKeeper, app.GetSubspace(distrtypes.ModuleName)),
staking.NewAppModule(appCodec, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.GetSubspace(stakingtypes.ModuleName)),
slashing.NewAppModule(appCodec, app.SlashingKeeper, app.AccountKeeper, app.BankKeeper, app.ConsumerKeeper, app.GetSubspace(slashingtypes.ModuleName)),
ccvdistr.NewAppModule(appCodec, app.DistrKeeper, app.AccountKeeper, app.BankKeeper, *app.StakingKeeper, authtypes.FeeCollectorName, app.GetSubspace(distrtypes.ModuleName)),
ccvstaking.NewAppModule(appCodec, *app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.GetSubspace(stakingtypes.ModuleName)),
upgrade.NewAppModule(app.UpgradeKeeper),
evidence.NewAppModule(app.EvidenceKeeper),
ibc.NewAppModule(app.IBCKeeper),
Expand All @@ -377,6 +388,7 @@ func NewCentauriApp(
txBoundaryModule,
icaModule,
ratelimitModule,
consumerModule,
alliancemodule.NewAppModule(appCodec, app.AllianceKeeper, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry),
// this line is used by starport scaffolding # stargate/app/appModule
)
Expand Down Expand Up @@ -415,6 +427,7 @@ func NewCentauriApp(
icatypes.ModuleName,
wasm.ModuleName,
alliancemoduletypes.ModuleName,
ccvconsumertypes.ModuleName,
// this line is used by starport scaffolding # stargate/app/beginBlockers
)

Expand Down Expand Up @@ -448,6 +461,7 @@ func NewCentauriApp(
icatypes.ModuleName,
wasm.ModuleName,
alliancemoduletypes.ModuleName,
ccvconsumertypes.ModuleName,
)

// NOTE: The genutils module must occur after staking so that pools are
Expand Down Expand Up @@ -485,6 +499,7 @@ func NewCentauriApp(
icatypes.ModuleName,
wasm.ModuleName,
alliancemoduletypes.ModuleName,
ccvconsumertypes.ModuleName,
// this line is used by starport scaffolding # stargate/app/initGenesis
)

Expand Down Expand Up @@ -536,6 +551,7 @@ func NewCentauriApp(
app.IBCKeeper,
app.TransferMiddlewareKeeper,
app.TxBoundaryKeepper,
app.ConsumerKeeper,
appCodec,
))
app.SetEndBlocker(app.EndBlocker)
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/cosmos/ibc-go/v7/testing/mock"
"github.com/stretchr/testify/require"

centauri "github.com/notional-labs/centauri/v5/app"
centauri "github.com/notional-labs/centauri/v6/app"
)

// SimAppChainID hardcoded chainID for simulation
Expand Down
8 changes: 4 additions & 4 deletions app/ibctesting/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

ratelimitmodulekeeper "github.com/notional-labs/centauri/v5/x/ratelimit/keeper"
ratelimitmodulekeeper "github.com/notional-labs/centauri/v6/x/ratelimit/keeper"

"cosmossdk.io/errors"
abci "github.com/cometbft/cometbft/abci/types"
Expand Down Expand Up @@ -54,9 +54,9 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"

centauri "github.com/notional-labs/centauri/v5/app"
"github.com/notional-labs/centauri/v5/app/ibctesting/simapp"
routerKeeper "github.com/notional-labs/centauri/v5/x/transfermiddleware/keeper"
centauri "github.com/notional-labs/centauri/v6/app"
"github.com/notional-labs/centauri/v6/app/ibctesting/simapp"
routerKeeper "github.com/notional-labs/centauri/v6/x/transfermiddleware/keeper"
)

// TestChain is a testing struct that wraps a simapp with the last TM Header, the current ABCI
Expand Down
Loading

0 comments on commit ed05df7

Please sign in to comment.