Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request Canto-Network#113 from b-harvest/package-v6-to-v7-…
Browse files Browse the repository at this point in the history
…bump

build!: package version bump from v6 to v7
  • Loading branch information
tkkwon1998 authored Aug 8, 2023
2 parents 7ebb314 + 143168a commit da939e2
Show file tree
Hide file tree
Showing 217 changed files with 667 additions and 663 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
excludelist+=" $(find ./ -type f -name '*.pb.gw.go')"
excludelist+=" $(find ./ -type f -path './tests/mocks/*.go')"
for filename in ${excludelist}; do
filename=$(echo $filename | sed 's/^./github.com\/Canto-Network\/Canto\/v6/g')
filename=$(echo $filename | sed 's/^./github.com\/Canto-Network\/Canto\/v7/g')
echo "Excluding ${filename} from coverage report..."
sed -i "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
done
Expand Down
2 changes: 1 addition & 1 deletion app/ante/handler_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
ethante "github.com/evmos/ethermint/app/ante"
evmtypes "github.com/evmos/ethermint/x/evm/types"

cosmosante "github.com/Canto-Network/Canto/v6/app/ante/cosmos"
cosmosante "github.com/Canto-Network/Canto/v7/app/ante/cosmos"
sdkvesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
)

Expand Down
2 changes: 1 addition & 1 deletion app/ante/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"

"github.com/Canto-Network/Canto/v6/app"
"github.com/Canto-Network/Canto/v7/app"
client "github.com/cosmos/cosmos-sdk/client"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
72 changes: 36 additions & 36 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,44 +106,44 @@ import (
feemarkettypes "github.com/evmos/ethermint/x/feemarket/types"

// unnamed import of statik for swagger UI support
_ "github.com/Canto-Network/Canto/v6/client/docs/statik"

"github.com/Canto-Network/Canto/v6/app/ante"
"github.com/Canto-Network/Canto/v6/x/epochs"
epochskeeper "github.com/Canto-Network/Canto/v6/x/epochs/keeper"
epochstypes "github.com/Canto-Network/Canto/v6/x/epochs/types"
"github.com/Canto-Network/Canto/v6/x/erc20"
erc20client "github.com/Canto-Network/Canto/v6/x/erc20/client"
erc20keeper "github.com/Canto-Network/Canto/v6/x/erc20/keeper"
erc20types "github.com/Canto-Network/Canto/v6/x/erc20/types"

"github.com/Canto-Network/Canto/v6/x/inflation"
inflationkeeper "github.com/Canto-Network/Canto/v6/x/inflation/keeper"
inflationtypes "github.com/Canto-Network/Canto/v6/x/inflation/types"
"github.com/Canto-Network/Canto/v6/x/onboarding"
onboardingkeeper "github.com/Canto-Network/Canto/v6/x/onboarding/keeper"
onboardingtypes "github.com/Canto-Network/Canto/v6/x/onboarding/types"
_ "github.com/Canto-Network/Canto/v7/client/docs/statik"

"github.com/Canto-Network/Canto/v7/app/ante"
"github.com/Canto-Network/Canto/v7/x/epochs"
epochskeeper "github.com/Canto-Network/Canto/v7/x/epochs/keeper"
epochstypes "github.com/Canto-Network/Canto/v7/x/epochs/types"
"github.com/Canto-Network/Canto/v7/x/erc20"
erc20client "github.com/Canto-Network/Canto/v7/x/erc20/client"
erc20keeper "github.com/Canto-Network/Canto/v7/x/erc20/keeper"
erc20types "github.com/Canto-Network/Canto/v7/x/erc20/types"

"github.com/Canto-Network/Canto/v7/x/inflation"
inflationkeeper "github.com/Canto-Network/Canto/v7/x/inflation/keeper"
inflationtypes "github.com/Canto-Network/Canto/v7/x/inflation/types"
"github.com/Canto-Network/Canto/v7/x/onboarding"
onboardingkeeper "github.com/Canto-Network/Canto/v7/x/onboarding/keeper"
onboardingtypes "github.com/Canto-Network/Canto/v7/x/onboarding/types"

//govshuttle imports
"github.com/Canto-Network/Canto/v6/x/govshuttle"
govshuttleclient "github.com/Canto-Network/Canto/v6/x/govshuttle/client"
govshuttlekeeper "github.com/Canto-Network/Canto/v6/x/govshuttle/keeper"
govshuttletypes "github.com/Canto-Network/Canto/v6/x/govshuttle/types"

"github.com/Canto-Network/Canto/v6/x/csr"
csrkeeper "github.com/Canto-Network/Canto/v6/x/csr/keeper"
csrtypes "github.com/Canto-Network/Canto/v6/x/csr/types"

"github.com/Canto-Network/Canto/v6/x/coinswap"
coinswapkeeper "github.com/Canto-Network/Canto/v6/x/coinswap/keeper"
coinswaptypes "github.com/Canto-Network/Canto/v6/x/coinswap/types"

v2 "github.com/Canto-Network/Canto/v6/app/upgrades/v2"
v3 "github.com/Canto-Network/Canto/v6/app/upgrades/v3"
v4 "github.com/Canto-Network/Canto/v6/app/upgrades/v4"
v5 "github.com/Canto-Network/Canto/v6/app/upgrades/v5"
v6 "github.com/Canto-Network/Canto/v6/app/upgrades/v6"
v7 "github.com/Canto-Network/Canto/v6/app/upgrades/v7"
"github.com/Canto-Network/Canto/v7/x/govshuttle"
govshuttleclient "github.com/Canto-Network/Canto/v7/x/govshuttle/client"
govshuttlekeeper "github.com/Canto-Network/Canto/v7/x/govshuttle/keeper"
govshuttletypes "github.com/Canto-Network/Canto/v7/x/govshuttle/types"

"github.com/Canto-Network/Canto/v7/x/csr"
csrkeeper "github.com/Canto-Network/Canto/v7/x/csr/keeper"
csrtypes "github.com/Canto-Network/Canto/v7/x/csr/types"

"github.com/Canto-Network/Canto/v7/x/coinswap"
coinswapkeeper "github.com/Canto-Network/Canto/v7/x/coinswap/keeper"
coinswaptypes "github.com/Canto-Network/Canto/v7/x/coinswap/types"

v2 "github.com/Canto-Network/Canto/v7/app/upgrades/v2"
v3 "github.com/Canto-Network/Canto/v7/app/upgrades/v3"
v4 "github.com/Canto-Network/Canto/v7/app/upgrades/v4"
v5 "github.com/Canto-Network/Canto/v7/app/upgrades/v5"
v6 "github.com/Canto-Network/Canto/v7/app/upgrades/v6"
v7 "github.com/Canto-Network/Canto/v7/app/upgrades/v7"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

"github.com/evmos/ethermint/encoding"

"github.com/Canto-Network/Canto/v6/types"
"github.com/Canto-Network/Canto/v7/types"
)

func TestCantoExport(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions app/sim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ import (
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
dbm "github.com/tendermint/tm-db"

cantoconfig "github.com/Canto-Network/Canto/v6/cmd/config"
csrtypes "github.com/Canto-Network/Canto/v6/x/csr/types"
erc20types "github.com/Canto-Network/Canto/v6/x/erc20/types"
govshuttletypes "github.com/Canto-Network/Canto/v6/x/govshuttle/types"
inflationtypes "github.com/Canto-Network/Canto/v6/x/inflation/types"
cantoconfig "github.com/Canto-Network/Canto/v7/cmd/config"
csrtypes "github.com/Canto-Network/Canto/v7/x/csr/types"
erc20types "github.com/Canto-Network/Canto/v7/x/erc20/types"
govshuttletypes "github.com/Canto-Network/Canto/v7/x/govshuttle/types"
inflationtypes "github.com/Canto-Network/Canto/v7/x/inflation/types"
)

// Get flags every time the simulator is run
Expand Down
4 changes: 2 additions & 2 deletions app/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"github.com/evmos/ethermint/encoding"
feemarkettypes "github.com/evmos/ethermint/x/feemarket/types"

"github.com/Canto-Network/Canto/v6/cmd/config"
"github.com/Canto-Network/Canto/v6/types"
"github.com/Canto-Network/Canto/v7/cmd/config"
"github.com/Canto-Network/Canto/v7/types"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion app/upgrades/v4/upgrades.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package v4

import (
shuttleKeeper "github.com/Canto-Network/Canto/v6/x/govshuttle/keeper"
shuttleKeeper "github.com/Canto-Network/Canto/v7/x/govshuttle/keeper"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
Expand Down
8 changes: 4 additions & 4 deletions app/upgrades/v7/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"

coinswapkeeper "github.com/Canto-Network/Canto/v6/x/coinswap/keeper"
coinswaptypes "github.com/Canto-Network/Canto/v6/x/coinswap/types"
onboardingkeeper "github.com/Canto-Network/Canto/v6/x/onboarding/keeper"
onboardingtypes "github.com/Canto-Network/Canto/v6/x/onboarding/types"
coinswapkeeper "github.com/Canto-Network/Canto/v7/x/coinswap/keeper"
coinswaptypes "github.com/Canto-Network/Canto/v7/x/coinswap/types"
onboardingkeeper "github.com/Canto-Network/Canto/v7/x/onboarding/keeper"
onboardingtypes "github.com/Canto-Network/Canto/v7/x/onboarding/types"
)

// CreateUpgradeHandler creates an SDK upgrade handler for v7
Expand Down
8 changes: 4 additions & 4 deletions app/upgrades/v7/upgrades_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"

chain "github.com/Canto-Network/Canto/v6/app"
v7 "github.com/Canto-Network/Canto/v6/app/upgrades/v7"
coinswaptypes "github.com/Canto-Network/Canto/v6/x/coinswap/types"
onboardingtypes "github.com/Canto-Network/Canto/v6/x/onboarding/types"
chain "github.com/Canto-Network/Canto/v7/app"
v7 "github.com/Canto-Network/Canto/v7/app/upgrades/v7"
coinswaptypes "github.com/Canto-Network/Canto/v7/x/coinswap/types"
onboardingtypes "github.com/Canto-Network/Canto/v7/x/onboarding/types"
)

type UpgradeTestSuite struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/cantod/cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
"github.com/stretchr/testify/require"

"github.com/Canto-Network/Canto/v6/app"
cantod "github.com/Canto-Network/Canto/v6/cmd/cantod"
"github.com/Canto-Network/Canto/v7/app"
cantod "github.com/Canto-Network/Canto/v7/cmd/cantod"
)

func TestInitCmd(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/cantod/genaccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
ethermint "github.com/evmos/ethermint/types"
evmtypes "github.com/evmos/ethermint/x/evm/types"

cantokr "github.com/Canto-Network/Canto/v6/crypto/keyring"
cantokr "github.com/Canto-Network/Canto/v7/crypto/keyring"
)

// AddGenesisAccountCmd returns add-genesis-account cobra Command.
Expand Down
4 changes: 2 additions & 2 deletions cmd/cantod/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/Canto-Network/Canto/v6/app"
cmdcfg "github.com/Canto-Network/Canto/v6/cmd/config"
"github.com/Canto-Network/Canto/v7/app"
cmdcfg "github.com/Canto-Network/Canto/v7/cmd/config"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions cmd/cantod/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ import (
servercfg "github.com/evmos/ethermint/server/config"
srvflags "github.com/evmos/ethermint/server/flags"

"github.com/Canto-Network/Canto/v6/app"
cmdcfg "github.com/Canto-Network/Canto/v6/cmd/config"
cantokr "github.com/Canto-Network/Canto/v6/crypto/keyring"
"github.com/Canto-Network/Canto/v7/app"
cmdcfg "github.com/Canto-Network/Canto/v7/cmd/config"
cantokr "github.com/Canto-Network/Canto/v7/crypto/keyring"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions cmd/cantod/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ import (
ethermint "github.com/evmos/ethermint/types"
evmtypes "github.com/evmos/ethermint/x/evm/types"

cmdcfg "github.com/Canto-Network/Canto/v6/cmd/config"
cantokr "github.com/Canto-Network/Canto/v6/crypto/keyring"
"github.com/Canto-Network/Canto/v6/testutil/network"
cmdcfg "github.com/Canto-Network/Canto/v7/cmd/config"
cantokr "github.com/Canto-Network/Canto/v7/crypto/keyring"
"github.com/Canto-Network/Canto/v7/testutil/network"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion contracts/erc20.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/ethereum/go-ethereum/common"
evmtypes "github.com/evmos/ethermint/x/evm/types"

"github.com/Canto-Network/Canto/v6/x/erc20/types"
"github.com/Canto-Network/Canto/v7/x/erc20/types"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion contracts/erc20DirectBalanceManipulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/ethereum/go-ethereum/common"
evmtypes "github.com/evmos/ethermint/x/evm/types"

"github.com/Canto-Network/Canto/v6/x/erc20/types"
"github.com/Canto-Network/Canto/v7/x/erc20/types"
)

// This is an evil token. Whenever an A -> B transfer is called,
Expand Down
2 changes: 1 addition & 1 deletion contracts/erc20maliciousdelayed.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/ethereum/go-ethereum/common"
evmtypes "github.com/evmos/ethermint/x/evm/types"

"github.com/Canto-Network/Canto/v6/x/erc20/types"
"github.com/Canto-Network/Canto/v7/x/erc20/types"
)

// This is an evil token. Whenever an A -> B transfer is called,
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/Canto-Network/Canto/v6
module github.com/Canto-Network/Canto/v7

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion ibc/testing/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
tmtypes "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"

cantoapp "github.com/Canto-Network/Canto/v6/app"
cantoapp "github.com/Canto-Network/Canto/v7/app"
)

var DefaultTestingAppInit func() (TestingApp, map[string]json.RawMessage) = SetupTestingApp
Expand Down
2 changes: 1 addition & 1 deletion ibc/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
transfertypes "github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
channeltypes "github.com/cosmos/ibc-go/v3/modules/core/04-channel/types"

canto "github.com/Canto-Network/Canto/v6/types"
canto "github.com/Canto-Network/Canto/v7/types"
)

// GetTransferSenderRecipient returns the sender and recipient sdk.AccAddresses
Expand Down
2 changes: 1 addition & 1 deletion proto/canto/coinswap/v1/coinswap.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package canto.coinswap.v1;
import "cosmos/base/v1beta1/coin.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/Canto-Network/Canto/v6/x/coinswap/types";
option go_package = "github.com/Canto-Network/Canto/v7/x/coinswap/types";
option (gogoproto.goproto_getters_all) = false;

// Input defines the properties of order's input
Expand Down
2 changes: 1 addition & 1 deletion proto/canto/coinswap/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package canto.coinswap.v1;
import "gogoproto/gogo.proto";
import "canto/coinswap/v1/coinswap.proto";

option go_package = "github.com/Canto-Network/Canto/v6/x/coinswap/types";
option go_package = "github.com/Canto-Network/Canto/v7/x/coinswap/types";

// GenesisState defines the coinswap module's genesis state
message GenesisState {
Expand Down
2 changes: 1 addition & 1 deletion proto/canto/coinswap/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "canto/coinswap/v1/coinswap.proto";

option go_package = "github.com/Canto-Network/Canto/v6/x/coinswap/types";
option go_package = "github.com/Canto-Network/Canto/v7/x/coinswap/types";

// Query creates service with coinswap as rpc
service Query {
Expand Down
2 changes: 1 addition & 1 deletion proto/canto/coinswap/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "canto/coinswap/v1/coinswap.proto";
import "cosmos/base/v1beta1/coin.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/Canto-Network/Canto/v6/x/coinswap/types";
option go_package = "github.com/Canto-Network/Canto/v7/x/coinswap/types";
option (gogoproto.goproto_getters_all) = false;

// Msg defines the coinswap Msg service
Expand Down
2 changes: 1 addition & 1 deletion proto/canto/csr/v1/csr.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package canto.csr.v1;

import "gogoproto/gogo.proto";

option go_package = "github.com/Canto-Network/Canto/v6/x/csr/types";
option go_package = "github.com/Canto-Network/Canto/v7/x/csr/types";

// The CSR struct is a wrapper to all of the metadata associated with a given
// CST NFT
Expand Down
2 changes: 1 addition & 1 deletion proto/canto/csr/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package canto.csr.v1;
import "gogoproto/gogo.proto";
import "canto/csr/v1/params.proto";

option go_package = "github.com/Canto-Network/Canto/v6/x/csr/types";
option go_package = "github.com/Canto-Network/Canto/v7/x/csr/types";

// GenesisState defines the csr module's genesis state.
message GenesisState {
Expand Down
2 changes: 1 addition & 1 deletion proto/canto/csr/v1/params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package canto.csr.v1;

import "gogoproto/gogo.proto";

option go_package = "github.com/Canto-Network/Canto/v6/x/csr/types";
option go_package = "github.com/Canto-Network/Canto/v7/x/csr/types";

// Params holds parameters for the csr module
message Params {
Expand Down
2 changes: 1 addition & 1 deletion proto/canto/csr/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "cosmos/base/query/v1beta1/pagination.proto";
import "canto/csr/v1/params.proto";
import "canto/csr/v1/csr.proto";

option go_package = "github.com/Canto-Network/Canto/v6/x/csr/types";
option go_package = "github.com/Canto-Network/Canto/v7/x/csr/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
2 changes: 1 addition & 1 deletion proto/canto/epochs/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";

option go_package = "github.com/Canto-Network/Canto/v6/x/epochs/types";
option go_package = "github.com/Canto-Network/Canto/v7/x/epochs/types";

message EpochInfo {
string identifier = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/canto/epochs/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "canto/epochs/v1/genesis.proto";

option go_package = "github.com/Canto-Network/Canto/v6/x/epochs/types";
option go_package = "github.com/Canto-Network/Canto/v7/x/epochs/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
2 changes: 1 addition & 1 deletion proto/canto/erc20/v1/erc20.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package canto.erc20.v1;

import "gogoproto/gogo.proto";
import "cosmos/bank/v1beta1/bank.proto";
option go_package = "github.com/Canto-Network/Canto/v6/x/erc20/types";
option go_package = "github.com/Canto-Network/Canto/v7/x/erc20/types";

// Owner enumerates the ownership of a ERC20 contract.
enum Owner {
Expand Down
2 changes: 1 addition & 1 deletion proto/canto/erc20/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package canto.erc20.v1;
import "canto/erc20/v1/erc20.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/Canto-Network/Canto/v6/x/erc20/types";
option go_package = "github.com/Canto-Network/Canto/v7/x/erc20/types";

// GenesisState defines the module's genesis state.
message GenesisState {
Expand Down
Loading

0 comments on commit da939e2

Please sign in to comment.