Skip to content

Commit

Permalink
feat: stop supporting interchainqueries module
Browse files Browse the repository at this point in the history
  • Loading branch information
Lockwarr committed Nov 11, 2024
1 parent e7c7633 commit a0c2ce7
Show file tree
Hide file tree
Showing 87 changed files with 37 additions and 17,296 deletions.
38 changes: 9 additions & 29 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ import (
"github.com/Nolus-Protocol/nolus-core/x/feerefunder"
feerefunderkeeper "github.com/Nolus-Protocol/nolus-core/x/feerefunder/keeper"
feetypes "github.com/Nolus-Protocol/nolus-core/x/feerefunder/types"
"github.com/Nolus-Protocol/nolus-core/x/interchainqueries"
interchainquerieskeeper "github.com/Nolus-Protocol/nolus-core/x/interchainqueries/keeper"
interchainqueriestypes "github.com/Nolus-Protocol/nolus-core/x/interchainqueries/types"
"github.com/Nolus-Protocol/nolus-core/x/interchaintxs"
interchaintxskeeper "github.com/Nolus-Protocol/nolus-core/x/interchaintxs/keeper"
interchaintxstypes "github.com/Nolus-Protocol/nolus-core/x/interchaintxs/types"
Expand Down Expand Up @@ -130,22 +127,20 @@ type AppKeepers struct {
TaxKeeper *taxkeeper.Keeper
VestingsKeeper *vestingskeeper.Keeper

InterchainTxsKeeper *interchaintxskeeper.Keeper
InterchainQueriesKeeper *interchainquerieskeeper.Keeper
ContractManagerKeeper *contractmanagermodulekeeper.Keeper
InterchainTxsKeeper *interchaintxskeeper.Keeper
ContractManagerKeeper *contractmanagermodulekeeper.Keeper

WasmKeeper wasmkeeper.Keeper
WasmConfig wasmtypes.WasmConfig

// Modules
ContractManagerModule contractmanager.AppModule
InterchainTxsModule interchaintxs.AppModule
InterchainQueriesModule interchainqueries.AppModule
TransferModule transferSudo.AppModule
FeeRefunderModule feerefunder.AppModule
VestingsModule vestings.AppModule
IcaModule ica.AppModule
AuthzModule authzmodule.AppModule
ContractManagerModule contractmanager.AppModule
InterchainTxsModule interchaintxs.AppModule
TransferModule transferSudo.AppModule
FeeRefunderModule feerefunder.AppModule
VestingsModule vestings.AppModule
IcaModule ica.AppModule
AuthzModule authzmodule.AppModule
}

func (appKeepers *AppKeepers) NewAppKeepers(
Expand Down Expand Up @@ -385,19 +380,6 @@ func (appKeepers *AppKeepers) NewAppKeepers(

appKeepers.IcaModule = ica.NewAppModule(appKeepers.ICAControllerKeeper, appKeepers.ICAHostKeeper)

appKeepers.InterchainQueriesKeeper = interchainquerieskeeper.NewKeeper(
appCodec,
appKeepers.keys[interchainqueriestypes.StoreKey],
appKeepers.keys[interchainqueriestypes.MemStoreKey],
appKeepers.IBCKeeper,
appKeepers.BankKeeper,
appKeepers.ContractManagerKeeper,
interchainquerieskeeper.Verifier{},
interchainquerieskeeper.TransactionVerifier{},
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)
appKeepers.InterchainQueriesModule = interchainqueries.NewAppModule(appCodec, *appKeepers.InterchainQueriesKeeper, appKeepers.AccountKeeper, appKeepers.BankKeeper)

appKeepers.InterchainTxsKeeper = interchaintxskeeper.NewKeeper(
appCodec,
appKeepers.keys[interchaintxstypes.StoreKey],
Expand Down Expand Up @@ -426,7 +408,6 @@ func (appKeepers *AppKeepers) NewAppKeepers(
supportedFeatures := []string{"iterator", "stargate", "staking", "neutron", "migrate", "upgrade", "cosmwasm_1_1", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "cosmwasm_2_0", "cosmwasm_2_1"}
wasmOpts = append(wasmbinding.RegisterCustomPlugins(
appKeepers.InterchainTxsKeeper,
appKeepers.InterchainQueriesKeeper,
*appKeepers.TransferKeeper,
appKeepers.FeeRefunderKeeper,
appKeepers.ContractManagerKeeper,
Expand Down Expand Up @@ -560,7 +541,6 @@ func initParamsKeeper(
paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govv1.ParamKeyTable()) //nolint:staticcheck
paramsKeeper.Subspace(feetypes.ModuleName).WithKeyTable(feetypes.ParamKeyTable())
paramsKeeper.Subspace(interchaintxstypes.ModuleName).WithKeyTable(interchaintxstypes.ParamKeyTable())
paramsKeeper.Subspace(interchainqueriestypes.ModuleName).WithKeyTable(interchainqueriestypes.ParamKeyTable())
paramsKeeper.Subspace(vestingstypes.ModuleName)

return &paramsKeeper
Expand Down
2 changes: 0 additions & 2 deletions app/keepers/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (

contractmanagermoduletypes "github.com/Nolus-Protocol/nolus-core/x/contractmanager/types"
feerefundertypes "github.com/Nolus-Protocol/nolus-core/x/feerefunder/types"
interchainqueriestypes "github.com/Nolus-Protocol/nolus-core/x/interchainqueries/types"
interchaintxstypes "github.com/Nolus-Protocol/nolus-core/x/interchaintxs/types"
)

Expand Down Expand Up @@ -58,7 +57,6 @@ func (appKeepers *AppKeepers) GenerateKeys() {
icacontrollertypes.StoreKey,
icahosttypes.StoreKey,
capabilitytypes.StoreKey,
interchainqueriestypes.StoreKey,
contractmanagermoduletypes.StoreKey,
interchaintxstypes.StoreKey,
wasmtypes.StoreKey,
Expand Down
31 changes: 11 additions & 20 deletions app/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,27 +61,24 @@ import (
contractmanagermoduletypes "github.com/Nolus-Protocol/nolus-core/x/contractmanager/types"
"github.com/Nolus-Protocol/nolus-core/x/feerefunder"
feetypes "github.com/Nolus-Protocol/nolus-core/x/feerefunder/types"
"github.com/Nolus-Protocol/nolus-core/x/interchainqueries"
interchainqueriestypes "github.com/Nolus-Protocol/nolus-core/x/interchainqueries/types"
"github.com/Nolus-Protocol/nolus-core/x/interchaintxs"
interchaintxstypes "github.com/Nolus-Protocol/nolus-core/x/interchaintxs/types"
transferSudo "github.com/Nolus-Protocol/nolus-core/x/transfer"
)

// module account permissions.
var maccPerms = map[string][]string{
authtypes.FeeCollectorName: nil,
distrtypes.ModuleName: nil,
minttypes.ModuleName: {authtypes.Minter},
stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking},
stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking},
govtypes.ModuleName: {authtypes.Burner},
ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
wasmtypes.ModuleName: {authtypes.Burner},
vestingstypes.ModuleName: nil,
icatypes.ModuleName: nil,
interchainqueriestypes.ModuleName: nil,
feetypes.ModuleName: nil,
authtypes.FeeCollectorName: nil,
distrtypes.ModuleName: nil,
minttypes.ModuleName: {authtypes.Minter},
stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking},
stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking},
govtypes.ModuleName: {authtypes.Burner},
ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
wasmtypes.ModuleName: {authtypes.Burner},
vestingstypes.ModuleName: nil,
icatypes.ModuleName: nil,
feetypes.ModuleName: nil,
}

// ModuleBasics defines the module BasicManager is in charge of setting up basic,
Expand Down Expand Up @@ -114,7 +111,6 @@ var ModuleBasics = module.NewBasicManager(
tax.AppModuleBasic{},
ica.AppModuleBasic{},
interchaintxs.AppModuleBasic{},
interchainqueries.AppModuleBasic{},
feerefunder.AppModuleBasic{},
contractmanager.AppModuleBasic{},
authzmodule.AppModuleBasic{},
Expand Down Expand Up @@ -157,7 +153,6 @@ func appModules(
app.AppKeepers.TransferModule,
app.AppKeepers.VestingsModule,
app.AppKeepers.IcaModule,
app.AppKeepers.InterchainQueriesModule,
app.AppKeepers.InterchainTxsModule,
app.AppKeepers.FeeRefunderModule,
app.AppKeepers.ContractManagerModule,
Expand Down Expand Up @@ -191,7 +186,6 @@ func simulationModules(
wasm.NewAppModule(appCodec, &app.WasmKeeper, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.MsgServiceRouter(), app.GetSubspace(wasmtypes.ModuleName)),
ibc.NewAppModule(app.IBCKeeper),
app.AppKeepers.TransferModule,
app.AppKeepers.InterchainQueriesModule,
app.AppKeepers.InterchainTxsModule,
}
}
Expand Down Expand Up @@ -231,7 +225,6 @@ func orderBeginBlockers() []string {
govtypes.ModuleName,
icatypes.ModuleName,
interchaintxstypes.ModuleName,
interchainqueriestypes.ModuleName,
contractmanagermoduletypes.ModuleName,
wasmtypes.ModuleName,
feetypes.ModuleName,
Expand Down Expand Up @@ -262,7 +255,6 @@ func orderEndBlockers() []string {
vestingstypes.ModuleName,
icatypes.ModuleName,
interchaintxstypes.ModuleName,
interchainqueriestypes.ModuleName,
contractmanagermoduletypes.ModuleName,
wasmtypes.ModuleName,
feetypes.ModuleName,
Expand Down Expand Up @@ -300,7 +292,6 @@ func genesisModuleOrder() []string {
upgradetypes.ModuleName,
ibctransfertypes.ModuleName,
icatypes.ModuleName,
interchainqueriestypes.ModuleName,
interchaintxstypes.ModuleName,
contractmanagermoduletypes.ModuleName,
// wasm after ibc transfer
Expand Down
2 changes: 0 additions & 2 deletions app/sim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ import (

contractmanagermoduletypes "github.com/Nolus-Protocol/nolus-core/x/contractmanager/types"
feetypes "github.com/Nolus-Protocol/nolus-core/x/feerefunder/types"
interchainqueriestypes "github.com/Nolus-Protocol/nolus-core/x/interchainqueries/types"
interchaintxstypes "github.com/Nolus-Protocol/nolus-core/x/interchaintxs/types"
)

Expand Down Expand Up @@ -321,7 +320,6 @@ func TestAppImportExport(t *testing.T) {
{keys[taxmoduletypes.StoreKey], newKeys[taxmoduletypes.StoreKey], [][]byte{}},
{keys[interchaintxstypes.StoreKey], newKeys[interchaintxstypes.StoreKey], [][]byte{}},
{keys[contractmanagermoduletypes.StoreKey], newKeys[contractmanagermoduletypes.StoreKey], [][]byte{}},
{keys[interchainqueriestypes.StoreKey], newKeys[interchainqueriestypes.StoreKey], [][]byte{}},
{keys[icacontrollertypes.StoreKey], newKeys[icacontrollertypes.StoreKey], [][]byte{}},
{keys[wasmtypes.StoreKey], newKeys[wasmtypes.StoreKey], [][]byte{wasmtypes.TXCounterPrefix}},
}
Expand Down
17 changes: 0 additions & 17 deletions app/upgrades/v03/constants.go

This file was deleted.

43 changes: 0 additions & 43 deletions app/upgrades/v03/upgrades.go

This file was deleted.

22 changes: 0 additions & 22 deletions app/upgrades/v04/constants.go

This file was deleted.

27 changes: 0 additions & 27 deletions app/upgrades/v04/upgrades.go

This file was deleted.

19 changes: 0 additions & 19 deletions app/upgrades/v041/constants.go

This file was deleted.

27 changes: 0 additions & 27 deletions app/upgrades/v041/upgrades.go

This file was deleted.

22 changes: 0 additions & 22 deletions app/upgrades/v042/constants.go

This file was deleted.

Loading

0 comments on commit a0c2ce7

Please sign in to comment.