Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update module path to v2 #3

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/monerium/module-noble
module github.com/monerium/module-noble/v2

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion proto/florin/blacklist/v1/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package florin.blacklist.v1;

import "gogoproto/gogo.proto";

option go_package = "github.com/monerium/module-noble/x/florin/types/blacklist";
option go_package = "github.com/monerium/module-noble/v2/x/florin/types/blacklist";

// Emitted when a validator makes a decision.
message Decision {
Expand Down
2 changes: 1 addition & 1 deletion proto/florin/blacklist/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package florin.blacklist.v1;

option go_package = "github.com/monerium/module-noble/x/florin/types/blacklist";
option go_package = "github.com/monerium/module-noble/v2/x/florin/types/blacklist";

message GenesisState {
string owner = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/florin/blacklist/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package florin.blacklist.v1;

import "google/api/annotations.proto";

option go_package = "github.com/monerium/module-noble/x/florin/types/blacklist";
option go_package = "github.com/monerium/module-noble/v2/x/florin/types/blacklist";

service Query {
rpc Owner(QueryOwner) returns (QueryOwnerResponse) {
Expand Down
2 changes: 1 addition & 1 deletion proto/florin/blacklist/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package florin.blacklist.v1;

import "gogoproto/gogo.proto";

option go_package = "github.com/monerium/module-noble/x/florin/types/blacklist";
option go_package = "github.com/monerium/module-noble/v2/x/florin/types/blacklist";

service Msg {
rpc AcceptOwnership(MsgAcceptOwnership) returns (MsgAcceptOwnershipResponse);
Expand Down
2 changes: 1 addition & 1 deletion proto/florin/v1/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package florin.v1;

import "gogoproto/gogo.proto";

option go_package = "github.com/monerium/module-noble/x/florin/types";
option go_package = "github.com/monerium/module-noble/v2/x/florin/types";

// Emitted when a denom is allowed.
message DenomAllowed {
Expand Down
2 changes: 1 addition & 1 deletion proto/florin/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package florin.v1;
import "florin/blacklist/v1/genesis.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/monerium/module-noble/x/florin/types";
option go_package = "github.com/monerium/module-noble/v2/x/florin/types";

message GenesisState {
// blacklist_state is the genesis state of the blacklist submodule.
Expand Down
2 changes: 1 addition & 1 deletion proto/florin/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "florin/v1/genesis.proto";
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";

option go_package = "github.com/monerium/module-noble/x/florin/types";
option go_package = "github.com/monerium/module-noble/v2/x/florin/types";

service Query {
rpc AllowedDenoms(QueryAllowedDenoms) returns (QueryAllowedDenomsResponse) {
Expand Down
2 changes: 1 addition & 1 deletion proto/florin/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package florin.v1;

import "gogoproto/gogo.proto";

option go_package = "github.com/monerium/module-noble/x/florin/types";
option go_package = "github.com/monerium/module-noble/v2/x/florin/types";

service Msg {
rpc AcceptOwnership(MsgAcceptOwnership) returns (MsgAcceptOwnershipResponse);
Expand Down
2 changes: 1 addition & 1 deletion proto/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ cd proto
buf generate --template buf.gen.gogo.yaml
cd ..

cp -r github.com/monerium/module-noble/* ./
cp -r github.com/monerium/module-noble/v2/* ./
rm -rf github.com
6 changes: 3 additions & 3 deletions simapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ import (
tmos "github.com/tendermint/tendermint/libs/os"
dbm "github.com/tendermint/tm-db"

"github.com/monerium/module-noble/x/florin"
florinkeeper "github.com/monerium/module-noble/x/florin/keeper"
florintypes "github.com/monerium/module-noble/x/florin/types"
"github.com/monerium/module-noble/v2/x/florin"
florinkeeper "github.com/monerium/module-noble/v2/x/florin/keeper"
florintypes "github.com/monerium/module-noble/v2/x/florin/types"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions simapp/go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module github.com/monerium/module-noble/simapp
module github.com/monerium/module-noble/v2/simapp

go 1.21

require (
github.com/cosmos/cosmos-sdk v0.45.16
github.com/monerium/module-noble v1.0.0
github.com/monerium/module-noble/v2 v2.0.0
github.com/spf13/cast v1.5.1
github.com/spf13/cobra v1.7.0
github.com/tendermint/tendermint v0.34.27
Expand Down Expand Up @@ -157,7 +157,7 @@ replace (
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1

// use local monerium/module-noble
github.com/monerium/module-noble => ../
github.com/monerium/module-noble/v2 => ../

// use cosmos compatible syndtr/goleveldb
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
Expand Down
2 changes: 1 addition & 1 deletion simapp/simd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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/monerium/module-noble/simapp"
"github.com/monerium/module-noble/v2/simapp"
"github.com/spf13/cast"
"github.com/spf13/cobra"
tmcli "github.com/tendermint/tendermint/libs/cli"
Expand Down
4 changes: 2 additions & 2 deletions simapp/simd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/monerium/module-noble/simapp"
"github.com/monerium/module-noble/simapp/simd/cmd"
"github.com/monerium/module-noble/v2/simapp"
"github.com/monerium/module-noble/v2/simapp/simd/cmd"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion utils/mocks/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package mocks
import (
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/monerium/module-noble/x/florin/types"
"github.com/monerium/module-noble/v2/x/florin/types"
)

var _ types.AccountKeeper = AccountKeeper{}
Expand Down
2 changes: 1 addition & 1 deletion utils/mocks/bank.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/errors"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/monerium/module-noble/x/florin/types"
"github.com/monerium/module-noble/v2/x/florin/types"
)

var _ types.BankKeeper = BankKeeper{}
Expand Down
6 changes: 3 additions & 3 deletions utils/mocks/florin.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
"github.com/cosmos/cosmos-sdk/testutil"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/monerium/module-noble/x/florin"
"github.com/monerium/module-noble/x/florin/keeper"
"github.com/monerium/module-noble/x/florin/types"
"github.com/monerium/module-noble/v2/x/florin"
"github.com/monerium/module-noble/v2/x/florin/keeper"
"github.com/monerium/module-noble/v2/x/florin/types"
)

func FlorinKeeper() (*keeper.Keeper, sdk.Context) {
Expand Down
2 changes: 1 addition & 1 deletion x/florin/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/gogo/protobuf/proto"
"github.com/monerium/module-noble/x/florin/types"
"github.com/monerium/module-noble/v2/x/florin/types"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion x/florin/client/cli/query_blacklist.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/monerium/module-noble/x/florin/types/blacklist"
"github.com/monerium/module-noble/v2/x/florin/types/blacklist"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion x/florin/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/monerium/module-noble/x/florin/types"
"github.com/monerium/module-noble/v2/x/florin/types"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion x/florin/client/cli/tx_blacklist.go
Original file line number Diff line number Diff line change
Expand Up @@ -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/monerium/module-noble/x/florin/types/blacklist"
"github.com/monerium/module-noble/v2/x/florin/types/blacklist"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions x/florin/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ package florin

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/monerium/module-noble/x/florin/keeper"
"github.com/monerium/module-noble/x/florin/types"
"github.com/monerium/module-noble/x/florin/types/blacklist"
"github.com/monerium/module-noble/v2/x/florin/keeper"
"github.com/monerium/module-noble/v2/x/florin/types"
"github.com/monerium/module-noble/v2/x/florin/types/blacklist"
)

func InitGenesis(ctx sdk.Context, k *keeper.Keeper, genesis types.GenesisState) {
Expand Down
4 changes: 2 additions & 2 deletions x/florin/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (

storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/monerium/module-noble/x/florin/types"
"github.com/monerium/module-noble/x/florin/types/blacklist"
"github.com/monerium/module-noble/v2/x/florin/types"
"github.com/monerium/module-noble/v2/x/florin/types/blacklist"
)

type Keeper struct {
Expand Down
4 changes: 2 additions & 2 deletions x/florin/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/monerium/module-noble/utils"
"github.com/monerium/module-noble/utils/mocks"
"github.com/monerium/module-noble/v2/utils"
"github.com/monerium/module-noble/v2/utils/mocks"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion x/florin/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"adr36.dev"
"cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/monerium/module-noble/x/florin/types"
"github.com/monerium/module-noble/v2/x/florin/types"
)

var _ types.MsgServer = &msgServer{}
Expand Down
2 changes: 1 addition & 1 deletion x/florin/keeper/msg_server_blacklist.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/monerium/module-noble/x/florin/types/blacklist"
"github.com/monerium/module-noble/v2/x/florin/types/blacklist"
)

var _ blacklist.MsgServer = &blacklistMsgServer{}
Expand Down
8 changes: 4 additions & 4 deletions x/florin/keeper/msg_server_blacklist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import (
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/monerium/module-noble/utils"
"github.com/monerium/module-noble/utils/mocks"
"github.com/monerium/module-noble/x/florin/keeper"
"github.com/monerium/module-noble/x/florin/types/blacklist"
"github.com/monerium/module-noble/v2/utils"
"github.com/monerium/module-noble/v2/utils/mocks"
"github.com/monerium/module-noble/v2/x/florin/keeper"
"github.com/monerium/module-noble/v2/x/florin/types/blacklist"
"github.com/stretchr/testify/require"
)

Expand Down
8 changes: 4 additions & 4 deletions x/florin/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import (
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/monerium/module-noble/utils"
"github.com/monerium/module-noble/utils/mocks"
"github.com/monerium/module-noble/x/florin/keeper"
"github.com/monerium/module-noble/x/florin/types"
"github.com/monerium/module-noble/v2/utils"
"github.com/monerium/module-noble/v2/utils/mocks"
"github.com/monerium/module-noble/v2/x/florin/keeper"
"github.com/monerium/module-noble/v2/x/florin/types"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion x/florin/keeper/query_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/errors"
"github.com/monerium/module-noble/x/florin/types"
"github.com/monerium/module-noble/v2/x/florin/types"
)

var _ types.QueryServer = &queryServer{}
Expand Down
2 changes: 1 addition & 1 deletion x/florin/keeper/query_server_blacklist.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/errors"
"github.com/monerium/module-noble/x/florin/types/blacklist"
"github.com/monerium/module-noble/v2/x/florin/types/blacklist"
)

var _ blacklist.QueryServer = &blacklistQueryServer{}
Expand Down
8 changes: 4 additions & 4 deletions x/florin/keeper/query_server_blacklist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/errors"
"github.com/monerium/module-noble/utils"
"github.com/monerium/module-noble/utils/mocks"
"github.com/monerium/module-noble/x/florin/keeper"
"github.com/monerium/module-noble/x/florin/types/blacklist"
"github.com/monerium/module-noble/v2/utils"
"github.com/monerium/module-noble/v2/utils/mocks"
"github.com/monerium/module-noble/v2/x/florin/keeper"
"github.com/monerium/module-noble/v2/x/florin/types/blacklist"
"github.com/stretchr/testify/require"
)

Expand Down
8 changes: 4 additions & 4 deletions x/florin/keeper/query_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/errors"
"github.com/monerium/module-noble/utils"
"github.com/monerium/module-noble/utils/mocks"
"github.com/monerium/module-noble/x/florin/keeper"
"github.com/monerium/module-noble/x/florin/types"
"github.com/monerium/module-noble/v2/utils"
"github.com/monerium/module-noble/v2/utils/mocks"
"github.com/monerium/module-noble/v2/x/florin/keeper"
"github.com/monerium/module-noble/v2/x/florin/types"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion x/florin/keeper/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package keeper
import (
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/monerium/module-noble/x/florin/types"
"github.com/monerium/module-noble/v2/x/florin/types"
)

//
Expand Down
2 changes: 1 addition & 1 deletion x/florin/keeper/state_blacklist.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package keeper
import (
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/monerium/module-noble/x/florin/types/blacklist"
"github.com/monerium/module-noble/v2/x/florin/types/blacklist"
)

//
Expand Down
6 changes: 3 additions & 3 deletions x/florin/keeper/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ package keeper_test
import (
"testing"

"github.com/monerium/module-noble/utils"
"github.com/monerium/module-noble/utils/mocks"
"github.com/monerium/module-noble/x/florin/types"
"github.com/monerium/module-noble/v2/utils"
"github.com/monerium/module-noble/v2/utils/mocks"
"github.com/monerium/module-noble/v2/x/florin/types"
"github.com/stretchr/testify/require"
)

Expand Down
8 changes: 4 additions & 4 deletions x/florin/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/gorilla/mux"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/monerium/module-noble/x/florin/client/cli"
"github.com/monerium/module-noble/x/florin/keeper"
"github.com/monerium/module-noble/x/florin/types"
"github.com/monerium/module-noble/x/florin/types/blacklist"
"github.com/monerium/module-noble/v2/x/florin/client/cli"
"github.com/monerium/module-noble/v2/x/florin/keeper"
"github.com/monerium/module-noble/v2/x/florin/types"
"github.com/monerium/module-noble/v2/x/florin/types/blacklist"
"github.com/spf13/cobra"
abci "github.com/tendermint/tendermint/abci/types"
)
Expand Down
Loading