Skip to content

Commit

Permalink
Refactored module name
Browse files Browse the repository at this point in the history
  • Loading branch information
cyborgshead committed Feb 26, 2020
1 parent 6b6ef6b commit d05750e
Show file tree
Hide file tree
Showing 65 changed files with 129 additions and 129 deletions.
18 changes: 9 additions & 9 deletions app/app.go
Expand Up @@ -28,15 +28,15 @@ import (
"github.com/tendermint/tendermint/libs/log"
dbm "github.com/tendermint/tm-db"

"github.com/cybercongress/cyberd/store"
"github.com/cybercongress/cyberd/types"
cbd "github.com/cybercongress/cyberd/types"
"github.com/cybercongress/cyberd/types/coin"
"github.com/cybercongress/cyberd/util"
bw "github.com/cybercongress/cyberd/x/bandwidth"
cbdbank "github.com/cybercongress/cyberd/x/bank"
"github.com/cybercongress/cyberd/x/link"
"github.com/cybercongress/cyberd/x/rank"
"github.com/cybercongress/go-cyber/store"
"github.com/cybercongress/go-cyber/types"
cbd "github.com/cybercongress/go-cyber/types"
"github.com/cybercongress/go-cyber/types/coin"
"github.com/cybercongress/go-cyber/util"
bw "github.com/cybercongress/go-cyber/x/bandwidth"
cbdbank "github.com/cybercongress/go-cyber/x/bank"
"github.com/cybercongress/go-cyber/x/link"
"github.com/cybercongress/go-cyber/x/rank"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion app/export.go
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/x/slashing"
"github.com/cosmos/cosmos-sdk/x/staking"
"github.com/cybercongress/cyberd/x/link"
"github.com/cybercongress/go-cyber/x/link"
abci "github.com/tendermint/tendermint/abci/types"
tmtypes "github.com/tendermint/tendermint/types"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
6 changes: 3 additions & 3 deletions app/genesis.go
Expand Up @@ -15,9 +15,9 @@ import (
"github.com/cosmos/cosmos-sdk/x/staking"
"github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/cosmos/cosmos-sdk/x/supply"
"github.com/cybercongress/cyberd/types/coin"
"github.com/cybercongress/cyberd/x/bandwidth"
"github.com/cybercongress/cyberd/x/rank"
"github.com/cybercongress/go-cyber/types/coin"
"github.com/cybercongress/go-cyber/x/bandwidth"
"github.com/cybercongress/go-cyber/x/rank"
"github.com/pkg/errors"
"github.com/tendermint/go-amino"
tmtypes "github.com/tendermint/tendermint/types"
Expand Down
8 changes: 4 additions & 4 deletions app/rpc.go
Expand Up @@ -6,10 +6,10 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth"
"github.com/cybercongress/cyberd/merkle"
cbd "github.com/cybercongress/cyberd/types"
bw "github.com/cybercongress/cyberd/x/bandwidth"
"github.com/cybercongress/cyberd/x/link"
"github.com/cybercongress/go-cyber/merkle"
cbd "github.com/cybercongress/go-cyber/types"
bw "github.com/cybercongress/go-cyber/x/bandwidth"
"github.com/cybercongress/go-cyber/x/link"
abci "github.com/tendermint/tendermint/abci/types"
)

Expand Down
8 changes: 4 additions & 4 deletions client/http_client.go
Expand Up @@ -14,10 +14,10 @@ import (
tdmClient "github.com/tendermint/tendermint/rpc/client"
"github.com/tendermint/tendermint/rpc/lib/client"

"github.com/cybercongress/cyberd/app"
"github.com/cybercongress/cyberd/cmd/cyberd/rpc"
"github.com/cybercongress/cyberd/x/bandwidth"
"github.com/cybercongress/cyberd/x/link"
"github.com/cybercongress/go-cyber/app"
"github.com/cybercongress/go-cyber/cmd/cyberd/rpc"
"github.com/cybercongress/go-cyber/x/bandwidth"
"github.com/cybercongress/go-cyber/x/link"
)

var _ CyberdClient = &HttpCyberdClient{}
Expand Down
4 changes: 2 additions & 2 deletions client/spec.go
Expand Up @@ -2,8 +2,8 @@ package client

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cybercongress/cyberd/x/bandwidth"
"github.com/cybercongress/cyberd/x/link"
"github.com/cybercongress/go-cyber/x/bandwidth"
"github.com/cybercongress/go-cyber/x/link"
)

type CyberdClient interface {
Expand Down
6 changes: 3 additions & 3 deletions cmd/cyberd/main.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"encoding/json"
"github.com/cybercongress/cyberd/cmd/cyberd/rpc"
"github.com/cybercongress/go-cyber/cmd/cyberd/rpc"
"io"

"github.com/spf13/cobra"
Expand All @@ -14,7 +14,7 @@ import (
tmtypes "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"

"github.com/cybercongress/cyberd/app"
"github.com/cybercongress/go-cyber/app"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
Expand All @@ -24,7 +24,7 @@ import (
genaccscli "github.com/cosmos/cosmos-sdk/x/genaccounts/client/cli"
genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
"github.com/cosmos/cosmos-sdk/x/staking"
"github.com/cybercongress/cyberd/x/rank"
"github.com/cybercongress/go-cyber/x/rank"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cmd/cyberd/replay.go
Expand Up @@ -7,7 +7,7 @@ import (
"path/filepath"
"time"

"github.com/cybercongress/cyberd/x/rank"
"github.com/cybercongress/go-cyber/x/rank"

cpm "github.com/otiai10/copy"
"github.com/spf13/cobra"
Expand All @@ -18,7 +18,7 @@ import (
tmstore "github.com/tendermint/tendermint/store"
tm "github.com/tendermint/tendermint/types"

"github.com/cybercongress/cyberd/app"
"github.com/cybercongress/go-cyber/app"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/server"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cyberd/rpc/account.go
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth"
bw "github.com/cybercongress/cyberd/x/bandwidth"
bw "github.com/cybercongress/go-cyber/x/bandwidth"
"github.com/tendermint/tendermint/rpc/lib/types"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/cyberd/rpc/link.go
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth"
"github.com/cybercongress/cyberd/x/link"
"github.com/cybercongress/go-cyber/x/link"
"github.com/tendermint/tendermint/rpc/lib/types"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/cyberd/rpc/rank.go
@@ -1,7 +1,7 @@
package rpc

import (
"github.com/cybercongress/cyberd/merkle"
"github.com/cybercongress/go-cyber/merkle"
)

type RankAndProofResult struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/cyberd/rpc/routes.go
@@ -1,7 +1,7 @@
package rpc

import (
"github.com/cybercongress/cyberd/app"
"github.com/cybercongress/go-cyber/app"
"github.com/tendermint/tendermint/rpc/core"
"github.com/tendermint/tendermint/rpc/lib/server"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/cyberd/rpc/search.go
@@ -1,7 +1,7 @@
package rpc

import (
"github.com/cybercongress/cyberd/app"
"github.com/cybercongress/go-cyber/app"
"github.com/tendermint/tendermint/rpc/lib/types"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/cyberd/testnet.go
Expand Up @@ -6,12 +6,12 @@ import (
"fmt"
"github.com/cosmos/cosmos-sdk/client/keys"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cybercongress/cyberd/util"
"github.com/cybercongress/go-cyber/util"

//"github.com/cosmos/cosmos-sdk/x/genaccounts"
"github.com/cosmos/cosmos-sdk/x/genutil"
"github.com/cybercongress/cyberd/app"
"github.com/cybercongress/cyberd/types/coin"
"github.com/cybercongress/go-cyber/app"
"github.com/cybercongress/go-cyber/types/coin"
"net"
"os"
"path/filepath"
Expand Down
4 changes: 2 additions & 2 deletions cmd/cyberd/utils.go
Expand Up @@ -6,8 +6,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth"
"github.com/cosmos/cosmos-sdk/x/staking"
"github.com/cybercongress/cyberd/app"
"github.com/cybercongress/cyberd/types/coin"
"github.com/cybercongress/go-cyber/app"
"github.com/cybercongress/go-cyber/types/coin"
"github.com/pkg/errors"
tmtypes "github.com/tendermint/tendermint/types"
"io/ioutil"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cyberdcli/commands/keys/importprivate.go
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/keys"
"github.com/cosmos/cosmos-sdk/crypto/keys/mintkey"
"github.com/cybercongress/cyberd/util"
"github.com/cybercongress/go-cyber/util"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/tendermint/btcd/btcec"
Expand Down
4 changes: 2 additions & 2 deletions cmd/cyberdcli/commands/linktx.go
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/cosmos/cosmos-sdk/x/auth/client/utils"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"

cbd "github.com/cybercongress/cyberd/types"
"github.com/cybercongress/cyberd/x/link"
cbd "github.com/cybercongress/go-cyber/types"
"github.com/cybercongress/go-cyber/x/link"

"github.com/ipfs/go-cid"
"github.com/spf13/cobra"
Expand Down
6 changes: 3 additions & 3 deletions cmd/cyberdcli/main.go
Expand Up @@ -11,11 +11,11 @@ import (
authrest "github.com/cosmos/cosmos-sdk/x/auth/client/rest"
"github.com/cosmos/cosmos-sdk/x/bank"
bankcmd "github.com/cosmos/cosmos-sdk/x/bank/client/cli"
"github.com/cybercongress/cyberd/app"
cyberdcmd "github.com/cybercongress/cyberd/cmd/cyberdcli/commands"
"github.com/cybercongress/go-cyber/app"
cyberdcmd "github.com/cybercongress/go-cyber/cmd/cyberdcli/commands"
"path"

"github.com/cybercongress/cyberd/cmd/cyberdcli/commands/keys"
"github.com/cybercongress/go-cyber/cmd/cyberdcli/commands/keys"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/tendermint/go-amino"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,4 +1,4 @@
module github.com/cybercongress/cyberd
module github.com/cybercongress/go-cyber

go 1.13

Expand Down
2 changes: 1 addition & 1 deletion store/storage.go
Expand Up @@ -5,7 +5,7 @@ import (
"bytes"
"encoding/binary"
"errors"
"github.com/cybercongress/cyberd/util"
"github.com/cybercongress/go-cyber/util"
"github.com/vasilistefanenko/atomicf"
"io"
"os"
Expand Down
2 changes: 1 addition & 1 deletion x/bandwidth/abci.go
Expand Up @@ -3,7 +3,7 @@ package bandwidth
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/params"
"github.com/cybercongress/cyberd/x/bandwidth/internal/types"
"github.com/cybercongress/go-cyber/x/bandwidth/internal/types"
)

var accsToUpdate = make([]sdk.AccAddress, 0)
Expand Down
6 changes: 3 additions & 3 deletions x/bandwidth/alias.go
@@ -1,9 +1,9 @@
package bandwidth

import (
"github.com/cybercongress/cyberd/x/bandwidth/exported"
"github.com/cybercongress/cyberd/x/bandwidth/internal/keeper"
"github.com/cybercongress/cyberd/x/bandwidth/internal/types"
"github.com/cybercongress/go-cyber/x/bandwidth/exported"
"github.com/cybercongress/go-cyber/x/bandwidth/internal/keeper"
"github.com/cybercongress/go-cyber/x/bandwidth/internal/types"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion x/bandwidth/client/cli/query.go
Expand Up @@ -3,7 +3,7 @@ package cli
import (
"fmt"

"github.com/cybercongress/cyberd/x/bandwidth/internal/types"
"github.com/cybercongress/go-cyber/x/bandwidth/internal/types"
"github.com/spf13/cobra"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/client"
Expand Down
2 changes: 1 addition & 1 deletion x/bandwidth/client/rest/query.go
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/cosmos/cosmos-sdk/client/context"
"github.com/cosmos/cosmos-sdk/types/rest"
"github.com/cybercongress/cyberd/x/bandwidth/internal/types"
"github.com/cybercongress/go-cyber/x/bandwidth/internal/types"
)

func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router) {
Expand Down
4 changes: 2 additions & 2 deletions x/bandwidth/cost.go
Expand Up @@ -3,8 +3,8 @@ package bandwidth
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/params"
"github.com/cybercongress/cyberd/x/bandwidth/internal/types"
"github.com/cybercongress/cyberd/x/link"
"github.com/cybercongress/go-cyber/x/bandwidth/internal/types"
"github.com/cybercongress/go-cyber/x/link"
)

func MsgBandwidthCosts(ctx sdk.Context, pk params.Keeper, msg sdk.Msg) int64 {
Expand Down
2 changes: 1 addition & 1 deletion x/bandwidth/exported/exported.go
Expand Up @@ -2,7 +2,7 @@ package exported

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cybercongress/cyberd/x/bandwidth/internal/types"
"github.com/cybercongress/go-cyber/x/bandwidth/internal/types"
)

type Keeper interface {
Expand Down
2 changes: 1 addition & 1 deletion x/bandwidth/genesis.go
Expand Up @@ -2,7 +2,7 @@ package bandwidth

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cybercongress/cyberd/x/bandwidth/internal/types"
"github.com/cybercongress/go-cyber/x/bandwidth/internal/types"
)

// Genesis accounts should contains fully restored bandwidth on block 0
Expand Down
4 changes: 2 additions & 2 deletions x/bandwidth/internal/keeper/keeper.go
Expand Up @@ -5,8 +5,8 @@ import (
"encoding/json"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/params"
"github.com/cybercongress/cyberd/x/bandwidth/exported"
"github.com/cybercongress/cyberd/x/bandwidth/internal/types"
"github.com/cybercongress/go-cyber/x/bandwidth/exported"
"github.com/cybercongress/go-cyber/x/bandwidth/internal/types"
)

var _ exported.Keeper = &BaseAccBandwidthKeeper{}
Expand Down
2 changes: 1 addition & 1 deletion x/bandwidth/internal/keeper/params.go
Expand Up @@ -4,7 +4,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/params"

"github.com/cybercongress/cyberd/x/bandwidth/internal/types"
"github.com/cybercongress/go-cyber/x/bandwidth/internal/types"
)

// ParamTable for bandwidth module
Expand Down
4 changes: 2 additions & 2 deletions x/bandwidth/internal/keeper/querier.go
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

"github.com/cosmos/cosmos-sdk/codec"
"github.com/cybercongress/cyberd/x/bandwidth/exported"
"github.com/cybercongress/cyberd/x/bandwidth/internal/types"
"github.com/cybercongress/go-cyber/x/bandwidth/exported"
"github.com/cybercongress/go-cyber/x/bandwidth/internal/types"
sdk "github.com/cosmos/cosmos-sdk/types"
abci "github.com/tendermint/tendermint/abci/types"
)
Expand Down
4 changes: 2 additions & 2 deletions x/bandwidth/meter.go
Expand Up @@ -4,8 +4,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth"
"github.com/cosmos/cosmos-sdk/x/params"
"github.com/cybercongress/cyberd/store"
"github.com/cybercongress/cyberd/x/bandwidth/internal/types"
"github.com/cybercongress/go-cyber/store"
"github.com/cybercongress/go-cyber/x/bandwidth/internal/types"
"math"
"strconv"
)
Expand Down
4 changes: 2 additions & 2 deletions x/bandwidth/module.go
Expand Up @@ -3,8 +3,8 @@ package bandwidth
import (
"encoding/json"

"github.com/cybercongress/cyberd/x/bandwidth/client/rest"
"github.com/cybercongress/cyberd/x/bandwidth/client/cli"
"github.com/cybercongress/go-cyber/x/bandwidth/client/rest"
"github.com/cybercongress/go-cyber/x/bandwidth/client/cli"
"github.com/gorilla/mux"
"github.com/spf13/cobra"

Expand Down
6 changes: 3 additions & 3 deletions x/bank/alias.go
@@ -1,9 +1,9 @@
package bank

import (
"github.com/cybercongress/cyberd/x/bank/exported"
"github.com/cybercongress/cyberd/x/bank/internal/keeper"
"github.com/cybercongress/cyberd/x/bank/internal/types"
"github.com/cybercongress/go-cyber/x/bank/exported"
"github.com/cybercongress/go-cyber/x/bank/internal/keeper"
"github.com/cybercongress/go-cyber/x/bank/internal/types"
)

type (
Expand Down

0 comments on commit d05750e

Please sign in to comment.