Skip to content

Commit

Permalink
rename BabylonLabs dependencies (#1)
Browse files Browse the repository at this point in the history
Rename BabylonChain to BabylonLabs

---------

Co-authored-by: KonradStaniec <[email protected]>
  • Loading branch information
SebastianElvis and KonradStaniec authored Jul 29, 2024
1 parent 679b49a commit 5f8af8c
Show file tree
Hide file tree
Showing 553 changed files with 3,529 additions and 3,522 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ on:
- 'dev'
tags:
- '*'

jobs:
lint_test:
uses: babylonchain/.github/.github/workflows/[email protected]
uses: babylonlabs-io/.github/.github/workflows/[email protected]
with:
run-unit-tests: true
run-integration-tests: true
run-lint: true
integration-tests-command: |
sudo make test-e2e
docker_pipeline:
uses: babylonchain/.github/.github/workflows/[email protected]
uses: babylonlabs-io/.github/.github/workflows/[email protected]
needs: ["lint_test"]
secrets: inherit
with:
publish: true
dockerfile: ./contrib/images/babylond/Dockerfile
repoName: babylond
repoName: babylond
830 changes: 415 additions & 415 deletions CHANGELOG.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.

Parameters

Licensor: Babylonchain, Inc.
Licensor: BabylonLabs, Ltd.

Licensed Work: Babylon
The Licensed Work is (c) 2023 Babylonchain, Inc.
The Licensed Work is (c) 2023 BabylonLabs, Ltd.

Additional Use Grant: None.

Change Date: 2027-01-20 (January 20th, 2027]
Change Date: 2027-01-20 (January 20th, 2027)

Change License: Apache 2.0

Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LEDGER_ENABLED ?= true
BINDIR ?= $(GOPATH)/bin
PROJECT_NAME ?= babylon
BUILDDIR ?= $(CURDIR)/build
HTTPS_GIT := https://github.com/babylonchain/babylon.git
HTTPS_GIT := https://github.com/babylonlabs-io/babylon.git
DOCKER := $(shell which docker)
SIMAPP = ./simapp

Expand Down Expand Up @@ -341,7 +341,7 @@ lint-go:
format: ## Run code formater
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -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 -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 -name '*.pb.go' | xargs goimports -w -local github.com/babylonchain/babylon
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -name '*.pb.go' | xargs goimports -w -local github.com/babylonlabs-io/babylon
.PHONY: format

###############################################################################
Expand All @@ -363,12 +363,12 @@ gosec-local: ## Run local security checkss
DEVDOC_SAVE = docker commit `docker ps -a -n 1 -q` devdoc:local

devdoc-init: ## Initialize documentation
$(DOCKER) run -it -v "$(CURDIR):/go/src/github.com/babylonchain/babylon" -w "/go/src/github.com/babylonchain/babylon" tendermint/devdoc echo
$(DOCKER) run -it -v "$(CURDIR):/go/src/github.com/babylonlabs-io/babylon" -w "/go/src/github.com/babylonlabs-io/babylon" tendermint/devdoc echo
# TODO make this safer
$(call DEVDOC_SAVE)

devdoc: ## Generate documentation
$(DOCKER) run -it -v "$(CURDIR):/go/src/github.com/babylonchain/babylon" -w "/go/src/github.com/babylonchain/babylon" devdoc:local bash
$(DOCKER) run -it -v "$(CURDIR):/go/src/github.com/babylonlabs-io/babylon" -w "/go/src/github.com/babylonlabs-io/babylon" devdoc:local bash

devdoc-save: ## Save documentation changes
# TODO make this safer
Expand Down Expand Up @@ -428,7 +428,7 @@ init-testnet-dirs: ## Initialize directories for testnet, creates a ./.testnets
# need to create the dir before hand so that the docker container has write access to the `.testnets` dir
# regardless of the user it uses
mkdir -p $(CURDIR)/.testnets && chmod o+w $(CURDIR)/.testnets
$(DOCKER) run --rm -v $(CURDIR)/.testnets:/home/babylon/.testnets:Z babylonchain/babylond \
$(DOCKER) run --rm -v $(CURDIR)/.testnets:/home/babylon/.testnets:Z babylonlabs-io/babylond \
babylond testnet init-files --v 4 -o /home/babylon/.testnets \
--starting-ip-address 192.168.10.2 --keyring-backend=test \
--chain-id chain-test --btc-confirmation-depth 2 --additional-sender-account true \
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Send your detailed vulnerability report to `[email protected]`.

### 2. GitHub Private Vulnerability Reporting

Utilize [GitHub's Private Vulnerability Reporting](https://github.com/babylonchain/babylon/security/advisories/new)
Utilize [GitHub's Private Vulnerability Reporting](https://github.com/babylonlabs-io/babylon/security/advisories/new)
for confidential disclosure.

## Submit Vulnerability Report
Expand Down
8 changes: 4 additions & 4 deletions app/ante_btc_validation_decorator.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package app

import (
bbn "github.com/babylonchain/babylon/types"
btccheckpointkeeper "github.com/babylonchain/babylon/x/btccheckpoint/keeper"
btccheckpointtypes "github.com/babylonchain/babylon/x/btccheckpoint/types"
btclightclient "github.com/babylonchain/babylon/x/btclightclient/types"
bbn "github.com/babylonlabs-io/babylon/types"
btccheckpointkeeper "github.com/babylonlabs-io/babylon/x/btccheckpoint/keeper"
btccheckpointtypes "github.com/babylonlabs-io/babylon/x/btccheckpoint/types"
btclightclient "github.com/babylonlabs-io/babylon/x/btclightclient/types"
sdk "github.com/cosmos/cosmos-sdk/types"
)

Expand Down
52 changes: 26 additions & 26 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,32 +93,32 @@ import (
ibctm "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint"
"github.com/spf13/cast"

"github.com/babylonchain/babylon/app/upgrades"
bbn "github.com/babylonchain/babylon/types"

appkeepers "github.com/babylonchain/babylon/app/keepers"
appparams "github.com/babylonchain/babylon/app/params"
"github.com/babylonchain/babylon/client/docs"
"github.com/babylonchain/babylon/x/btccheckpoint"
btccheckpointtypes "github.com/babylonchain/babylon/x/btccheckpoint/types"
"github.com/babylonchain/babylon/x/btclightclient"
btclightclienttypes "github.com/babylonchain/babylon/x/btclightclient/types"
"github.com/babylonchain/babylon/x/btcstaking"
btcstakingtypes "github.com/babylonchain/babylon/x/btcstaking/types"
"github.com/babylonchain/babylon/x/checkpointing"
checkpointingtypes "github.com/babylonchain/babylon/x/checkpointing/types"
"github.com/babylonchain/babylon/x/epoching"
epochingkeeper "github.com/babylonchain/babylon/x/epoching/keeper"
epochingtypes "github.com/babylonchain/babylon/x/epoching/types"
"github.com/babylonchain/babylon/x/finality"
finalitytypes "github.com/babylonchain/babylon/x/finality/types"
"github.com/babylonchain/babylon/x/incentive"
incentivetypes "github.com/babylonchain/babylon/x/incentive/types"
"github.com/babylonchain/babylon/x/monitor"
monitortypes "github.com/babylonchain/babylon/x/monitor/types"
"github.com/babylonchain/babylon/x/zoneconcierge"
zckeeper "github.com/babylonchain/babylon/x/zoneconcierge/keeper"
zctypes "github.com/babylonchain/babylon/x/zoneconcierge/types"
"github.com/babylonlabs-io/babylon/app/upgrades"
bbn "github.com/babylonlabs-io/babylon/types"

appkeepers "github.com/babylonlabs-io/babylon/app/keepers"
appparams "github.com/babylonlabs-io/babylon/app/params"
"github.com/babylonlabs-io/babylon/client/docs"
"github.com/babylonlabs-io/babylon/x/btccheckpoint"
btccheckpointtypes "github.com/babylonlabs-io/babylon/x/btccheckpoint/types"
"github.com/babylonlabs-io/babylon/x/btclightclient"
btclightclienttypes "github.com/babylonlabs-io/babylon/x/btclightclient/types"
"github.com/babylonlabs-io/babylon/x/btcstaking"
btcstakingtypes "github.com/babylonlabs-io/babylon/x/btcstaking/types"
"github.com/babylonlabs-io/babylon/x/checkpointing"
checkpointingtypes "github.com/babylonlabs-io/babylon/x/checkpointing/types"
"github.com/babylonlabs-io/babylon/x/epoching"
epochingkeeper "github.com/babylonlabs-io/babylon/x/epoching/keeper"
epochingtypes "github.com/babylonlabs-io/babylon/x/epoching/types"
"github.com/babylonlabs-io/babylon/x/finality"
finalitytypes "github.com/babylonlabs-io/babylon/x/finality/types"
"github.com/babylonlabs-io/babylon/x/incentive"
incentivetypes "github.com/babylonlabs-io/babylon/x/incentive/types"
"github.com/babylonlabs-io/babylon/x/monitor"
monitortypes "github.com/babylonlabs-io/babylon/x/monitor/types"
"github.com/babylonlabs-io/babylon/x/zoneconcierge"
zckeeper "github.com/babylonlabs-io/babylon/x/zoneconcierge/keeper"
zctypes "github.com/babylonlabs-io/babylon/x/zoneconcierge/types"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions app/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
simsutils "github.com/cosmos/cosmos-sdk/testutil/sims"

appparams "github.com/babylonchain/babylon/app/params"
bbn "github.com/babylonchain/babylon/types"
appparams "github.com/babylonlabs-io/babylon/app/params"
bbn "github.com/babylonlabs-io/babylon/types"
)

// TmpAppOptions returns an app option with tmp dir and btc network
Expand Down
44 changes: 22 additions & 22 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,28 +61,28 @@ import (
ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported"
ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"

appparams "github.com/babylonchain/babylon/app/params"
bbn "github.com/babylonchain/babylon/types"
owasm "github.com/babylonchain/babylon/wasmbinding"
btccheckpointkeeper "github.com/babylonchain/babylon/x/btccheckpoint/keeper"
btccheckpointtypes "github.com/babylonchain/babylon/x/btccheckpoint/types"
btclightclientkeeper "github.com/babylonchain/babylon/x/btclightclient/keeper"
btclightclienttypes "github.com/babylonchain/babylon/x/btclightclient/types"
btcstakingkeeper "github.com/babylonchain/babylon/x/btcstaking/keeper"
btcstakingtypes "github.com/babylonchain/babylon/x/btcstaking/types"
checkpointingkeeper "github.com/babylonchain/babylon/x/checkpointing/keeper"
checkpointingtypes "github.com/babylonchain/babylon/x/checkpointing/types"
epochingkeeper "github.com/babylonchain/babylon/x/epoching/keeper"
epochingtypes "github.com/babylonchain/babylon/x/epoching/types"
finalitykeeper "github.com/babylonchain/babylon/x/finality/keeper"
finalitytypes "github.com/babylonchain/babylon/x/finality/types"
incentivekeeper "github.com/babylonchain/babylon/x/incentive/keeper"
incentivetypes "github.com/babylonchain/babylon/x/incentive/types"
monitorkeeper "github.com/babylonchain/babylon/x/monitor/keeper"
monitortypes "github.com/babylonchain/babylon/x/monitor/types"
"github.com/babylonchain/babylon/x/zoneconcierge"
zckeeper "github.com/babylonchain/babylon/x/zoneconcierge/keeper"
zctypes "github.com/babylonchain/babylon/x/zoneconcierge/types"
appparams "github.com/babylonlabs-io/babylon/app/params"
bbn "github.com/babylonlabs-io/babylon/types"
owasm "github.com/babylonlabs-io/babylon/wasmbinding"
btccheckpointkeeper "github.com/babylonlabs-io/babylon/x/btccheckpoint/keeper"
btccheckpointtypes "github.com/babylonlabs-io/babylon/x/btccheckpoint/types"
btclightclientkeeper "github.com/babylonlabs-io/babylon/x/btclightclient/keeper"
btclightclienttypes "github.com/babylonlabs-io/babylon/x/btclightclient/types"
btcstakingkeeper "github.com/babylonlabs-io/babylon/x/btcstaking/keeper"
btcstakingtypes "github.com/babylonlabs-io/babylon/x/btcstaking/types"
checkpointingkeeper "github.com/babylonlabs-io/babylon/x/checkpointing/keeper"
checkpointingtypes "github.com/babylonlabs-io/babylon/x/checkpointing/types"
epochingkeeper "github.com/babylonlabs-io/babylon/x/epoching/keeper"
epochingtypes "github.com/babylonlabs-io/babylon/x/epoching/types"
finalitykeeper "github.com/babylonlabs-io/babylon/x/finality/keeper"
finalitytypes "github.com/babylonlabs-io/babylon/x/finality/types"
incentivekeeper "github.com/babylonlabs-io/babylon/x/incentive/keeper"
incentivetypes "github.com/babylonlabs-io/babylon/x/incentive/types"
monitorkeeper "github.com/babylonlabs-io/babylon/x/monitor/keeper"
monitortypes "github.com/babylonlabs-io/babylon/x/monitor/types"
"github.com/babylonlabs-io/babylon/x/zoneconcierge"
zckeeper "github.com/babylonlabs-io/babylon/x/zoneconcierge/keeper"
zctypes "github.com/babylonlabs-io/babylon/x/zoneconcierge/types"
)

// Capabilities of the IBC wasm contracts
Expand Down
2 changes: 1 addition & 1 deletion app/keepers/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
cmtos "github.com/cometbft/cometbft/libs/os"
"github.com/cosmos/cosmos-sdk/client/config"

"github.com/babylonchain/babylon/privval"
"github.com/babylonlabs-io/babylon/privval"
)

const defaultConfigTemplate = `# This is a TOML config file.
Expand Down
12 changes: 6 additions & 6 deletions app/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ import (
"github.com/docker/docker/pkg/ioutils"
"github.com/stretchr/testify/require"

appkeepers "github.com/babylonchain/babylon/app/keepers"
appparams "github.com/babylonchain/babylon/app/params"
"github.com/babylonchain/babylon/crypto/bls12381"
"github.com/babylonchain/babylon/privval"
bbn "github.com/babylonchain/babylon/types"
checkpointingtypes "github.com/babylonchain/babylon/x/checkpointing/types"
appkeepers "github.com/babylonlabs-io/babylon/app/keepers"
appparams "github.com/babylonlabs-io/babylon/app/params"
"github.com/babylonlabs-io/babylon/crypto/bls12381"
"github.com/babylonlabs-io/babylon/privval"
bbn "github.com/babylonlabs-io/babylon/types"
checkpointingtypes "github.com/babylonlabs-io/babylon/x/checkpointing/types"
)

// SetupOptions defines arguments that are passed into `Simapp` constructor.
Expand Down
2 changes: 1 addition & 1 deletion app/upgrades/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"

"github.com/babylonchain/babylon/app/keepers"
"github.com/babylonlabs-io/babylon/app/keepers"
)

// BaseAppParamManager defines an interrace that BaseApp is expected to fulfill
Expand Down
10 changes: 5 additions & 5 deletions app/upgrades/vanilla/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (

store "cosmossdk.io/store/types"
upgradetypes "cosmossdk.io/x/upgrade/types"
"github.com/babylonchain/babylon/app/keepers"
"github.com/babylonchain/babylon/app/upgrades"
bbn "github.com/babylonchain/babylon/types"
btcstakingkeeper "github.com/babylonchain/babylon/x/btcstaking/keeper"
bstypes "github.com/babylonchain/babylon/x/btcstaking/types"
"github.com/babylonlabs-io/babylon/app/keepers"
"github.com/babylonlabs-io/babylon/app/upgrades"
bbn "github.com/babylonlabs-io/babylon/types"
btcstakingkeeper "github.com/babylonlabs-io/babylon/x/btcstaking/keeper"
bstypes "github.com/babylonlabs-io/babylon/x/btcstaking/types"
"github.com/btcsuite/btcd/btcec/v2"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
Expand Down
6 changes: 3 additions & 3 deletions app/upgrades/vanilla/upgrades_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"cosmossdk.io/core/header"
"cosmossdk.io/x/upgrade"
upgradetypes "cosmossdk.io/x/upgrade/types"
"github.com/babylonchain/babylon/app"
v1 "github.com/babylonchain/babylon/app/upgrades/vanilla"
bstypes "github.com/babylonchain/babylon/x/btcstaking/types"
"github.com/babylonlabs-io/babylon/app"
v1 "github.com/babylonlabs-io/babylon/app/upgrades/vanilla"
bstypes "github.com/babylonlabs-io/babylon/x/btcstaking/types"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/suite"
Expand Down
4 changes: 2 additions & 2 deletions btcstaking/btcstaking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"testing"
"time"

"github.com/babylonchain/babylon/btcstaking"
btctest "github.com/babylonchain/babylon/testutil/bitcoin"
"github.com/babylonlabs-io/babylon/btcstaking"
btctest "github.com/babylonlabs-io/babylon/testutil/bitcoin"
"github.com/btcsuite/btcd/btcec/v2"
"github.com/btcsuite/btcd/btcec/v2/schnorr"
"github.com/btcsuite/btcd/btcutil"
Expand Down
4 changes: 2 additions & 2 deletions btcstaking/identifiable_staking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import (
"math/rand"
"testing"

"github.com/babylonchain/babylon/btcstaking"
"github.com/babylonlabs-io/babylon/btcstaking"

"github.com/btcsuite/btcd/btcec/v2/schnorr"
"github.com/btcsuite/btcd/btcutil"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/wire"
"github.com/stretchr/testify/require"

"github.com/babylonchain/babylon/testutil/datagen"
"github.com/babylonlabs-io/babylon/testutil/datagen"
)

func generateTxFromOutputs(r *rand.Rand, info *btcstaking.IdentifiableStakingInfo) (*wire.MsgTx, int, int) {
Expand Down
2 changes: 1 addition & 1 deletion btcstaking/staking.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcd/wire"

asig "github.com/babylonchain/babylon/crypto/schnorr-adaptor-signature"
asig "github.com/babylonlabs-io/babylon/crypto/schnorr-adaptor-signature"
)

// buildSlashingTxFromOutpoint builds a valid slashing transaction by creating a new Bitcoin transaction that slashes a portion
Expand Down
4 changes: 2 additions & 2 deletions btcstaking/staking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"time"

sdkmath "cosmossdk.io/math"
"github.com/babylonchain/babylon/btcstaking"
"github.com/babylonchain/babylon/testutil/datagen"
"github.com/babylonlabs-io/babylon/btcstaking"
"github.com/babylonlabs-io/babylon/testutil/datagen"
"github.com/btcsuite/btcd/btcec/v2"
"github.com/btcsuite/btcd/btcutil"
"github.com/btcsuite/btcd/chaincfg"
Expand Down
2 changes: 1 addition & 1 deletion btcstaking/staking_testvectors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/btcsuite/btcd/wire"
"github.com/stretchr/testify/require"

"github.com/babylonchain/babylon/btcstaking"
"github.com/babylonlabs-io/babylon/btcstaking"
)

func getBtcNetworkParams(network string) (*chaincfg.Params, error) {
Expand Down
6 changes: 3 additions & 3 deletions btcstaking/staking_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"testing"
"time"

"github.com/babylonchain/babylon/btcstaking"
"github.com/babylonchain/babylon/testutil/datagen"
bbn "github.com/babylonchain/babylon/types"
"github.com/babylonlabs-io/babylon/btcstaking"
"github.com/babylonlabs-io/babylon/testutil/datagen"
bbn "github.com/babylonlabs-io/babylon/types"
"github.com/btcsuite/btcd/btcec/v2/schnorr"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion btcstaking/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcd/wire"

bbn "github.com/babylonchain/babylon/types"
bbn "github.com/babylonlabs-io/babylon/types"
sdk "github.com/cosmos/cosmos-sdk/types"
)

Expand Down
6 changes: 3 additions & 3 deletions client/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"time"

bbn "github.com/babylonchain/babylon/app"
"github.com/babylonchain/babylon/client/config"
"github.com/babylonchain/babylon/client/query"
bbn "github.com/babylonlabs-io/babylon/app"
"github.com/babylonlabs-io/babylon/client/config"
"github.com/babylonlabs-io/babylon/client/query"
rpchttp "github.com/cometbft/cometbft/rpc/client/http"
"github.com/cosmos/relayer/v2/relayer/chains/cosmos"
"go.uber.org/zap"
Expand Down
Loading

0 comments on commit 5f8af8c

Please sign in to comment.