Skip to content

Commit

Permalink
fix: use fully resolved name for go package
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersuweijie committed Nov 8, 2022
1 parent 2df7aa8 commit b79a4a3
Show file tree
Hide file tree
Showing 54 changed files with 291 additions and 284 deletions.
10 changes: 5 additions & 5 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ import (
"github.com/ignite/cli/ignite/pkg/cosmoscmd"
"github.com/ignite/cli/ignite/pkg/openapiconsole"

"alliance/docs"
"github.com/terra-money/alliance/docs"

alliancemodule "alliance/x/alliance"
alliancemoduleclient "alliance/x/alliance/client"
alliancemodulekeeper "alliance/x/alliance/keeper"
alliancemoduletypes "alliance/x/alliance/types"
alliancemodule "github.com/terra-money/alliance/x/alliance"
alliancemoduleclient "github.com/terra-money/alliance/x/alliance/client"
alliancemodulekeeper "github.com/terra-money/alliance/x/alliance/keeper"
alliancemoduletypes "github.com/terra-money/alliance/x/alliance/types"
// this line is used by starport scaffolding # stargate/app/moduleImport
)

Expand Down
2 changes: 1 addition & 1 deletion app/simulation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"testing"
"time"

"alliance/app"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/simapp"
Expand All @@ -18,6 +17,7 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
tmtypes "github.com/tendermint/tendermint/types"
"github.com/terra-money/alliance/app"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/allianced/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"os"

"alliance/app"
"github.com/terra-money/alliance/app"

svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
Expand Down
2 changes: 1 addition & 1 deletion cmd/allianced/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"cosmossdk.io/math"

alliancetypes "alliance/x/alliance/types"
alliancetypes "github.com/terra-money/alliance/x/alliance/types"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
Expand Down
2 changes: 1 addition & 1 deletion proto/alliance/alliance.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "cosmos_proto/cosmos.proto";
import "alliance/params.proto";
import "google/protobuf/timestamp.proto";

option go_package = "alliance/x/alliance/types";
option go_package = "github.com/terra-money/alliance/x/alliance/types";

// key: denom value: AllianceAsset
message AllianceAsset {
Expand Down
2 changes: 1 addition & 1 deletion proto/alliance/delegations.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "cosmos/base/v1beta1/coin.proto";
import "cosmos_proto/cosmos.proto";
import "alliance/params.proto";

option go_package = "alliance/x/alliance/types";
option go_package = "github.com/terra-money/alliance/x/alliance/types";

message Delegation {
option (gogoproto.equal) = false;
Expand Down
2 changes: 1 addition & 1 deletion proto/alliance/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "alliance/alliance.proto";
import "alliance/params.proto";

option go_package = "alliance/x/alliance/types";
option go_package = "github.com/terra-money/alliance/x/alliance/types";

// GenesisState defines the module's genesis state.
message GenesisState {
Expand Down
2 changes: 1 addition & 1 deletion proto/alliance/gov.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package alliance.alliance;
import "gogoproto/gogo.proto";
import "cosmos_proto/cosmos.proto";

option go_package = "alliance/x/alliance/types";
option go_package = "github.com/terra-money/alliance/x/alliance/types";

message MsgCreateAllianceProposal {
option (gogoproto.equal) = false;
Expand Down
2 changes: 1 addition & 1 deletion proto/alliance/params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "cosmos_proto/cosmos.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";

option go_package = "alliance/x/alliance/types";
option go_package = "github.com/terra-money/alliance/x/alliance/types";

message Params {
option (gogoproto.equal) = true;
Expand Down
2 changes: 1 addition & 1 deletion proto/alliance/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import "alliance/alliance.proto";
import "cosmos/base/v1beta1/coin.proto";
import "alliance/delegations.proto";

option go_package = "alliance/x/alliance/types";
option go_package = "github.com/terra-money/alliance/x/alliance/types";

service Query {
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
Expand Down
2 changes: 1 addition & 1 deletion proto/alliance/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "cosmos_proto/cosmos.proto";
import "cosmos/msg/v1/msg.proto";
import "cosmos/base/v1beta1/coin.proto";

option go_package = "alliance/x/alliance/types";
option go_package = "github.com/terra-money/alliance/x/alliance/types";

service Msg {
rpc Delegate(MsgDelegate) returns (MsgDelegateResponse);
Expand Down
2 changes: 1 addition & 1 deletion testutil/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
tmrand "github.com/tendermint/tendermint/libs/rand"
tmdb "github.com/tendermint/tm-db"

"alliance/app"
"github.com/terra-money/alliance/app"
)

type (
Expand Down
4 changes: 2 additions & 2 deletions x/alliance/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package alliance
import (
"time"

"alliance/x/alliance/keeper"
"alliance/x/alliance/types"
"github.com/terra-money/alliance/x/alliance/keeper"
"github.com/terra-money/alliance/x/alliance/types"

"github.com/cosmos/cosmos-sdk/telemetry"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
6 changes: 3 additions & 3 deletions x/alliance/benchmark/benchmark_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package benchmark_test

import (
test_helpers "alliance/app"
"alliance/x/alliance/benchmark"
"alliance/x/alliance/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/simulation"
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
"github.com/stretchr/testify/require"
abcitypes "github.com/tendermint/tendermint/abci/types"
test_helpers "github.com/terra-money/alliance/app"
"github.com/terra-money/alliance/x/alliance/benchmark"
"github.com/terra-money/alliance/x/alliance/types"
"math/rand"
"testing"
"time"
Expand Down
4 changes: 2 additions & 2 deletions x/alliance/benchmark/test_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (
"math/rand"
"testing"

test_helpers "alliance/app"
"alliance/x/alliance/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/staking/teststaking"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
test_helpers "github.com/terra-money/alliance/app"
"github.com/terra-money/alliance/x/alliance/types"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion x/alliance/client/cli/gov.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package cli

import (
"alliance/x/alliance/types"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/tx"
sdk "github.com/cosmos/cosmos-sdk/types"
govcli "github.com/cosmos/cosmos-sdk/x/gov/client/cli"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
"github.com/spf13/cobra"
"github.com/terra-money/alliance/x/alliance/types"
)

func CreateAlliance() *cobra.Command {
Expand Down
2 changes: 1 addition & 1 deletion x/alliance/client/cli/query.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package cli

import (
"alliance/x/alliance/types"
"context"
"fmt"
"github.com/terra-money/alliance/x/alliance/types"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
Expand Down
2 changes: 1 addition & 1 deletion x/alliance/client/cli/tx.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cli

import (
"alliance/x/alliance/types"
"fmt"
"github.com/terra-money/alliance/x/alliance/types"
"strings"

"github.com/cosmos/cosmos-sdk/client"
Expand Down
2 changes: 1 addition & 1 deletion x/alliance/client/proposal_handler.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"alliance/x/alliance/client/cli"
"github.com/terra-money/alliance/x/alliance/client/cli"

govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
)
Expand Down
2 changes: 1 addition & 1 deletion x/alliance/genesis.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package alliance

import (
"alliance/x/alliance/types"
"github.com/terra-money/alliance/x/alliance/types"
"time"
)

Expand Down
4 changes: 2 additions & 2 deletions x/alliance/invariants.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package alliance

import (
"alliance/x/alliance/keeper"
"alliance/x/alliance/types"
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/terra-money/alliance/x/alliance/keeper"
"github.com/terra-money/alliance/x/alliance/types"
)

func RegisterInvariants(ir sdk.InvariantRegistry, k keeper.Keeper) {
Expand Down
2 changes: 1 addition & 1 deletion x/alliance/keeper/asset.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package keeper

import (
"alliance/x/alliance/types"
"github.com/cosmos/cosmos-sdk/store"
sdk "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/terra-money/alliance/x/alliance/types"
"math"
)

Expand Down
6 changes: 3 additions & 3 deletions x/alliance/keeper/asset_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package keeper_test

import (
test_helpers "alliance/app"
"alliance/x/alliance"
"alliance/x/alliance/types"
test_helpers "github.com/terra-money/alliance/app"
"github.com/terra-money/alliance/x/alliance"
"github.com/terra-money/alliance/x/alliance/types"
"testing"
"time"

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

import (
"alliance/x/alliance/types"
"github.com/terra-money/alliance/x/alliance/types"
"time"

"cosmossdk.io/math"
Expand Down
6 changes: 3 additions & 3 deletions x/alliance/keeper/delegation_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package keeper_test

import (
test_helpers "alliance/app"
"alliance/x/alliance/keeper"
"alliance/x/alliance/types"
test_helpers "github.com/terra-money/alliance/app"
"github.com/terra-money/alliance/x/alliance/keeper"
"github.com/terra-money/alliance/x/alliance/types"
"testing"
"time"

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

import (
"alliance/x/alliance/types"
"github.com/terra-money/alliance/x/alliance/types"

sdk "github.com/cosmos/cosmos-sdk/types"
abci "github.com/tendermint/tendermint/abci/types"
Expand Down
2 changes: 1 addition & 1 deletion x/alliance/keeper/genesis_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package keeper_test

import (
"alliance/x/alliance/types"
"github.com/terra-money/alliance/x/alliance/types"
"testing"
"time"

Expand Down
2 changes: 1 addition & 1 deletion x/alliance/keeper/grpc_query.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package keeper

import (
"alliance/x/alliance/types"
"context"
"github.com/terra-money/alliance/x/alliance/types"

"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
6 changes: 3 additions & 3 deletions x/alliance/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

test_helpers "alliance/app"
"alliance/x/alliance/keeper"
"alliance/x/alliance/types"
test_helpers "github.com/terra-money/alliance/app"
"github.com/terra-money/alliance/x/alliance/keeper"
"github.com/terra-money/alliance/x/alliance/types"
)

var ULUNA_ALLIANCE = "uluna"
Expand Down
2 changes: 1 addition & 1 deletion x/alliance/keeper/keeper.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package keeper

import (
"alliance/x/alliance/types"
"fmt"
"github.com/terra-money/alliance/x/alliance/types"

"github.com/tendermint/tendermint/libs/log"

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

import (
"alliance/app"
"github.com/terra-money/alliance/app"
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
2 changes: 1 addition & 1 deletion x/alliance/keeper/msg_server.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package keeper

import (
"alliance/x/alliance/types"
"context"
"github.com/terra-money/alliance/x/alliance/types"
"time"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
2 changes: 1 addition & 1 deletion x/alliance/keeper/params.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package keeper

import (
"alliance/x/alliance/types"
"github.com/terra-money/alliance/x/alliance/types"
"time"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
2 changes: 1 addition & 1 deletion x/alliance/keeper/proposal.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package keeper

import (
"alliance/x/alliance/types"
"context"
"github.com/terra-money/alliance/x/alliance/types"

"cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
4 changes: 2 additions & 2 deletions x/alliance/keeper/proposal_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package keeper_test

import (
"alliance/x/alliance/keeper"
"alliance/x/alliance/types"
"github.com/terra-money/alliance/x/alliance/keeper"
"github.com/terra-money/alliance/x/alliance/types"
"testing"
"time"

Expand Down
2 changes: 1 addition & 1 deletion x/alliance/keeper/reward.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package keeper

import (
"alliance/x/alliance/types"
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/terra-money/alliance/x/alliance/types"
"time"
)

Expand Down
Loading

0 comments on commit b79a4a3

Please sign in to comment.