Skip to content

Commit

Permalink
rename module for vanity url
Browse files Browse the repository at this point in the history
  • Loading branch information
bizk committed Aug 31, 2023
1 parent 17cb6ef commit 4ba3f78
Show file tree
Hide file tree
Showing 20 changed files with 33 additions and 33 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Rosetta can be executed as a standalone service, it connects to the node endpoin
Install Rosetta standalone server with the following command:

```bash
go install cosmossdk.io/rosetta
go install github.com/cosmos/rosetta
```

Alternatively, for building from source, simply run `make rosetta`. The binary will be located in the root folder.
Expand All @@ -27,7 +27,7 @@ To enable Native Rosetta API support, it's required to add the `RosettaCommand`
Import the `rosettaCmd` package:

```go
import "cosmossdk.io/rosetta/cmd"
import "github.com/cosmos/rosetta/cmd"
```

Find the following line:
Expand All @@ -44,7 +44,7 @@ rootCmd.AddCommand(
)
```

The `RosettaCommand` function builds the `rosetta` root command and is defined in the `rosettaCmd` package (`cosmossdk.io/rosetta/cmd`).
The `RosettaCommand` function builds the `rosetta` root command and is defined in the `rosettaCmd` package (`github.com/cosmos/rosetta/cmd`).

Since we’ve updated the Cosmos SDK to work with the Rosetta API, updating the application's root command file is all you need to do.

Expand Down Expand Up @@ -109,7 +109,7 @@ import (

"context"
"github.com/coinbase/rosetta-sdk-go/types"
"cosmossdk.io/rosetta/lib"
"github.com/cosmos/rosetta/lib"
)

// CustomClient embeds the standard cosmos client
Expand All @@ -135,7 +135,7 @@ Example:

```go
package custom_errors
import crgerrs "cosmossdk.io/rosetta/lib/errors"
import crgerrs "github.com/cosmos/rosetta/lib/errors"

var customErrRetriable = true
var CustomError = crgerrs.RegisterError(100, "custom message", customErrRetriable, "description")
Expand Down
2 changes: 1 addition & 1 deletion client_offline.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/coinbase/rosetta-sdk-go/types"

crgerrs "cosmossdk.io/rosetta/lib/errors"
crgerrs "github.com/cosmos/rosetta/lib/errors"

sdk "github.com/cosmos/cosmos-sdk/types"
)
Expand Down
4 changes: 2 additions & 2 deletions client_online.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"github.com/cometbft/cometbft/rpc/client/http"
"google.golang.org/grpc"

crgerrs "cosmossdk.io/rosetta/lib/errors"
crgtypes "cosmossdk.io/rosetta/lib/types"
crgerrs "github.com/cosmos/rosetta/lib/errors"
crgtypes "github.com/cosmos/rosetta/lib/types"

sdk "github.com/cosmos/cosmos-sdk/types"
grpctypes "github.com/cosmos/cosmos-sdk/types/grpc"
Expand Down
2 changes: 1 addition & 1 deletion cmd/rosetta.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (

"github.com/spf13/cobra"

"cosmossdk.io/rosetta"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/rosetta"
)

// RosettaCommand builds the rosetta root command given
Expand Down
4 changes: 2 additions & 2 deletions cmd/rosetta/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package main
import (
"os"

"cosmossdk.io/rosetta"
"github.com/cosmos/rosetta"

"cosmossdk.io/log"
rosettaCmd "cosmossdk.io/rosetta/cmd"
rosettaCmd "github.com/cosmos/rosetta/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/coinbase/rosetta-sdk-go/types"
"github.com/spf13/pflag"

crg "cosmossdk.io/rosetta/lib/server"
crg "github.com/cosmos/rosetta/lib/server"

clientflags "github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/codec"
Expand Down
4 changes: 2 additions & 2 deletions converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
secp "github.com/decred/dcrd/dcrec/secp256k1/v4"

sdkmath "cosmossdk.io/math"
crgerrs "cosmossdk.io/rosetta/lib/errors"
crgtypes "cosmossdk.io/rosetta/lib/types"
crgerrs "github.com/cosmos/rosetta/lib/errors"
crgtypes "github.com/cosmos/rosetta/lib/types"

sdkclient "github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
Expand Down
4 changes: 2 additions & 2 deletions converter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"encoding/json"
"testing"

"cosmossdk.io/rosetta"
crgerrs "cosmossdk.io/rosetta/lib/errors"
"github.com/cosmos/rosetta"
crgerrs "github.com/cosmos/rosetta/lib/errors"

rosettatypes "github.com/coinbase/rosetta-sdk-go/types"
abci "github.com/cometbft/cometbft/abci/types"
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 cosmossdk.io/rosetta
module github.com/cosmos/rosetta

go 1.20

Expand Down
4 changes: 2 additions & 2 deletions lib/internal/service/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package service
import (
"context"

"cosmossdk.io/rosetta/lib/errors"
crgtypes "cosmossdk.io/rosetta/lib/types"
"github.com/coinbase/rosetta-sdk-go/types"
"github.com/cosmos/rosetta/lib/errors"
crgtypes "github.com/cosmos/rosetta/lib/types"
)

// AccountBalance retrieves the account balance of an address
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/service/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package service
import (
"context"

"cosmossdk.io/rosetta/lib/errors"
crgtypes "cosmossdk.io/rosetta/lib/types"
"github.com/coinbase/rosetta-sdk-go/types"
"github.com/cosmos/rosetta/lib/errors"
crgtypes "github.com/cosmos/rosetta/lib/types"
)

// Block gets the transactions in the given block
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/service/construction.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"

sdkmath "cosmossdk.io/math"
"cosmossdk.io/rosetta/lib/errors"
"github.com/coinbase/rosetta-sdk-go/types"
"github.com/cosmos/rosetta/lib/errors"

sdk "github.com/cosmos/cosmos-sdk/types"
)
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/service/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package service
import (
"context"

"cosmossdk.io/rosetta/lib/errors"
"github.com/coinbase/rosetta-sdk-go/types"
"github.com/cosmos/rosetta/lib/errors"
)

// Mempool fetches the transactions contained in the mempool
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/service/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package service
import (
"context"

"cosmossdk.io/rosetta/lib/errors"
coinbase "github.com/coinbase/rosetta-sdk-go/types"
"github.com/cosmos/rosetta/lib/errors"
)

func (on OnlineNetwork) NetworkList(_ context.Context, _ *coinbase.MetadataRequest) (*coinbase.NetworkListResponse, *coinbase.Error) {
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/service/offline.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/coinbase/rosetta-sdk-go/types"

crgerrs "cosmossdk.io/rosetta/lib/errors"
crgtypes "cosmossdk.io/rosetta/lib/types"
crgerrs "github.com/cosmos/rosetta/lib/errors"
crgtypes "github.com/cosmos/rosetta/lib/types"
)

// NewOffline instantiates the instance of an offline network
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/service/online.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/coinbase/rosetta-sdk-go/types"

"cosmossdk.io/log"
crgerrs "cosmossdk.io/rosetta/lib/errors"
crgtypes "cosmossdk.io/rosetta/lib/types"
crgerrs "github.com/cosmos/rosetta/lib/errors"
crgtypes "github.com/cosmos/rosetta/lib/types"
)

// genesisBlockFetchTimeout defines a timeout to fetch the genesis block
Expand Down
4 changes: 2 additions & 2 deletions lib/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/cosmos/rosetta-sdk-go/server"

"cosmossdk.io/log"
"cosmossdk.io/rosetta/lib/internal/service"
crgtypes "cosmossdk.io/rosetta/lib/types"
"github.com/cosmos/rosetta/lib/internal/service"
crgtypes "github.com/cosmos/rosetta/lib/types"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion plugins_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package rosetta_test
// import (
// "testing"
//
// "cosmossdk.io/rosetta"
// "github.com/cosmos/rosetta"
//
// "github.com/cosmos/cosmos-sdk/codec"
// "github.com/stretchr/testify/suite"
Expand Down
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"time"

crgerrs "cosmossdk.io/rosetta/lib/errors"
crgerrs "github.com/cosmos/rosetta/lib/errors"
)

// timeToMilliseconds converts time to milliseconds timestamp
Expand Down
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
signing2 "cosmossdk.io/x/tx/signing"
"google.golang.org/protobuf/types/known/anypb"

crgerrs "cosmossdk.io/rosetta/lib/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
crgerrs "github.com/cosmos/rosetta/lib/errors"
)

func parseSignerData(signerData authsigning.SignerData) signing2.SignerData {
Expand Down

0 comments on commit 4ba3f78

Please sign in to comment.