From bb5f70471005612123d126b9ff62417d88b9d80d Mon Sep 17 00:00:00 2001 From: KonradStaniec Date: Tue, 30 Jul 2024 09:25:25 +0200 Subject: [PATCH] Migrate to Labs --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/publish.yml | 8 ++++---- Dockerfile | 8 ++++---- LICENSE | 6 +++--- Makefile | 2 +- README.md | 2 +- btcclient/client.go | 2 +- cmd/dumpDefaultCfgCmd.go | 2 +- cmd/signerCmd.go | 10 ++++----- docs/deployment.md | 6 +++--- docs/validation.md | 2 +- go.mod | 16 ++++++++------- go.sum | 26 +++++++++++++----------- itest/bitcoind_node_setup.go | 2 +- itest/e2e_test.go | 22 ++++++++++---------- main.go | 2 +- mocks/signer_mocks.go | 2 +- signerapp/babylon_params_retriever.go | 2 +- signerapp/btc_chain_info.go | 2 +- signerapp/btc_priv_key_signer.go | 4 ++-- signerapp/btc_psbt_signer.go | 4 ++-- signerapp/signer.go | 2 +- signerapp/signer_test.go | 8 ++++---- signerservice/client.go | 6 +++--- signerservice/handlers/handler.go | 4 ++-- signerservice/handlers/sign_unbonding.go | 6 +++--- signerservice/http_response.go | 4 ++-- signerservice/middlewares/logging.go | 3 ++- signerservice/middlewares/tracing.go | 2 +- signerservice/server.go | 10 ++++----- 30 files changed, 94 insertions(+), 89 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30ae593..68d40bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,14 +7,14 @@ on: jobs: lint_test: - uses: babylonchain/.github/.github/workflows/reusable_go_lint_test.yml@v0.1.0 + uses: babylonlabs-io/.github/.github/workflows/reusable_go_lint_test.yml@v0.1.0 with: run-unit-tests: true run-integration-tests: true run-lint: true - + docker_pipeline: - uses: babylonchain/.github/.github/workflows/reusable_docker_pipeline.yml@v0.1.0 + uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.1.0 secrets: inherit with: - publish: false \ No newline at end of file + publish: false diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d50cdd0..85a34bb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,15 +10,15 @@ on: jobs: lint_test: - uses: babylonchain/.github/.github/workflows/reusable_go_lint_test.yml@v0.1.0 + uses: babylonlabs-io/.github/.github/workflows/reusable_go_lint_test.yml@v0.1.0 with: run-unit-tests: true run-integration-tests: true run-lint: true - + docker_pipeline: needs: ["lint_test"] - uses: babylonchain/.github/.github/workflows/reusable_docker_pipeline.yml@v0.1.0 + uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.1.0 secrets: inherit with: - publish: true \ No newline at end of file + publish: true diff --git a/Dockerfile b/Dockerfile index f89bf8b..2b8e5c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,11 +12,11 @@ RUN apk add --no-cache --update openssh git make build-base linux-headers libc-d libzmq-static libsodium-static gcc # Build -WORKDIR /go/src/github.com/babylonchain/covenant-signer +WORKDIR /go/src/github.com/babylonlabs-io/covenant-signer # Cache dependencies -COPY go.mod go.sum /go/src/github.com/babylonchain/covenant-signer/ +COPY go.mod go.sum /go/src/github.com/babylonlabs-io/covenant-signer/ # Copy the rest of the files -COPY ./ /go/src/github.com/babylonchain/covenant-signer/ +COPY ./ /go/src/github.com/babylonlabs-io/covenant-signer/ RUN CGO_LDFLAGS="$CGO_LDFLAGS -lstdc++ -lm -lsodium" \ CGO_ENABLED=1 \ @@ -31,7 +31,7 @@ RUN addgroup --gid 1138 -S covenant-signer && adduser --uid 1138 -S covenant-sig RUN apk add bash curl jq -COPY --from=builder /go/src/github.com/babylonchain/covenant-signer/build/covenant-signer /bin/covenant-signer +COPY --from=builder /go/src/github.com/babylonlabs-io/covenant-signer/build/covenant-signer /bin/covenant-signer WORKDIR /home/covenant-signer RUN chown -R covenant-signer /home/covenant-signer diff --git a/LICENSE b/LICENSE index 2ec3d74..d9a7281 100644 --- a/LICENSE +++ b/LICENSE @@ -8,14 +8,14 @@ License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved. Parameters -Licensor: Babylonchain, Inc. +Licensor: Babylon Labs, Ltd. Licensed Work: covenant-signer - The Licensed Work is (c) 2024 Babylonchain, Inc. + The Licensed Work is (c) 2023 Babylon Labs, Ltd. Additional Use Grant: None. -Change Date: 2027-05-15 (March 15th, 2027] +Change Date: 2027-05-15 (March 15th, 2027) Change License: Apache 2.0 diff --git a/Makefile b/Makefile index 8c2d7e4..009cab4 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ $(BUILDDIR)/: mkdir -p $(BUILDDIR)/ build-docker: - $(DOCKER) build --tag babylonchain/covenant-signer -f Dockerfile \ + $(DOCKER) build --tag babylonlabs-io/covenant-signer -f Dockerfile \ $(shell git rev-parse --show-toplevel) .PHONY: build build-docker install tests diff --git a/README.md b/README.md index f273a0a..80ee5b1 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ The Bitcoin Staking protocol introduces the ability for Bitcoin holders to lock their Bitcoin in a self-custodial Bitcoin Staking Script in order to get voting power in a Bitcoin secured PoS protocol. Among others, the -[Bitcoin Staking Script](https://github.com/babylonchain/babylon/blob/v0.8.5/docs/staking-script.md) +[Bitcoin Staking Script](https://github.com/babylonlabs-io/babylon/blob/v0.8.5/docs/staking-script.md) involves a pre-defined timelock for which the stake remains active. To enable a user experience comparable to typical PoS systems, the script allows for the stake to be on-demand unlocked prior to the timelock diff --git a/btcclient/client.go b/btcclient/client.go index 849ead5..23136da 100644 --- a/btcclient/client.go +++ b/btcclient/client.go @@ -7,7 +7,7 @@ import ( "fmt" "sort" - "github.com/babylonchain/covenant-signer/config" + "github.com/babylonlabs-io/covenant-signer/config" "github.com/btcsuite/btcd/btcec/v2" "github.com/btcsuite/btcd/btcjson" "github.com/btcsuite/btcd/btcutil" diff --git a/cmd/dumpDefaultCfgCmd.go b/cmd/dumpDefaultCfgCmd.go index 7b9ebf5..a8127c3 100644 --- a/cmd/dumpDefaultCfgCmd.go +++ b/cmd/dumpDefaultCfgCmd.go @@ -3,7 +3,7 @@ package cmd import ( "fmt" - "github.com/babylonchain/covenant-signer/config" + "github.com/babylonlabs-io/covenant-signer/config" "github.com/spf13/cobra" ) diff --git a/cmd/signerCmd.go b/cmd/signerCmd.go index 89acbdb..a0552be 100644 --- a/cmd/signerCmd.go +++ b/cmd/signerCmd.go @@ -5,11 +5,11 @@ import ( "github.com/spf13/cobra" - "github.com/babylonchain/covenant-signer/btcclient" - "github.com/babylonchain/covenant-signer/config" - m "github.com/babylonchain/covenant-signer/observability/metrics" - "github.com/babylonchain/covenant-signer/signerapp" - "github.com/babylonchain/covenant-signer/signerservice" + "github.com/babylonlabs-io/covenant-signer/btcclient" + "github.com/babylonlabs-io/covenant-signer/config" + m "github.com/babylonlabs-io/covenant-signer/observability/metrics" + "github.com/babylonlabs-io/covenant-signer/signerapp" + "github.com/babylonlabs-io/covenant-signer/signerservice" ) func init() { diff --git a/docs/deployment.md b/docs/deployment.md index 608ce8e..e399386 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -305,10 +305,10 @@ Install Go by following the instructions on the official Go installation guide. To get started, clone the repository to your local machine from GitHub; please use the version according to the phase-1 system guidelines -- you can find all versions in the official -[releases](https://github.com/babylonchain/covenant-signer/releases) page. +[releases](https://github.com/babylonlabs-io/covenant-signer/releases) page. ```shell -git clone https://github.com/babylonchain/covenant-signer.git +git clone https://github.com/babylonlabs-io/covenant-signer.git cd covenant-signer git checkout ``` @@ -396,7 +396,7 @@ between several services of the Babylon BTC Staking system. The file resides under the same directory as `config.toml`. The global parameters can be obtained from the parameters registry -found [here](https://github.com/babylonchain/networks/). The parameters will be +found [here](https://github.com/babylonlabs-io/networks/). The parameters will be fully specified once all covenant committee participants share their keys. ### 4.5. Boot diff --git a/docs/validation.md b/docs/validation.md index 6280bdc..ab90f45 100644 --- a/docs/validation.md +++ b/docs/validation.md @@ -50,7 +50,7 @@ Given data received: - `covenant_pk` Functions provided by Babylon staking package - -`"github.com/babylonchain/babylon/btcstaking"`: +`"github.com/babylonlabs-io/babylon/btcstaking"`: - `ParseV0StakingTx(staking_tx, tag, covenant_keys, covenant_quorum, btc_network)` - `BuildUnbondingInfo(staker_pk, fp_pk, covenant_keys, covenant_quorum, unbonding_time, unbonding_value, btc_network)` - `BuildStakingInfo(staker_pk, fp_pk, covenant_keys, covenant_quorum, staking_time, staking_value, btc_network)` diff --git a/go.mod b/go.mod index 1c2b50e..c4d293c 100644 --- a/go.mod +++ b/go.mod @@ -1,12 +1,11 @@ -module github.com/babylonchain/covenant-signer +module github.com/babylonlabs-io/covenant-signer go 1.22.3 toolchain go1.22.4 require ( - github.com/babylonchain/babylon v0.9.0-rc.1 - github.com/btcsuite/btcd v0.24.0 + github.com/btcsuite/btcd v0.24.2 github.com/btcsuite/btcd/btcec/v2 v2.3.2 github.com/btcsuite/btcd/btcutil v1.1.5 github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect @@ -43,7 +42,8 @@ require ( ) require ( - github.com/babylonchain/networks/parameters v0.2.1 + github.com/babylonlabs-io/babylon v0.9.0 + github.com/babylonlabs-io/networks/parameters v0.2.2 github.com/btcsuite/btcd/btcutil/psbt v1.1.8 github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4 @@ -80,7 +80,7 @@ require ( github.com/99designs/keyring v1.2.1 // indirect github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect github.com/CosmWasm/wasmd v0.51.0 // indirect - github.com/CosmWasm/wasmvm/v2 v2.0.0 // indirect + github.com/CosmWasm/wasmvm/v2 v2.0.1 // indirect github.com/DataDog/datadog-go v3.2.0+incompatible // indirect github.com/DataDog/zstd v1.5.5 // indirect github.com/Microsoft/go-winio v0.6.1 // indirect @@ -112,7 +112,7 @@ require ( github.com/cockroachdb/pebble v1.1.0 // indirect github.com/cockroachdb/redact v1.1.5 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect - github.com/cometbft/cometbft v0.38.6 // indirect + github.com/cometbft/cometbft v0.38.7 // indirect github.com/cometbft/cometbft-db v0.9.1 // indirect github.com/containerd/continuity v0.3.0 // indirect github.com/coreos/go-semver v0.3.0 // indirect @@ -126,7 +126,8 @@ require ( github.com/cosmos/gogoproto v1.4.12 // indirect github.com/cosmos/iavl v1.1.2 // indirect github.com/cosmos/ibc-go/modules/capability v1.0.0 // indirect - github.com/cosmos/ibc-go/v8 v8.0.0 // indirect + github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.0.0-20240429153234-e1e6da7e4ead // indirect + github.com/cosmos/ibc-go/v8 v8.3.0 // indirect github.com/cosmos/ics23/go v0.10.0 // indirect github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/danieljoos/wincred v1.1.2 // indirect @@ -258,6 +259,7 @@ require ( github.com/sasha-s/go-deadlock v0.3.1 // indirect github.com/sirupsen/logrus v1.9.0 // indirect github.com/soheilhy/cmux v0.1.5 // indirect + github.com/stretchr/objx v0.5.2 // indirect github.com/supranational/blst v0.3.11 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect diff --git a/go.sum b/go.sum index 4688c78..96fbe18 100644 --- a/go.sum +++ b/go.sum @@ -229,8 +229,8 @@ github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbi github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/CosmWasm/wasmd v0.51.0 h1:3A2o20RrdF7P1D3Xb+R7A/pHbbHWsYCDXrHLa7S0SC8= github.com/CosmWasm/wasmd v0.51.0/go.mod h1:7TSaj5HoolghujuVWeExqmcUKgpcYWEySGLSODbnnwY= -github.com/CosmWasm/wasmvm/v2 v2.0.0 h1:IqNCI2G0mvs7K6ej17/I28805rVqnu+Y1cWDqIdwb08= -github.com/CosmWasm/wasmvm/v2 v2.0.0/go.mod h1:su9lg5qLr7adV95eOfzjZWkGiky8WNaNIHDr7Fpu7Ck= +github.com/CosmWasm/wasmvm/v2 v2.0.1 h1:0YCQ7MKGNri7NFeRp75erPJXrqyCtH4gdc9jMstyMzk= +github.com/CosmWasm/wasmvm/v2 v2.0.1/go.mod h1:su9lg5qLr7adV95eOfzjZWkGiky8WNaNIHDr7Fpu7Ck= github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/zstd v1.5.5 h1:oWf5W7GtOLgp6bciQYDmhHHjdhYkALu6S/5Ni9ZgSvQ= @@ -277,10 +277,10 @@ github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX github.com/aws/aws-sdk-go v1.44.312 h1:llrElfzeqG/YOLFFKjg1xNpZCFJ2xraIi3PqSuP+95k= github.com/aws/aws-sdk-go v1.44.312/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= -github.com/babylonchain/babylon v0.9.0-rc.1 h1:mZYKQVHVKFUA2xaEAzJloB1kyePHvZECJPgm3p9TYas= -github.com/babylonchain/babylon v0.9.0-rc.1/go.mod h1:YFALTW+Kp/b5jSDoA7Z70RggJjAedlmQTrpdeU8c3hY= -github.com/babylonchain/networks/parameters v0.2.1 h1:OKHiCnwL/UdVN17cMwCrHz/bAjO/USauLiPyNlnVl6E= -github.com/babylonchain/networks/parameters v0.2.1/go.mod h1:nejhvrL7Iwh5Vunvkg7pnomQZlHnyNzOY9lQaDp6tOA= +github.com/babylonlabs-io/babylon v0.9.0 h1:dHZ9wUrI5XLaO4UIwJRgiCdnzFdi5yv7dpibbu6TDv0= +github.com/babylonlabs-io/babylon v0.9.0/go.mod h1:t7B4e+ooD2oYvAxkegtNKDL9bXe+vU29a8xnCQh+UKo= +github.com/babylonlabs-io/networks/parameters v0.2.2 h1:TCu39fZvjX5f6ZZrjhYe54M6wWxglNewuKu56yE+zrc= +github.com/babylonlabs-io/networks/parameters v0.2.2/go.mod h1:iEJVOzaLsE33vpP7J4u+CRGfkSIfErUAwRmgCFCBpyI= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= @@ -302,8 +302,8 @@ github.com/btcsuite/btcd v0.22.0-beta.0.20220207191057-4dc4ff7963b4/go.mod h1:7a github.com/btcsuite/btcd v0.23.1/go.mod h1:0QJIIN1wwIXF/3G/m87gIwGniDMDQqjVn4SZgnFpsYY= github.com/btcsuite/btcd v0.23.3/go.mod h1:0QJIIN1wwIXF/3G/m87gIwGniDMDQqjVn4SZgnFpsYY= github.com/btcsuite/btcd v0.23.5-0.20231215221805-96c9fd8078fd/go.mod h1:nm3Bko6zh6bWP60UxwoT5LzdGJsQJaPo6HjduXq9p6A= -github.com/btcsuite/btcd v0.24.0 h1:gL3uHE/IaFj6fcZSu03SvqPMSx7s/dPzfpG/atRwWdo= -github.com/btcsuite/btcd v0.24.0/go.mod h1:K4IDc1593s8jKXIF7yS7yCTSxrknB9z0STzc2j6XgE4= +github.com/btcsuite/btcd v0.24.2 h1:aLmxPguqxza+4ag8R1I2nnJjSu2iFn/kqtHTIImswcY= +github.com/btcsuite/btcd v0.24.2/go.mod h1:5C8ChTkl5ejr3WHj8tkQSCmydiMEPB0ZhQhehpq7Dgg= github.com/btcsuite/btcd/btcec/v2 v2.1.0/go.mod h1:2VzYrv4Gm4apmbVVsSq5bqf1Ec8v56E48Vt0Y/umPgA= github.com/btcsuite/btcd/btcec/v2 v2.1.3/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE= github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= @@ -403,8 +403,8 @@ github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/cometbft/cometbft v0.38.6 h1:QSgpCzrGWJ2KUq1qpw+FCfASRpE27T6LQbfEHscdyOk= -github.com/cometbft/cometbft v0.38.6/go.mod h1:8rSPxzUJYquCN8uuBgbUHOMg2KAwvr7CyUw+6ukO4nw= +github.com/cometbft/cometbft v0.38.7 h1:ULhIOJ9+LgSy6nLekhq9ae3juX3NnQUMMPyVdhZV6Hk= +github.com/cometbft/cometbft v0.38.7/go.mod h1:HIyf811dFMI73IE0F7RrnY/Fr+d1+HuJAgtkEpQjCMY= github.com/cometbft/cometbft-db v0.9.1 h1:MIhVX5ja5bXNHF8EYrThkG9F7r9kSfv8BX4LWaxWJ4M= github.com/cometbft/cometbft-db v0.9.1/go.mod h1:iliyWaoV0mRwBJoizElCwwRA9Tf7jZJOURcRZF9m60U= github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U= @@ -441,8 +441,10 @@ github.com/cosmos/iavl v1.1.2 h1:zL9FK7C4L/P4IF1Dm5fIwz0WXCnn7Bp1M2FxH0ayM7Y= github.com/cosmos/iavl v1.1.2/go.mod h1:jLeUvm6bGT1YutCaL2fIar/8vGUE8cPZvh/gXEWDaDM= github.com/cosmos/ibc-go/modules/capability v1.0.0 h1:r/l++byFtn7jHYa09zlAdSeevo8ci1mVZNO9+V0xsLE= github.com/cosmos/ibc-go/modules/capability v1.0.0/go.mod h1:D81ZxzjZAe0ZO5ambnvn1qedsFQ8lOwtqicG6liLBco= -github.com/cosmos/ibc-go/v8 v8.0.0 h1:QKipnr/NGwc+9L7NZipURvmSIu+nw9jOIWTJuDBqOhg= -github.com/cosmos/ibc-go/v8 v8.0.0/go.mod h1:C6IiJom0F3cIQCD5fKwVPDrDK9j/xTu563AWuOmXois= +github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.0.0-20240429153234-e1e6da7e4ead h1:QB50+AmrEVqFr2hzvIxMkICziWQ/uuebze0vNYKMnBg= +github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.0.0-20240429153234-e1e6da7e4ead/go.mod h1:AJeroAXnPKeFpD1AfEfjYBHGEWt5gBfzUjgs4SYn2ZY= +github.com/cosmos/ibc-go/v8 v8.3.0 h1:fdW2S7NjZYFhSwmCaFjjyDv80kI1ePOJDQmco4qrnD0= +github.com/cosmos/ibc-go/v8 v8.3.0/go.mod h1:izwHZvn9lKrBn8xWj0aXWut6HKcwHMPD3uyuvOJoPSA= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= diff --git a/itest/bitcoind_node_setup.go b/itest/bitcoind_node_setup.go index 5d09428..740114b 100644 --- a/itest/bitcoind_node_setup.go +++ b/itest/bitcoind_node_setup.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/babylonchain/covenant-signer/itest/containers" + "github.com/babylonlabs-io/covenant-signer/itest/containers" "github.com/stretchr/testify/require" ) diff --git a/itest/e2e_test.go b/itest/e2e_test.go index b9b0b8c..57041c1 100644 --- a/itest/e2e_test.go +++ b/itest/e2e_test.go @@ -14,10 +14,10 @@ import ( "testing" "time" - "github.com/babylonchain/babylon/btcstaking" - staking "github.com/babylonchain/babylon/btcstaking" - "github.com/babylonchain/babylon/testutil/datagen" - "github.com/babylonchain/networks/parameters/parser" + "github.com/babylonlabs-io/babylon/btcstaking" + staking "github.com/babylonlabs-io/babylon/btcstaking" + "github.com/babylonlabs-io/babylon/testutil/datagen" + "github.com/babylonlabs-io/networks/parameters/parser" "github.com/btcsuite/btcd/btcec/v2" "github.com/btcsuite/btcd/btcutil" "github.com/btcsuite/btcd/chaincfg" @@ -25,13 +25,13 @@ import ( "github.com/btcsuite/btcd/wire" "github.com/stretchr/testify/require" - "github.com/babylonchain/covenant-signer/btcclient" - "github.com/babylonchain/covenant-signer/config" - "github.com/babylonchain/covenant-signer/itest/containers" - "github.com/babylonchain/covenant-signer/observability/metrics" - "github.com/babylonchain/covenant-signer/signerapp" - "github.com/babylonchain/covenant-signer/signerservice" - "github.com/babylonchain/covenant-signer/signerservice/types" + "github.com/babylonlabs-io/covenant-signer/btcclient" + "github.com/babylonlabs-io/covenant-signer/config" + "github.com/babylonlabs-io/covenant-signer/itest/containers" + "github.com/babylonlabs-io/covenant-signer/observability/metrics" + "github.com/babylonlabs-io/covenant-signer/signerapp" + "github.com/babylonlabs-io/covenant-signer/signerservice" + "github.com/babylonlabs-io/covenant-signer/signerservice/types" ) var ( diff --git a/main.go b/main.go index dde241d..c7fc833 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,6 @@ package main -import "github.com/babylonchain/covenant-signer/cmd" +import "github.com/babylonlabs-io/covenant-signer/cmd" func main() { _ = cmd.Execute() diff --git a/mocks/signer_mocks.go b/mocks/signer_mocks.go index 8319096..fcd31ad 100644 --- a/mocks/signer_mocks.go +++ b/mocks/signer_mocks.go @@ -8,7 +8,7 @@ import ( context "context" reflect "reflect" - signerapp "github.com/babylonchain/covenant-signer/signerapp" + signerapp "github.com/babylonlabs-io/covenant-signer/signerapp" chainhash "github.com/btcsuite/btcd/chaincfg/chainhash" gomock "github.com/golang/mock/gomock" ) diff --git a/signerapp/babylon_params_retriever.go b/signerapp/babylon_params_retriever.go index 341de9a..9c2ec42 100644 --- a/signerapp/babylon_params_retriever.go +++ b/signerapp/babylon_params_retriever.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/babylonchain/networks/parameters/parser" + "github.com/babylonlabs-io/networks/parameters/parser" ) type VersionedParamsRetriever struct { diff --git a/signerapp/btc_chain_info.go b/signerapp/btc_chain_info.go index cc748be..69ca858 100644 --- a/signerapp/btc_chain_info.go +++ b/signerapp/btc_chain_info.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/babylonchain/covenant-signer/btcclient" + "github.com/babylonlabs-io/covenant-signer/btcclient" "github.com/btcsuite/btcd/chaincfg/chainhash" ) diff --git a/signerapp/btc_priv_key_signer.go b/signerapp/btc_priv_key_signer.go index 1edf26f..bbbe5ab 100644 --- a/signerapp/btc_priv_key_signer.go +++ b/signerapp/btc_priv_key_signer.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/babylonchain/babylon/btcstaking" - "github.com/babylonchain/covenant-signer/btcclient" + "github.com/babylonlabs-io/babylon/btcstaking" + "github.com/babylonlabs-io/covenant-signer/btcclient" ) // PrivKeySigner is a signer that uses a private key from connected bitcoind node diff --git a/signerapp/btc_psbt_signer.go b/signerapp/btc_psbt_signer.go index 6ec429f..5f35076 100644 --- a/signerapp/btc_psbt_signer.go +++ b/signerapp/btc_psbt_signer.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - staking "github.com/babylonchain/babylon/btcstaking" + staking "github.com/babylonlabs-io/babylon/btcstaking" - "github.com/babylonchain/covenant-signer/btcclient" + "github.com/babylonlabs-io/covenant-signer/btcclient" "github.com/btcsuite/btcd/btcec/v2/schnorr" "github.com/btcsuite/btcd/btcutil/psbt" "github.com/btcsuite/btcd/txscript" diff --git a/signerapp/signer.go b/signerapp/signer.go index 6419002..3573848 100644 --- a/signerapp/signer.go +++ b/signerapp/signer.go @@ -6,7 +6,7 @@ import ( "encoding/hex" "fmt" - "github.com/babylonchain/babylon/btcstaking" + "github.com/babylonlabs-io/babylon/btcstaking" "github.com/btcsuite/btcd/btcec/v2" "github.com/btcsuite/btcd/btcec/v2/schnorr" "github.com/btcsuite/btcd/btcutil" diff --git a/signerapp/signer_test.go b/signerapp/signer_test.go index 08a84f9..37238ca 100644 --- a/signerapp/signer_test.go +++ b/signerapp/signer_test.go @@ -5,10 +5,10 @@ import ( "errors" "testing" - "github.com/babylonchain/babylon/btcstaking" - "github.com/babylonchain/covenant-signer/mocks" - "github.com/babylonchain/covenant-signer/signerapp" - "github.com/babylonchain/networks/parameters/parser" + "github.com/babylonlabs-io/babylon/btcstaking" + "github.com/babylonlabs-io/covenant-signer/mocks" + "github.com/babylonlabs-io/covenant-signer/signerapp" + "github.com/babylonlabs-io/networks/parameters/parser" "github.com/btcsuite/btcd/btcec/v2" "github.com/btcsuite/btcd/btcec/v2/schnorr" "github.com/btcsuite/btcd/btcutil" diff --git a/signerservice/client.go b/signerservice/client.go index 6999a1b..9c60736 100644 --- a/signerservice/client.go +++ b/signerservice/client.go @@ -10,10 +10,10 @@ import ( "net/http" "time" - "github.com/babylonchain/covenant-signer/signerservice/handlers" - "github.com/babylonchain/covenant-signer/signerservice/types" + "github.com/babylonlabs-io/covenant-signer/signerservice/handlers" + "github.com/babylonlabs-io/covenant-signer/signerservice/types" - "github.com/babylonchain/covenant-signer/utils" + "github.com/babylonlabs-io/covenant-signer/utils" "github.com/btcsuite/btcd/btcec/v2" "github.com/btcsuite/btcd/btcec/v2/schnorr" "github.com/btcsuite/btcd/wire" diff --git a/signerservice/handlers/handler.go b/signerservice/handlers/handler.go index e3b006f..150f9f9 100644 --- a/signerservice/handlers/handler.go +++ b/signerservice/handlers/handler.go @@ -4,8 +4,8 @@ import ( "context" "net/http" - m "github.com/babylonchain/covenant-signer/observability/metrics" - s "github.com/babylonchain/covenant-signer/signerapp" + m "github.com/babylonlabs-io/covenant-signer/observability/metrics" + s "github.com/babylonlabs-io/covenant-signer/signerapp" ) type Handler struct { diff --git a/signerservice/handlers/sign_unbonding.go b/signerservice/handlers/sign_unbonding.go index c744344..4ffc2b6 100644 --- a/signerservice/handlers/sign_unbonding.go +++ b/signerservice/handlers/sign_unbonding.go @@ -6,9 +6,9 @@ import ( "errors" "net/http" - "github.com/babylonchain/covenant-signer/signerapp" - "github.com/babylonchain/covenant-signer/signerservice/types" - "github.com/babylonchain/covenant-signer/utils" + "github.com/babylonlabs-io/covenant-signer/signerapp" + "github.com/babylonlabs-io/covenant-signer/signerservice/types" + "github.com/babylonlabs-io/covenant-signer/utils" "github.com/btcsuite/btcd/btcec/v2" "github.com/btcsuite/btcd/btcec/v2/schnorr" ) diff --git a/signerservice/http_response.go b/signerservice/http_response.go index 4f2c57e..40462f8 100644 --- a/signerservice/http_response.go +++ b/signerservice/http_response.go @@ -4,8 +4,8 @@ import ( "encoding/json" "net/http" - "github.com/babylonchain/covenant-signer/signerservice/handlers" - "github.com/babylonchain/covenant-signer/signerservice/types" + "github.com/babylonlabs-io/covenant-signer/signerservice/handlers" + "github.com/babylonlabs-io/covenant-signer/signerservice/types" logger "github.com/rs/zerolog" ) diff --git a/signerservice/middlewares/logging.go b/signerservice/middlewares/logging.go index 417dee8..ec8b4ca 100644 --- a/signerservice/middlewares/logging.go +++ b/signerservice/middlewares/logging.go @@ -1,10 +1,11 @@ package middlewares import ( - "github.com/babylonchain/covenant-signer/observability/tracing" "net/http" "time" + "github.com/babylonlabs-io/covenant-signer/observability/tracing" + "github.com/rs/zerolog/log" ) diff --git a/signerservice/middlewares/tracing.go b/signerservice/middlewares/tracing.go index ab27dbc..5f17a45 100644 --- a/signerservice/middlewares/tracing.go +++ b/signerservice/middlewares/tracing.go @@ -3,7 +3,7 @@ package middlewares import ( "net/http" - "github.com/babylonchain/covenant-signer/observability/tracing" + "github.com/babylonlabs-io/covenant-signer/observability/tracing" ) func TracingMiddleware(next http.Handler) http.Handler { diff --git a/signerservice/server.go b/signerservice/server.go index 33d11f5..8f24454 100644 --- a/signerservice/server.go +++ b/signerservice/server.go @@ -5,13 +5,13 @@ import ( "fmt" "net/http" - m "github.com/babylonchain/covenant-signer/observability/metrics" - "github.com/babylonchain/covenant-signer/signerservice/handlers" - "github.com/babylonchain/covenant-signer/signerservice/middlewares" + m "github.com/babylonlabs-io/covenant-signer/observability/metrics" + "github.com/babylonlabs-io/covenant-signer/signerservice/handlers" + "github.com/babylonlabs-io/covenant-signer/signerservice/middlewares" "github.com/rs/zerolog/log" - "github.com/babylonchain/covenant-signer/config" - s "github.com/babylonchain/covenant-signer/signerapp" + "github.com/babylonlabs-io/covenant-signer/config" + s "github.com/babylonlabs-io/covenant-signer/signerapp" "github.com/go-chi/chi/v5" )