Skip to content

Commit

Permalink
resolve provider dependency on consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
jstr1121 committed Mar 28, 2023
1 parent 0965028 commit 933705f
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 15 deletions.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ go 1.18

require (
github.com/cosmos/cosmos-sdk v0.45.11
github.com/cosmos/interchain-security/provider v0.0.0
github.com/gogo/protobuf v1.3.3
github.com/golang/protobuf v1.5.2
github.com/gorilla/mux v1.8.0
Expand Down Expand Up @@ -141,4 +142,5 @@ replace (
github.com/stretchr/testify => github.com/stretchr/testify v1.7.1
github.com/tendermint/tendermint => github.com/informalsystems/tendermint v0.34.26
google.golang.org/grpc => google.golang.org/grpc v1.33.2
github.com/cosmos/interchain-security/provider => ./provider
)
2 changes: 1 addition & 1 deletion proto/interchain_security/ccv/provider/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package interchain_security.ccv.provider.v1;

option go_package = "github.com/cosmos/interchain-security/x/ccv/provider/types";
option go_package = "github.com/cosmos/interchain-security/provider/x/ccv/types";

import "gogoproto/gogo.proto";
import "interchain_security/ccv/v1/ccv.proto";
Expand Down
2 changes: 1 addition & 1 deletion proto/interchain_security/ccv/provider/v1/provider.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package interchain_security.ccv.provider.v1;

option go_package = "github.com/cosmos/interchain-security/x/ccv/provider/types";
option go_package = "github.com/cosmos/interchain-security/provider/x/ccv/types";

import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto";
Expand Down
2 changes: 1 addition & 1 deletion proto/interchain_security/ccv/provider/v1/query.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package interchain_security.ccv.provider.v1;

option go_package = "github.com/cosmos/interchain-security/x/ccv/provider/types";
option go_package = "github.com/cosmos/interchain-security/provider/x/ccv/types";

import "google/api/annotations.proto";
import "gogoproto/gogo.proto";
Expand Down
2 changes: 1 addition & 1 deletion proto/interchain_security/ccv/provider/v1/tx.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package interchain_security.ccv.provider.v1;

option go_package = "github.com/cosmos/interchain-security/x/ccv/provider/types";
option go_package = "github.com/cosmos/interchain-security/provider/x/ccv/types";

import "google/api/annotations.proto";
import "gogoproto/gogo.proto";
Expand Down
2 changes: 1 addition & 1 deletion tests/difference/core/driver/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ import (
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
appConsumer "github.com/cosmos/interchain-security/app/consumer"
appProvider "github.com/cosmos/interchain-security/provider/app"
providerkeeper "github.com/cosmos/interchain-security/provider/x/ccv/keeper"
icstestingutils "github.com/cosmos/interchain-security/testutil/ibc_testing"
simibc "github.com/cosmos/interchain-security/testutil/simibc"
consumerkeeper "github.com/cosmos/interchain-security/x/ccv/consumer/keeper"
consumertypes "github.com/cosmos/interchain-security/x/ccv/consumer/types"
providerkeeper "github.com/cosmos/interchain-security/x/ccv/provider/keeper"

ccv "github.com/cosmos/interchain-security/x/ccv/types"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"github.com/cosmos/ibc-go/v4/modules/core/exported"
ibctm "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types"
ibctesting "github.com/cosmos/interchain-security/legacy_ibc_testing/testing"
providertypes "github.com/cosmos/interchain-security/provider/x/ccv/types"
"github.com/cosmos/interchain-security/testutil/e2e"
icstestingutils "github.com/cosmos/interchain-security/testutil/ibc_testing"
providertypes "github.com/cosmos/interchain-security/x/ccv/provider/types"
ccv "github.com/cosmos/interchain-security/x/ccv/types"
"github.com/stretchr/testify/require"
abci "github.com/tendermint/tendermint/abci/types"
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/key_assignment.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/cosmos/ibc-go/v4/testing/mock"
providerkeeper "github.com/cosmos/interchain-security/x/ccv/provider/keeper"
providerkeeper "github.com/cosmos/interchain-security/provider/x/ccv/keeper"
ccv "github.com/cosmos/interchain-security/x/ccv/types"
tmencoding "github.com/tendermint/tendermint/crypto/encoding"
tmprotocrypto "github.com/tendermint/tendermint/proto/tendermint/crypto"
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/stop_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types"
"github.com/cosmos/interchain-security/x/ccv/provider/types"
"github.com/cosmos/interchain-security/provider/x/ccv/types"
ccv "github.com/cosmos/interchain-security/x/ccv/types"
abci "github.com/tendermint/tendermint/abci/types"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/throttle.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
sdktypes "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types"
providertypes "github.com/cosmos/interchain-security/provider/x/ccv/types"
icstestingutils "github.com/cosmos/interchain-security/testutil/ibc_testing"
providertypes "github.com/cosmos/interchain-security/x/ccv/provider/types"
ccvtypes "github.com/cosmos/interchain-security/x/ccv/types"
tmtypes "github.com/tendermint/tendermint/types"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/unbonding.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

providerkeeper "github.com/cosmos/interchain-security/x/ccv/provider/keeper"
providerkeeper "github.com/cosmos/interchain-security/provider/x/ccv/keeper"
ccv "github.com/cosmos/interchain-security/x/ccv/types"
)

Expand Down
4 changes: 2 additions & 2 deletions tests/integration/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
clienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types"
consumertypes "github.com/cosmos/interchain-security/x/ccv/consumer/types"

"github.com/cosmos/interchain-security/x/ccv/provider/client"
"github.com/cosmos/interchain-security/x/ccv/provider/types"
"github.com/cosmos/interchain-security/provider/x/ccv/client"
"github.com/cosmos/interchain-security/provider/x/ccv/types"
"github.com/tidwall/gjson"
)

Expand Down
2 changes: 1 addition & 1 deletion testutil/e2e/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
"github.com/cosmos/cosmos-sdk/x/staking/types"
ibctesting "github.com/cosmos/interchain-security/legacy_ibc_testing/testing"
providerkeeper "github.com/cosmos/interchain-security/provider/x/ccv/keeper"
consumerkeeper "github.com/cosmos/interchain-security/x/ccv/consumer/keeper"
providerkeeper "github.com/cosmos/interchain-security/x/ccv/provider/keeper"
ccvtypes "github.com/cosmos/interchain-security/x/ccv/types"
abci "github.com/tendermint/tendermint/abci/types"
)
Expand Down
4 changes: 2 additions & 2 deletions testutil/keeper/unit_test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
providerkeeper "github.com/cosmos/interchain-security/provider/x/ccv/keeper"
providertypes "github.com/cosmos/interchain-security/provider/x/ccv/types"
consumerkeeper "github.com/cosmos/interchain-security/x/ccv/consumer/keeper"
consumertypes "github.com/cosmos/interchain-security/x/ccv/consumer/types"
providerkeeper "github.com/cosmos/interchain-security/x/ccv/provider/keeper"
providertypes "github.com/cosmos/interchain-security/x/ccv/provider/types"
"github.com/cosmos/interchain-security/x/ccv/types"
ccvtypes "github.com/cosmos/interchain-security/x/ccv/types"
"github.com/golang/mock/gomock"
Expand Down

0 comments on commit 933705f

Please sign in to comment.