Skip to content

Commit

Permalink
refactor:rename binance-chain to bnb-chain of import path
Browse files Browse the repository at this point in the history
  • Loading branch information
qinglin89 authored and forcodedancing committed Apr 14, 2022
1 parent 22e53d4 commit c30732b
Show file tree
Hide file tree
Showing 229 changed files with 778 additions and 778 deletions.
176 changes: 88 additions & 88 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM golang:1.11-alpine AS build-env
ENV PACKAGES make git libc-dev bash gcc linux-headers eudev-dev curl ca-certificates ssh

# Set working directory for the build
WORKDIR /go/src/github.com/binance-chain/node
WORKDIR /go/src/github.com/bnb-chain/node

# Add source files
COPY . .
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ export GO111MODULE = on
PACKAGES=$(shell go list ./...)
COMMIT_HASH := $(shell git rev-parse --short HEAD)

COSMOS_RELEASE := $(shell grep 'github.com/binance-chain/bnc-cosmos-sdk' go.mod |awk '{print $$4}')
TENDER_RELEASE := $(shell grep 'github.com/binance-chain/bnc-tendermint' go.mod| grep -v iavl| awk '{print $$4}')
COSMOS_RELEASE := $(shell grep 'github.com/bnb-chain/bnc-cosmos-sdk' go.mod |awk '{print $$4}')
TENDER_RELEASE := $(shell grep 'github.com/bnb-chain/bnc-tendermint' go.mod| grep -v iavl| awk '{print $$4}')

BUILD_TAGS = netgo

BUILD_CLI_TAGS = netgo
BUILD_FLAGS = -mod=readonly -tags "${BUILD_TAGS}" -ldflags "-w -s -X github.com/binance-chain/node/version.GitCommit=${COMMIT_HASH} -X github.com/binance-chain/node/version.CosmosRelease=${COSMOS_RELEASE} -X github.com/binance-chain/node/version.TendermintRelease=${TENDER_RELEASE}" -trimpath
BUILD_CLI_FLAGS = -tags "${BUILD_CLI_TAGS}" -ldflags "-X github.com/binance-chain/node/version.GitCommit=${COMMIT_HASH} -X github.com/binance-chain/node/version.CosmosRelease=${COSMOS_RELEASE} -X github.com/binance-chain/node/version.TendermintRelease=${TENDER_RELEASE}"
BUILD_FLAGS = -mod=readonly -tags "${BUILD_TAGS}" -ldflags "-w -s -X github.com/bnb-chain/node/version.GitCommit=${COMMIT_HASH} -X github.com/bnb-chain/node/version.CosmosRelease=${COSMOS_RELEASE} -X github.com/bnb-chain/node/version.TendermintRelease=${TENDER_RELEASE}" -trimpath
BUILD_CLI_FLAGS = -tags "${BUILD_CLI_TAGS}" -ldflags "-X github.com/bnb-chain/node/version.GitCommit=${COMMIT_HASH} -X github.com/bnb-chain/node/version.CosmosRelease=${COSMOS_RELEASE} -X github.com/bnb-chain/node/version.TendermintRelease=${TENDER_RELEASE}"
# Without -lstdc++ on CentOS we will encounter link error, solution comes from: https://stackoverflow.com/a/29285011/1147187
BUILD_CGOFLAGS = CGO_ENABLED=1 CGO_LDFLAGS="-lleveldb -lsnappy -lstdc++"
BUILD_CFLAGS = ${BUILD_FLAGS} -tags "cleveldb"
BUILD_TESTNET_FLAGS = ${BUILD_CLI_FLAGS} -ldflags "-X github.com/binance-chain/node/app.Bech32PrefixAccAddr=tbnb"
BUILD_TESTNET_FLAGS = ${BUILD_CLI_FLAGS} -ldflags "-X github.com/bnb-chain/node/app.Bech32PrefixAccAddr=tbnb"

UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ If you do not have golang yet, please [install it](https://golang.org/dl) or use
```bash
$ export GOPATH=~/go
$ export PATH=~/go/bin:$PATH
$ export BNBCHAINPATH=~/go/src/github.com/binance-chain/node
$ export BNBCHAINPATH=~/go/src/github.com/bnb-chain/node
$ mkdir -p $BNBCHAINPATH
$ git clone [email protected]:binance-chain/node.git $BNBCHAINPATH
$ git clone [email protected]:bnb-chain/node.git $BNBCHAINPATH
$ cd $BNBCHAINPATH
$ make get_vendor_deps
$ make install
Expand All @@ -50,7 +50,7 @@ You may need add BNBCHAINPATH to the environment variables.

```bat
> md %BNBCHAINPATH%
> git clone [email protected]:binance-chain/node.git %BNBCHAINPATH%
> git clone [email protected]:bnb-chain/node.git %BNBCHAINPATH%
> cd %BNBCHAINPATH%
> make get_vendor_deps
> make install
Expand Down
2 changes: 1 addition & 1 deletion admin/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"

"github.com/binance-chain/node/wire"
"github.com/bnb-chain/node/wire"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions admin/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/config"

"github.com/binance-chain/node/common/runtime"
"github.com/binance-chain/node/common/types"
"github.com/bnb-chain/node/common/runtime"
"github.com/bnb-chain/node/common/types"
)

// path:
Expand Down
24 changes: 12 additions & 12 deletions admin/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/bank"

"github.com/binance-chain/node/common/runtime"
"github.com/binance-chain/node/plugins/account"
"github.com/binance-chain/node/plugins/bridge"
"github.com/binance-chain/node/plugins/dex/order"
list "github.com/binance-chain/node/plugins/dex/types"
"github.com/binance-chain/node/plugins/tokens/burn"
"github.com/binance-chain/node/plugins/tokens/freeze"
"github.com/binance-chain/node/plugins/tokens/issue"
"github.com/binance-chain/node/plugins/tokens/ownership"
"github.com/binance-chain/node/plugins/tokens/seturi"
"github.com/binance-chain/node/plugins/tokens/swap"
"github.com/binance-chain/node/plugins/tokens/timelock"
"github.com/bnb-chain/node/common/runtime"
"github.com/bnb-chain/node/plugins/account"
"github.com/bnb-chain/node/plugins/bridge"
"github.com/bnb-chain/node/plugins/dex/order"
list "github.com/bnb-chain/node/plugins/dex/types"
"github.com/bnb-chain/node/plugins/tokens/burn"
"github.com/bnb-chain/node/plugins/tokens/freeze"
"github.com/bnb-chain/node/plugins/tokens/issue"
"github.com/bnb-chain/node/plugins/tokens/ownership"
"github.com/bnb-chain/node/plugins/tokens/seturi"
"github.com/bnb-chain/node/plugins/tokens/swap"
"github.com/bnb-chain/node/plugins/tokens/timelock"
)

var transferOnlyModeBlackList = []string{
Expand Down
2 changes: 1 addition & 1 deletion app/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tendermint/libs/log"

common "github.com/binance-chain/node/common/types"
common "github.com/bnb-chain/node/common/types"
)

func BenchmarkGetAccount(b *testing.B) {
Expand Down
48 changes: 24 additions & 24 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,30 +36,30 @@ import (
tmstore "github.com/tendermint/tendermint/store"
tmtypes "github.com/tendermint/tendermint/types"

"github.com/binance-chain/node/admin"
"github.com/binance-chain/node/app/config"
"github.com/binance-chain/node/app/pub"
appsub "github.com/binance-chain/node/app/pub/sub"
"github.com/binance-chain/node/common"
"github.com/binance-chain/node/common/runtime"
"github.com/binance-chain/node/common/tx"
"github.com/binance-chain/node/common/types"
"github.com/binance-chain/node/common/upgrade"
"github.com/binance-chain/node/common/utils"
"github.com/binance-chain/node/plugins/account"
"github.com/binance-chain/node/plugins/bridge"
bTypes "github.com/binance-chain/node/plugins/bridge/types"
"github.com/binance-chain/node/plugins/dex"
"github.com/binance-chain/node/plugins/dex/list"
"github.com/binance-chain/node/plugins/dex/order"
dextypes "github.com/binance-chain/node/plugins/dex/types"
"github.com/binance-chain/node/plugins/tokens"
"github.com/binance-chain/node/plugins/tokens/issue"
"github.com/binance-chain/node/plugins/tokens/ownership"
"github.com/binance-chain/node/plugins/tokens/seturi"
"github.com/binance-chain/node/plugins/tokens/swap"
"github.com/binance-chain/node/plugins/tokens/timelock"
"github.com/binance-chain/node/wire"
"github.com/bnb-chain/node/admin"
"github.com/bnb-chain/node/app/config"
"github.com/bnb-chain/node/app/pub"
appsub "github.com/bnb-chain/node/app/pub/sub"
"github.com/bnb-chain/node/common"
"github.com/bnb-chain/node/common/runtime"
"github.com/bnb-chain/node/common/tx"
"github.com/bnb-chain/node/common/types"
"github.com/bnb-chain/node/common/upgrade"
"github.com/bnb-chain/node/common/utils"
"github.com/bnb-chain/node/plugins/account"
"github.com/bnb-chain/node/plugins/bridge"
bTypes "github.com/bnb-chain/node/plugins/bridge/types"
"github.com/bnb-chain/node/plugins/dex"
"github.com/bnb-chain/node/plugins/dex/list"
"github.com/bnb-chain/node/plugins/dex/order"
dextypes "github.com/bnb-chain/node/plugins/dex/types"
"github.com/bnb-chain/node/plugins/tokens"
"github.com/bnb-chain/node/plugins/tokens/issue"
"github.com/bnb-chain/node/plugins/tokens/ownership"
"github.com/bnb-chain/node/plugins/tokens/seturi"
"github.com/bnb-chain/node/plugins/tokens/swap"
"github.com/bnb-chain/node/plugins/tokens/timelock"
"github.com/bnb-chain/node/wire"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions app/app_paramhub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ import (
"github.com/cosmos/cosmos-sdk/x/slashing"
"github.com/cosmos/cosmos-sdk/x/stake"

ctypes "github.com/binance-chain/node/common/types"
"github.com/binance-chain/node/plugins/dex"
"github.com/binance-chain/node/plugins/tokens"
"github.com/binance-chain/node/wire"
ctypes "github.com/bnb-chain/node/common/types"
"github.com/bnb-chain/node/plugins/dex"
"github.com/bnb-chain/node/plugins/tokens"
"github.com/bnb-chain/node/wire"
)

// util objects
Expand Down
14 changes: 7 additions & 7 deletions app/app_pub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ import (
dbm "github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tendermint/libs/log"

"github.com/binance-chain/node/app/config"
"github.com/binance-chain/node/app/pub"
appsub "github.com/binance-chain/node/app/pub/sub"
"github.com/binance-chain/node/common/testutils"
orderPkg "github.com/binance-chain/node/plugins/dex/order"
dextypes "github.com/binance-chain/node/plugins/dex/types"
"github.com/binance-chain/node/wire"
"github.com/bnb-chain/node/app/config"
"github.com/bnb-chain/node/app/pub"
appsub "github.com/bnb-chain/node/app/pub/sub"
"github.com/bnb-chain/node/common/testutils"
orderPkg "github.com/bnb-chain/node/plugins/dex/order"
dextypes "github.com/bnb-chain/node/plugins/dex/types"
"github.com/bnb-chain/node/wire"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
dbm "github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tendermint/libs/log"

"github.com/binance-chain/node/common/testutils"
"github.com/bnb-chain/node/common/testutils"
)

func TearDown() {
Expand Down
10 changes: 5 additions & 5 deletions app/apptest/base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ import (
dbm "github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tendermint/libs/log"

"github.com/binance-chain/node/app"
common "github.com/binance-chain/node/common/types"
"github.com/binance-chain/node/plugins/dex"
"github.com/binance-chain/node/plugins/tokens"
"github.com/binance-chain/node/wire"
"github.com/bnb-chain/node/app"
common "github.com/bnb-chain/node/common/types"
"github.com/bnb-chain/node/plugins/dex"
"github.com/bnb-chain/node/plugins/tokens"
"github.com/bnb-chain/node/wire"
)

type TestClient struct {
Expand Down
4 changes: 2 additions & 2 deletions app/apptest/match_allocation_cancel_new_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/assert"
abci "github.com/tendermint/tendermint/abci/types"

"github.com/binance-chain/node/common/utils"
"github.com/binance-chain/node/plugins/dex/order"
"github.com/bnb-chain/node/common/utils"
"github.com/bnb-chain/node/plugins/dex/order"
)

/*
Expand Down
4 changes: 2 additions & 2 deletions app/apptest/match_allocation_cancel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/assert"
abci "github.com/tendermint/tendermint/abci/types"

"github.com/binance-chain/node/common/utils"
"github.com/binance-chain/node/plugins/dex/order"
"github.com/bnb-chain/node/common/utils"
"github.com/bnb-chain/node/plugins/dex/order"
)

/*
Expand Down
6 changes: 3 additions & 3 deletions app/apptest/match_allocation_expire_new_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/stretchr/testify/assert"
abci "github.com/tendermint/tendermint/abci/types"

"github.com/binance-chain/node/common/utils"
"github.com/binance-chain/node/plugins/dex/matcheng"
"github.com/binance-chain/node/plugins/dex/order"
"github.com/bnb-chain/node/common/utils"
"github.com/bnb-chain/node/plugins/dex/matcheng"
"github.com/bnb-chain/node/plugins/dex/order"
)

/*
Expand Down
4 changes: 2 additions & 2 deletions app/apptest/match_allocation_expire_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/stretchr/testify/assert"
abci "github.com/tendermint/tendermint/abci/types"

"github.com/binance-chain/node/common/utils"
"github.com/binance-chain/node/plugins/dex/order"
"github.com/bnb-chain/node/common/utils"
"github.com/bnb-chain/node/plugins/dex/order"
)

/*
Expand Down
6 changes: 3 additions & 3 deletions app/apptest/match_allocation_fill_new_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"github.com/stretchr/testify/assert"
abci "github.com/tendermint/tendermint/abci/types"

"github.com/binance-chain/node/common/utils"
"github.com/binance-chain/node/plugins/dex/matcheng"
"github.com/binance-chain/node/plugins/dex/order"
"github.com/bnb-chain/node/common/utils"
"github.com/bnb-chain/node/plugins/dex/matcheng"
"github.com/bnb-chain/node/plugins/dex/order"
)

/*
Expand Down
4 changes: 2 additions & 2 deletions app/apptest/match_allocation_fill_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/assert"
abci "github.com/tendermint/tendermint/abci/types"

"github.com/binance-chain/node/common/utils"
"github.com/binance-chain/node/plugins/dex/order"
"github.com/bnb-chain/node/common/utils"
"github.com/bnb-chain/node/plugins/dex/order"
)

/*
Expand Down
4 changes: 2 additions & 2 deletions app/apptest/match_allocation_ioc_new_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/assert"
abci "github.com/tendermint/tendermint/abci/types"

"github.com/binance-chain/node/common/utils"
"github.com/binance-chain/node/plugins/dex/order"
"github.com/bnb-chain/node/common/utils"
"github.com/bnb-chain/node/plugins/dex/order"
)

/*
Expand Down
4 changes: 2 additions & 2 deletions app/apptest/match_allocation_ioc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/assert"
abci "github.com/tendermint/tendermint/abci/types"

"github.com/binance-chain/node/common/utils"
"github.com/binance-chain/node/plugins/dex/order"
"github.com/bnb-chain/node/common/utils"
"github.com/bnb-chain/node/plugins/dex/order"
)

/*
Expand Down
6 changes: 3 additions & 3 deletions app/apptest/match_allocation_maker_buy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"github.com/stretchr/testify/assert"
abci "github.com/tendermint/tendermint/abci/types"

"github.com/binance-chain/node/common/utils"
"github.com/binance-chain/node/plugins/dex/matcheng"
"github.com/binance-chain/node/plugins/dex/order"
"github.com/bnb-chain/node/common/utils"
"github.com/bnb-chain/node/plugins/dex/matcheng"
"github.com/bnb-chain/node/plugins/dex/order"
)

// note that maker orders are marked as x(m) in order book
Expand Down
6 changes: 3 additions & 3 deletions app/apptest/match_allocation_maker_sell_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"github.com/stretchr/testify/assert"
abci "github.com/tendermint/tendermint/abci/types"

"github.com/binance-chain/node/common/utils"
"github.com/binance-chain/node/plugins/dex/matcheng"
"github.com/binance-chain/node/plugins/dex/order"
"github.com/bnb-chain/node/common/utils"
"github.com/bnb-chain/node/plugins/dex/matcheng"
"github.com/bnb-chain/node/plugins/dex/order"
)

// note that maker orders are marked as x(m) in order book
Expand Down
6 changes: 3 additions & 3 deletions app/apptest/match_allocation_overflow_new_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/stretchr/testify/assert"
abci "github.com/tendermint/tendermint/abci/types"

"github.com/binance-chain/node/common/utils"
"github.com/binance-chain/node/plugins/dex/matcheng"
"github.com/binance-chain/node/plugins/dex/order"
"github.com/bnb-chain/node/common/utils"
"github.com/bnb-chain/node/plugins/dex/matcheng"
"github.com/bnb-chain/node/plugins/dex/order"
)

/*
Expand Down
4 changes: 2 additions & 2 deletions app/apptest/match_allocation_overflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/stretchr/testify/assert"
abci "github.com/tendermint/tendermint/abci/types"

"github.com/binance-chain/node/common/utils"
"github.com/binance-chain/node/plugins/dex/order"
"github.com/bnb-chain/node/common/utils"
"github.com/bnb-chain/node/plugins/dex/order"
)

/*
Expand Down
6 changes: 3 additions & 3 deletions app/apptest/match_allocation_split_new_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"github.com/stretchr/testify/assert"
abci "github.com/tendermint/tendermint/abci/types"

"github.com/binance-chain/node/common/utils"
"github.com/binance-chain/node/plugins/dex/matcheng"
"github.com/binance-chain/node/plugins/dex/order"
"github.com/bnb-chain/node/common/utils"
"github.com/bnb-chain/node/plugins/dex/matcheng"
"github.com/bnb-chain/node/plugins/dex/order"
)

/*
Expand Down
4 changes: 2 additions & 2 deletions app/apptest/match_allocation_split_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/stretchr/testify/assert"
abci "github.com/tendermint/tendermint/abci/types"

"github.com/binance-chain/node/common/utils"
"github.com/binance-chain/node/plugins/dex/order"
"github.com/bnb-chain/node/common/utils"
"github.com/bnb-chain/node/plugins/dex/order"
)

/*
Expand Down
Loading

0 comments on commit c30732b

Please sign in to comment.