From 3c4f4929cab9b0715decdfa6174db65dea684563 Mon Sep 17 00:00:00 2001 From: C H Date: Sat, 21 Oct 2023 12:26:51 +0800 Subject: [PATCH] Bumped app to v2 --- app/ante.go | 8 ++-- app/app.go | 68 +++++++++++++++--------------- app/encoding.go | 2 +- cmd/cyber/cmd/root.go | 6 +-- cmd/cyber/main.go | 4 +- cmd/iavltool/main.go | 2 +- go.mod | 2 +- plugins/liquidity/plugin.go | 2 +- plugins/msg_binding.go | 8 ++-- plugins/query_binding.go | 10 ++--- x/bandwidth/abci.go | 4 +- x/bandwidth/client/cli/query.go | 2 +- x/bandwidth/client/rest/query.go | 2 +- x/bandwidth/keeper/accounts.go | 2 +- x/bandwidth/keeper/blocks.go | 2 +- x/bandwidth/keeper/genesis.go | 2 +- x/bandwidth/keeper/grpc_query.go | 2 +- x/bandwidth/keeper/keeper.go | 4 +- x/bandwidth/keeper/querier.go | 2 +- x/bandwidth/module.go | 8 ++-- x/bandwidth/wasm/interface.go | 2 +- x/cyberbank/abci.go | 4 +- x/cyberbank/keeper/keeper.go | 2 +- x/cyberbank/keeper/proxy.go | 4 +- x/cyberbank/module.go | 4 +- x/dmn/abci.go | 4 +- x/dmn/client/cli/query.go | 2 +- x/dmn/client/rest/query.go | 2 +- x/dmn/keeper/genesis.go | 2 +- x/dmn/keeper/grpc_query.go | 2 +- x/dmn/keeper/keeper.go | 6 +-- x/dmn/keeper/msg_server.go | 4 +- x/dmn/keeper/querier.go | 2 +- x/dmn/module.go | 8 ++-- x/dmn/types/msgs.go | 4 +- x/dmn/wasm/interface.go | 6 +-- x/graph/abci.go | 4 +- x/graph/client/cli/query.go | 2 +- x/graph/client/cli/tx.go | 2 +- x/graph/client/rest/query.go | 2 +- x/graph/keeper/genesis.go | 2 +- x/graph/keeper/graph.go | 4 +- x/graph/keeper/grpc_query.go | 2 +- x/graph/keeper/index.go | 6 +-- x/graph/keeper/msg_server.go | 10 ++--- x/graph/keeper/neudeg.go | 2 +- x/graph/keeper/particles.go | 4 +- x/graph/keeper/querier.go | 2 +- x/graph/module.go | 12 +++--- x/graph/types/compact_link.go | 2 +- x/graph/types/cyberlinks.go | 2 +- x/graph/wasm/interface.go | 4 +- x/grid/client/cli/query.go | 2 +- x/grid/client/cli/tx.go | 2 +- x/grid/client/rest/query.go | 2 +- x/grid/keeper/genesis.go | 2 +- x/grid/keeper/grpc_query.go | 2 +- x/grid/keeper/keeper.go | 6 +-- x/grid/keeper/msg_server.go | 2 +- x/grid/keeper/querier.go | 2 +- x/grid/module.go | 8 ++-- x/grid/types/msgs.go | 2 +- x/grid/wasm/interface.go | 6 +-- x/rank/abci.go | 2 +- x/rank/client/cli/query.go | 6 +-- x/rank/client/rest/query.go | 2 +- x/rank/keeper/calculate.go | 2 +- x/rank/keeper/calculate_cpu.go | 4 +- x/rank/keeper/calculate_gpu.go | 4 +- x/rank/keeper/calculate_gpu_nop.go | 2 +- x/rank/keeper/genesis.go | 2 +- x/rank/keeper/grpc_query.go | 6 +-- x/rank/keeper/keeper.go | 8 ++-- x/rank/keeper/querier.go | 6 +-- x/rank/module.go | 8 ++-- x/rank/types/context.go | 2 +- x/rank/types/expected_keepers.go | 2 +- x/rank/types/index.go | 2 +- x/rank/types/index_types.go | 2 +- x/rank/types/query.pb.go | 2 +- x/rank/types/query.pb.gw.go | 2 +- x/rank/types/rank.go | 4 +- x/rank/wasm/interface.go | 4 +- x/resources/client/cli/query.go | 4 +- x/resources/client/cli/tx.go | 4 +- x/resources/client/rest/query.go | 4 +- x/resources/keeper/genesis.go | 2 +- x/resources/keeper/grpc_query.go | 4 +- x/resources/keeper/keeper.go | 6 +-- x/resources/keeper/msg_server.go | 4 +- x/resources/keeper/querier.go | 4 +- x/resources/module.go | 8 ++-- x/resources/types/msgs.go | 2 +- x/resources/types/params.go | 2 +- x/resources/wasm/interface.go | 2 +- x/staking/msg_server.go | 4 +- 96 files changed, 210 insertions(+), 210 deletions(-) diff --git a/app/ante.go b/app/ante.go index 11dac3b0..91be7123 100644 --- a/app/ante.go +++ b/app/ante.go @@ -13,15 +13,15 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" - ctypes "github.com/cybercongress/go-cyber/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" ibcante "github.com/cosmos/ibc-go/v3/modules/core/ante" "github.com/cosmos/ibc-go/v3/modules/core/keeper" - bandwidthkeeper "github.com/cybercongress/go-cyber/x/bandwidth/keeper" - bandwidthtypes "github.com/cybercongress/go-cyber/x/bandwidth/types" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" + bandwidthkeeper "github.com/cybercongress/go-cyber/v2/x/bandwidth/keeper" + bandwidthtypes "github.com/cybercongress/go-cyber/v2/x/bandwidth/types" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" ) // HandlerOptions are the options required for constructing a default SDK AnteHandler. diff --git a/app/app.go b/app/app.go index 8fc4329a..c5985631 100644 --- a/app/app.go +++ b/app/app.go @@ -9,7 +9,7 @@ import ( "strings" "time" - liquidityplugin "github.com/cybercongress/go-cyber/plugins/liquidity" + liquidityplugin "github.com/cybercongress/go-cyber/v2/plugins/liquidity" vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" "github.com/cosmos/cosmos-sdk/x/authz" @@ -36,11 +36,11 @@ import ( liquiditykeeper "github.com/tendermint/liquidity/x/liquidity/keeper" liquiditytypes "github.com/tendermint/liquidity/x/liquidity/types" - ctypes "github.com/cybercongress/go-cyber/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" - wasmplugins "github.com/cybercongress/go-cyber/plugins" - "github.com/cybercongress/go-cyber/x/dmn" - "github.com/cybercongress/go-cyber/x/resources" + wasmplugins "github.com/cybercongress/go-cyber/v2/plugins" + "github.com/cybercongress/go-cyber/v2/x/dmn" + "github.com/cybercongress/go-cyber/v2/x/resources" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec/types" @@ -108,46 +108,46 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cybercongress/go-cyber/utils" - "github.com/cybercongress/go-cyber/x/bandwidth" - "github.com/cybercongress/go-cyber/x/cyberbank" - cyberbankkeeper "github.com/cybercongress/go-cyber/x/cyberbank/keeper" - cyberbanktypes "github.com/cybercongress/go-cyber/x/cyberbank/types" - "github.com/cybercongress/go-cyber/x/graph" - - bandwidthkeeper "github.com/cybercongress/go-cyber/x/bandwidth/keeper" - bandwidthtypes "github.com/cybercongress/go-cyber/x/bandwidth/types" - graphkeeper "github.com/cybercongress/go-cyber/x/graph/keeper" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" - "github.com/cybercongress/go-cyber/x/rank" - rankkeeper "github.com/cybercongress/go-cyber/x/rank/keeper" - ranktypes "github.com/cybercongress/go-cyber/x/rank/types" + "github.com/cybercongress/go-cyber/v2/utils" + "github.com/cybercongress/go-cyber/v2/x/bandwidth" + "github.com/cybercongress/go-cyber/v2/x/cyberbank" + cyberbankkeeper "github.com/cybercongress/go-cyber/v2/x/cyberbank/keeper" + cyberbanktypes "github.com/cybercongress/go-cyber/v2/x/cyberbank/types" + "github.com/cybercongress/go-cyber/v2/x/graph" + + bandwidthkeeper "github.com/cybercongress/go-cyber/v2/x/bandwidth/keeper" + bandwidthtypes "github.com/cybercongress/go-cyber/v2/x/bandwidth/types" + graphkeeper "github.com/cybercongress/go-cyber/v2/x/graph/keeper" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/rank" + rankkeeper "github.com/cybercongress/go-cyber/v2/x/rank/keeper" + ranktypes "github.com/cybercongress/go-cyber/v2/x/rank/types" "github.com/CosmWasm/wasmd/x/wasm" wasmclient "github.com/CosmWasm/wasmd/x/wasm/client" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" - bandwidthwasm "github.com/cybercongress/go-cyber/x/bandwidth/wasm" - dmnwasm "github.com/cybercongress/go-cyber/x/dmn/wasm" - graphwasm "github.com/cybercongress/go-cyber/x/graph/wasm" - gridwasm "github.com/cybercongress/go-cyber/x/grid/wasm" - rankwasm "github.com/cybercongress/go-cyber/x/rank/wasm" - resourceswasm "github.com/cybercongress/go-cyber/x/resources/wasm" + bandwidthwasm "github.com/cybercongress/go-cyber/v2/x/bandwidth/wasm" + dmnwasm "github.com/cybercongress/go-cyber/v2/x/dmn/wasm" + graphwasm "github.com/cybercongress/go-cyber/v2/x/graph/wasm" + gridwasm "github.com/cybercongress/go-cyber/v2/x/grid/wasm" + rankwasm "github.com/cybercongress/go-cyber/v2/x/rank/wasm" + resourceswasm "github.com/cybercongress/go-cyber/v2/x/resources/wasm" - grid "github.com/cybercongress/go-cyber/x/grid" - gridkeeper "github.com/cybercongress/go-cyber/x/grid/keeper" - gridtypes "github.com/cybercongress/go-cyber/x/grid/types" + grid "github.com/cybercongress/go-cyber/v2/x/grid" + gridkeeper "github.com/cybercongress/go-cyber/v2/x/grid/keeper" + gridtypes "github.com/cybercongress/go-cyber/v2/x/grid/types" - dmnkeeper "github.com/cybercongress/go-cyber/x/dmn/keeper" - dmntypes "github.com/cybercongress/go-cyber/x/dmn/types" + dmnkeeper "github.com/cybercongress/go-cyber/v2/x/dmn/keeper" + dmntypes "github.com/cybercongress/go-cyber/v2/x/dmn/types" - resourceskeeper "github.com/cybercongress/go-cyber/x/resources/keeper" - resourcestypes "github.com/cybercongress/go-cyber/x/resources/types" - stakingwrap "github.com/cybercongress/go-cyber/x/staking" + resourceskeeper "github.com/cybercongress/go-cyber/v2/x/resources/keeper" + resourcestypes "github.com/cybercongress/go-cyber/v2/x/resources/types" + stakingwrap "github.com/cybercongress/go-cyber/v2/x/staking" tmjson "github.com/tendermint/tendermint/libs/json" - "github.com/cybercongress/go-cyber/app/params" + "github.com/cybercongress/go-cyber/v2/app/params" store "github.com/cosmos/cosmos-sdk/store/types" ) diff --git a/app/encoding.go b/app/encoding.go index 999ef7fd..66ebb9ad 100644 --- a/app/encoding.go +++ b/app/encoding.go @@ -4,7 +4,7 @@ import ( simappparams "github.com/cosmos/cosmos-sdk/simapp/params" "github.com/cosmos/cosmos-sdk/std" - "github.com/cybercongress/go-cyber/app/params" + "github.com/cybercongress/go-cyber/v2/app/params" ) func MakeEncodingConfig() params.EncodingConfig { diff --git a/cmd/cyber/cmd/root.go b/cmd/cyber/cmd/root.go index eb5de417..c21c833d 100644 --- a/cmd/cyber/cmd/root.go +++ b/cmd/cyber/cmd/root.go @@ -10,13 +10,13 @@ import ( "github.com/cosmos/cosmos-sdk/client/config" "github.com/prometheus/client_golang/prometheus" - "github.com/cybercongress/go-cyber/app" + "github.com/cybercongress/go-cyber/v2/app" "github.com/CosmWasm/wasmd/x/wasm" "github.com/cosmos/cosmos-sdk/snapshots" "github.com/cosmos/cosmos-sdk/x/crisis" - "github.com/cybercongress/go-cyber/x/rank" + "github.com/cybercongress/go-cyber/v2/x/rank" "github.com/spf13/cast" "github.com/spf13/cobra" @@ -41,7 +41,7 @@ import ( serverconfig "github.com/cosmos/cosmos-sdk/server/config" - "github.com/cybercongress/go-cyber/app/params" + "github.com/cybercongress/go-cyber/v2/app/params" ) // NewRootCmd creates a new root command for simd. It is called once in the diff --git a/cmd/cyber/main.go b/cmd/cyber/main.go index d77ea623..3f73267c 100644 --- a/cmd/cyber/main.go +++ b/cmd/cyber/main.go @@ -6,8 +6,8 @@ import ( "github.com/cosmos/cosmos-sdk/server" svrcmd "github.com/cosmos/cosmos-sdk/server/cmd" - "github.com/cybercongress/go-cyber/app" - "github.com/cybercongress/go-cyber/cmd/cyber/cmd" + "github.com/cybercongress/go-cyber/v2/app" + "github.com/cybercongress/go-cyber/v2/cmd/cyber/cmd" ) func main() { diff --git a/cmd/iavltool/main.go b/cmd/iavltool/main.go index eb86a128..c94f2203 100644 --- a/cmd/iavltool/main.go +++ b/cmd/iavltool/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/cybercongress/go-cyber/cmd/iavltool/cmd" + "github.com/cybercongress/go-cyber/v2/cmd/iavltool/cmd" ) func main() { diff --git a/go.mod b/go.mod index 892a1ae8..b4d29346 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/cybercongress/go-cyber +module github.com/cybercongress/go-cyber/v2 go 1.17 diff --git a/plugins/liquidity/plugin.go b/plugins/liquidity/plugin.go index 9ef44342..af9744e1 100644 --- a/plugins/liquidity/plugin.go +++ b/plugins/liquidity/plugin.go @@ -6,7 +6,7 @@ import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" liquiditytypes "github.com/tendermint/liquidity/x/liquidity/types" - "github.com/cybercongress/go-cyber/plugins" + "github.com/cybercongress/go-cyber/v2/plugins" "github.com/CosmWasm/wasmd/x/wasm" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/plugins/msg_binding.go b/plugins/msg_binding.go index 45b34798..5ffc9f91 100644 --- a/plugins/msg_binding.go +++ b/plugins/msg_binding.go @@ -11,10 +11,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - dmntypes "github.com/cybercongress/go-cyber/x/dmn/types" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" - gridtypes "github.com/cybercongress/go-cyber/x/grid/types" - resourcestypes "github.com/cybercongress/go-cyber/x/resources/types" + dmntypes "github.com/cybercongress/go-cyber/v2/x/dmn/types" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" + gridtypes "github.com/cybercongress/go-cyber/v2/x/grid/types" + resourcestypes "github.com/cybercongress/go-cyber/v2/x/resources/types" ) type WasmMsgParserInterface interface { diff --git a/plugins/query_binding.go b/plugins/query_binding.go index 9cd06db3..f2cc7820 100644 --- a/plugins/query_binding.go +++ b/plugins/query_binding.go @@ -10,11 +10,11 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - bandwidthtypes "github.com/cybercongress/go-cyber/x/bandwidth/types" - dmntypes "github.com/cybercongress/go-cyber/x/dmn/types" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" - gridtypes "github.com/cybercongress/go-cyber/x/grid/types" - ranktypes "github.com/cybercongress/go-cyber/x/rank/types" + bandwidthtypes "github.com/cybercongress/go-cyber/v2/x/bandwidth/types" + dmntypes "github.com/cybercongress/go-cyber/v2/x/dmn/types" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" + gridtypes "github.com/cybercongress/go-cyber/v2/x/grid/types" + ranktypes "github.com/cybercongress/go-cyber/v2/x/rank/types" ) type WasmQuerierInterface interface { diff --git a/x/bandwidth/abci.go b/x/bandwidth/abci.go index 2b3095d9..14e90706 100644 --- a/x/bandwidth/abci.go +++ b/x/bandwidth/abci.go @@ -6,8 +6,8 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/bandwidth/keeper" - "github.com/cybercongress/go-cyber/x/bandwidth/types" + "github.com/cybercongress/go-cyber/v2/x/bandwidth/keeper" + "github.com/cybercongress/go-cyber/v2/x/bandwidth/types" ) var accountsToUpdate = make([]sdk.AccAddress, 0) diff --git a/x/bandwidth/client/cli/query.go b/x/bandwidth/client/cli/query.go index c685b229..017e2b2a 100644 --- a/x/bandwidth/client/cli/query.go +++ b/x/bandwidth/client/cli/query.go @@ -10,7 +10,7 @@ import ( // sdk "github.com/cosmos/cosmos-sdk/types" "github.com/spf13/cobra" - "github.com/cybercongress/go-cyber/x/bandwidth/types" + "github.com/cybercongress/go-cyber/v2/x/bandwidth/types" ) func GetQueryCmd() *cobra.Command { diff --git a/x/bandwidth/client/rest/query.go b/x/bandwidth/client/rest/query.go index 26efa60b..ab67fcba 100644 --- a/x/bandwidth/client/rest/query.go +++ b/x/bandwidth/client/rest/query.go @@ -10,7 +10,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cybercongress/go-cyber/x/bandwidth/types" + "github.com/cybercongress/go-cyber/v2/x/bandwidth/types" ) func registerQueryRoutes(cliCtx client.Context, r *mux.Router) { diff --git a/x/bandwidth/keeper/accounts.go b/x/bandwidth/keeper/accounts.go index a3f68709..247eb38d 100644 --- a/x/bandwidth/keeper/accounts.go +++ b/x/bandwidth/keeper/accounts.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/bandwidth/types" + "github.com/cybercongress/go-cyber/v2/x/bandwidth/types" ) func (bm BandwidthMeter) SetAccountBandwidth(ctx sdk.Context, ab types.NeuronBandwidth) { diff --git a/x/bandwidth/keeper/blocks.go b/x/bandwidth/keeper/blocks.go index d225fe33..ffa2e4a1 100644 --- a/x/bandwidth/keeper/blocks.go +++ b/x/bandwidth/keeper/blocks.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/bandwidth/types" + "github.com/cybercongress/go-cyber/v2/x/bandwidth/types" ) func (bm BandwidthMeter) SetBlockBandwidth(ctx sdk.Context, blockNumber uint64, value uint64) { diff --git a/x/bandwidth/keeper/genesis.go b/x/bandwidth/keeper/genesis.go index 8d0b4574..318ffc6e 100644 --- a/x/bandwidth/keeper/genesis.go +++ b/x/bandwidth/keeper/genesis.go @@ -4,7 +4,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" - "github.com/cybercongress/go-cyber/x/bandwidth/types" + "github.com/cybercongress/go-cyber/v2/x/bandwidth/types" ) func InitGenesis(ctx sdk.Context, bm *BandwidthMeter, ak authkeeper.AccountKeeper, data types.GenesisState) { diff --git a/x/bandwidth/keeper/grpc_query.go b/x/bandwidth/keeper/grpc_query.go index 47c94450..20ed90fe 100644 --- a/x/bandwidth/keeper/grpc_query.go +++ b/x/bandwidth/keeper/grpc_query.go @@ -7,7 +7,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/cybercongress/go-cyber/x/bandwidth/types" + "github.com/cybercongress/go-cyber/v2/x/bandwidth/types" ) var _ types.QueryServer = &BandwidthMeter{} diff --git a/x/bandwidth/keeper/keeper.go b/x/bandwidth/keeper/keeper.go index 6177e106..87181f2e 100644 --- a/x/bandwidth/keeper/keeper.go +++ b/x/bandwidth/keeper/keeper.go @@ -9,8 +9,8 @@ import ( paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/tendermint/tendermint/libs/log" - "github.com/cybercongress/go-cyber/x/bandwidth/types" - gtypes "github.com/cybercongress/go-cyber/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/bandwidth/types" + gtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" ) type BandwidthMeter struct { diff --git a/x/bandwidth/keeper/querier.go b/x/bandwidth/keeper/querier.go index 01ba0778..5159218a 100644 --- a/x/bandwidth/keeper/querier.go +++ b/x/bandwidth/keeper/querier.go @@ -6,7 +6,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cybercongress/go-cyber/x/bandwidth/types" + "github.com/cybercongress/go-cyber/v2/x/bandwidth/types" ) func NewQuerier(bm *BandwidthMeter, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier { diff --git a/x/bandwidth/module.go b/x/bandwidth/module.go index d6da2fb5..4e93b94a 100644 --- a/x/bandwidth/module.go +++ b/x/bandwidth/module.go @@ -14,10 +14,10 @@ import ( "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" - "github.com/cybercongress/go-cyber/x/bandwidth/client/cli" - "github.com/cybercongress/go-cyber/x/bandwidth/client/rest" - "github.com/cybercongress/go-cyber/x/bandwidth/keeper" - "github.com/cybercongress/go-cyber/x/bandwidth/types" + "github.com/cybercongress/go-cyber/v2/x/bandwidth/client/cli" + "github.com/cybercongress/go-cyber/v2/x/bandwidth/client/rest" + "github.com/cybercongress/go-cyber/v2/x/bandwidth/keeper" + "github.com/cybercongress/go-cyber/v2/x/bandwidth/types" sdk "github.com/cosmos/cosmos-sdk/types" abci "github.com/tendermint/tendermint/abci/types" diff --git a/x/bandwidth/wasm/interface.go b/x/bandwidth/wasm/interface.go index 1d21b0ff..bf67f8ca 100644 --- a/x/bandwidth/wasm/interface.go +++ b/x/bandwidth/wasm/interface.go @@ -8,7 +8,7 @@ import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" - "github.com/cybercongress/go-cyber/x/bandwidth/keeper" + "github.com/cybercongress/go-cyber/v2/x/bandwidth/keeper" ) var _ QuerierInterface = Querier{} diff --git a/x/cyberbank/abci.go b/x/cyberbank/abci.go index 91bb0132..10ab62b9 100644 --- a/x/cyberbank/abci.go +++ b/x/cyberbank/abci.go @@ -6,8 +6,8 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/cyberbank/keeper" - "github.com/cybercongress/go-cyber/x/cyberbank/types" + "github.com/cybercongress/go-cyber/v2/x/cyberbank/keeper" + "github.com/cybercongress/go-cyber/v2/x/cyberbank/types" ) func EndBlocker(ctx sdk.Context, k *keeper.IndexedKeeper) { diff --git a/x/cyberbank/keeper/keeper.go b/x/cyberbank/keeper/keeper.go index dca16cc6..448a2b42 100644 --- a/x/cyberbank/keeper/keeper.go +++ b/x/cyberbank/keeper/keeper.go @@ -11,7 +11,7 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/tendermint/tendermint/libs/log" - "github.com/cybercongress/go-cyber/x/cyberbank/types" + "github.com/cybercongress/go-cyber/v2/x/cyberbank/types" ) type IndexedKeeper struct { diff --git a/x/cyberbank/keeper/proxy.go b/x/cyberbank/keeper/proxy.go index 5da73a5f..6a854fc8 100644 --- a/x/cyberbank/keeper/proxy.go +++ b/x/cyberbank/keeper/proxy.go @@ -10,8 +10,8 @@ import ( bank "github.com/cosmos/cosmos-sdk/x/bank/keeper" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - ctypes "github.com/cybercongress/go-cyber/types" - "github.com/cybercongress/go-cyber/x/cyberbank/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" + "github.com/cybercongress/go-cyber/v2/x/cyberbank/types" ) var _ bank.Keeper = (*Proxy)(nil) diff --git a/x/cyberbank/module.go b/x/cyberbank/module.go index bcd9b635..598c1c57 100644 --- a/x/cyberbank/module.go +++ b/x/cyberbank/module.go @@ -15,8 +15,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cybercongress/go-cyber/x/cyberbank/keeper" - "github.com/cybercongress/go-cyber/x/cyberbank/types" + "github.com/cybercongress/go-cyber/v2/x/cyberbank/keeper" + "github.com/cybercongress/go-cyber/v2/x/cyberbank/types" ) var ( diff --git a/x/dmn/abci.go b/x/dmn/abci.go index bfdb0ba8..2040570b 100644 --- a/x/dmn/abci.go +++ b/x/dmn/abci.go @@ -6,8 +6,8 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/dmn/keeper" - "github.com/cybercongress/go-cyber/x/dmn/types" + "github.com/cybercongress/go-cyber/v2/x/dmn/keeper" + "github.com/cybercongress/go-cyber/v2/x/dmn/types" ) func BeginBlock(ctx sdk.Context, k keeper.Keeper) { diff --git a/x/dmn/client/cli/query.go b/x/dmn/client/cli/query.go index 6887368e..d81df9f9 100644 --- a/x/dmn/client/cli/query.go +++ b/x/dmn/client/cli/query.go @@ -10,7 +10,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" - "github.com/cybercongress/go-cyber/x/dmn/types" + "github.com/cybercongress/go-cyber/v2/x/dmn/types" ) func GetQueryCmd() *cobra.Command { diff --git a/x/dmn/client/rest/query.go b/x/dmn/client/rest/query.go index 43a9bdaa..0b7d2e69 100644 --- a/x/dmn/client/rest/query.go +++ b/x/dmn/client/rest/query.go @@ -11,7 +11,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cybercongress/go-cyber/x/dmn/types" + "github.com/cybercongress/go-cyber/v2/x/dmn/types" ) func registerQueryRoutes(cliCtx client.Context, r *mux.Router) { diff --git a/x/dmn/keeper/genesis.go b/x/dmn/keeper/genesis.go index 86e0ed21..a2b0f66e 100644 --- a/x/dmn/keeper/genesis.go +++ b/x/dmn/keeper/genesis.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/dmn/types" + "github.com/cybercongress/go-cyber/v2/x/dmn/types" ) func InitGenesis(ctx sdk.Context, k Keeper, data types.GenesisState) { diff --git a/x/dmn/keeper/grpc_query.go b/x/dmn/keeper/grpc_query.go index 1c5d0acb..6cdd766e 100644 --- a/x/dmn/keeper/grpc_query.go +++ b/x/dmn/keeper/grpc_query.go @@ -7,7 +7,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/cybercongress/go-cyber/x/dmn/types" + "github.com/cybercongress/go-cyber/v2/x/dmn/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/dmn/keeper/keeper.go b/x/dmn/keeper/keeper.go index f7a71e2f..ede20b2d 100644 --- a/x/dmn/keeper/keeper.go +++ b/x/dmn/keeper/keeper.go @@ -15,10 +15,10 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - ctypes "github.com/cybercongress/go-cyber/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" - "github.com/cybercongress/go-cyber/x/dmn/types" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/dmn/types" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" ) // Keeper of the power store diff --git a/x/dmn/keeper/msg_server.go b/x/dmn/keeper/msg_server.go index 5e787a90..5bd91d0e 100644 --- a/x/dmn/keeper/msg_server.go +++ b/x/dmn/keeper/msg_server.go @@ -5,8 +5,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/dmn/types" - graph "github.com/cybercongress/go-cyber/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/dmn/types" + graph "github.com/cybercongress/go-cyber/v2/x/graph/types" ) type msgServer struct { diff --git a/x/dmn/keeper/querier.go b/x/dmn/keeper/querier.go index f08c7f71..d28d9bf3 100644 --- a/x/dmn/keeper/querier.go +++ b/x/dmn/keeper/querier.go @@ -6,7 +6,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cybercongress/go-cyber/x/dmn/types" + "github.com/cybercongress/go-cyber/v2/x/dmn/types" ) func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier { diff --git a/x/dmn/module.go b/x/dmn/module.go index f6339514..20c00973 100644 --- a/x/dmn/module.go +++ b/x/dmn/module.go @@ -17,10 +17,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cybercongress/go-cyber/x/dmn/client/cli" - "github.com/cybercongress/go-cyber/x/dmn/client/rest" - "github.com/cybercongress/go-cyber/x/dmn/keeper" - "github.com/cybercongress/go-cyber/x/dmn/types" + "github.com/cybercongress/go-cyber/v2/x/dmn/client/cli" + "github.com/cybercongress/go-cyber/v2/x/dmn/client/rest" + "github.com/cybercongress/go-cyber/v2/x/dmn/keeper" + "github.com/cybercongress/go-cyber/v2/x/dmn/types" ) var ( diff --git a/x/dmn/types/msgs.go b/x/dmn/types/msgs.go index ce77c4e0..be2a6ffc 100644 --- a/x/dmn/types/msgs.go +++ b/x/dmn/types/msgs.go @@ -7,8 +7,8 @@ import ( // sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cybercongress/go-cyber/types" - graph "github.com/cybercongress/go-cyber/x/graph/types" + "github.com/cybercongress/go-cyber/v2/types" + graph "github.com/cybercongress/go-cyber/v2/x/graph/types" ) const ( diff --git a/x/dmn/wasm/interface.go b/x/dmn/wasm/interface.go index e2ac4fad..35e77632 100644 --- a/x/dmn/wasm/interface.go +++ b/x/dmn/wasm/interface.go @@ -7,12 +7,12 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - wasmplugins "github.com/cybercongress/go-cyber/plugins" + wasmplugins "github.com/cybercongress/go-cyber/v2/plugins" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - "github.com/cybercongress/go-cyber/x/dmn/keeper" - "github.com/cybercongress/go-cyber/x/dmn/types" + "github.com/cybercongress/go-cyber/v2/x/dmn/keeper" + "github.com/cybercongress/go-cyber/v2/x/dmn/types" ) var ( diff --git a/x/graph/abci.go b/x/graph/abci.go index 6b6fc73c..b5a1c91f 100644 --- a/x/graph/abci.go +++ b/x/graph/abci.go @@ -6,8 +6,8 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/graph/keeper" - "github.com/cybercongress/go-cyber/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/graph/keeper" + "github.com/cybercongress/go-cyber/v2/x/graph/types" ) func EndBlocker(ctx sdk.Context, gk *keeper.GraphKeeper, ik *keeper.IndexKeeper) { diff --git a/x/graph/client/cli/query.go b/x/graph/client/cli/query.go index c82aad53..d44c814e 100644 --- a/x/graph/client/cli/query.go +++ b/x/graph/client/cli/query.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/cobra" - "github.com/cybercongress/go-cyber/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/graph/types" ) // GetQueryCmd returns diff --git a/x/graph/client/cli/tx.go b/x/graph/client/cli/tx.go index 85e66937..a7bc15eb 100644 --- a/x/graph/client/cli/tx.go +++ b/x/graph/client/cli/tx.go @@ -12,7 +12,7 @@ import ( "github.com/ipfs/go-cid" "github.com/spf13/cobra" - "github.com/cybercongress/go-cyber/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/graph/types" ) func NewTxCmd() *cobra.Command { diff --git a/x/graph/client/rest/query.go b/x/graph/client/rest/query.go index 67d8d977..b912e302 100644 --- a/x/graph/client/rest/query.go +++ b/x/graph/client/rest/query.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/rest" "github.com/gorilla/mux" - "github.com/cybercongress/go-cyber/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/graph/types" ) func registerQueryRoutes(cliCtx client.Context, r *mux.Router) { diff --git a/x/graph/keeper/genesis.go b/x/graph/keeper/genesis.go index bc732c25..beac139f 100644 --- a/x/graph/keeper/genesis.go +++ b/x/graph/keeper/genesis.go @@ -7,7 +7,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/utils" + "github.com/cybercongress/go-cyber/v2/utils" ) const ( diff --git a/x/graph/keeper/graph.go b/x/graph/keeper/graph.go index 318ee394..25a5470c 100644 --- a/x/graph/keeper/graph.go +++ b/x/graph/keeper/graph.go @@ -10,8 +10,8 @@ import ( "github.com/tendermint/tendermint/libs/log" - ctypes "github.com/cybercongress/go-cyber/types" - "github.com/cybercongress/go-cyber/x/graph/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" + "github.com/cybercongress/go-cyber/v2/x/graph/types" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/graph/keeper/grpc_query.go b/x/graph/keeper/grpc_query.go index c026ec7f..bd6d7566 100644 --- a/x/graph/keeper/grpc_query.go +++ b/x/graph/keeper/grpc_query.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/graph/types" ) var _ types.QueryServer = GraphKeeper{} diff --git a/x/graph/keeper/index.go b/x/graph/keeper/index.go index d8910fea..696055ea 100644 --- a/x/graph/keeper/index.go +++ b/x/graph/keeper/index.go @@ -4,9 +4,9 @@ import ( "encoding/binary" "io" - ctypes "github.com/cybercongress/go-cyber/types" - "github.com/cybercongress/go-cyber/utils" - "github.com/cybercongress/go-cyber/x/graph/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" + "github.com/cybercongress/go-cyber/v2/utils" + "github.com/cybercongress/go-cyber/v2/x/graph/types" sdk "github.com/cosmos/cosmos-sdk/types" tmos "github.com/tendermint/tendermint/libs/os" diff --git a/x/graph/keeper/msg_server.go b/x/graph/keeper/msg_server.go index 516512f6..7a2db4b2 100644 --- a/x/graph/keeper/msg_server.go +++ b/x/graph/keeper/msg_server.go @@ -8,13 +8,13 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" - ctypes "github.com/cybercongress/go-cyber/types" - bandwidthkeeper "github.com/cybercongress/go-cyber/x/bandwidth/keeper" - bandwidthtypes "github.com/cybercongress/go-cyber/x/bandwidth/types" - cyberbankkeeper "github.com/cybercongress/go-cyber/x/cyberbank/keeper" + ctypes "github.com/cybercongress/go-cyber/v2/types" + bandwidthkeeper "github.com/cybercongress/go-cyber/v2/x/bandwidth/keeper" + bandwidthtypes "github.com/cybercongress/go-cyber/v2/x/bandwidth/types" + cyberbankkeeper "github.com/cybercongress/go-cyber/v2/x/cyberbank/keeper" // sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cybercongress/go-cyber/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/graph/types" ) type msgServer struct { diff --git a/x/graph/keeper/neudeg.go b/x/graph/keeper/neudeg.go index b764bf9d..4511e358 100644 --- a/x/graph/keeper/neudeg.go +++ b/x/graph/keeper/neudeg.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/graph/types" ) // In order to calculate the flow of amperes through cyberlinks created by given agents than need to compute neurons out-degree diff --git a/x/graph/keeper/particles.go b/x/graph/keeper/particles.go index 34dec83b..c82d3791 100644 --- a/x/graph/keeper/particles.go +++ b/x/graph/keeper/particles.go @@ -6,8 +6,8 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" - "github.com/cybercongress/go-cyber/utils" - "github.com/cybercongress/go-cyber/x/graph/types" + "github.com/cybercongress/go-cyber/v2/utils" + "github.com/cybercongress/go-cyber/v2/x/graph/types" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/graph/keeper/querier.go b/x/graph/keeper/querier.go index bda6ec7c..46ee33e3 100644 --- a/x/graph/keeper/querier.go +++ b/x/graph/keeper/querier.go @@ -6,7 +6,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cybercongress/go-cyber/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/graph/types" ) func NewQuerier(gk GraphKeeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier { diff --git a/x/graph/module.go b/x/graph/module.go index 1a53be94..3b3954bd 100644 --- a/x/graph/module.go +++ b/x/graph/module.go @@ -11,18 +11,18 @@ import ( "github.com/grpc-ecosystem/grpc-gateway/runtime" abci "github.com/tendermint/tendermint/abci/types" - bandwidthkeeper "github.com/cybercongress/go-cyber/x/bandwidth/keeper" + bandwidthkeeper "github.com/cybercongress/go-cyber/v2/x/bandwidth/keeper" "github.com/cosmos/cosmos-sdk/codec" authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" "github.com/gorilla/mux" "github.com/spf13/cobra" - cyberbankkeeper "github.com/cybercongress/go-cyber/x/cyberbank/keeper" - "github.com/cybercongress/go-cyber/x/graph/client/cli" - "github.com/cybercongress/go-cyber/x/graph/client/rest" - "github.com/cybercongress/go-cyber/x/graph/keeper" - "github.com/cybercongress/go-cyber/x/graph/types" + cyberbankkeeper "github.com/cybercongress/go-cyber/v2/x/cyberbank/keeper" + "github.com/cybercongress/go-cyber/v2/x/graph/client/cli" + "github.com/cybercongress/go-cyber/v2/x/graph/client/rest" + "github.com/cybercongress/go-cyber/v2/x/graph/keeper" + "github.com/cybercongress/go-cyber/v2/x/graph/types" ) var ( diff --git a/x/graph/types/compact_link.go b/x/graph/types/compact_link.go index d31a7c02..fa23eb55 100644 --- a/x/graph/types/compact_link.go +++ b/x/graph/types/compact_link.go @@ -3,7 +3,7 @@ package types import ( "encoding/binary" - "github.com/cybercongress/go-cyber/types" + "github.com/cybercongress/go-cyber/v2/types" ) type CompactLink struct { diff --git a/x/graph/types/cyberlinks.go b/x/graph/types/cyberlinks.go index 683eb47e..b188b6d2 100644 --- a/x/graph/types/cyberlinks.go +++ b/x/graph/types/cyberlinks.go @@ -1,6 +1,6 @@ package types -import "github.com/cybercongress/go-cyber/types" +import "github.com/cybercongress/go-cyber/v2/types" // map of map, where first key is cid, second key is account.String() // second map is used as set for fast contains check diff --git a/x/graph/wasm/interface.go b/x/graph/wasm/interface.go index bf85f2f4..ff7a4270 100644 --- a/x/graph/wasm/interface.go +++ b/x/graph/wasm/interface.go @@ -9,8 +9,8 @@ import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" - "github.com/cybercongress/go-cyber/x/graph/keeper" - "github.com/cybercongress/go-cyber/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/graph/keeper" + "github.com/cybercongress/go-cyber/v2/x/graph/types" ) var ( diff --git a/x/grid/client/cli/query.go b/x/grid/client/cli/query.go index cc943ce0..e0a7a71a 100644 --- a/x/grid/client/cli/query.go +++ b/x/grid/client/cli/query.go @@ -10,7 +10,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cybercongress/go-cyber/x/grid/types" + "github.com/cybercongress/go-cyber/v2/x/grid/types" ) func GetQueryCmd() *cobra.Command { diff --git a/x/grid/client/cli/tx.go b/x/grid/client/cli/tx.go index 5b5ef252..4ab2ba5b 100644 --- a/x/grid/client/cli/tx.go +++ b/x/grid/client/cli/tx.go @@ -10,7 +10,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cybercongress/go-cyber/x/grid/types" + "github.com/cybercongress/go-cyber/v2/x/grid/types" ) // GetTxCmd returns the transaction commands for this module diff --git a/x/grid/client/rest/query.go b/x/grid/client/rest/query.go index 549bb77e..2f5763cd 100644 --- a/x/grid/client/rest/query.go +++ b/x/grid/client/rest/query.go @@ -10,7 +10,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cybercongress/go-cyber/x/grid/types" + "github.com/cybercongress/go-cyber/v2/x/grid/types" ) // RegisterRoutes defines routes that get registered by the main application. diff --git a/x/grid/keeper/genesis.go b/x/grid/keeper/genesis.go index 76c5f67e..be209c8a 100644 --- a/x/grid/keeper/genesis.go +++ b/x/grid/keeper/genesis.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/grid/types" + "github.com/cybercongress/go-cyber/v2/x/grid/types" ) func InitGenesis(ctx sdk.Context, k Keeper, data types.GenesisState) { diff --git a/x/grid/keeper/grpc_query.go b/x/grid/keeper/grpc_query.go index 4e24c39a..a6ec6d22 100644 --- a/x/grid/keeper/grpc_query.go +++ b/x/grid/keeper/grpc_query.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/cybercongress/go-cyber/x/grid/types" + "github.com/cybercongress/go-cyber/v2/x/grid/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/grid/keeper/keeper.go b/x/grid/keeper/keeper.go index 6767ce61..fc75f058 100644 --- a/x/grid/keeper/keeper.go +++ b/x/grid/keeper/keeper.go @@ -7,13 +7,13 @@ import ( paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/tendermint/tendermint/libs/log" - ctypes "github.com/cybercongress/go-cyber/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/grid/exported" - "github.com/cybercongress/go-cyber/x/grid/types" + "github.com/cybercongress/go-cyber/v2/x/grid/exported" + "github.com/cybercongress/go-cyber/v2/x/grid/types" ) var _ = exported.EnergyKeeper(nil) diff --git a/x/grid/keeper/msg_server.go b/x/grid/keeper/msg_server.go index bf24820e..ed4e460e 100644 --- a/x/grid/keeper/msg_server.go +++ b/x/grid/keeper/msg_server.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/grid/types" + "github.com/cybercongress/go-cyber/v2/x/grid/types" ) type msgServer struct { diff --git a/x/grid/keeper/querier.go b/x/grid/keeper/querier.go index 45946ecd..d2949fa5 100644 --- a/x/grid/keeper/querier.go +++ b/x/grid/keeper/querier.go @@ -7,7 +7,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cybercongress/go-cyber/x/grid/types" + "github.com/cybercongress/go-cyber/v2/x/grid/types" ) func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier { diff --git a/x/grid/module.go b/x/grid/module.go index ff8f8288..294f0a76 100644 --- a/x/grid/module.go +++ b/x/grid/module.go @@ -17,10 +17,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cybercongress/go-cyber/x/grid/client/cli" - "github.com/cybercongress/go-cyber/x/grid/client/rest" - "github.com/cybercongress/go-cyber/x/grid/keeper" - "github.com/cybercongress/go-cyber/x/grid/types" + "github.com/cybercongress/go-cyber/v2/x/grid/client/cli" + "github.com/cybercongress/go-cyber/v2/x/grid/client/rest" + "github.com/cybercongress/go-cyber/v2/x/grid/keeper" + "github.com/cybercongress/go-cyber/v2/x/grid/types" ) var ( diff --git a/x/grid/types/msgs.go b/x/grid/types/msgs.go index a78584fb..b29c5299 100644 --- a/x/grid/types/msgs.go +++ b/x/grid/types/msgs.go @@ -4,7 +4,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - ctypes "github.com/cybercongress/go-cyber/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" ) const ( diff --git a/x/grid/wasm/interface.go b/x/grid/wasm/interface.go index 1e45938d..41be570b 100644 --- a/x/grid/wasm/interface.go +++ b/x/grid/wasm/interface.go @@ -9,9 +9,9 @@ import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" - wasmplugins "github.com/cybercongress/go-cyber/plugins" - "github.com/cybercongress/go-cyber/x/grid/keeper" - "github.com/cybercongress/go-cyber/x/grid/types" + wasmplugins "github.com/cybercongress/go-cyber/v2/plugins" + "github.com/cybercongress/go-cyber/v2/x/grid/keeper" + "github.com/cybercongress/go-cyber/v2/x/grid/types" ) var _ MsgParserInterface = MsgParser{} diff --git a/x/rank/abci.go b/x/rank/abci.go index 03c426f5..d5d2de09 100644 --- a/x/rank/abci.go +++ b/x/rank/abci.go @@ -3,7 +3,7 @@ package rank import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/rank/keeper" + "github.com/cybercongress/go-cyber/v2/x/rank/keeper" ) func EndBlocker(ctx sdk.Context, k *keeper.StateKeeper) { diff --git a/x/rank/client/cli/query.go b/x/rank/client/cli/query.go index d6edbcac..9626721d 100644 --- a/x/rank/client/cli/query.go +++ b/x/rank/client/cli/query.go @@ -10,10 +10,10 @@ import ( "github.com/ipfs/go-cid" "github.com/spf13/cobra" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" - "github.com/cybercongress/go-cyber/types/query" - "github.com/cybercongress/go-cyber/x/rank/types" + "github.com/cybercongress/go-cyber/v2/types/query" + "github.com/cybercongress/go-cyber/v2/x/rank/types" ) func GetQueryCmd() *cobra.Command { diff --git a/x/rank/client/rest/query.go b/x/rank/client/rest/query.go index 7606d071..dc0f0fdf 100644 --- a/x/rank/client/rest/query.go +++ b/x/rank/client/rest/query.go @@ -12,7 +12,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cybercongress/go-cyber/x/rank/types" + "github.com/cybercongress/go-cyber/v2/x/rank/types" ) func registerQueryRoutes(cliCtx client.Context, r *mux.Router) { diff --git a/x/rank/keeper/calculate.go b/x/rank/keeper/calculate.go index d269b960..69314678 100644 --- a/x/rank/keeper/calculate.go +++ b/x/rank/keeper/calculate.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" - "github.com/cybercongress/go-cyber/x/rank/types" + "github.com/cybercongress/go-cyber/v2/x/rank/types" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/rank/keeper/calculate_cpu.go b/x/rank/keeper/calculate_cpu.go index 49567bf8..db6ad626 100755 --- a/x/rank/keeper/calculate_cpu.go +++ b/x/rank/keeper/calculate_cpu.go @@ -3,8 +3,8 @@ package keeper import ( "math" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" - "github.com/cybercongress/go-cyber/x/rank/types" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/rank/types" ) func calculateRankCPU(ctx *types.CalculationContext) types.EMState { diff --git a/x/rank/keeper/calculate_gpu.go b/x/rank/keeper/calculate_gpu.go index d0a7c8d0..9243c058 100755 --- a/x/rank/keeper/calculate_gpu.go +++ b/x/rank/keeper/calculate_gpu.go @@ -8,8 +8,8 @@ import ( "github.com/tendermint/tendermint/libs/log" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" - "github.com/cybercongress/go-cyber/x/rank/types" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/rank/types" ) /* diff --git a/x/rank/keeper/calculate_gpu_nop.go b/x/rank/keeper/calculate_gpu_nop.go index 203965d6..bfe25a6e 100644 --- a/x/rank/keeper/calculate_gpu_nop.go +++ b/x/rank/keeper/calculate_gpu_nop.go @@ -4,7 +4,7 @@ package keeper import ( - "github.com/cybercongress/go-cyber/x/rank/types" + "github.com/cybercongress/go-cyber/v2/x/rank/types" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/rank/keeper/genesis.go b/x/rank/keeper/genesis.go index e4464414..5e11e0c6 100644 --- a/x/rank/keeper/genesis.go +++ b/x/rank/keeper/genesis.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/rank/types" + "github.com/cybercongress/go-cyber/v2/x/rank/types" ) func InitGenesis(ctx sdk.Context, keeper StateKeeper, data types.GenesisState) { diff --git a/x/rank/keeper/grpc_query.go b/x/rank/keeper/grpc_query.go index c054296c..21664434 100644 --- a/x/rank/keeper/grpc_query.go +++ b/x/rank/keeper/grpc_query.go @@ -8,9 +8,9 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - querytypes "github.com/cybercongress/go-cyber/types/query" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" - "github.com/cybercongress/go-cyber/x/rank/types" + querytypes "github.com/cybercongress/go-cyber/v2/types/query" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/rank/types" ) var _ types.QueryServer = &StateKeeper{} diff --git a/x/rank/keeper/keeper.go b/x/rank/keeper/keeper.go index b8f05bd3..5d5f3546 100644 --- a/x/rank/keeper/keeper.go +++ b/x/rank/keeper/keeper.go @@ -12,10 +12,10 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth/keeper" paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/cybercongress/go-cyber/merkle" - graphkeeper "github.com/cybercongress/go-cyber/x/graph/keeper" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" - "github.com/cybercongress/go-cyber/x/rank/types" + "github.com/cybercongress/go-cyber/v2/merkle" + graphkeeper "github.com/cybercongress/go-cyber/v2/x/graph/keeper" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/rank/types" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/rank/keeper/querier.go b/x/rank/keeper/querier.go index 7d27f7a7..1348f452 100644 --- a/x/rank/keeper/querier.go +++ b/x/rank/keeper/querier.go @@ -4,9 +4,9 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" abci "github.com/tendermint/tendermint/abci/types" - querytypes "github.com/cybercongress/go-cyber/types/query" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" - "github.com/cybercongress/go-cyber/x/rank/types" + querytypes "github.com/cybercongress/go-cyber/v2/types/query" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" + "github.com/cybercongress/go-cyber/v2/x/rank/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/rank/module.go b/x/rank/module.go index 4bf02a54..1a1c4485 100644 --- a/x/rank/module.go +++ b/x/rank/module.go @@ -16,11 +16,11 @@ import ( "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cybercongress/go-cyber/x/rank/client/cli" - "github.com/cybercongress/go-cyber/x/rank/client/rest" + "github.com/cybercongress/go-cyber/v2/x/rank/client/cli" + "github.com/cybercongress/go-cyber/v2/x/rank/client/rest" - "github.com/cybercongress/go-cyber/x/rank/keeper" - "github.com/cybercongress/go-cyber/x/rank/types" + "github.com/cybercongress/go-cyber/v2/x/rank/keeper" + "github.com/cybercongress/go-cyber/v2/x/rank/types" ) var ( diff --git a/x/rank/types/context.go b/x/rank/types/context.go index e2d24880..6aa64356 100644 --- a/x/rank/types/context.go +++ b/x/rank/types/context.go @@ -3,7 +3,7 @@ package types import ( "sort" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" ) type CalculationContext struct { diff --git a/x/rank/types/expected_keepers.go b/x/rank/types/expected_keepers.go index c8b9fe4b..232f76ab 100644 --- a/x/rank/types/expected_keepers.go +++ b/x/rank/types/expected_keepers.go @@ -3,7 +3,7 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" ) type StakeKeeper interface { diff --git a/x/rank/types/index.go b/x/rank/types/index.go index 930ec3a5..746ef3f4 100644 --- a/x/rank/types/index.go +++ b/x/rank/types/index.go @@ -7,7 +7,7 @@ import ( "github.com/tendermint/tendermint/libs/log" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" ) type BaseSearchIndex struct { diff --git a/x/rank/types/index_types.go b/x/rank/types/index_types.go index d8782544..c0846734 100644 --- a/x/rank/types/index_types.go +++ b/x/rank/types/index_types.go @@ -3,7 +3,7 @@ package types import ( "errors" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" ) type RankedCidNumber struct { diff --git a/x/rank/types/query.pb.go b/x/rank/types/query.pb.go index 2cf5164d..0d27352e 100644 --- a/x/rank/types/query.pb.go +++ b/x/rank/types/query.pb.go @@ -18,7 +18,7 @@ import ( codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - query "github.com/cybercongress/go-cyber/types/query" + query "github.com/cybercongress/go-cyber/v2/types/query" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/rank/types/query.pb.gw.go b/x/rank/types/query.pb.gw.go index 56b9580b..c8a1d7e8 100644 --- a/x/rank/types/query.pb.gw.go +++ b/x/rank/types/query.pb.gw.go @@ -22,7 +22,7 @@ import ( "google.golang.org/grpc/grpclog" "google.golang.org/grpc/status" - "github.com/cybercongress/go-cyber/types/query" + "github.com/cybercongress/go-cyber/v2/types/query" ) // Suppress "imported and not used" errors diff --git a/x/rank/types/rank.go b/x/rank/types/rank.go index 6e24fabb..8d7c758d 100644 --- a/x/rank/types/rank.go +++ b/x/rank/types/rank.go @@ -6,8 +6,8 @@ import ( "sort" "time" - "github.com/cybercongress/go-cyber/merkle" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" + "github.com/cybercongress/go-cyber/v2/merkle" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/rank/wasm/interface.go b/x/rank/wasm/interface.go index e55774b9..e17c36e1 100644 --- a/x/rank/wasm/interface.go +++ b/x/rank/wasm/interface.go @@ -10,9 +10,9 @@ import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" - graphtypes "github.com/cybercongress/go-cyber/x/graph/types" + graphtypes "github.com/cybercongress/go-cyber/v2/x/graph/types" - "github.com/cybercongress/go-cyber/x/rank/keeper" + "github.com/cybercongress/go-cyber/v2/x/rank/keeper" ) type QuerierInterface interface { diff --git a/x/resources/client/cli/query.go b/x/resources/client/cli/query.go index edf6eca6..20e30f93 100644 --- a/x/resources/client/cli/query.go +++ b/x/resources/client/cli/query.go @@ -10,8 +10,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/spf13/cobra" - ctypes "github.com/cybercongress/go-cyber/types" - "github.com/cybercongress/go-cyber/x/resources/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" + "github.com/cybercongress/go-cyber/v2/x/resources/types" ) func GetQueryCmd() *cobra.Command { diff --git a/x/resources/client/cli/tx.go b/x/resources/client/cli/tx.go index 83303167..9b15b907 100644 --- a/x/resources/client/cli/tx.go +++ b/x/resources/client/cli/tx.go @@ -13,8 +13,8 @@ import ( "github.com/cosmos/cosmos-sdk/client" - ctypes "github.com/cybercongress/go-cyber/types" - "github.com/cybercongress/go-cyber/x/resources/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" + "github.com/cybercongress/go-cyber/v2/x/resources/types" ) func NewTxCmd() *cobra.Command { diff --git a/x/resources/client/rest/query.go b/x/resources/client/rest/query.go index b39d6928..678a8736 100644 --- a/x/resources/client/rest/query.go +++ b/x/resources/client/rest/query.go @@ -9,12 +9,12 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/gorilla/mux" - ctypes "github.com/cybercongress/go-cyber/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cybercongress/go-cyber/x/resources/types" + "github.com/cybercongress/go-cyber/v2/x/resources/types" ) func registerQueryRoutes(cliCtx client.Context, r *mux.Router) { diff --git a/x/resources/keeper/genesis.go b/x/resources/keeper/genesis.go index 72c8c479..a9c52ecb 100644 --- a/x/resources/keeper/genesis.go +++ b/x/resources/keeper/genesis.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/resources/types" + "github.com/cybercongress/go-cyber/v2/x/resources/types" ) func InitGenesis(ctx sdk.Context, k Keeper, data types.GenesisState) { diff --git a/x/resources/keeper/grpc_query.go b/x/resources/keeper/grpc_query.go index cd0ebe8e..c002c141 100644 --- a/x/resources/keeper/grpc_query.go +++ b/x/resources/keeper/grpc_query.go @@ -8,9 +8,9 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - ctypes "github.com/cybercongress/go-cyber/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" - "github.com/cybercongress/go-cyber/x/resources/types" + "github.com/cybercongress/go-cyber/v2/x/resources/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/resources/keeper/keeper.go b/x/resources/keeper/keeper.go index 69c96277..4becf848 100644 --- a/x/resources/keeper/keeper.go +++ b/x/resources/keeper/keeper.go @@ -13,9 +13,9 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/tendermint/tendermint/libs/log" - ctypes "github.com/cybercongress/go-cyber/types" - bandwithkeeper "github.com/cybercongress/go-cyber/x/bandwidth/keeper" - "github.com/cybercongress/go-cyber/x/resources/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" + bandwithkeeper "github.com/cybercongress/go-cyber/v2/x/bandwidth/keeper" + "github.com/cybercongress/go-cyber/v2/x/resources/types" ) type Keeper struct { diff --git a/x/resources/keeper/msg_server.go b/x/resources/keeper/msg_server.go index 7abf9e3b..5c771075 100644 --- a/x/resources/keeper/msg_server.go +++ b/x/resources/keeper/msg_server.go @@ -8,11 +8,11 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - ctypes "github.com/cybercongress/go-cyber/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cybercongress/go-cyber/x/resources/types" + "github.com/cybercongress/go-cyber/v2/x/resources/types" ) type msgServer struct { diff --git a/x/resources/keeper/querier.go b/x/resources/keeper/querier.go index fedda238..09bc46c0 100644 --- a/x/resources/keeper/querier.go +++ b/x/resources/keeper/querier.go @@ -6,9 +6,9 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" abci "github.com/tendermint/tendermint/abci/types" - ctypes "github.com/cybercongress/go-cyber/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" - "github.com/cybercongress/go-cyber/x/resources/types" + "github.com/cybercongress/go-cyber/v2/x/resources/types" ) func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier { diff --git a/x/resources/module.go b/x/resources/module.go index 58cec71e..e6fc8757 100644 --- a/x/resources/module.go +++ b/x/resources/module.go @@ -16,10 +16,10 @@ import ( "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cybercongress/go-cyber/x/resources/client/cli" - "github.com/cybercongress/go-cyber/x/resources/client/rest" - "github.com/cybercongress/go-cyber/x/resources/keeper" - "github.com/cybercongress/go-cyber/x/resources/types" + "github.com/cybercongress/go-cyber/v2/x/resources/client/cli" + "github.com/cybercongress/go-cyber/v2/x/resources/client/rest" + "github.com/cybercongress/go-cyber/v2/x/resources/keeper" + "github.com/cybercongress/go-cyber/v2/x/resources/types" ) var ( diff --git a/x/resources/types/msgs.go b/x/resources/types/msgs.go index d3ebc9e1..e86390ad 100644 --- a/x/resources/types/msgs.go +++ b/x/resources/types/msgs.go @@ -4,7 +4,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - ctypes "github.com/cybercongress/go-cyber/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" ) const ( diff --git a/x/resources/types/params.go b/x/resources/types/params.go index f52315ab..fd2de704 100644 --- a/x/resources/types/params.go +++ b/x/resources/types/params.go @@ -7,7 +7,7 @@ import ( paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" - ctypes "github.com/cybercongress/go-cyber/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" ) const ( diff --git a/x/resources/wasm/interface.go b/x/resources/wasm/interface.go index 7089d478..595b183e 100644 --- a/x/resources/wasm/interface.go +++ b/x/resources/wasm/interface.go @@ -9,7 +9,7 @@ import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" - "github.com/cybercongress/go-cyber/x/resources/types" + "github.com/cybercongress/go-cyber/v2/x/resources/types" ) var _ MsgParserInterface = MsgParser{} diff --git a/x/staking/msg_server.go b/x/staking/msg_server.go index f520fe1b..8be01e64 100644 --- a/x/staking/msg_server.go +++ b/x/staking/msg_server.go @@ -14,8 +14,8 @@ import ( "github.com/cosmos/cosmos-sdk/x/staking/types" tmstrings "github.com/tendermint/tendermint/libs/strings" - ctypes "github.com/cybercongress/go-cyber/types" - resourcestypes "github.com/cybercongress/go-cyber/x/resources/types" + ctypes "github.com/cybercongress/go-cyber/v2/types" + resourcestypes "github.com/cybercongress/go-cyber/v2/x/resources/types" ) type msgServer struct {