Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dekm committed Sep 27, 2023
2 parents c815566 + 88e43de commit a460fe6
Show file tree
Hide file tree
Showing 29 changed files with 50 additions and 49 deletions.
10 changes: 5 additions & 5 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ import (
mintkeeper "github.com/unigrid-project/cosmos-sdk-ugdmint/x/ugdmint/keeper"
minttypes "github.com/unigrid-project/cosmos-sdk-ugdmint/x/ugdmint/types"

cosmosdaemonmodule "cosmos-daemon/x/cosmosdaemon"
cosmosdaemonmodulekeeper "cosmos-daemon/x/cosmosdaemon/keeper"
cosmosdaemonmoduletypes "cosmos-daemon/x/cosmosdaemon/types"
cosmosdaemonmodule "github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon"
cosmosdaemonmodulekeeper "github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/keeper"
cosmosdaemonmoduletypes "github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"

gridnodemodule "github.com/unigrid-project/cosmos-sdk-gridnode/x/gridnode"
gridnodekeeper "github.com/unigrid-project/cosmos-sdk-gridnode/x/gridnode/keeper"
Expand All @@ -122,8 +122,8 @@ import (

// this line is used by starport scaffolding # stargate/app/moduleImport

appparams "cosmos-daemon/app/params"
"cosmos-daemon/docs"
appparams "github.com/unigrid-project/cosmos-daemon/app/params"
"github.com/unigrid-project/cosmos-daemon/docs"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion app/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/cosmos/cosmos-sdk/std"
"github.com/cosmos/cosmos-sdk/x/auth/tx"

"cosmos-daemon/app/params"
"github.com/unigrid-project/cosmos-daemon/app/params"
)

// makeEncodingConfig creates an EncodingConfig for an amino based test configuration.
Expand Down
2 changes: 1 addition & 1 deletion app/simulation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/stretchr/testify/require"

"cosmos-daemon/app"
"github.com/unigrid-project/cosmos-daemon/app"
)

type storeKeysPrefixes struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/cosmos-daemond/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
sdk "github.com/cosmos/cosmos-sdk/types"

"cosmos-daemon/app"
"github.com/unigrid-project/cosmos-daemon/app"
)

var HedgehogUrl string
Expand Down
4 changes: 2 additions & 2 deletions cmd/cosmos-daemond/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ import (

// this line is used by starport scaffolding # root/moduleImport

"cosmos-daemon/app"
appparams "cosmos-daemon/app/params"
"github.com/unigrid-project/cosmos-daemon/app"
appparams "github.com/unigrid-project/cosmos-daemon/app/params"
)

const DefaultHedgehogUrl = "https://127.0.0.1:52884"
Expand Down
4 changes: 2 additions & 2 deletions cmd/cosmos-daemond/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"

"cosmos-daemon/app"
"cosmos-daemon/cmd/cosmos-daemond/cmd"
"github.com/unigrid-project/cosmos-daemon/app"
"github.com/unigrid-project/cosmos-daemon/cmd/cosmos-daemond/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module cosmos-daemon
module github.com/unigrid-project/cosmos-daemon

go 1.19

Expand Down
2 changes: 1 addition & 1 deletion proto/cosmosdaemon/cosmosdaemon/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package cosmosdaemon.cosmosdaemon;
import "gogoproto/gogo.proto";
import "cosmosdaemon/cosmosdaemon/params.proto";

option go_package = "cosmos-daemon/x/cosmosdaemon/types";
option go_package = "github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types";

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

import "gogoproto/gogo.proto";

option go_package = "cosmos-daemon/x/cosmosdaemon/types";
option go_package = "github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types";

// Params defines the parameters for the module.
message Params {
Expand Down
3 changes: 1 addition & 2 deletions proto/cosmosdaemon/cosmosdaemon/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ package cosmosdaemon.cosmosdaemon;

import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "cosmosdaemon/cosmosdaemon/params.proto";

option go_package = "cosmos-daemon/x/cosmosdaemon/types";
option go_package = "github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
2 changes: 1 addition & 1 deletion proto/cosmosdaemon/cosmosdaemon/tx.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package cosmosdaemon.cosmosdaemon;

option go_package = "cosmos-daemon/x/cosmosdaemon/types";
option go_package = "github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types";

// Msg defines the Msg service.
service Msg {}
4 changes: 2 additions & 2 deletions testutil/keeper/cosmosdaemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package keeper
import (
"testing"

"cosmos-daemon/x/cosmosdaemon/keeper"
"cosmos-daemon/x/cosmosdaemon/types"
tmdb "github.com/cometbft/cometbft-db"
"github.com/cometbft/cometbft/libs/log"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
Expand All @@ -15,6 +13,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
typesparams "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/stretchr/testify/require"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/keeper"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"
)

func CosmosdaemonKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) {
Expand Down
2 changes: 1 addition & 1 deletion testutil/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/stretchr/testify/require"

"cosmos-daemon/app"
"github.com/unigrid-project/cosmos-daemon/app"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion x/cosmosdaemon/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// "github.com/cosmos/cosmos-sdk/client/flags"
// sdk "github.com/cosmos/cosmos-sdk/types"

"cosmos-daemon/x/cosmosdaemon/types"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"
)

// GetQueryCmd returns the cli query commands for this module
Expand Down
2 changes: 1 addition & 1 deletion x/cosmosdaemon/client/cli/query_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/spf13/cobra"

"cosmos-daemon/x/cosmosdaemon/types"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"
)

func CmdQueryParams() *cobra.Command {
Expand Down
2 changes: 1 addition & 1 deletion x/cosmosdaemon/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/cosmos/cosmos-sdk/client"
// "github.com/cosmos/cosmos-sdk/client/flags"
"cosmos-daemon/x/cosmosdaemon/types"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions x/cosmosdaemon/genesis.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package cosmosdaemon

import (
"cosmos-daemon/x/cosmosdaemon/keeper"
"cosmos-daemon/x/cosmosdaemon/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/keeper"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"
)

// InitGenesis initializes the module's state from a provided genesis state.
Expand Down
8 changes: 4 additions & 4 deletions x/cosmosdaemon/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package cosmosdaemon_test
import (
"testing"

keepertest "cosmos-daemon/testutil/keeper"
"cosmos-daemon/testutil/nullify"
"cosmos-daemon/x/cosmosdaemon"
"cosmos-daemon/x/cosmosdaemon/types"
"github.com/stretchr/testify/require"
keepertest "github.com/unigrid-project/cosmos-daemon/testutil/keeper"
"github.com/unigrid-project/cosmos-daemon/testutil/nullify"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"
)

func TestGenesis(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion x/cosmosdaemon/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"

"cosmos-daemon/x/cosmosdaemon/types"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion x/cosmosdaemon/keeper/msg_server.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package keeper

import (
"cosmos-daemon/x/cosmosdaemon/types"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"
)

type msgServer struct {
Expand Down
6 changes: 3 additions & 3 deletions x/cosmosdaemon/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"context"
"testing"

keepertest "cosmos-daemon/testutil/keeper"
"cosmos-daemon/x/cosmosdaemon/keeper"
"cosmos-daemon/x/cosmosdaemon/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"
keepertest "github.com/unigrid-project/cosmos-daemon/testutil/keeper"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/keeper"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"
)

func setupMsgServer(t testing.TB) (types.MsgServer, context.Context) {
Expand Down
2 changes: 1 addition & 1 deletion x/cosmosdaemon/keeper/params.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package keeper

import (
"cosmos-daemon/x/cosmosdaemon/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"
)

// GetParams get all parameters as types.Params
Expand Down
4 changes: 2 additions & 2 deletions x/cosmosdaemon/keeper/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package keeper_test
import (
"testing"

testkeeper "cosmos-daemon/testutil/keeper"
"cosmos-daemon/x/cosmosdaemon/types"
"github.com/stretchr/testify/require"
testkeeper "github.com/unigrid-project/cosmos-daemon/testutil/keeper"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"
)

func TestGetParams(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion x/cosmosdaemon/keeper/query.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package keeper

import (
"cosmos-daemon/x/cosmosdaemon/types"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"
)

var _ types.QueryServer = Keeper{}
2 changes: 1 addition & 1 deletion x/cosmosdaemon/keeper/query_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package keeper
import (
"context"

"cosmos-daemon/x/cosmosdaemon/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
Expand Down
5 changes: 3 additions & 2 deletions x/cosmosdaemon/keeper/query_params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package keeper_test
import (
"testing"

testkeeper "cosmos-daemon/testutil/keeper"
"cosmos-daemon/x/cosmosdaemon/types"
testkeeper "github.com/unigrid-project/cosmos-daemon/testutil/keeper"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"
)

func TestParamsQuery(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions x/cosmosdaemon/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

"cosmos-daemon/x/cosmosdaemon/client/cli"
"cosmos-daemon/x/cosmosdaemon/keeper"
"cosmos-daemon/x/cosmosdaemon/types"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/client/cli"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/keeper"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
Expand Down
7 changes: 4 additions & 3 deletions x/cosmosdaemon/module_simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package cosmosdaemon
import (
"math/rand"

"cosmos-daemon/testutil/sample"
cosmosdaemonsimulation "cosmos-daemon/x/cosmosdaemon/simulation"
"cosmos-daemon/x/cosmosdaemon/types"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"

"github.com/cosmos/cosmos-sdk/baseapp"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
"github.com/unigrid-project/cosmos-daemon/testutil/sample"
cosmosdaemonsimulation "github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/simulation"
)

// avoid unused import issue
Expand Down
2 changes: 1 addition & 1 deletion x/cosmosdaemon/types/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package types_test
import (
"testing"

"cosmos-daemon/x/cosmosdaemon/types"
"github.com/stretchr/testify/require"
"github.com/unigrid-project/cosmos-daemon/x/cosmosdaemon/types"
)

func TestGenesisState_Validate(t *testing.T) {
Expand Down

0 comments on commit a460fe6

Please sign in to comment.