Skip to content

Commit

Permalink
chore: use vanity url
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Jan 19, 2025
1 parent c044cb0 commit 5261fd9
Show file tree
Hide file tree
Showing 23 changed files with 76 additions and 77 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
> This is an example module for the v0.52.x Cosmos SDK.
> Looking for the v0.50.x example? Check the [v0.50.x branch](https://github.com/cosmonity/example/tree/v0.50.x).
> Looking for the v0.50.x example? Check the [v0.50.x branch](https://go.cosmonity.xyz/example/tree/v0.50.x).
# `{Module Name}`

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 github.com/cosmonity/example
module go.cosmonity.xyz/example

go 1.23.4

Expand Down
2 changes: 1 addition & 1 deletion keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package keeper
import (
"context"

"github.com/cosmonity/example"
"go.cosmonity.xyz/example"
)

// InitGenesis initializes the module state from a genesis state.
Expand Down
2 changes: 1 addition & 1 deletion keeper/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package keeper_test
import (
"testing"

"github.com/cosmonity/example"
"github.com/stretchr/testify/require"
"go.cosmonity.xyz/example"
)

func TestInitGenesis(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
storetypes "cosmossdk.io/core/store"
"github.com/cosmos/cosmos-sdk/codec"

"github.com/cosmonity/example"
"go.cosmonity.xyz/example"
)

type Keeper struct {
Expand Down
4 changes: 2 additions & 2 deletions keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"

"github.com/cosmonity/example"
"github.com/cosmonity/example/keeper"
"go.cosmonity.xyz/example"
"go.cosmonity.xyz/example/keeper"
)

type testFixture struct {
Expand Down
2 changes: 1 addition & 1 deletion keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"

"cosmossdk.io/collections"
"github.com/cosmonity/example"
"go.cosmonity.xyz/example"
)

type msgServer struct {
Expand Down
2 changes: 1 addition & 1 deletion keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"testing"

"github.com/cosmonity/example"
"github.com/stretchr/testify/require"
"go.cosmonity.xyz/example"
)

func TestUpdateParams(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion keeper/query_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

"github.com/cosmonity/example"
"github.com/cosmos/cosmos-sdk/types/query"
"go.cosmonity.xyz/example"
)

var _ example.QueryServer = queryServer{}
Expand Down
2 changes: 1 addition & 1 deletion keeper/query_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package keeper_test
import (
"testing"

"github.com/cosmonity/example"
"github.com/cosmos/cosmos-sdk/types/query"
"github.com/stretchr/testify/require"
"go.cosmonity.xyz/example"
)

func TestQueryParams(t *testing.T) {
Expand Down
16 changes: 8 additions & 8 deletions module.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion module/autocli.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package module

import (
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
example "github.com/cosmonity/example"
example "go.cosmonity.xyz/example"
)

// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface.
Expand Down
4 changes: 2 additions & 2 deletions module/depinject.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/cosmos/cosmos-sdk/codec"
sdkaddress "github.com/cosmos/cosmos-sdk/types/address"

"github.com/cosmonity/example"
"github.com/cosmonity/example/keeper"
"go.cosmonity.xyz/example"
"go.cosmonity.xyz/example/keeper"
)

var _ appmodule.AppModule = AppModule{}
Expand Down
4 changes: 2 additions & 2 deletions module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"

"github.com/cosmonity/example"
"github.com/cosmonity/example/keeper"
"go.cosmonity.xyz/example"
"go.cosmonity.xyz/example/keeper"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions proto/cosmonity/example/module/v1/module.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ syntax = "proto3";

package cosmonity.example.module.v1;

option go_package = "github.com/cosmonity/example";
option go_package = "go.cosmonity.xyz/example";

import "cosmos/app/v1alpha1/module.proto";

// Module is the app config object of the module.
// Learn more: https://docs.cosmos.network/main/building-modules/depinject
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import : "github.com/cosmonity/example"
go_import : "go.cosmonity.xyz/example"
};

// authority defines the custom module authority.
Expand Down
2 changes: 1 addition & 1 deletion proto/cosmonity/example/v1/query.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package cosmonity.example.v1;

option go_package = "github.com/cosmonity/example";
option go_package = "go.cosmonity.xyz/example";

import "cosmos/base/query/v1beta1/pagination.proto";
import "cosmonity/example/v1/types.proto";
Expand Down
2 changes: 1 addition & 1 deletion proto/cosmonity/example/v1/tx.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package cosmonity.example.v1;

option go_package = "github.com/cosmonity/example";
option go_package = "go.cosmonity.xyz/example";

import "cosmos/msg/v1/msg.proto";
import "gogoproto/gogo.proto";
Expand Down
2 changes: 1 addition & 1 deletion proto/cosmonity/example/v1/types.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package cosmonity.example.v1;

option go_package = "github.com/cosmonity/example";
option go_package = "go.cosmonity.xyz/example";

import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
Expand Down
70 changes: 35 additions & 35 deletions query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions scripts/protocgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ done

cd ..

cp -r github.com/cosmonity/example/* ./
rm -rf github.com cosmonity
cp -r go.cosmonity.xyz/example/* ./
rm -rf go.cosmonity.xyz github.com cosmonity
2 changes: 1 addition & 1 deletion scripts/rename.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ rm -rf proto/cosmonity
make proto-gen

# credits
echo "# This Cosmos SDK module was generated using <https://github.com/cosmonity/example>" > THANKS.md
echo "# This Cosmos SDK module was generated using <https://go.cosmonity.xyz/example>" > THANKS.md

# removes itself
rm scripts/rename.sh
10 changes: 5 additions & 5 deletions tx.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5261fd9

Please sign in to comment.