From b582c35ead64fba474481bbcf72a43c1753c7ccb Mon Sep 17 00:00:00 2001 From: GnaD13 Date: Fri, 24 May 2024 10:06:43 +0700 Subject: [PATCH] v2 --- app/ante/authz_test.go | 2 +- app/ante/handler_options_test.go | 4 +- app/ante/utils_test.go | 4 +- app/app.go | 21 ++++++----- app/test_helpers.go | 6 +-- app/upgrades.go | 10 ++--- app/upgrades/multi-staking/upgrade.go | 4 +- app/upgrades/{v3 => v2}/commission.go | 2 +- app/upgrades/v2/constants.go | 9 ++--- app/upgrades/{v3 => v2}/param_subspace.go | 4 +- app/upgrades/v2/upgrades.go | 25 +++++++++++-- app/upgrades/v3/constants.go | 7 ---- app/upgrades/v3/upgrades.go | 37 ------------------- app/upgrades_test.go | 6 +-- cmd/realio-networkd/main.go | 4 +- cmd/realio-networkd/root.go | 4 +- cmd/realio-networkd/testnet.go | 6 +-- go.mod | 2 +- testutil/network/network.go | 4 +- testutil/network/util.go | 4 +- x/asset/client/cli/query.go | 2 +- x/asset/client/cli/query_params.go | 2 +- x/asset/client/cli/query_tokens.go | 2 +- x/asset/client/cli/tx.go | 2 +- x/asset/client/cli/tx_authorize_address.go | 2 +- x/asset/client/cli/tx_create_token.go | 2 +- x/asset/client/cli/tx_msg_create_token.go | 2 +- x/asset/client/cli/tx_msg_update_token.go | 2 +- x/asset/client/cli/tx_transfer_token.go | 2 +- x/asset/client/cli/tx_un_authorize_address.go | 2 +- x/asset/client/cli/tx_update_token.go | 2 +- x/asset/genesis.go | 4 +- x/asset/genesis_test.go | 10 ++--- x/asset/handler.go | 4 +- x/asset/keeper/grpc_query.go | 2 +- x/asset/keeper/grpc_query_test.go | 2 +- x/asset/keeper/keeper.go | 2 +- x/asset/keeper/keeper_test.go | 8 ++-- x/asset/keeper/msg_server.go | 2 +- .../keeper/msg_server_authorize_address.go | 2 +- x/asset/keeper/msg_server_create_token.go | 4 +- x/asset/keeper/msg_server_token_test.go | 6 +-- x/asset/keeper/msg_server_transfer_token.go | 2 +- .../keeper/msg_server_transfer_token_test.go | 4 +- .../keeper/msg_server_un_authorize_address.go | 2 +- x/asset/keeper/msg_server_update_token.go | 2 +- x/asset/keeper/params.go | 2 +- x/asset/keeper/params_test.go | 2 +- x/asset/keeper/restrictions.go | 2 +- x/asset/keeper/restrictions_test.go | 4 +- x/asset/keeper/token.go | 2 +- x/asset/module.go | 6 +-- x/asset/types/genesis_test.go | 2 +- x/asset/types/message_test.go | 2 +- x/mint/abci.go | 4 +- x/mint/client/cli/query.go | 2 +- x/mint/keeper/genesis.go | 2 +- x/mint/keeper/grpc_query.go | 2 +- x/mint/keeper/grpc_query_test.go | 2 +- x/mint/keeper/keeper.go | 2 +- x/mint/keeper/keeper_test.go | 8 ++-- x/mint/keeper/migrator.go | 4 +- x/mint/keeper/msg_server.go | 2 +- x/mint/keeper/msg_server_test.go | 2 +- x/mint/migrations/v2/migrate.go | 4 +- x/mint/migrations/v2/migrate_test.go | 8 ++-- x/mint/module.go | 8 ++-- x/mint/module_test.go | 4 +- 68 files changed, 146 insertions(+), 173 deletions(-) rename app/upgrades/{v3 => v2}/commission.go (99%) rename app/upgrades/{v3 => v2}/param_subspace.go (96%) delete mode 100644 app/upgrades/v3/constants.go delete mode 100644 app/upgrades/v3/upgrades.go diff --git a/app/ante/authz_test.go b/app/ante/authz_test.go index 04db91d6..e3aee440 100644 --- a/app/ante/authz_test.go +++ b/app/ante/authz_test.go @@ -11,7 +11,7 @@ import ( banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" evmtypes "github.com/evmos/evmos/v18/x/evm/types" - "github.com/realiotech/realio-network/app/ante" + "github.com/realiotech/realio-network/v2/app/ante" "github.com/stretchr/testify/require" ) diff --git a/app/ante/handler_options_test.go b/app/ante/handler_options_test.go index 6c68d4b4..6470bf0e 100644 --- a/app/ante/handler_options_test.go +++ b/app/ante/handler_options_test.go @@ -5,8 +5,8 @@ import ( ethante "github.com/evmos/evmos/v18/app/ante/evm" "github.com/evmos/evmos/v18/encoding" "github.com/evmos/evmos/v18/types" - "github.com/realiotech/realio-network/app" - "github.com/realiotech/realio-network/app/ante" + "github.com/realiotech/realio-network/v2/app" + "github.com/realiotech/realio-network/v2/app/ante" ) func (suite *AnteTestSuite) TestValidateHandlerOptions() { diff --git a/app/ante/utils_test.go b/app/ante/utils_test.go index 81629675..4444ba9b 100644 --- a/app/ante/utils_test.go +++ b/app/ante/utils_test.go @@ -34,8 +34,8 @@ import ( "github.com/evmos/evmos/v18/types" evmtypes "github.com/evmos/evmos/v18/x/evm/types" feemarkettypes "github.com/evmos/evmos/v18/x/feemarket/types" - "github.com/realiotech/realio-network/app" - realionetworktypes "github.com/realiotech/realio-network/types" + "github.com/realiotech/realio-network/v2/app" + realionetworktypes "github.com/realiotech/realio-network/v2/types" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" ) diff --git a/app/app.go b/app/app.go index 12adafc1..d5aa66bf 100644 --- a/app/app.go +++ b/app/app.go @@ -74,6 +74,7 @@ import ( slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" "github.com/cosmos/cosmos-sdk/x/staking" + // staking stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" @@ -107,20 +108,22 @@ import ( feemarkettypes "github.com/evmos/evmos/v18/x/feemarket/types" "github.com/gorilla/mux" "github.com/rakyll/statik/fs" + // multi-staking multistaking "github.com/realio-tech/multi-staking-module/x/multi-staking" multistakingkeeper "github.com/realio-tech/multi-staking-module/x/multi-staking/keeper" multistakingtypes "github.com/realio-tech/multi-staking-module/x/multi-staking/types" - "github.com/realiotech/realio-network/app/ante" + "github.com/realiotech/realio-network/v2/app/ante" + // unnamed import of statik for swagger UI support - _ "github.com/realiotech/realio-network/client/docs/statik" - realionetworktypes "github.com/realiotech/realio-network/types" - assetmodule "github.com/realiotech/realio-network/x/asset" - assetmodulekeeper "github.com/realiotech/realio-network/x/asset/keeper" - assetmoduletypes "github.com/realiotech/realio-network/x/asset/types" - "github.com/realiotech/realio-network/x/mint" - mintkeeper "github.com/realiotech/realio-network/x/mint/keeper" - minttypes "github.com/realiotech/realio-network/x/mint/types" + _ "github.com/realiotech/realio-network/v2/client/docs/statik" + realionetworktypes "github.com/realiotech/realio-network/v2/types" + assetmodule "github.com/realiotech/realio-network/v2/x/asset" + assetmodulekeeper "github.com/realiotech/realio-network/v2/x/asset/keeper" + assetmoduletypes "github.com/realiotech/realio-network/v2/x/asset/types" + "github.com/realiotech/realio-network/v2/x/mint" + mintkeeper "github.com/realiotech/realio-network/v2/x/mint/keeper" + minttypes "github.com/realiotech/realio-network/v2/x/mint/types" "github.com/spf13/cast" ) diff --git a/app/test_helpers.go b/app/test_helpers.go index a79e4101..bc9b8ad0 100755 --- a/app/test_helpers.go +++ b/app/test_helpers.go @@ -24,9 +24,9 @@ import ( "github.com/evmos/evmos/v18/encoding" feemarkettypes "github.com/evmos/evmos/v18/x/feemarket/types" multistakingtypes "github.com/realio-tech/multi-staking-module/x/multi-staking/types" - "github.com/realiotech/realio-network/cmd/config" - "github.com/realiotech/realio-network/types" - minttypes "github.com/realiotech/realio-network/x/mint/types" + "github.com/realiotech/realio-network/v2/cmd/config" + "github.com/realiotech/realio-network/v2/types" + minttypes "github.com/realiotech/realio-network/v2/x/mint/types" ) func init() { diff --git a/app/upgrades.go b/app/upgrades.go index 91aa1480..33627bb8 100755 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -10,8 +10,8 @@ import ( stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" multistakingtypes "github.com/realio-tech/multi-staking-module/x/multi-staking/types" - multistaking "github.com/realiotech/realio-network/app/upgrades/multi-staking" - v3 "github.com/realiotech/realio-network/app/upgrades/v3" + multistaking "github.com/realiotech/realio-network/v2/app/upgrades/multi-staking" + v2 "github.com/realiotech/realio-network/v2/app/upgrades/v2" ) func (app *RealioNetwork) setupUpgradeHandlers(appOpts servertypes.AppOptions) { @@ -28,8 +28,8 @@ func (app *RealioNetwork) setupUpgradeHandlers(appOpts servertypes.AppOptions) { ) app.UpgradeKeeper.SetUpgradeHandler( - v3.UpgradeName, - v3.CreateUpgradeHandler( + v2.UpgradeName, + v2.CreateUpgradeHandler( app.mm, app.configurator, app.ConsensusParamsKeeper, app.IBCKeeper.ClientKeeper, @@ -55,7 +55,7 @@ func (app *RealioNetwork) setupUpgradeHandlers(appOpts servertypes.AppOptions) { storeUpgrades = &storetypes.StoreUpgrades{ Added: []string{multistakingtypes.ModuleName}, } - } else if upgradeInfo.Name == v3.UpgradeName { + } else if upgradeInfo.Name == v2.UpgradeName { storeUpgrades = &storetypes.StoreUpgrades{ Added: []string{crisistypes.ModuleName, consensusparamtypes.ModuleName}, } diff --git a/app/upgrades/multi-staking/upgrade.go b/app/upgrades/multi-staking/upgrade.go index 4d2dd043..7f85415b 100644 --- a/app/upgrades/multi-staking/upgrade.go +++ b/app/upgrades/multi-staking/upgrade.go @@ -19,8 +19,8 @@ import ( upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" multistaking "github.com/realio-tech/multi-staking-module/x/multi-staking" multistakingtypes "github.com/realio-tech/multi-staking-module/x/multi-staking/types" - "github.com/realiotech/realio-network/app/upgrades/multi-staking/legacy" - minttypes "github.com/realiotech/realio-network/x/mint/types" + "github.com/realiotech/realio-network/v2/app/upgrades/multi-staking/legacy" + minttypes "github.com/realiotech/realio-network/v2/x/mint/types" "github.com/spf13/cast" ) diff --git a/app/upgrades/v3/commission.go b/app/upgrades/v2/commission.go similarity index 99% rename from app/upgrades/v3/commission.go rename to app/upgrades/v2/commission.go index 3d841e94..c4aa86ef 100644 --- a/app/upgrades/v3/commission.go +++ b/app/upgrades/v2/commission.go @@ -1,4 +1,4 @@ -package v3 +package v2 import ( sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/app/upgrades/v2/constants.go b/app/upgrades/v2/constants.go index 29918aa9..7531cbd7 100644 --- a/app/upgrades/v2/constants.go +++ b/app/upgrades/v2/constants.go @@ -1,10 +1,7 @@ package v2 const ( -// UpgradeName is the shared upgrade plan name for mainnet and testnet -// UpgradeName = "v2.0.0" -// MainnetUpgradeHeight defines the Realio Network mainnet block height on which the upgrade will take place -// MainnetUpgradeHeight = -// UpgradeInfo defines the binaries that will be used for the upgrade -// UpgradeInfo = `'{"binaries":{"darwin/arm64":"https://github.com/realiotech/realio-network/releases/download/v0.1.0/realio-network_0.1.0_Darwin_arm64.tar.gz","darwin/x86_64":"https://github.com/realiotech/realio-network/releases/download/v0.1.0/realio-network_0.1.0_Darwin_x86_64.tar.gz","linux/arm64":"https://github.com/realiotech/realio-network/releases/download/v0.1.0/realio-network_0.1.0_Linux_arm64.tar.gz","linux/x86_64":"https://github.com/realiotech/realio-network/releases/download/v0.1.0/realio-network_0.1.0_Linux_x86_64.tar.gz","windows/x86_64":"https://github.com/realiotech/realio-network/releases/download/v0.1.0/realio-network_0.1.0_Windows_x86_64.zip"}}'` + // UpgradeName defines the on-chain upgrade name. + UpgradeName = "v2" + NewMinCommisionRate = "0.05" ) diff --git a/app/upgrades/v3/param_subspace.go b/app/upgrades/v2/param_subspace.go similarity index 96% rename from app/upgrades/v3/param_subspace.go rename to app/upgrades/v2/param_subspace.go index 9258fbe2..7f05ba12 100644 --- a/app/upgrades/v3/param_subspace.go +++ b/app/upgrades/v2/param_subspace.go @@ -1,4 +1,4 @@ -package v3 +package v2 import ( "github.com/cosmos/cosmos-sdk/baseapp" @@ -17,7 +17,7 @@ import ( ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" evmtypes "github.com/evmos/evmos/v18/x/evm/types" feemarkettypes "github.com/evmos/evmos/v18/x/feemarket/types" - minttypes "github.com/realiotech/realio-network/x/mint/types" + minttypes "github.com/realiotech/realio-network/v2/x/mint/types" ) func migrateParamSubspace(ctx sdk.Context, ck consensuskeeper.Keeper, pk paramskeeper.Keeper) { diff --git a/app/upgrades/v2/upgrades.go b/app/upgrades/v2/upgrades.go index dc6e22f5..57114119 100644 --- a/app/upgrades/v2/upgrades.go +++ b/app/upgrades/v2/upgrades.go @@ -1,20 +1,37 @@ package v2 import ( + "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" + consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" + paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" + paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" + stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + ibctmmigrations "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint/migrations" ) -// CreateUpgradeHandler creates an SDK upgrade handler for v2 func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, + ck consensuskeeper.Keeper, + clientKeeper ibctmmigrations.ClientKeeper, + pk paramskeeper.Keeper, + sk *stakingkeeper.Keeper, + stakingLegacySubspace paramstypes.Subspace, + cdc codec.BinaryCodec, ) upgradetypes.UpgradeHandler { return func(ctx sdk.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - // Refs: - // - https://docs.cosmos.network/master/building-modules/upgrade.html#registering-migrations - // - https://docs.cosmos.network/master/migrations/chain-upgrade-guide-044.html#chain-upgrade + ctx.Logger().Info("Starting upgrade for v3") + + fixMinCommisionRate(ctx, sk, stakingLegacySubspace) + migrateParamSubspace(ctx, ck, pk) + // fixMinCommisionRate(ctx, sk) + + if _, err := ibctmmigrations.PruneExpiredConsensusStates(ctx, cdc, clientKeeper); err != nil { + return nil, err + } return mm.RunMigrations(ctx, configurator, vm) } } diff --git a/app/upgrades/v3/constants.go b/app/upgrades/v3/constants.go deleted file mode 100644 index 591eab99..00000000 --- a/app/upgrades/v3/constants.go +++ /dev/null @@ -1,7 +0,0 @@ -package v3 - -const ( - // UpgradeName defines the on-chain upgrade name. - UpgradeName = "v3" - NewMinCommisionRate = "0.05" -) diff --git a/app/upgrades/v3/upgrades.go b/app/upgrades/v3/upgrades.go deleted file mode 100644 index 51c5115d..00000000 --- a/app/upgrades/v3/upgrades.go +++ /dev/null @@ -1,37 +0,0 @@ -package v3 - -import ( - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" - paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" - paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" - stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - ibctmmigrations "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint/migrations" -) - -func CreateUpgradeHandler( - mm *module.Manager, - configurator module.Configurator, - ck consensuskeeper.Keeper, - clientKeeper ibctmmigrations.ClientKeeper, - pk paramskeeper.Keeper, - sk *stakingkeeper.Keeper, - stakingLegacySubspace paramstypes.Subspace, - cdc codec.BinaryCodec, -) upgradetypes.UpgradeHandler { - return func(ctx sdk.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - ctx.Logger().Info("Starting upgrade for v3") - - fixMinCommisionRate(ctx, sk, stakingLegacySubspace) - migrateParamSubspace(ctx, ck, pk) - // fixMinCommisionRate(ctx, sk) - - if _, err := ibctmmigrations.PruneExpiredConsensusStates(ctx, cdc, clientKeeper); err != nil { - return nil, err - } - return mm.RunMigrations(ctx, configurator, vm) - } -} diff --git a/app/upgrades_test.go b/app/upgrades_test.go index d29b75af..c9fb2c8e 100644 --- a/app/upgrades_test.go +++ b/app/upgrades_test.go @@ -8,7 +8,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - v3 "github.com/realiotech/realio-network/app/upgrades/v3" + v2 "github.com/realiotech/realio-network/v2/app/upgrades/v2" "github.com/stretchr/testify/require" ) @@ -49,7 +49,7 @@ func TestV3Upgrade(t *testing.T) { app.StakingKeeper.SetValidator(ctx, validators[3]) upgradePlan := upgradetypes.Plan{ - Name: v3.UpgradeName, + Name: v2.UpgradeName, Height: ctx.BlockHeight(), } err := app.UpgradeKeeper.ScheduleUpgrade(ctx, upgradePlan) @@ -60,7 +60,7 @@ func TestV3Upgrade(t *testing.T) { validatorsAfter := app.StakingKeeper.GetAllValidators(ctx) - upgradeMinCommRate := sdk.MustNewDecFromStr(v3.NewMinCommisionRate) + upgradeMinCommRate := sdk.MustNewDecFromStr(v2.NewMinCommisionRate) require.Equal(t, validatorsAfter[0].Commission.CommissionRates.Rate, upgradeMinCommRate) require.Equal(t, validatorsAfter[1].Commission.CommissionRates.Rate, upgradeMinCommRate) require.Equal(t, validatorsAfter[0].Commission.CommissionRates.MaxRate, upgradeMinCommRate) diff --git a/cmd/realio-networkd/main.go b/cmd/realio-networkd/main.go index 15ba828d..62d4e66c 100644 --- a/cmd/realio-networkd/main.go +++ b/cmd/realio-networkd/main.go @@ -6,8 +6,8 @@ import ( "github.com/cosmos/cosmos-sdk/server" svrcmd "github.com/cosmos/cosmos-sdk/server/cmd" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/realiotech/realio-network/app" - cmdcfg "github.com/realiotech/realio-network/cmd/config" + "github.com/realiotech/realio-network/v2/app" + cmdcfg "github.com/realiotech/realio-network/v2/cmd/config" ) func main() { diff --git a/cmd/realio-networkd/root.go b/cmd/realio-networkd/root.go index 375364d3..b215086f 100644 --- a/cmd/realio-networkd/root.go +++ b/cmd/realio-networkd/root.go @@ -35,8 +35,8 @@ import ( "github.com/evmos/evmos/v18/crypto/hd" ethermintserver "github.com/evmos/evmos/v18/server" servercfg "github.com/evmos/evmos/v18/server/config" - "github.com/realiotech/realio-network/app" - cmdcfg "github.com/realiotech/realio-network/cmd/config" + "github.com/realiotech/realio-network/v2/app" + cmdcfg "github.com/realiotech/realio-network/v2/cmd/config" "github.com/spf13/cast" "github.com/spf13/cobra" "github.com/spf13/pflag" diff --git a/cmd/realio-networkd/testnet.go b/cmd/realio-networkd/testnet.go index 6e0acae7..69e0ef3b 100644 --- a/cmd/realio-networkd/testnet.go +++ b/cmd/realio-networkd/testnet.go @@ -36,9 +36,9 @@ import ( srvflags "github.com/evmos/evmos/v18/server/flags" ethermint "github.com/evmos/evmos/v18/types" evmtypes "github.com/evmos/evmos/v18/x/evm/types" - cmdcfg "github.com/realiotech/realio-network/cmd/config" - "github.com/realiotech/realio-network/testutil/network" - minttypes "github.com/realiotech/realio-network/x/mint/types" + cmdcfg "github.com/realiotech/realio-network/v2/cmd/config" + "github.com/realiotech/realio-network/v2/testutil/network" + minttypes "github.com/realiotech/realio-network/v2/x/mint/types" "github.com/spf13/cobra" ) diff --git a/go.mod b/go.mod index ae5bf9a5..755478f4 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/realiotech/realio-network +module github.com/realiotech/realio-network/v2 go 1.22.2 diff --git a/testutil/network/network.go b/testutil/network/network.go index 0526aa90..97c9116f 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -51,8 +51,8 @@ import ( "github.com/evmos/evmos/v18/server/config" ethermint "github.com/evmos/evmos/v18/types" evmtypes "github.com/evmos/evmos/v18/x/evm/types" - "github.com/realiotech/realio-network/app" - "github.com/realiotech/realio-network/types" + "github.com/realiotech/realio-network/v2/app" + "github.com/realiotech/realio-network/v2/types" "github.com/spf13/cobra" "google.golang.org/grpc" ) diff --git a/testutil/network/util.go b/testutil/network/util.go index 3548b1fe..600f95af 100644 --- a/testutil/network/util.go +++ b/testutil/network/util.go @@ -29,8 +29,8 @@ import ( "github.com/ethereum/go-ethereum/ethclient" "github.com/evmos/evmos/v18/server" evmtypes "github.com/evmos/evmos/v18/x/evm/types" - assettypes "github.com/realiotech/realio-network/x/asset/types" - minttypes "github.com/realiotech/realio-network/x/mint/types" + assettypes "github.com/realiotech/realio-network/v2/x/asset/types" + minttypes "github.com/realiotech/realio-network/v2/x/mint/types" ) func startInProcess(cfg Config, val *Validator) error { diff --git a/x/asset/client/cli/query.go b/x/asset/client/cli/query.go index 2e0aca87..bc1724fc 100644 --- a/x/asset/client/cli/query.go +++ b/x/asset/client/cli/query.go @@ -4,7 +4,7 @@ import ( "fmt" "github.com/cosmos/cosmos-sdk/client" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" "github.com/spf13/cobra" ) diff --git a/x/asset/client/cli/query_params.go b/x/asset/client/cli/query_params.go index 802dbd4f..8254b9b9 100644 --- a/x/asset/client/cli/query_params.go +++ b/x/asset/client/cli/query_params.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" "github.com/spf13/cobra" ) diff --git a/x/asset/client/cli/query_tokens.go b/x/asset/client/cli/query_tokens.go index 42d344d2..4615ad38 100644 --- a/x/asset/client/cli/query_tokens.go +++ b/x/asset/client/cli/query_tokens.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" "github.com/spf13/cobra" ) diff --git a/x/asset/client/cli/tx.go b/x/asset/client/cli/tx.go index ac475b08..f2291a64 100644 --- a/x/asset/client/cli/tx.go +++ b/x/asset/client/cli/tx.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" // "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" "github.com/spf13/cobra" ) diff --git a/x/asset/client/cli/tx_authorize_address.go b/x/asset/client/cli/tx_authorize_address.go index 3843c613..5bf9dcb0 100644 --- a/x/asset/client/cli/tx_authorize_address.go +++ b/x/asset/client/cli/tx_authorize_address.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" "github.com/spf13/cobra" ) diff --git a/x/asset/client/cli/tx_create_token.go b/x/asset/client/cli/tx_create_token.go index d7f29851..15e2ac65 100644 --- a/x/asset/client/cli/tx_create_token.go +++ b/x/asset/client/cli/tx_create_token.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" "github.com/spf13/cast" "github.com/spf13/cobra" ) diff --git a/x/asset/client/cli/tx_msg_create_token.go b/x/asset/client/cli/tx_msg_create_token.go index b60b5c85..dca08261 100644 --- a/x/asset/client/cli/tx_msg_create_token.go +++ b/x/asset/client/cli/tx_msg_create_token.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" "github.com/spf13/cast" "github.com/spf13/cobra" ) diff --git a/x/asset/client/cli/tx_msg_update_token.go b/x/asset/client/cli/tx_msg_update_token.go index 5304ae06..6d60caea 100644 --- a/x/asset/client/cli/tx_msg_update_token.go +++ b/x/asset/client/cli/tx_msg_update_token.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" "github.com/spf13/cast" "github.com/spf13/cobra" ) diff --git a/x/asset/client/cli/tx_transfer_token.go b/x/asset/client/cli/tx_transfer_token.go index 4a55d8ed..f7001b20 100644 --- a/x/asset/client/cli/tx_transfer_token.go +++ b/x/asset/client/cli/tx_transfer_token.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" "github.com/spf13/cobra" ) diff --git a/x/asset/client/cli/tx_un_authorize_address.go b/x/asset/client/cli/tx_un_authorize_address.go index 80e2ad01..04911868 100644 --- a/x/asset/client/cli/tx_un_authorize_address.go +++ b/x/asset/client/cli/tx_un_authorize_address.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" "github.com/spf13/cobra" ) diff --git a/x/asset/client/cli/tx_update_token.go b/x/asset/client/cli/tx_update_token.go index 13182aaf..9c99687a 100644 --- a/x/asset/client/cli/tx_update_token.go +++ b/x/asset/client/cli/tx_update_token.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" "github.com/spf13/cast" "github.com/spf13/cobra" ) diff --git a/x/asset/genesis.go b/x/asset/genesis.go index 1ca853e0..8cf351dc 100644 --- a/x/asset/genesis.go +++ b/x/asset/genesis.go @@ -2,8 +2,8 @@ package asset import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/realiotech/realio-network/x/asset/keeper" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/keeper" + "github.com/realiotech/realio-network/v2/x/asset/types" ) // InitGenesis initializes the assets module's state from a provided genesis diff --git a/x/asset/genesis_test.go b/x/asset/genesis_test.go index 6f73e9a9..ab92e013 100644 --- a/x/asset/genesis_test.go +++ b/x/asset/genesis_test.go @@ -10,11 +10,11 @@ import ( "github.com/cometbft/cometbft/version" sdk "github.com/cosmos/cosmos-sdk/types" feemarkettypes "github.com/evmos/evmos/v18/x/feemarket/types" - "github.com/realiotech/realio-network/app" - "github.com/realiotech/realio-network/testutil" - realiotypes "github.com/realiotech/realio-network/types" - "github.com/realiotech/realio-network/x/asset" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/app" + "github.com/realiotech/realio-network/v2/testutil" + realiotypes "github.com/realiotech/realio-network/v2/types" + "github.com/realiotech/realio-network/v2/x/asset" + "github.com/realiotech/realio-network/v2/x/asset/types" "github.com/stretchr/testify/suite" ) diff --git a/x/asset/handler.go b/x/asset/handler.go index 2707a114..e3b80bab 100644 --- a/x/asset/handler.go +++ b/x/asset/handler.go @@ -6,8 +6,8 @@ import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/realiotech/realio-network/x/asset/keeper" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/keeper" + "github.com/realiotech/realio-network/v2/x/asset/types" ) // NewHandler ... diff --git a/x/asset/keeper/grpc_query.go b/x/asset/keeper/grpc_query.go index 8cae2272..d0846aff 100644 --- a/x/asset/keeper/grpc_query.go +++ b/x/asset/keeper/grpc_query.go @@ -6,7 +6,7 @@ import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/asset/keeper/grpc_query_test.go b/x/asset/keeper/grpc_query_test.go index c198b18b..58e000fa 100644 --- a/x/asset/keeper/grpc_query_test.go +++ b/x/asset/keeper/grpc_query_test.go @@ -4,7 +4,7 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" ) func (suite *KeeperTestSuite) TestParamsQuery() { diff --git a/x/asset/keeper/keeper.go b/x/asset/keeper/keeper.go index d61ae3d2..42742c42 100644 --- a/x/asset/keeper/keeper.go +++ b/x/asset/keeper/keeper.go @@ -8,7 +8,7 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" ) type ( diff --git a/x/asset/keeper/keeper_test.go b/x/asset/keeper/keeper_test.go index 16da0f35..a746518b 100644 --- a/x/asset/keeper/keeper_test.go +++ b/x/asset/keeper/keeper_test.go @@ -11,10 +11,10 @@ import ( "github.com/cosmos/cosmos-sdk/baseapp" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/evmos/evmos/v18/crypto/ethsecp256k1" - "github.com/realiotech/realio-network/app" - "github.com/realiotech/realio-network/testutil" - realiotypes "github.com/realiotech/realio-network/types" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/app" + "github.com/realiotech/realio-network/v2/testutil" + realiotypes "github.com/realiotech/realio-network/v2/types" + "github.com/realiotech/realio-network/v2/x/asset/types" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" ) diff --git a/x/asset/keeper/msg_server.go b/x/asset/keeper/msg_server.go index 3c07b122..f69fc959 100644 --- a/x/asset/keeper/msg_server.go +++ b/x/asset/keeper/msg_server.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" ) type msgServer struct { diff --git a/x/asset/keeper/msg_server_authorize_address.go b/x/asset/keeper/msg_server_authorize_address.go index de57d770..16462ebc 100644 --- a/x/asset/keeper/msg_server_authorize_address.go +++ b/x/asset/keeper/msg_server_authorize_address.go @@ -6,7 +6,7 @@ import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" ) func (k msgServer) AuthorizeAddress(goCtx context.Context, msg *types.MsgAuthorizeAddress) (*types.MsgAuthorizeAddressResponse, error) { diff --git a/x/asset/keeper/msg_server_create_token.go b/x/asset/keeper/msg_server_create_token.go index 1bc7676e..d71165a4 100644 --- a/x/asset/keeper/msg_server_create_token.go +++ b/x/asset/keeper/msg_server_create_token.go @@ -10,8 +10,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" bank "github.com/cosmos/cosmos-sdk/x/bank/types" - realionetworktypes "github.com/realiotech/realio-network/types" - "github.com/realiotech/realio-network/x/asset/types" + realionetworktypes "github.com/realiotech/realio-network/v2/types" + "github.com/realiotech/realio-network/v2/x/asset/types" ) func (k msgServer) CreateToken(goCtx context.Context, msg *types.MsgCreateToken) (*types.MsgCreateTokenResponse, error) { diff --git a/x/asset/keeper/msg_server_token_test.go b/x/asset/keeper/msg_server_token_test.go index af27fbdc..6dfcb994 100644 --- a/x/asset/keeper/msg_server_token_test.go +++ b/x/asset/keeper/msg_server_token_test.go @@ -7,9 +7,9 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - realionetworktypes "github.com/realiotech/realio-network/types" - "github.com/realiotech/realio-network/x/asset/keeper" - "github.com/realiotech/realio-network/x/asset/types" + realionetworktypes "github.com/realiotech/realio-network/v2/types" + "github.com/realiotech/realio-network/v2/x/asset/keeper" + "github.com/realiotech/realio-network/v2/x/asset/types" ) // Prevent strconv unused error diff --git a/x/asset/keeper/msg_server_transfer_token.go b/x/asset/keeper/msg_server_transfer_token.go index cffd037d..7c81766d 100644 --- a/x/asset/keeper/msg_server_transfer_token.go +++ b/x/asset/keeper/msg_server_transfer_token.go @@ -9,7 +9,7 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" ) func (k msgServer) TransferToken(goCtx context.Context, msg *types.MsgTransferToken) (*types.MsgTransferTokenResponse, error) { diff --git a/x/asset/keeper/msg_server_transfer_token_test.go b/x/asset/keeper/msg_server_transfer_token_test.go index c42f60e2..01cdcd67 100644 --- a/x/asset/keeper/msg_server_transfer_token_test.go +++ b/x/asset/keeper/msg_server_transfer_token_test.go @@ -5,8 +5,8 @@ import ( "strconv" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/realiotech/realio-network/x/asset/keeper" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/keeper" + "github.com/realiotech/realio-network/v2/x/asset/types" ) // Prevent strconv unused error diff --git a/x/asset/keeper/msg_server_un_authorize_address.go b/x/asset/keeper/msg_server_un_authorize_address.go index 24d34f2e..b7d5b341 100644 --- a/x/asset/keeper/msg_server_un_authorize_address.go +++ b/x/asset/keeper/msg_server_un_authorize_address.go @@ -6,7 +6,7 @@ import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" ) func (k msgServer) UnAuthorizeAddress(goCtx context.Context, msg *types.MsgUnAuthorizeAddress) (*types.MsgUnAuthorizeAddressResponse, error) { diff --git a/x/asset/keeper/msg_server_update_token.go b/x/asset/keeper/msg_server_update_token.go index efd3d2a4..873ff389 100644 --- a/x/asset/keeper/msg_server_update_token.go +++ b/x/asset/keeper/msg_server_update_token.go @@ -6,7 +6,7 @@ import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" ) func (k msgServer) UpdateToken(goCtx context.Context, msg *types.MsgUpdateToken) (*types.MsgUpdateTokenResponse, error) { diff --git a/x/asset/keeper/params.go b/x/asset/keeper/params.go index 388d7f3a..ccaaa820 100644 --- a/x/asset/keeper/params.go +++ b/x/asset/keeper/params.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" ) // GetParams get all parameters as types.Params diff --git a/x/asset/keeper/params_test.go b/x/asset/keeper/params_test.go index 68ae8b54..33669da8 100644 --- a/x/asset/keeper/params_test.go +++ b/x/asset/keeper/params_test.go @@ -1,7 +1,7 @@ package keeper_test import ( - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" ) func (suite *KeeperTestSuite) TestGetParams() { diff --git a/x/asset/keeper/restrictions.go b/x/asset/keeper/restrictions.go index b33a95c4..fded8d46 100644 --- a/x/asset/keeper/restrictions.go +++ b/x/asset/keeper/restrictions.go @@ -3,7 +3,7 @@ package keeper import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" ) func (k Keeper) AssetSendRestriction(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) (newToAddr sdk.AccAddress, err error) { diff --git a/x/asset/keeper/restrictions_test.go b/x/asset/keeper/restrictions_test.go index 6d5104d9..404374f5 100644 --- a/x/asset/keeper/restrictions_test.go +++ b/x/asset/keeper/restrictions_test.go @@ -3,8 +3,8 @@ package keeper_test import ( sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - "github.com/realiotech/realio-network/x/asset/keeper" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/keeper" + "github.com/realiotech/realio-network/v2/x/asset/types" ) func (suite *KeeperTestSuite) TestRestrictions() { diff --git a/x/asset/keeper/token.go b/x/asset/keeper/token.go index 00a6c681..254dbb5f 100644 --- a/x/asset/keeper/token.go +++ b/x/asset/keeper/token.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" ) // SetToken set a specific token in the store from its symbol diff --git a/x/asset/module.go b/x/asset/module.go index 04363081..931ade07 100644 --- a/x/asset/module.go +++ b/x/asset/module.go @@ -13,9 +13,9 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/realiotech/realio-network/x/asset/client/cli" - "github.com/realiotech/realio-network/x/asset/keeper" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/client/cli" + "github.com/realiotech/realio-network/v2/x/asset/keeper" + "github.com/realiotech/realio-network/v2/x/asset/types" "github.com/spf13/cobra" ) diff --git a/x/asset/types/genesis_test.go b/x/asset/types/genesis_test.go index ae63d6a5..9ed8ddd7 100644 --- a/x/asset/types/genesis_test.go +++ b/x/asset/types/genesis_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - "github.com/realiotech/realio-network/x/asset/types" + "github.com/realiotech/realio-network/v2/x/asset/types" "github.com/stretchr/testify/require" ) diff --git a/x/asset/types/message_test.go b/x/asset/types/message_test.go index 0ce356d1..cfee2fcc 100644 --- a/x/asset/types/message_test.go +++ b/x/asset/types/message_test.go @@ -4,7 +4,7 @@ import ( "testing" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/realiotech/realio-network/testutil" + "github.com/realiotech/realio-network/v2/testutil" "github.com/stretchr/testify/suite" ) diff --git a/x/mint/abci.go b/x/mint/abci.go index 6256b3c1..cb76501a 100644 --- a/x/mint/abci.go +++ b/x/mint/abci.go @@ -5,8 +5,8 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/realiotech/realio-network/x/mint/keeper" - "github.com/realiotech/realio-network/x/mint/types" + "github.com/realiotech/realio-network/v2/x/mint/keeper" + "github.com/realiotech/realio-network/v2/x/mint/types" ) // BeginBlocker mints new tokens for the previous block. diff --git a/x/mint/client/cli/query.go b/x/mint/client/cli/query.go index d9cce4ce..4e3703d0 100644 --- a/x/mint/client/cli/query.go +++ b/x/mint/client/cli/query.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/realiotech/realio-network/x/mint/types" + "github.com/realiotech/realio-network/v2/x/mint/types" "github.com/spf13/cobra" ) diff --git a/x/mint/keeper/genesis.go b/x/mint/keeper/genesis.go index 764cb22a..bc6b748d 100644 --- a/x/mint/keeper/genesis.go +++ b/x/mint/keeper/genesis.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/realiotech/realio-network/x/mint/types" + "github.com/realiotech/realio-network/v2/x/mint/types" ) // InitGenesis new mint genesis diff --git a/x/mint/keeper/grpc_query.go b/x/mint/keeper/grpc_query.go index 36494e2a..c99453ab 100644 --- a/x/mint/keeper/grpc_query.go +++ b/x/mint/keeper/grpc_query.go @@ -4,7 +4,7 @@ import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/realiotech/realio-network/x/mint/types" + "github.com/realiotech/realio-network/v2/x/mint/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/mint/keeper/grpc_query_test.go b/x/mint/keeper/grpc_query_test.go index 80ae03ff..bd6b50ba 100644 --- a/x/mint/keeper/grpc_query_test.go +++ b/x/mint/keeper/grpc_query_test.go @@ -2,7 +2,7 @@ package keeper_test import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/realiotech/realio-network/x/mint/types" + "github.com/realiotech/realio-network/v2/x/mint/types" ) func (suite *KeeperTestSuite) TestGRPCParams() { diff --git a/x/mint/keeper/keeper.go b/x/mint/keeper/keeper.go index e61b50e5..541d552a 100644 --- a/x/mint/keeper/keeper.go +++ b/x/mint/keeper/keeper.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/realiotech/realio-network/x/mint/types" + "github.com/realiotech/realio-network/v2/x/mint/types" ) // Keeper of the mint store diff --git a/x/mint/keeper/keeper_test.go b/x/mint/keeper/keeper_test.go index 8e305695..8df64524 100644 --- a/x/mint/keeper/keeper_test.go +++ b/x/mint/keeper/keeper_test.go @@ -15,10 +15,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ethereum/go-ethereum/common" "github.com/evmos/evmos/v18/crypto/ethsecp256k1" - "github.com/realiotech/realio-network/app" - realiotypes "github.com/realiotech/realio-network/types" - "github.com/realiotech/realio-network/x/mint/keeper" - "github.com/realiotech/realio-network/x/mint/types" + "github.com/realiotech/realio-network/v2/app" + realiotypes "github.com/realiotech/realio-network/v2/types" + "github.com/realiotech/realio-network/v2/x/mint/keeper" + "github.com/realiotech/realio-network/v2/x/mint/types" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" ) diff --git a/x/mint/keeper/migrator.go b/x/mint/keeper/migrator.go index dbed79bd..63d94eb6 100644 --- a/x/mint/keeper/migrator.go +++ b/x/mint/keeper/migrator.go @@ -2,8 +2,8 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/realiotech/realio-network/x/mint/exported" - v2 "github.com/realiotech/realio-network/x/mint/migrations/v2" + "github.com/realiotech/realio-network/v2/x/mint/exported" + v2 "github.com/realiotech/realio-network/v2/x/mint/migrations/v2" ) // Migrator is a struct for handling in-place state migrations. diff --git a/x/mint/keeper/msg_server.go b/x/mint/keeper/msg_server.go index 19bdc364..fa51d3e0 100644 --- a/x/mint/keeper/msg_server.go +++ b/x/mint/keeper/msg_server.go @@ -6,7 +6,7 @@ import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/realiotech/realio-network/x/mint/types" + "github.com/realiotech/realio-network/v2/x/mint/types" ) var _ types.MsgServer = msgServer{} diff --git a/x/mint/keeper/msg_server_test.go b/x/mint/keeper/msg_server_test.go index aac7190c..92ef1f56 100644 --- a/x/mint/keeper/msg_server_test.go +++ b/x/mint/keeper/msg_server_test.go @@ -2,7 +2,7 @@ package keeper_test import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/realiotech/realio-network/x/mint/types" + "github.com/realiotech/realio-network/v2/x/mint/types" ) func (suite *KeeperTestSuite) TestUpdateParams() { diff --git a/x/mint/migrations/v2/migrate.go b/x/mint/migrations/v2/migrate.go index 45d3e39e..1f32301c 100644 --- a/x/mint/migrations/v2/migrate.go +++ b/x/mint/migrations/v2/migrate.go @@ -3,8 +3,8 @@ package v2 import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/realiotech/realio-network/x/mint/exported" - "github.com/realiotech/realio-network/x/mint/types" + "github.com/realiotech/realio-network/v2/x/mint/exported" + "github.com/realiotech/realio-network/v2/x/mint/types" ) const ( diff --git a/x/mint/migrations/v2/migrate_test.go b/x/mint/migrations/v2/migrate_test.go index ac97d7cf..28e878df 100644 --- a/x/mint/migrations/v2/migrate_test.go +++ b/x/mint/migrations/v2/migrate_test.go @@ -6,10 +6,10 @@ import ( "github.com/cosmos/cosmos-sdk/testutil" sdk "github.com/cosmos/cosmos-sdk/types" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" - "github.com/realiotech/realio-network/x/mint" - "github.com/realiotech/realio-network/x/mint/exported" - v2 "github.com/realiotech/realio-network/x/mint/migrations/v2" - "github.com/realiotech/realio-network/x/mint/types" + "github.com/realiotech/realio-network/v2/x/mint" + "github.com/realiotech/realio-network/v2/x/mint/exported" + v2 "github.com/realiotech/realio-network/v2/x/mint/migrations/v2" + "github.com/realiotech/realio-network/v2/x/mint/types" "github.com/stretchr/testify/require" ) diff --git a/x/mint/module.go b/x/mint/module.go index f88f2dd0..4de0879f 100644 --- a/x/mint/module.go +++ b/x/mint/module.go @@ -13,10 +13,10 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/realiotech/realio-network/x/mint/client/cli" - "github.com/realiotech/realio-network/x/mint/exported" - "github.com/realiotech/realio-network/x/mint/keeper" - "github.com/realiotech/realio-network/x/mint/types" + "github.com/realiotech/realio-network/v2/x/mint/client/cli" + "github.com/realiotech/realio-network/v2/x/mint/exported" + "github.com/realiotech/realio-network/v2/x/mint/keeper" + "github.com/realiotech/realio-network/v2/x/mint/types" "github.com/spf13/cobra" ) diff --git a/x/mint/module_test.go b/x/mint/module_test.go index 6f0cc28f..a82d8879 100644 --- a/x/mint/module_test.go +++ b/x/mint/module_test.go @@ -5,8 +5,8 @@ import ( tmproto "github.com/cometbft/cometbft/proto/tendermint/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/realiotech/realio-network/app" - "github.com/realiotech/realio-network/x/mint/types" + "github.com/realiotech/realio-network/v2/app" + "github.com/realiotech/realio-network/v2/x/mint/types" "github.com/stretchr/testify/require" )