Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: ICS V6 #740

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 6 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
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ build-e2e-docker-image: go.sum $(BUILDDIR)/
--load \
-f Dockerfile.builder .

slinky-e2e-test:
@echo "Running e2e slinky tests..."
cd ./tests/slinky && go mod tidy && go test -v -race -timeout 30m -count=1 ./...
connect-e2e-test:
@echo "Running e2e connect tests..."
cd ./tests/connect && go mod tidy && go test -v -race -timeout 30m -count=1 ./...

feemarket-e2e-test:
@echo "Running e2e feemarket tests..."
Expand Down
4 changes: 2 additions & 2 deletions app/ante_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
ibcante "github.com/cosmos/ibc-go/v8/modules/core/ante"
ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"
consumerante "github.com/cosmos/interchain-security/v5/app/consumer/ante"
ibcconsumerkeeper "github.com/cosmos/interchain-security/v5/x/ccv/consumer/keeper"
consumerante "github.com/cosmos/interchain-security/v6/app/consumer/ante"
ibcconsumerkeeper "github.com/cosmos/interchain-security/v6/x/ccv/consumer/keeper"
feemarketante "github.com/skip-mev/feemarket/x/feemarket/ante"

globalfeeante "github.com/neutron-org/neutron/v5/x/globalfee/ante"
Expand Down
48 changes: 24 additions & 24 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ import (

appconfig "github.com/neutron-org/neutron/v5/app/config"

"github.com/skip-mev/slinky/abci/strategies/aggregator"
"github.com/skip-mev/slinky/x/oracle"

oraclepreblock "github.com/skip-mev/slinky/abci/preblock/oracle"
slinkyproposals "github.com/skip-mev/slinky/abci/proposals"
compression "github.com/skip-mev/slinky/abci/strategies/codec"
"github.com/skip-mev/slinky/abci/strategies/currencypair"
"github.com/skip-mev/slinky/abci/ve"
oracleconfig "github.com/skip-mev/slinky/oracle/config"
"github.com/skip-mev/slinky/pkg/math/voteweighted"
oracleclient "github.com/skip-mev/slinky/service/clients/oracle"
servicemetrics "github.com/skip-mev/slinky/service/metrics"
"github.com/skip-mev/connect/v2/abci/strategies/aggregator"
"github.com/skip-mev/connect/v2/x/oracle"

oraclepreblock "github.com/skip-mev/connect/v2/abci/preblock/oracle"
connectproposals "github.com/skip-mev/connect/v2/abci/proposals"
compression "github.com/skip-mev/connect/v2/abci/strategies/codec"
"github.com/skip-mev/connect/v2/abci/strategies/currencypair"
"github.com/skip-mev/connect/v2/abci/ve"
oracleconfig "github.com/skip-mev/connect/v2/oracle/config"
"github.com/skip-mev/connect/v2/pkg/math/voteweighted"
oracleclient "github.com/skip-mev/connect/v2/service/clients/oracle"
servicemetrics "github.com/skip-mev/connect/v2/service/metrics"

v500 "github.com/neutron-org/neutron/v5/app/upgrades/v5.0.0"
"github.com/neutron-org/neutron/v5/x/globalfee"
Expand All @@ -49,8 +49,8 @@ import (
// globalfeetypes "github.com/cosmos/gaia/v11/x/globalfee/types"
"github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8/packetforward"
ibctestingtypes "github.com/cosmos/ibc-go/v8/testing/types"
"github.com/cosmos/interchain-security/v5/testutil/integration"
ccv "github.com/cosmos/interchain-security/v5/x/ccv/types"
"github.com/cosmos/interchain-security/v6/testutil/integration"
ccv "github.com/cosmos/interchain-security/v6/x/ccv/types"

wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
"github.com/cosmos/cosmos-sdk/runtime"
Expand Down Expand Up @@ -182,9 +182,9 @@ import (

feetypes "github.com/neutron-org/neutron/v5/x/feerefunder/types"

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

storetypes "cosmossdk.io/store/types"
"github.com/cosmos/cosmos-sdk/x/consensus"
Expand All @@ -211,11 +211,11 @@ import (
"github.com/skip-mev/block-sdk/v2/abci/checktx"
"github.com/skip-mev/block-sdk/v2/block/base"

"github.com/skip-mev/slinky/x/marketmap"
marketmapkeeper "github.com/skip-mev/slinky/x/marketmap/keeper"
marketmaptypes "github.com/skip-mev/slinky/x/marketmap/types"
oraclekeeper "github.com/skip-mev/slinky/x/oracle/keeper"
oracletypes "github.com/skip-mev/slinky/x/oracle/types"
"github.com/skip-mev/connect/v2/x/marketmap"
marketmapkeeper "github.com/skip-mev/connect/v2/x/marketmap/keeper"
marketmaptypes "github.com/skip-mev/connect/v2/x/marketmap/types"
oraclekeeper "github.com/skip-mev/connect/v2/x/oracle/keeper"
oracletypes "github.com/skip-mev/connect/v2/x/oracle/types"

runtimeservices "github.com/cosmos/cosmos-sdk/runtime/services"
)
Expand Down Expand Up @@ -394,7 +394,7 @@ type App struct {
WasmKeeper wasmkeeper.Keeper
ContractKeeper *wasmkeeper.PermissionedKeeper

// slinky
// connect
MarketMapKeeper *marketmapkeeper.Keeper
OracleKeeper *oraclekeeper.Keeper
oraclePreBlockHandler *oraclepreblock.PreBlockHandler
Expand Down Expand Up @@ -1189,7 +1189,7 @@ func New(

// Create the proposal handler that will be used to fill proposals with
// transactions and oracle data.
oracleProposalHandler := slinkyproposals.NewProposalHandler(
oracleProposalHandler := connectproposals.NewProposalHandler(
app.Logger(),
blockSdkProposalHandler.PrepareProposalHandler(),
baseapp.NoOpProcessProposal(),
Expand Down
7 changes: 4 additions & 3 deletions app/proposals_allowlisting.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ import (
icahosttypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/types"
ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types"
ibcclienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" //nolint:staticcheck
ccvconsumertypes "github.com/cosmos/interchain-security/v5/x/ccv/consumer/types"
ibcratelimittypes "github.com/neutron-org/neutron/v5/x/ibc-rate-limit/types"
ccvconsumertypes "github.com/cosmos/interchain-security/v6/x/ccv/consumer/types"
marketmaptypes "github.com/skip-mev/connect/v2/x/marketmap/types"
feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types"
marketmaptypes "github.com/skip-mev/slinky/x/marketmap/types"

ibcratelimittypes "github.com/neutron-org/neutron/v5/x/ibc-rate-limit/types"

dynamicfeestypes "github.com/neutron-org/neutron/v5/x/dynamicfees/types"
globalfeetypes "github.com/neutron-org/neutron/v5/x/globalfee/types"
Expand Down
2 changes: 1 addition & 1 deletion app/proposals_allowlisting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

cmttypes "github.com/cometbft/cometbft/types"
ibctesting "github.com/cosmos/ibc-go/v8/testing"
icssimapp "github.com/cosmos/interchain-security/v5/testutil/ibc_testing"
icssimapp "github.com/cosmos/interchain-security/v6/testutil/ibc_testing"
"github.com/stretchr/testify/require"

"github.com/neutron-org/neutron/v5/app"
Expand Down
9 changes: 5 additions & 4 deletions app/upgrades/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ import (
paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper"
slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper"
capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper"
ccvconsumerkeeper "github.com/cosmos/interchain-security/v5/x/ccv/consumer/keeper"
dexkeeper "github.com/neutron-org/neutron/v5/x/dex/keeper"
ibcratelimitkeeper "github.com/neutron-org/neutron/v5/x/ibc-rate-limit/keeper"
ccvconsumerkeeper "github.com/cosmos/interchain-security/v6/x/ccv/consumer/keeper"
auctionkeeper "github.com/skip-mev/block-sdk/v2/x/auction/keeper"
marketmapkeeper "github.com/skip-mev/connect/v2/x/marketmap/keeper"
feemarketkeeper "github.com/skip-mev/feemarket/x/feemarket/keeper"
marketmapkeeper "github.com/skip-mev/slinky/x/marketmap/keeper"

dexkeeper "github.com/neutron-org/neutron/v5/x/dex/keeper"
ibcratelimitkeeper "github.com/neutron-org/neutron/v5/x/ibc-rate-limit/keeper"

dynamicfeeskeeper "github.com/neutron-org/neutron/v5/x/dynamicfees/keeper"

Expand Down
4 changes: 2 additions & 2 deletions app/upgrades/v5.0.0/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
marketmapkeeper "github.com/skip-mev/slinky/x/marketmap/keeper"
marketmaptypes "github.com/skip-mev/slinky/x/marketmap/types"
marketmapkeeper "github.com/skip-mev/connect/v2/x/marketmap/keeper"
marketmaptypes "github.com/skip-mev/connect/v2/x/marketmap/types"

"github.com/neutron-org/neutron/v5/app/upgrades"
dexkeeper "github.com/neutron-org/neutron/v5/x/dex/keeper"
Expand Down
4 changes: 2 additions & 2 deletions cmd/neutrond/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
scconfig "github.com/cosmos/cosmos-sdk/client/config"
"github.com/cosmos/cosmos-sdk/client/flags"
serverconfig "github.com/cosmos/cosmos-sdk/server/config"
oracleconfig "github.com/skip-mev/slinky/oracle/config"
oracleconfig "github.com/skip-mev/connect/v2/oracle/config"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand All @@ -35,7 +35,7 @@ type NeutronCustomClient struct {
}

// NeutronAppConfig defines the config structure of the neutrond app.toml file. Specifically,
// it wraps the default app.toml config with additional slinky application config params.
// it wraps the default app.toml config with additional connect application config params.
type NeutronAppConfig struct {
serverconfig.Config
Oracle oracleconfig.AppConfig `mapstructure:"oracle" json:"oracle"`
Expand Down
2 changes: 1 addition & 1 deletion cmd/neutrond/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/cosmos/cosmos-sdk/server"
"github.com/cosmos/cosmos-sdk/x/genutil"
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
ccvconsumertypes "github.com/cosmos/interchain-security/v5/x/ccv/consumer/types"
ccvconsumertypes "github.com/cosmos/interchain-security/v6/x/ccv/consumer/types"
"github.com/spf13/cobra"

"github.com/neutron-org/neutron/v5/testutil/consumer"
Expand Down
Loading
Loading