Skip to content

Commit

Permalink
chore: revise module path to github.com/line/lbm-sdk/v2 (#90)
Browse files Browse the repository at this point in the history
* chore: replace module path to `github.com/line/lbm-sdk/v2`

* chore: update module path more
  • Loading branch information
jinsan-line authored Mar 15, 2021
1 parent 2181455 commit 046b33f
Show file tree
Hide file tree
Showing 1,375 changed files with 5,422 additions and 5,422 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python3
RUN apk add --no-cache $PACKAGES

# Set working directory for the build
WORKDIR /go/src/github.com/cosmos/cosmos-sdk
WORKDIR /go/src/github.com/line/lbm-sdk

# Add source files
COPY . .
Expand All @@ -34,7 +34,7 @@ RUN apk add --update ca-certificates
WORKDIR /root

# Copy over binaries from the build-env
COPY --from=build-env /go/src/github.com/cosmos/cosmos-sdk/build/simd /usr/bin/simd
COPY --from=build-env /go/src/github.com/line/lbm-sdk/build/simd /usr/bin/simd

EXPOSE 26656 26657 1317 9090

Expand Down
28 changes: 14 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ BINDIR ?= $(GOPATH)/bin
BUILDDIR ?= $(CURDIR)/build
SIMAPP = ./simapp
MOCKS_DIR = $(CURDIR)/tests/mocks
HTTPS_GIT := https://github.com/cosmos/cosmos-sdk.git
HTTPS_GIT := https://github.com/line/lbm-sdk.git
DOCKER := $(shell which docker)
DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf

Expand Down Expand Up @@ -54,29 +54,29 @@ build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags))

# process linker flags

ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=sim \
-X github.com/cosmos/cosmos-sdk/version.AppName=simd \
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)"
ldflags = -X github.com/line/lbm-sdk/v2/version.Name=sim \
-X github.com/line/lbm-sdk/v2/version.AppName=simd \
-X github.com/line/lbm-sdk/v2/version.Version=$(VERSION) \
-X github.com/line/lbm-sdk/v2/version.Commit=$(COMMIT) \
-X "github.com/line/lbm-sdk/v2/version.BuildTags=$(build_tags_comma_sep)"

# DB backend selection
ifeq (cleveldb,$(findstring cleveldb,$(COSMOS_BUILD_OPTIONS)))
ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=cleveldb
ldflags += -X github.com/line/lbm-sdk/v2/types.DBBackend=cleveldb
endif
ifeq (badgerdb,$(findstring badgerdb,$(COSMOS_BUILD_OPTIONS)))
ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=badgerdb
ldflags += -X github.com/line/lbm-sdk/v2/types.DBBackend=badgerdb
endif
# handle rocksdb
ifeq (rocksdb,$(findstring rocksdb,$(COSMOS_BUILD_OPTIONS)))
CGO_ENABLED=1
BUILD_TAGS += rocksdb
ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=rocksdb
ldflags += -X github.com/line/lbm-sdk/v2/types.DBBackend=rocksdb
endif
# handle boltdb
ifeq (boltdb,$(findstring boltdb,$(COSMOS_BUILD_OPTIONS)))
BUILD_TAGS += boltdb
ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=boltdb
ldflags += -X github.com/line/lbm-sdk/v2/types.DBBackend=boltdb
endif

ifeq (,$(findstring nostrip,$(COSMOS_BUILD_OPTIONS)))
Expand Down Expand Up @@ -187,7 +187,7 @@ update-swagger-docs: statik
.PHONY: update-swagger-docs

godocs:
@echo "--> Wait a few seconds and visit http://localhost:6060/pkg/github.com/cosmos/cosmos-sdk/types"
@echo "--> Wait a few seconds and visit http://localhost:6060/pkg/github.com/line/lbm-sdk/v2/types"
godoc -http=:6060

# This builds a docs site for each branch/tag in `./docs/versions`
Expand Down Expand Up @@ -334,7 +334,7 @@ lint-fix:
format:
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -path "./tests/mocks/*" -not -name '*.pb.go' | xargs gofmt -w -s
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -path "./tests/mocks/*" -not -name '*.pb.go' | xargs misspell -w
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -path "./tests/mocks/*" -not -name '*.pb.go' | xargs goimports -w -local github.com/cosmos/cosmos-sdk
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -path "./tests/mocks/*" -not -name '*.pb.go' | xargs goimports -w -local github.com/line/lbm-sdk/v2
.PHONY: format

###############################################################################
Expand All @@ -344,12 +344,12 @@ format:
DEVDOC_SAVE = docker commit `docker ps -a -n 1 -q` devdoc:local

devdoc-init:
$(DOCKER) run -it -v "$(CURDIR):/go/src/github.com/cosmos/cosmos-sdk" -w "/go/src/github.com/cosmos/cosmos-sdk" tendermint/devdoc echo
$(DOCKER) run -it -v "$(CURDIR):/go/src/github.com/line/lbm-sdk/v2" -w "/go/src/github.com/line/lbm-sdk/v2" tendermint/devdoc echo
# TODO make this safer
$(call DEVDOC_SAVE)

devdoc:
$(DOCKER) run -it -v "$(CURDIR):/go/src/github.com/cosmos/cosmos-sdk" -w "/go/src/github.com/cosmos/cosmos-sdk" devdoc:local bash
$(DOCKER) run -it -v "$(CURDIR):/go/src/github.com/line/lbm-sdk/v2" -w "/go/src/github.com/line/lbm-sdk/v2" devdoc:local bash

devdoc-save:
# TODO make this safer
Expand Down
10 changes: 5 additions & 5 deletions baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ import (
"google.golang.org/grpc/codes"
grpcstatus "google.golang.org/grpc/status"

"github.com/cosmos/cosmos-sdk/codec"
snapshottypes "github.com/cosmos/cosmos-sdk/snapshots/types"
"github.com/cosmos/cosmos-sdk/telemetry"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/line/lbm-sdk/v2/codec"
snapshottypes "github.com/line/lbm-sdk/v2/snapshots/types"
"github.com/line/lbm-sdk/v2/telemetry"
sdk "github.com/line/lbm-sdk/v2/types"
sdkerrors "github.com/line/lbm-sdk/v2/types/errors"
)

// InitChain implements the ABCI interface. It runs the initialization logic
Expand Down
2 changes: 1 addition & 1 deletion baseapp/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
tmprototypes "github.com/tendermint/tendermint/proto/tendermint/types"
dbm "github.com/tendermint/tm-db"

sdk "github.com/cosmos/cosmos-sdk/types"
sdk "github.com/line/lbm-sdk/v2/types"
)

func TestGetBlockRentionHeight(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import (
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
dbm "github.com/tendermint/tm-db"

"github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/snapshots"
"github.com/cosmos/cosmos-sdk/store"
"github.com/cosmos/cosmos-sdk/store/rootmulti"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/line/lbm-sdk/v2/codec/types"
"github.com/line/lbm-sdk/v2/snapshots"
"github.com/line/lbm-sdk/v2/store"
"github.com/line/lbm-sdk/v2/store/rootmulti"
sdk "github.com/line/lbm-sdk/v2/types"
sdkerrors "github.com/line/lbm-sdk/v2/types/errors"
)

const (
Expand Down
18 changes: 9 additions & 9 deletions baseapp/baseapp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ import (
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
dbm "github.com/tendermint/tm-db"

"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/snapshots"
snapshottypes "github.com/cosmos/cosmos-sdk/snapshots/types"
"github.com/cosmos/cosmos-sdk/store/rootmulti"
store "github.com/cosmos/cosmos-sdk/store/types"
"github.com/cosmos/cosmos-sdk/testutil/testdata"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx"
"github.com/line/lbm-sdk/v2/codec"
"github.com/line/lbm-sdk/v2/snapshots"
snapshottypes "github.com/line/lbm-sdk/v2/snapshots/types"
"github.com/line/lbm-sdk/v2/store/rootmulti"
store "github.com/line/lbm-sdk/v2/store/types"
"github.com/line/lbm-sdk/v2/testutil/testdata"
sdk "github.com/line/lbm-sdk/v2/types"
sdkerrors "github.com/line/lbm-sdk/v2/types/errors"
"github.com/line/lbm-sdk/v2/x/auth/legacy/legacytx"
)

var (
Expand Down
8 changes: 4 additions & 4 deletions baseapp/grpcrouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"google.golang.org/grpc/encoding"
"google.golang.org/grpc/encoding/proto"

"github.com/cosmos/cosmos-sdk/client/grpc/reflection"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/line/lbm-sdk/v2/client/grpc/reflection"
codectypes "github.com/line/lbm-sdk/v2/codec/types"
sdk "github.com/line/lbm-sdk/v2/types"
sdkerrors "github.com/line/lbm-sdk/v2/types/errors"
)

var protoCodec = encoding.GetCodec(proto.Name)
Expand Down
4 changes: 2 additions & 2 deletions baseapp/grpcrouter_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
"google.golang.org/grpc"

"github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/line/lbm-sdk/v2/codec/types"
sdk "github.com/line/lbm-sdk/v2/types"
)

// QueryServiceTestHelper provides a helper for making grpc query service
Expand Down
10 changes: 5 additions & 5 deletions baseapp/grpcrouter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"github.com/tendermint/tendermint/libs/log"
dbm "github.com/tendermint/tm-db"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/simapp"
"github.com/cosmos/cosmos-sdk/testutil/testdata"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/line/lbm-sdk/v2/baseapp"
"github.com/line/lbm-sdk/v2/codec/types"
"github.com/line/lbm-sdk/v2/simapp"
"github.com/line/lbm-sdk/v2/testutil/testdata"
sdk "github.com/line/lbm-sdk/v2/types"
)

func TestGRPCGatewayRouter(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions baseapp/grpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/metadata"

"github.com/cosmos/cosmos-sdk/client"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/types/tx"
"github.com/line/lbm-sdk/v2/client"
sdkerrors "github.com/line/lbm-sdk/v2/types/errors"
"github.com/line/lbm-sdk/v2/types/tx"
)

// GRPCQueryRouter returns the GRPCQueryRouter of a BaseApp.
Expand Down
6 changes: 3 additions & 3 deletions baseapp/msg_service_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/gogo/protobuf/proto"
"google.golang.org/grpc"

codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
codectypes "github.com/line/lbm-sdk/v2/codec/types"
sdk "github.com/line/lbm-sdk/v2/types"
sdkerrors "github.com/line/lbm-sdk/v2/types/errors"
)

// MsgServiceRouter routes fully-qualified Msg service methods to their handler.
Expand Down
12 changes: 6 additions & 6 deletions baseapp/msg_service_router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
dbm "github.com/tendermint/tm-db"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client/tx"
"github.com/cosmos/cosmos-sdk/simapp"
"github.com/cosmos/cosmos-sdk/testutil/testdata"
"github.com/cosmos/cosmos-sdk/types/tx/signing"
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
"github.com/line/lbm-sdk/v2/baseapp"
"github.com/line/lbm-sdk/v2/client/tx"
"github.com/line/lbm-sdk/v2/simapp"
"github.com/line/lbm-sdk/v2/testutil/testdata"
"github.com/line/lbm-sdk/v2/types/tx/signing"
authsigning "github.com/line/lbm-sdk/v2/x/auth/signing"
)

func TestRegisterMsgService(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions baseapp/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (

dbm "github.com/tendermint/tm-db"

"github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/snapshots"
"github.com/cosmos/cosmos-sdk/store"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/line/lbm-sdk/v2/codec/types"
"github.com/line/lbm-sdk/v2/snapshots"
"github.com/line/lbm-sdk/v2/store"
sdk "github.com/line/lbm-sdk/v2/types"
)

// File for storing in-package BaseApp optional functions,
Expand Down
2 changes: 1 addition & 1 deletion baseapp/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"

sdk "github.com/cosmos/cosmos-sdk/types"
sdk "github.com/line/lbm-sdk/v2/types"
)

// Paramspace defines the parameter subspace to be used for the paramstore.
Expand Down
2 changes: 1 addition & 1 deletion baseapp/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/line/lbm-sdk/v2/baseapp"
)

func TestValidateBlockParams(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion baseapp/queryrouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package baseapp
import (
"fmt"

sdk "github.com/cosmos/cosmos-sdk/types"
sdk "github.com/line/lbm-sdk/v2/types"
)

type QueryRouter struct {
Expand Down
2 changes: 1 addition & 1 deletion baseapp/queryrouter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

abci "github.com/tendermint/tendermint/abci/types"

sdk "github.com/cosmos/cosmos-sdk/types"
sdk "github.com/line/lbm-sdk/v2/types"
)

var testQuerier = func(_ sdk.Context, _ []string, _ abci.RequestQuery) ([]byte, error) {
Expand Down
4 changes: 2 additions & 2 deletions baseapp/recovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"runtime/debug"

sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
sdk "github.com/line/lbm-sdk/v2/types"
sdkerrors "github.com/line/lbm-sdk/v2/types/errors"
)

// RecoveryHandler handles recovery() object.
Expand Down
2 changes: 1 addition & 1 deletion baseapp/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package baseapp
import (
"fmt"

sdk "github.com/cosmos/cosmos-sdk/types"
sdk "github.com/line/lbm-sdk/v2/types"
)

type Router struct {
Expand Down
2 changes: 1 addition & 1 deletion baseapp/router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/require"

sdk "github.com/cosmos/cosmos-sdk/types"
sdk "github.com/line/lbm-sdk/v2/types"
)

var testHandler = func(_ sdk.Context, _ sdk.Msg) (*sdk.Result, error) {
Expand Down
2 changes: 1 addition & 1 deletion baseapp/state.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package baseapp

import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdk "github.com/line/lbm-sdk/v2/types"
)

type state struct {
Expand Down
4 changes: 2 additions & 2 deletions baseapp/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package baseapp
import (
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"

sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
sdk "github.com/line/lbm-sdk/v2/types"
sdkerrors "github.com/line/lbm-sdk/v2/types/errors"
)

func (app *BaseApp) Check(txEncoder sdk.TxEncoder, tx sdk.Tx) (sdk.GasInfo, *sdk.Result, error) {
Expand Down
4 changes: 2 additions & 2 deletions client/account_retriever.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package client

import (
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
cryptotypes "github.com/line/lbm-sdk/v2/crypto/types"
sdk "github.com/line/lbm-sdk/v2/types"
)

// Account defines a read-only version of the auth module's AccountI.
Expand Down
8 changes: 4 additions & 4 deletions client/broadcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

"github.com/cosmos/cosmos-sdk/client/flags"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/types/tx"
"github.com/line/lbm-sdk/v2/client/flags"
sdk "github.com/line/lbm-sdk/v2/types"
sdkerrors "github.com/line/lbm-sdk/v2/types/errors"
"github.com/line/lbm-sdk/v2/types/tx"
)

// BroadcastTx broadcasts a transactions either synchronously or asynchronously
Expand Down
4 changes: 2 additions & 2 deletions client/broadcast_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
ctypes "github.com/tendermint/tendermint/rpc/core/types"
tmtypes "github.com/tendermint/tendermint/types"

"github.com/cosmos/cosmos-sdk/client/flags"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/line/lbm-sdk/v2/client/flags"
sdkerrors "github.com/line/lbm-sdk/v2/types/errors"
)

type MockClient struct {
Expand Down
Loading

0 comments on commit 046b33f

Please sign in to comment.