diff --git a/CHANGELOG.md b/CHANGELOG.md index b87b074c..187130f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,9 @@ ## Unreleased -TBD +### Bug fixes + +- [\#197](https://github.com/medibloc/panacea-core/pull/197) Add major version `v2` to `go.mod` ## [v2.0.0](https://github.com/medibloc/panacea-core/releases/tag/v2.0.0) - 2021-07-13 diff --git a/app/app.go b/app/app.go index 9e4dc9a8..96141be3 100644 --- a/app/app.go +++ b/app/app.go @@ -86,24 +86,24 @@ import ( upgradeclient "github.com/cosmos/cosmos-sdk/x/upgrade/client" upgradekeeper "github.com/cosmos/cosmos-sdk/x/upgrade/keeper" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - appparams "github.com/medibloc/panacea-core/app/params" + appparams "github.com/medibloc/panacea-core/v2/app/params" tmjson "github.com/tendermint/tendermint/libs/json" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - _ "github.com/medibloc/panacea-core/client/docs/statik" - - "github.com/medibloc/panacea-core/x/aol" - aolkeeper "github.com/medibloc/panacea-core/x/aol/keeper" - aoltypes "github.com/medibloc/panacea-core/x/aol/types" - "github.com/medibloc/panacea-core/x/burn" - burnkeeper "github.com/medibloc/panacea-core/x/burn/keeper" - burntypes "github.com/medibloc/panacea-core/x/burn/types" - "github.com/medibloc/panacea-core/x/did" - didkeeper "github.com/medibloc/panacea-core/x/did/keeper" - didtypes "github.com/medibloc/panacea-core/x/did/types" - "github.com/medibloc/panacea-core/x/token" - tokenkeeper "github.com/medibloc/panacea-core/x/token/keeper" - tokentypes "github.com/medibloc/panacea-core/x/token/types" + _ "github.com/medibloc/panacea-core/v2/client/docs/statik" + + "github.com/medibloc/panacea-core/v2/x/aol" + aolkeeper "github.com/medibloc/panacea-core/v2/x/aol/keeper" + aoltypes "github.com/medibloc/panacea-core/v2/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/burn" + burnkeeper "github.com/medibloc/panacea-core/v2/x/burn/keeper" + burntypes "github.com/medibloc/panacea-core/v2/x/burn/types" + "github.com/medibloc/panacea-core/v2/x/did" + didkeeper "github.com/medibloc/panacea-core/v2/x/did/keeper" + didtypes "github.com/medibloc/panacea-core/v2/x/did/types" + "github.com/medibloc/panacea-core/v2/x/token" + tokenkeeper "github.com/medibloc/panacea-core/v2/x/token/keeper" + tokentypes "github.com/medibloc/panacea-core/v2/x/token/types" ) const Name = "panacea" diff --git a/app/encoding.go b/app/encoding.go index ba9c80ef..94054d2d 100644 --- a/app/encoding.go +++ b/app/encoding.go @@ -2,7 +2,7 @@ package app import ( "github.com/cosmos/cosmos-sdk/std" - "github.com/medibloc/panacea-core/app/params" + "github.com/medibloc/panacea-core/v2/app/params" ) // MakeEncodingConfig creates an EncodingConfig for testing diff --git a/cmd/panacead/cmd/init.go b/cmd/panacead/cmd/init.go index 75d80cd5..5bde01ad 100644 --- a/cmd/panacead/cmd/init.go +++ b/cmd/panacead/cmd/init.go @@ -26,8 +26,8 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" "github.com/cosmos/cosmos-sdk/x/genutil" genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" - "github.com/medibloc/panacea-core/app" - "github.com/medibloc/panacea-core/types/assets" + "github.com/medibloc/panacea-core/v2/app" + "github.com/medibloc/panacea-core/v2/types/assets" "github.com/spf13/cobra" "github.com/tendermint/tendermint/types" ) diff --git a/cmd/panacead/cmd/root.go b/cmd/panacead/cmd/root.go index 3118a1c7..0bed6b6f 100644 --- a/cmd/panacead/cmd/root.go +++ b/cmd/panacead/cmd/root.go @@ -10,7 +10,7 @@ import ( "github.com/prometheus/client_golang/prometheus" "github.com/cosmos/cosmos-sdk/snapshots" - "github.com/medibloc/panacea-core/app/params" + "github.com/medibloc/panacea-core/v2/app/params" "github.com/spf13/cast" "github.com/spf13/cobra" @@ -36,7 +36,7 @@ import ( banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/cosmos/cosmos-sdk/x/crisis" genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" - "github.com/medibloc/panacea-core/app" + "github.com/medibloc/panacea-core/v2/app" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" ) diff --git a/cmd/panacead/main.go b/cmd/panacead/main.go index 2f4e1dc8..f67d1a70 100644 --- a/cmd/panacead/main.go +++ b/cmd/panacead/main.go @@ -4,8 +4,8 @@ import ( "os" svrcmd "github.com/cosmos/cosmos-sdk/server/cmd" - "github.com/medibloc/panacea-core/app" - "github.com/medibloc/panacea-core/cmd/panacead/cmd" + "github.com/medibloc/panacea-core/v2/app" + "github.com/medibloc/panacea-core/v2/cmd/panacead/cmd" ) func main() { diff --git a/go.mod b/go.mod index 70e323b6..f73b051c 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/medibloc/panacea-core +module github.com/medibloc/panacea-core/v2 go 1.15 diff --git a/types/compkey/compkey_test.go b/types/compkey/compkey_test.go index eb5b4dfc..a219c609 100644 --- a/types/compkey/compkey_test.go +++ b/types/compkey/compkey_test.go @@ -11,7 +11,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/medibloc/panacea-core/types/compkey" + "github.com/medibloc/panacea-core/v2/types/compkey" ) const ( diff --git a/types/testsuite/suite.go b/types/testsuite/suite.go index a09d6948..7a47e3c0 100644 --- a/types/testsuite/suite.go +++ b/types/testsuite/suite.go @@ -13,11 +13,11 @@ import ( capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" - aolkeeper "github.com/medibloc/panacea-core/x/aol/keeper" - aoltypes "github.com/medibloc/panacea-core/x/aol/types" - burnkeeper "github.com/medibloc/panacea-core/x/burn/keeper" - tokenkeeper "github.com/medibloc/panacea-core/x/token/keeper" - tokentypes "github.com/medibloc/panacea-core/x/token/types" + aolkeeper "github.com/medibloc/panacea-core/v2/x/aol/keeper" + aoltypes "github.com/medibloc/panacea-core/v2/x/aol/types" + burnkeeper "github.com/medibloc/panacea-core/v2/x/burn/keeper" + tokenkeeper "github.com/medibloc/panacea-core/v2/x/token/keeper" + tokentypes "github.com/medibloc/panacea-core/v2/x/token/types" "github.com/stretchr/testify/suite" "github.com/tendermint/tendermint/crypto/secp256k1" "github.com/tendermint/tendermint/libs/log" @@ -25,9 +25,9 @@ import ( "github.com/tendermint/tendermint/types/time" dbm "github.com/tendermint/tm-db" - "github.com/medibloc/panacea-core/app/params" - didkeeper "github.com/medibloc/panacea-core/x/did/keeper" - didtypes "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/app/params" + didkeeper "github.com/medibloc/panacea-core/v2/x/did/keeper" + didtypes "github.com/medibloc/panacea-core/v2/x/did/types" ) type TestSuite struct { diff --git a/x/aol/client/cli/query.go b/x/aol/client/cli/query.go index 3023f50a..baab6a27 100644 --- a/x/aol/client/cli/query.go +++ b/x/aol/client/cli/query.go @@ -10,7 +10,7 @@ import ( // "github.com/cosmos/cosmos-sdk/client/flags" // sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/aol/client/cli/queryRecord.go b/x/aol/client/cli/queryRecord.go index 6c127764..3f39e575 100644 --- a/x/aol/client/cli/queryRecord.go +++ b/x/aol/client/cli/queryRecord.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" "github.com/spf13/cobra" ) diff --git a/x/aol/client/cli/queryTopic.go b/x/aol/client/cli/queryTopic.go index f37b16d4..ee18bc89 100644 --- a/x/aol/client/cli/queryTopic.go +++ b/x/aol/client/cli/queryTopic.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" "github.com/spf13/cobra" ) diff --git a/x/aol/client/cli/queryWriter.go b/x/aol/client/cli/queryWriter.go index 7fa10ced..fa1be5a8 100644 --- a/x/aol/client/cli/queryWriter.go +++ b/x/aol/client/cli/queryWriter.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" "github.com/spf13/cobra" ) diff --git a/x/aol/client/cli/tx.go b/x/aol/client/cli/tx.go index 6956be43..ed0d6c27 100644 --- a/x/aol/client/cli/tx.go +++ b/x/aol/client/cli/tx.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" // "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" ) var ( diff --git a/x/aol/client/cli/txRecord.go b/x/aol/client/cli/txRecord.go index 201b4ae8..e00f5d7c 100644 --- a/x/aol/client/cli/txRecord.go +++ b/x/aol/client/cli/txRecord.go @@ -18,7 +18,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" ) func CmdAddRecord() *cobra.Command { diff --git a/x/aol/client/cli/txTopic.go b/x/aol/client/cli/txTopic.go index 1adef730..ef7c4484 100644 --- a/x/aol/client/cli/txTopic.go +++ b/x/aol/client/cli/txTopic.go @@ -4,7 +4,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/x/aol/client/cli/txWriter.go b/x/aol/client/cli/txWriter.go index d95455ac..4dd11b0c 100644 --- a/x/aol/client/cli/txWriter.go +++ b/x/aol/client/cli/txWriter.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" ) func CmdAddWriter() *cobra.Command { diff --git a/x/aol/genesis.go b/x/aol/genesis.go index d5800bb2..dee3521d 100644 --- a/x/aol/genesis.go +++ b/x/aol/genesis.go @@ -2,9 +2,9 @@ package aol import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/types/compkey" - "github.com/medibloc/panacea-core/x/aol/keeper" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/types/compkey" + "github.com/medibloc/panacea-core/v2/x/aol/keeper" + "github.com/medibloc/panacea-core/v2/x/aol/types" ) // InitGenesis initializes the capability module's state from a provided genesis diff --git a/x/aol/handler.go b/x/aol/handler.go index e45498a7..024b7c67 100644 --- a/x/aol/handler.go +++ b/x/aol/handler.go @@ -5,8 +5,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/medibloc/panacea-core/x/aol/keeper" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/keeper" + "github.com/medibloc/panacea-core/v2/x/aol/types" ) // NewHandler ... diff --git a/x/aol/keeper/grpc_query.go b/x/aol/keeper/grpc_query.go index 46e79481..1ae3a848 100644 --- a/x/aol/keeper/grpc_query.go +++ b/x/aol/keeper/grpc_query.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/aol/keeper/grpc_query_record.go b/x/aol/keeper/grpc_query_record.go index d4f9ff49..57d140ca 100644 --- a/x/aol/keeper/grpc_query_record.go +++ b/x/aol/keeper/grpc_query_record.go @@ -4,7 +4,7 @@ import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/aol/keeper/grpc_query_topic.go b/x/aol/keeper/grpc_query_topic.go index e7c5ca84..78c8afc5 100644 --- a/x/aol/keeper/grpc_query_topic.go +++ b/x/aol/keeper/grpc_query_topic.go @@ -3,12 +3,12 @@ package keeper import ( "context" - "github.com/medibloc/panacea-core/types/compkey" + "github.com/medibloc/panacea-core/v2/types/compkey" "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/aol/keeper/grpc_query_writer.go b/x/aol/keeper/grpc_query_writer.go index 23fb0851..192e06c9 100644 --- a/x/aol/keeper/grpc_query_writer.go +++ b/x/aol/keeper/grpc_query_writer.go @@ -3,12 +3,12 @@ package keeper import ( "context" - "github.com/medibloc/panacea-core/types/compkey" + "github.com/medibloc/panacea-core/v2/types/compkey" "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/aol/keeper/keeper.go b/x/aol/keeper/keeper.go index f5febc07..2d917c3f 100644 --- a/x/aol/keeper/keeper.go +++ b/x/aol/keeper/keeper.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" // this line is used by starport scaffolding # ibc/keeper/import ) diff --git a/x/aol/keeper/msg_server.go b/x/aol/keeper/msg_server.go index cde2e55a..266d7b31 100644 --- a/x/aol/keeper/msg_server.go +++ b/x/aol/keeper/msg_server.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" ) type msgServer struct { diff --git a/x/aol/keeper/msg_server_record.go b/x/aol/keeper/msg_server_record.go index d96c4084..4ab0aa2d 100644 --- a/x/aol/keeper/msg_server_record.go +++ b/x/aol/keeper/msg_server_record.go @@ -6,7 +6,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" ) func (k msgServer) AddRecord(goCtx context.Context, msg *types.MsgAddRecord) (*types.MsgAddRecordResponse, error) { diff --git a/x/aol/keeper/msg_server_test.go b/x/aol/keeper/msg_server_test.go index d0450d38..bfdc1a4a 100644 --- a/x/aol/keeper/msg_server_test.go +++ b/x/aol/keeper/msg_server_test.go @@ -4,8 +4,8 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/types/testsuite" - aoltypes "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/types/testsuite" + aoltypes "github.com/medibloc/panacea-core/v2/x/aol/types" "github.com/stretchr/testify/suite" ) diff --git a/x/aol/keeper/msg_server_topic.go b/x/aol/keeper/msg_server_topic.go index 1a2fb843..30ecdf60 100644 --- a/x/aol/keeper/msg_server_topic.go +++ b/x/aol/keeper/msg_server_topic.go @@ -6,7 +6,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" ) func (k msgServer) CreateTopic(goCtx context.Context, msg *types.MsgCreateTopic) (*types.MsgCreateTopicResponse, error) { diff --git a/x/aol/keeper/msg_server_writer.go b/x/aol/keeper/msg_server_writer.go index d35f22b9..07a0678c 100644 --- a/x/aol/keeper/msg_server_writer.go +++ b/x/aol/keeper/msg_server_writer.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" ) func (k msgServer) AddWriter(goCtx context.Context, msg *types.MsgAddWriter) (*types.MsgAddWriterResponse, error) { diff --git a/x/aol/keeper/owner.go b/x/aol/keeper/owner.go index 7d8a9fd0..5e88b4c2 100644 --- a/x/aol/keeper/owner.go +++ b/x/aol/keeper/owner.go @@ -3,8 +3,8 @@ package keeper import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/types/compkey" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/types/compkey" + "github.com/medibloc/panacea-core/v2/x/aol/types" ) // SetOwner set a specific owner in the store diff --git a/x/aol/keeper/owner_test.go b/x/aol/keeper/owner_test.go index 5345815d..6a242fc4 100644 --- a/x/aol/keeper/owner_test.go +++ b/x/aol/keeper/owner_test.go @@ -4,8 +4,8 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/types/testsuite" - aoltypes "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/types/testsuite" + aoltypes "github.com/medibloc/panacea-core/v2/x/aol/types" "github.com/stretchr/testify/suite" "github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto/secp256k1" diff --git a/x/aol/keeper/query.go b/x/aol/keeper/query.go index f6b0373c..e969dcc2 100644 --- a/x/aol/keeper/query.go +++ b/x/aol/keeper/query.go @@ -2,7 +2,7 @@ package keeper import ( // this line is used by starport scaffolding # 1 - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/aol/keeper/record.go b/x/aol/keeper/record.go index f98fc552..aa79420b 100644 --- a/x/aol/keeper/record.go +++ b/x/aol/keeper/record.go @@ -3,8 +3,8 @@ package keeper import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/types/compkey" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/types/compkey" + "github.com/medibloc/panacea-core/v2/x/aol/types" ) // SetRecord set a specific record in the store diff --git a/x/aol/keeper/record_test.go b/x/aol/keeper/record_test.go index 2a2648dc..e9b4251e 100644 --- a/x/aol/keeper/record_test.go +++ b/x/aol/keeper/record_test.go @@ -1,12 +1,13 @@ package keeper_test import ( + "testing" + sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/types/testsuite" - aoltypes "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/types/testsuite" + aoltypes "github.com/medibloc/panacea-core/v2/x/aol/types" "github.com/stretchr/testify/suite" "github.com/tendermint/tendermint/crypto/secp256k1" - "testing" ) var ( @@ -31,11 +32,11 @@ func (suite recordTestSuite) TestOneRecord() { key := aoltypes.RecordCompositeKey{ OwnerAddress: recordAddress, TopicName: topicName, - Offset: 0, + Offset: 0, } record := aoltypes.Record{ - Key: []byte("recordKey"), - Value: []byte("recordValue"), + Key: []byte("recordKey"), + Value: []byte("recordValue"), NanoTimestamp: ctx.BlockTime().UnixNano(), WriterAddress: address.String(), } @@ -61,22 +62,22 @@ func (suite recordTestSuite) TestMultiRecord() { key := aoltypes.RecordCompositeKey{ OwnerAddress: recordAddress, TopicName: topicName, - Offset: 0, + Offset: 0, } key2 := aoltypes.RecordCompositeKey{ OwnerAddress: recordAddress, TopicName: topicName, - Offset: 1, + Offset: 1, } record := aoltypes.Record{ - Key: []byte("recordKey"), - Value: []byte("recordValue"), + Key: []byte("recordKey"), + Value: []byte("recordValue"), NanoTimestamp: ctx.BlockTime().UnixNano(), WriterAddress: address.String(), } record2 := aoltypes.Record{ - Key: []byte("recordKey2"), - Value: []byte("recordValue2"), + Key: []byte("recordKey2"), + Value: []byte("recordValue2"), NanoTimestamp: ctx.BlockTime().UnixNano(), WriterAddress: address.String(), } @@ -98,4 +99,4 @@ func (suite recordTestSuite) TestMultiRecord() { suite.Require().Equal(2, len(resultRecords)) suite.Require().Contains(resultRecords, record) suite.Require().Contains(resultRecords, record2) -} \ No newline at end of file +} diff --git a/x/aol/keeper/topic.go b/x/aol/keeper/topic.go index 030e4743..c692136d 100644 --- a/x/aol/keeper/topic.go +++ b/x/aol/keeper/topic.go @@ -3,8 +3,8 @@ package keeper import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/types/compkey" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/types/compkey" + "github.com/medibloc/panacea-core/v2/x/aol/types" ) // SetTopic set a specific topic in the store diff --git a/x/aol/keeper/topic_test.go b/x/aol/keeper/topic_test.go index 2f3a9e7d..2697a87b 100644 --- a/x/aol/keeper/topic_test.go +++ b/x/aol/keeper/topic_test.go @@ -1,12 +1,13 @@ package keeper_test import ( + "testing" + sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/types/testsuite" - aoltypes "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/types/testsuite" + aoltypes "github.com/medibloc/panacea-core/v2/x/aol/types" "github.com/stretchr/testify/suite" "github.com/tendermint/tendermint/crypto/secp256k1" - "testing" ) var ( diff --git a/x/aol/keeper/writer.go b/x/aol/keeper/writer.go index 80adf10b..87a8d189 100644 --- a/x/aol/keeper/writer.go +++ b/x/aol/keeper/writer.go @@ -3,8 +3,8 @@ package keeper import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/types/compkey" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/types/compkey" + "github.com/medibloc/panacea-core/v2/x/aol/types" ) // SetWriter set a specific writer in the store diff --git a/x/aol/module.go b/x/aol/module.go index 1e8e4918..fae9fad2 100644 --- a/x/aol/module.go +++ b/x/aol/module.go @@ -16,9 +16,9 @@ import ( cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/medibloc/panacea-core/x/aol/client/cli" - "github.com/medibloc/panacea-core/x/aol/keeper" - "github.com/medibloc/panacea-core/x/aol/types" + "github.com/medibloc/panacea-core/v2/x/aol/client/cli" + "github.com/medibloc/panacea-core/v2/x/aol/keeper" + "github.com/medibloc/panacea-core/v2/x/aol/types" // this line is used by starport scaffolding # ibc/module/import ) diff --git a/x/aol/types/genesis.go b/x/aol/types/genesis.go index 95c41091..0a42790f 100644 --- a/x/aol/types/genesis.go +++ b/x/aol/types/genesis.go @@ -1,6 +1,6 @@ package types -import "github.com/medibloc/panacea-core/types/compkey" +import "github.com/medibloc/panacea-core/v2/types/compkey" // this line is used by starport scaffolding # ibc/genesistype/import diff --git a/x/aol/types/keys.go b/x/aol/types/keys.go index f0952df0..4bd51326 100644 --- a/x/aol/types/keys.go +++ b/x/aol/types/keys.go @@ -5,7 +5,7 @@ import ( "strconv" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/types/compkey" + "github.com/medibloc/panacea-core/v2/types/compkey" ) const ( diff --git a/x/aol/types/topic_test.go b/x/aol/types/topic_test.go index f9004c1e..e80a9fdd 100644 --- a/x/aol/types/topic_test.go +++ b/x/aol/types/topic_test.go @@ -1,11 +1,12 @@ package types_test import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/aol/types" - "github.com/stretchr/testify/require" "os" "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/medibloc/panacea-core/v2/x/aol/types" + "github.com/stretchr/testify/require" ) func TestMain(m *testing.M) { @@ -20,7 +21,7 @@ func TestIncrease_Decrease(t *testing.T) { topic := types.Topic{ TotalRecords: 0, TotalWriters: 0, - Description: "test topic", + Description: "test topic", } topic = topic.IncreaseTotalWriters() @@ -37,4 +38,4 @@ func TestIncrease_Decrease(t *testing.T) { require.Equal(t, uint64(0), topic.TotalWriters) require.Equal(t, uint64(1), topic.TotalRecords) require.Equal(t, "test topic", topic.GetDescription()) -} \ No newline at end of file +} diff --git a/x/burn/genesis.go b/x/burn/genesis.go index d0500c76..2f69c88f 100644 --- a/x/burn/genesis.go +++ b/x/burn/genesis.go @@ -2,8 +2,8 @@ package burn import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/burn/keeper" - "github.com/medibloc/panacea-core/x/burn/types" + "github.com/medibloc/panacea-core/v2/x/burn/keeper" + "github.com/medibloc/panacea-core/v2/x/burn/types" ) // InitGenesis initializes the capability module's state from a provided genesis diff --git a/x/burn/handler.go b/x/burn/handler.go index 9ea878bf..3e9f5eb0 100644 --- a/x/burn/handler.go +++ b/x/burn/handler.go @@ -5,8 +5,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/medibloc/panacea-core/x/burn/keeper" - "github.com/medibloc/panacea-core/x/burn/types" + "github.com/medibloc/panacea-core/v2/x/burn/keeper" + "github.com/medibloc/panacea-core/v2/x/burn/types" ) // NewHandler ... diff --git a/x/burn/keeper/burn_test.go b/x/burn/keeper/burn_test.go index 4df66dea..bcbfb5bc 100644 --- a/x/burn/keeper/burn_test.go +++ b/x/burn/keeper/burn_test.go @@ -1,14 +1,15 @@ package keeper_test import ( - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/medibloc/panacea-core/types/testsuite" "testing" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/medibloc/panacea-core/v2/types/testsuite" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/suite" - "github.com/medibloc/panacea-core/types/assets" + "github.com/medibloc/panacea-core/v2/types/assets" "github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto/secp256k1" ) diff --git a/x/burn/keeper/keeper.go b/x/burn/keeper/keeper.go index 4d9c684c..bcf2e9f3 100644 --- a/x/burn/keeper/keeper.go +++ b/x/burn/keeper/keeper.go @@ -6,7 +6,7 @@ import ( "github.com/tendermint/tendermint/libs/log" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/burn/types" + "github.com/medibloc/panacea-core/v2/x/burn/types" ) type ( diff --git a/x/burn/module.go b/x/burn/module.go index 485b1b17..60f3794f 100644 --- a/x/burn/module.go +++ b/x/burn/module.go @@ -17,8 +17,8 @@ import ( cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/medibloc/panacea-core/x/burn/keeper" - "github.com/medibloc/panacea-core/x/burn/types" + "github.com/medibloc/panacea-core/v2/x/burn/keeper" + "github.com/medibloc/panacea-core/v2/x/burn/types" ) var ( diff --git a/x/did/client/cli/query.go b/x/did/client/cli/query.go index f79ba076..80957439 100644 --- a/x/did/client/cli/query.go +++ b/x/did/client/cli/query.go @@ -10,7 +10,7 @@ import ( // "github.com/cosmos/cosmos-sdk/client/flags" // sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/x/did/types" ) // GetQueryCmd returns the cli query commands for this module @@ -28,7 +28,5 @@ func GetQueryCmd(queryRoute string) *cobra.Command { cmd.AddCommand(CmdGetDID()) - - return cmd + return cmd } - diff --git a/x/did/client/cli/queryDID.go b/x/did/client/cli/queryDID.go index d47db8b9..e3f250c9 100644 --- a/x/did/client/cli/queryDID.go +++ b/x/did/client/cli/queryDID.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/x/did/types" "github.com/spf13/cobra" ) diff --git a/x/did/client/cli/tx.go b/x/did/client/cli/tx.go index af4edc20..bf81be1c 100644 --- a/x/did/client/cli/tx.go +++ b/x/did/client/cli/tx.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" // "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/x/did/types" ) // GetTxCmd returns the transaction commands for this module diff --git a/x/did/client/cli/txDID.go b/x/did/client/cli/txDID.go index d49b7d45..5bb7ba29 100644 --- a/x/did/client/cli/txDID.go +++ b/x/did/client/cli/txDID.go @@ -19,15 +19,15 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/go-bip39" - "github.com/medibloc/panacea-core/x/did/internal/secp256k1util" + "github.com/medibloc/panacea-core/v2/x/did/internal/secp256k1util" "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto/secp256k1" "github.com/tendermint/tendermint/libs/cli" - didcrypto "github.com/medibloc/panacea-core/x/did/client/crypto" - "github.com/medibloc/panacea-core/x/did/types" + didcrypto "github.com/medibloc/panacea-core/v2/x/did/client/crypto" + "github.com/medibloc/panacea-core/v2/x/did/types" ) const ( diff --git a/x/did/client/cli/txDID_test.go b/x/did/client/cli/txDID_test.go index 682cc1d1..80f4e07f 100644 --- a/x/did/client/cli/txDID_test.go +++ b/x/did/client/cli/txDID_test.go @@ -11,10 +11,10 @@ import ( "github.com/stretchr/testify/suite" - "github.com/medibloc/panacea-core/types/testsuite" - "github.com/medibloc/panacea-core/x/did/client/crypto" - "github.com/medibloc/panacea-core/x/did/internal/secp256k1util" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/types/testsuite" + "github.com/medibloc/panacea-core/v2/x/did/client/crypto" + "github.com/medibloc/panacea-core/v2/x/did/internal/secp256k1util" + "github.com/medibloc/panacea-core/v2/x/did/types" ) type txTestSuite struct { diff --git a/x/did/client/crypto/keygen_test.go b/x/did/client/crypto/keygen_test.go index d9c89de5..46609ea6 100644 --- a/x/did/client/crypto/keygen_test.go +++ b/x/did/client/crypto/keygen_test.go @@ -1,11 +1,12 @@ package crypto_test import ( - "github.com/stretchr/testify/suite" "testing" - "github.com/medibloc/panacea-core/types/testsuite" - "github.com/medibloc/panacea-core/x/did/client/crypto" + "github.com/stretchr/testify/suite" + + "github.com/medibloc/panacea-core/v2/types/testsuite" + "github.com/medibloc/panacea-core/v2/x/did/client/crypto" "github.com/tendermint/tendermint/crypto/secp256k1" ) diff --git a/x/did/client/crypto/keystore_test.go b/x/did/client/crypto/keystore_test.go index c662e210..cac6d120 100644 --- a/x/did/client/crypto/keystore_test.go +++ b/x/did/client/crypto/keystore_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/suite" "github.com/tendermint/tendermint/crypto/secp256k1" - "github.com/medibloc/panacea-core/types/testsuite" - "github.com/medibloc/panacea-core/x/did/client/crypto" + "github.com/medibloc/panacea-core/v2/types/testsuite" + "github.com/medibloc/panacea-core/v2/x/did/client/crypto" ) var ( diff --git a/x/did/genesis.go b/x/did/genesis.go index ea07fdaf..ee1ea0ba 100644 --- a/x/did/genesis.go +++ b/x/did/genesis.go @@ -2,8 +2,8 @@ package did import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/did/keeper" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/x/did/keeper" + "github.com/medibloc/panacea-core/v2/x/did/types" ) // InitGenesis initializes the capability module's state from a provided genesis diff --git a/x/did/genesis_test.go b/x/did/genesis_test.go index a6f356f0..4c31e415 100644 --- a/x/did/genesis_test.go +++ b/x/did/genesis_test.go @@ -3,14 +3,14 @@ package did import ( "testing" - "github.com/medibloc/panacea-core/x/did/internal/secp256k1util" + "github.com/medibloc/panacea-core/v2/x/did/internal/secp256k1util" "github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto/secp256k1" "github.com/stretchr/testify/suite" - "github.com/medibloc/panacea-core/types/testsuite" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/types/testsuite" + "github.com/medibloc/panacea-core/v2/x/did/types" ) type genesisTestSuite struct { diff --git a/x/did/handler.go b/x/did/handler.go index e2f74b33..3467ed94 100644 --- a/x/did/handler.go +++ b/x/did/handler.go @@ -5,8 +5,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/medibloc/panacea-core/x/did/keeper" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/x/did/keeper" + "github.com/medibloc/panacea-core/v2/x/did/types" ) // NewHandler ... diff --git a/x/did/keeper/did.go b/x/did/keeper/did.go index 747aba43..f7994702 100644 --- a/x/did/keeper/did.go +++ b/x/did/keeper/did.go @@ -3,7 +3,7 @@ package keeper import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/x/did/types" ) func (k Keeper) SetDIDDocument(ctx sdk.Context, did string, doc types.DIDDocumentWithSeq) { diff --git a/x/did/keeper/did_test.go b/x/did/keeper/did_test.go index 4b104aae..8c55a684 100644 --- a/x/did/keeper/did_test.go +++ b/x/did/keeper/did_test.go @@ -8,9 +8,9 @@ import ( "github.com/stretchr/testify/suite" - "github.com/medibloc/panacea-core/types/testsuite" - "github.com/medibloc/panacea-core/x/did/internal/secp256k1util" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/types/testsuite" + "github.com/medibloc/panacea-core/v2/x/did/internal/secp256k1util" + "github.com/medibloc/panacea-core/v2/x/did/types" ) type didTestSuite struct { diff --git a/x/did/keeper/grpc_query.go b/x/did/keeper/grpc_query.go index 2187b2f5..30aa1c89 100644 --- a/x/did/keeper/grpc_query.go +++ b/x/did/keeper/grpc_query.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/x/did/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/did/keeper/grpc_query_did.go b/x/did/keeper/grpc_query_did.go index ba4489fd..4bd09748 100644 --- a/x/did/keeper/grpc_query_did.go +++ b/x/did/keeper/grpc_query_did.go @@ -5,7 +5,7 @@ import ( "encoding/base64" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/x/did/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/did/keeper/grpc_query_did_test.go b/x/did/keeper/grpc_query_did_test.go index 05da46fe..41da8bc3 100644 --- a/x/did/keeper/grpc_query_did_test.go +++ b/x/did/keeper/grpc_query_did_test.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/suite" - "github.com/medibloc/panacea-core/types/testsuite" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/types/testsuite" + "github.com/medibloc/panacea-core/v2/x/did/types" ) type queryDIDTestSuite struct { diff --git a/x/did/keeper/keeper.go b/x/did/keeper/keeper.go index b252c16a..8200e207 100644 --- a/x/did/keeper/keeper.go +++ b/x/did/keeper/keeper.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/x/did/types" ) type ( diff --git a/x/did/keeper/msg_server.go b/x/did/keeper/msg_server.go index 2cbcc936..c1b3a543 100644 --- a/x/did/keeper/msg_server.go +++ b/x/did/keeper/msg_server.go @@ -1,6 +1,6 @@ package keeper -import "github.com/medibloc/panacea-core/x/did/types" +import "github.com/medibloc/panacea-core/v2/x/did/types" type msgServer struct { Keeper @@ -10,4 +10,4 @@ func NewMsgServerImpl(keeper Keeper) types.MsgServer { return &msgServer{Keeper: keeper} } -var _ types.MsgServer = msgServer{} \ No newline at end of file +var _ types.MsgServer = msgServer{} diff --git a/x/did/keeper/msg_server_did.go b/x/did/keeper/msg_server_did.go index 1ecb8597..862b1220 100644 --- a/x/did/keeper/msg_server_did.go +++ b/x/did/keeper/msg_server_did.go @@ -5,8 +5,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/medibloc/panacea-core/x/did/internal/secp256k1util" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/x/did/internal/secp256k1util" + "github.com/medibloc/panacea-core/v2/x/did/types" ) func (m msgServer) CreateDID(goCtx context.Context, msg *types.MsgCreateDID) (*types.MsgCreateDIDResponse, error) { diff --git a/x/did/keeper/msg_server_did_test.go b/x/did/keeper/msg_server_did_test.go index be0110e2..e350e8a5 100644 --- a/x/did/keeper/msg_server_did_test.go +++ b/x/did/keeper/msg_server_did_test.go @@ -4,10 +4,10 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/types/testsuite" - "github.com/medibloc/panacea-core/x/did/internal/secp256k1util" - didkeeper "github.com/medibloc/panacea-core/x/did/keeper" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/types/testsuite" + "github.com/medibloc/panacea-core/v2/x/did/internal/secp256k1util" + didkeeper "github.com/medibloc/panacea-core/v2/x/did/keeper" + "github.com/medibloc/panacea-core/v2/x/did/types" "github.com/stretchr/testify/suite" "github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto/secp256k1" diff --git a/x/did/keeper/private_test.go b/x/did/keeper/private_test.go index 093e39a9..b9e71f1e 100644 --- a/x/did/keeper/private_test.go +++ b/x/did/keeper/private_test.go @@ -3,12 +3,12 @@ package keeper import ( "testing" - "github.com/medibloc/panacea-core/x/did/internal/secp256k1util" + "github.com/medibloc/panacea-core/v2/x/did/internal/secp256k1util" "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto/secp256k1" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/x/did/types" ) func TestVerifyDIDOwnership(t *testing.T) { diff --git a/x/did/keeper/query.go b/x/did/keeper/query.go index 7f35e9be..beb5e810 100644 --- a/x/did/keeper/query.go +++ b/x/did/keeper/query.go @@ -2,14 +2,11 @@ package keeper import ( // this line is used by starport scaffolding # 1 -"github.com/medibloc/panacea-core/x/did/types" - - + "github.com/medibloc/panacea-core/v2/x/did/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/did/module.go b/x/did/module.go index 6d3c7a02..6b44d461 100644 --- a/x/did/module.go +++ b/x/did/module.go @@ -16,9 +16,9 @@ import ( cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/medibloc/panacea-core/x/did/client/cli" - "github.com/medibloc/panacea-core/x/did/keeper" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/x/did/client/cli" + "github.com/medibloc/panacea-core/v2/x/did/keeper" + "github.com/medibloc/panacea-core/v2/x/did/types" ) var ( diff --git a/x/did/types/did_test.go b/x/did/types/did_test.go index 9730f291..6ec04027 100644 --- a/x/did/types/did_test.go +++ b/x/did/types/did_test.go @@ -12,8 +12,8 @@ import ( "github.com/btcsuite/btcutil/base58" "github.com/tendermint/tendermint/crypto/secp256k1" - "github.com/medibloc/panacea-core/x/did/internal/secp256k1util" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/x/did/internal/secp256k1util" + "github.com/medibloc/panacea-core/v2/x/did/types" ) func TestMain(m *testing.M) { diff --git a/x/did/types/genesis_keys_test.go b/x/did/types/genesis_keys_test.go index 33a20f1e..335604d9 100644 --- a/x/did/types/genesis_keys_test.go +++ b/x/did/types/genesis_keys_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/x/did/types" "github.com/stretchr/testify/require" ) diff --git a/x/did/types/genesis_test.go b/x/did/types/genesis_test.go index d15d6323..0d3f4da2 100644 --- a/x/did/types/genesis_test.go +++ b/x/did/types/genesis_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/x/did/types" "github.com/stretchr/testify/require" ) diff --git a/x/did/types/messages_did_test.go b/x/did/types/messages_did_test.go index a4388428..aee2c68c 100644 --- a/x/did/types/messages_did_test.go +++ b/x/did/types/messages_did_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/did/internal/secp256k1util" - "github.com/medibloc/panacea-core/x/did/types" + "github.com/medibloc/panacea-core/v2/x/did/internal/secp256k1util" + "github.com/medibloc/panacea-core/v2/x/did/types" ) func TestMsgCreateDID(t *testing.T) { diff --git a/x/token/client/cli/query.go b/x/token/client/cli/query.go index df8f93d6..bd5c728c 100644 --- a/x/token/client/cli/query.go +++ b/x/token/client/cli/query.go @@ -10,7 +10,7 @@ import ( // "github.com/cosmos/cosmos-sdk/client/flags" // sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/token/types" + "github.com/medibloc/panacea-core/v2/x/token/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/token/client/cli/queryToken.go b/x/token/client/cli/queryToken.go index db3f3202..2fbcaef0 100644 --- a/x/token/client/cli/queryToken.go +++ b/x/token/client/cli/queryToken.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/medibloc/panacea-core/x/token/types" + "github.com/medibloc/panacea-core/v2/x/token/types" "github.com/spf13/cobra" ) diff --git a/x/token/client/cli/tx.go b/x/token/client/cli/tx.go index fb71efa1..7a0e7432 100644 --- a/x/token/client/cli/tx.go +++ b/x/token/client/cli/tx.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" // "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/medibloc/panacea-core/x/token/types" + "github.com/medibloc/panacea-core/v2/x/token/types" ) var ( diff --git a/x/token/client/cli/txToken.go b/x/token/client/cli/txToken.go index b2ec9109..a05c4755 100644 --- a/x/token/client/cli/txToken.go +++ b/x/token/client/cli/txToken.go @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/medibloc/panacea-core/x/token/types" + "github.com/medibloc/panacea-core/v2/x/token/types" ) const ( diff --git a/x/token/genesis.go b/x/token/genesis.go index 1a39beba..dae34fe1 100644 --- a/x/token/genesis.go +++ b/x/token/genesis.go @@ -2,8 +2,8 @@ package token import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/token/keeper" - "github.com/medibloc/panacea-core/x/token/types" + "github.com/medibloc/panacea-core/v2/x/token/keeper" + "github.com/medibloc/panacea-core/v2/x/token/types" ) // InitGenesis initializes the capability module's state from a provided genesis diff --git a/x/token/handler.go b/x/token/handler.go index 5f1f6767..ea2b1c0c 100644 --- a/x/token/handler.go +++ b/x/token/handler.go @@ -5,8 +5,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/medibloc/panacea-core/x/token/keeper" - "github.com/medibloc/panacea-core/x/token/types" + "github.com/medibloc/panacea-core/v2/x/token/keeper" + "github.com/medibloc/panacea-core/v2/x/token/types" ) // NewHandler ... diff --git a/x/token/keeper/grpc_query.go b/x/token/keeper/grpc_query.go index 4402a217..9108d70b 100644 --- a/x/token/keeper/grpc_query.go +++ b/x/token/keeper/grpc_query.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/medibloc/panacea-core/x/token/types" + "github.com/medibloc/panacea-core/v2/x/token/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/token/keeper/grpc_query_token.go b/x/token/keeper/grpc_query_token.go index fc565bf3..b8c0320c 100644 --- a/x/token/keeper/grpc_query_token.go +++ b/x/token/keeper/grpc_query_token.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" - "github.com/medibloc/panacea-core/x/token/types" + "github.com/medibloc/panacea-core/v2/x/token/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/token/keeper/keeper.go b/x/token/keeper/keeper.go index 08279308..1f32c193 100644 --- a/x/token/keeper/keeper.go +++ b/x/token/keeper/keeper.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/token/types" + "github.com/medibloc/panacea-core/v2/x/token/types" // this line is used by starport scaffolding # ibc/keeper/import ) diff --git a/x/token/keeper/msg_server.go b/x/token/keeper/msg_server.go index 13817e76..ee49a60d 100644 --- a/x/token/keeper/msg_server.go +++ b/x/token/keeper/msg_server.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/medibloc/panacea-core/x/token/types" + "github.com/medibloc/panacea-core/v2/x/token/types" ) type msgServer struct { diff --git a/x/token/keeper/msg_server_token.go b/x/token/keeper/msg_server_token.go index 8fc6dfa6..c5410da2 100644 --- a/x/token/keeper/msg_server_token.go +++ b/x/token/keeper/msg_server_token.go @@ -8,7 +8,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/medibloc/panacea-core/x/token/types" + "github.com/medibloc/panacea-core/v2/x/token/types" ) func (k msgServer) IssueToken(goCtx context.Context, msg *types.MsgIssueToken) (*types.MsgIssueTokenResponse, error) { diff --git a/x/token/keeper/query.go b/x/token/keeper/query.go index 45491271..63e48b52 100644 --- a/x/token/keeper/query.go +++ b/x/token/keeper/query.go @@ -2,7 +2,7 @@ package keeper import ( // this line is used by starport scaffolding # 1 - "github.com/medibloc/panacea-core/x/token/types" + "github.com/medibloc/panacea-core/v2/x/token/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/token/keeper/token.go b/x/token/keeper/token.go index 4d487979..18bcd827 100644 --- a/x/token/keeper/token.go +++ b/x/token/keeper/token.go @@ -3,7 +3,7 @@ package keeper import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/x/token/types" + "github.com/medibloc/panacea-core/v2/x/token/types" ) // SetToken set a specific token in the store diff --git a/x/token/keeper/token_test.go b/x/token/keeper/token_test.go index a4757516..5bb275b5 100644 --- a/x/token/keeper/token_test.go +++ b/x/token/keeper/token_test.go @@ -1,18 +1,19 @@ package keeper_test import ( + "testing" + sdk "github.com/cosmos/cosmos-sdk/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - tokentypes "github.com/medibloc/panacea-core/x/token/types" + tokentypes "github.com/medibloc/panacea-core/v2/x/token/types" "github.com/tendermint/tendermint/crypto/secp256k1" - "testing" - "github.com/medibloc/panacea-core/types/testsuite" + "github.com/medibloc/panacea-core/v2/types/testsuite" "github.com/stretchr/testify/suite" ) var ( - pubKey = secp256k1.GenPrivKey().PubKey() + pubKey = secp256k1.GenPrivKey().PubKey() ownerAddress = sdk.AccAddress(pubKey.Address()) ) @@ -23,7 +24,6 @@ type tokenTestSuite struct { func TestTokenTestSuite(t *testing.T) { suite.Run(t, new(tokenTestSuite)) - } func (suite *tokenTestSuite) BeforeTest(_, _ string) { @@ -45,7 +45,6 @@ func (suite tokenTestSuite) TestTokenOneSymbol() { TotalSupply: totalCoin, Mintable: true, OwnerAddress: ownerAddress.String(), - } tokenKeeper.SetToken(ctx, token) @@ -133,7 +132,6 @@ func (suite tokenTestSuite) TestInvalidFromAddress() { TotalSupply: totalCoin, Mintable: true, OwnerAddress: "invalid address", - } tokenKeeper.SetToken(ctx, token) @@ -160,7 +158,6 @@ func (suite tokenTestSuite) TestInvalidNewCoin() { TotalSupply: totalCoin, Mintable: true, OwnerAddress: ownerAddress.String(), - } tokenKeeper.SetToken(ctx, token) diff --git a/x/token/module.go b/x/token/module.go index 21a30535..817f88e8 100644 --- a/x/token/module.go +++ b/x/token/module.go @@ -16,9 +16,9 @@ import ( cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/medibloc/panacea-core/x/token/client/cli" - "github.com/medibloc/panacea-core/x/token/keeper" - "github.com/medibloc/panacea-core/x/token/types" + "github.com/medibloc/panacea-core/v2/x/token/client/cli" + "github.com/medibloc/panacea-core/v2/x/token/keeper" + "github.com/medibloc/panacea-core/v2/x/token/types" // this line is used by starport scaffolding # ibc/module/import ) diff --git a/x/token/types/types.go b/x/token/types/types.go index e0818077..397f8b85 100644 --- a/x/token/types/types.go +++ b/x/token/types/types.go @@ -8,7 +8,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/medibloc/panacea-core/types/assets" + "github.com/medibloc/panacea-core/v2/types/assets" ) const (