Skip to content

Commit

Permalink
Release/v0.4.0 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitferry authored Aug 1, 2024
2 parents 8f83363 + 743412e commit fdc18c8
Show file tree
Hide file tree
Showing 85 changed files with 397 additions and 782 deletions.
128 changes: 0 additions & 128 deletions .circleci/config.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: ci

on:
pull_request:
branches:
- '**'

jobs:
lint_test:
uses: babylonlabs-io/.github/.github/workflows/[email protected]
with:
run-unit-tests: true
run-integration-tests: true
run-lint: true

docker_pipeline:
uses: babylonlabs-io/.github/.github/workflows/[email protected]
secrets: inherit
with:
publish: false
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: docker_publish

on:
push:
branches:
- 'main'
- 'dev'
tags:
- '*'

jobs:
lint_test:
uses: babylonlabs-io/.github/.github/workflows/[email protected]
with:
run-unit-tests: true
run-integration-tests: true
run-lint: true

docker_pipeline:
needs: ["lint_test"]
uses: babylonlabs-io/.github/.github/workflows/[email protected]
secrets: inherit
with:
publish: true
276 changes: 0 additions & 276 deletions CHANGELOG.md

This file was deleted.

10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ RUN apk add --no-cache --update openssh git make build-base linux-headers libc-d


# Build
WORKDIR /go/src/github.com/babylonchain/finality-provider
WORKDIR /go/src/github.com/babylonlabs-io/finality-provider
# Cache dependencies
COPY go.mod go.sum /go/src/github.com/babylonchain/finality-provider/
COPY go.mod go.sum /go/src/github.com/babylonlabs-io/finality-provider/
RUN go mod download
# Copy the rest of the files
COPY ./ /go/src/github.com/babylonchain/finality-provider/
COPY ./ /go/src/github.com/babylonlabs-io/finality-provider/

# Cosmwasm - Download correct libwasmvm version
RUN WASMVM_VERSION=$(grep github.com/CosmWasm/wasmvm go.mod | cut -d' ' -f2) && \
Expand All @@ -41,8 +41,8 @@ RUN addgroup --gid 1138 -S finality-provider && adduser --uid 1138 -S finality-p

RUN apk add bash curl jq

COPY --from=builder /go/src/github.com/babylonchain/finality-provider/build/fpd /bin/fpd
COPY --from=builder /go/src/github.com/babylonchain/finality-provider/build/eotsd /bin/eotsd
COPY --from=builder /go/src/github.com/babylonlabs-io/finality-provider/build/fpd /bin/fpd
COPY --from=builder /go/src/github.com/babylonlabs-io/finality-provider/build/eotsd /bin/eotsd

WORKDIR /home/finality-provider
RUN chown -R finality-provider /home/finality-provider
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BUILDDIR ?= $(CURDIR)/build
TOOLS_DIR := tools

BABYLON_PKG := github.com/babylonchain/babylon/cmd/babylond
BABYLON_PKG := github.com/babylonlabs-io/babylon/cmd/babylond

GO_BIN := ${GOPATH}/bin
BTCD_BIN := $(GO_BIN)/btcd
Expand Down Expand Up @@ -49,7 +49,7 @@ $(BUILDDIR)/:
mkdir -p $(BUILDDIR)/

build-docker:
$(DOCKER) build --tag babylonchain/finality-provider -f Dockerfile \
$(DOCKER) build --tag babylonlabs-io/finality-provider -f Dockerfile \
$(shell git rev-parse --show-toplevel)

.PHONY: build build-docker
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ the [official Go installation guide](https://golang.org/doc/install).
To get started, clone the repository to your local machine from Github:

```bash
git clone https://github.com/babylonchain/finality-provider.git
git clone https://github.com/babylonlabs-io/finality-provider.git
```

You can choose a specific version from
the [official releases page](https://github.com/babylonchain/finality-provider/releases)
the [official releases page](https://github.com/babylonlabs-io/finality-provider/releases)

```bash
cd finality-provider # cd into the project directory
Expand Down Expand Up @@ -113,5 +113,5 @@ A finality provider receives BTC delegations through delegators
interacting with Babylon and choosing it as the recipient of their delegations.
To perform a self-delegation,
the operator can either visit the staking web app we provide,
or run the Babylon [BTC Staker program](https://github.com/babylonchain/btc-staker) once.
or run the Babylon [BTC Staker program](https://github.com/babylonlabs-io/btc-staker) once.
The BTC staker connects to a Bitcoin wallet and Babylon to perform delegations.
16 changes: 8 additions & 8 deletions clientcontroller/babylon.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (

sdkErr "cosmossdk.io/errors"
"cosmossdk.io/math"
bbnclient "github.com/babylonchain/babylon/client/client"
bbntypes "github.com/babylonchain/babylon/types"
btcctypes "github.com/babylonchain/babylon/x/btccheckpoint/types"
btclctypes "github.com/babylonchain/babylon/x/btclightclient/types"
btcstakingtypes "github.com/babylonchain/babylon/x/btcstaking/types"
finalitytypes "github.com/babylonchain/babylon/x/finality/types"
bbnclient "github.com/babylonlabs-io/babylon/client/client"
bbntypes "github.com/babylonlabs-io/babylon/types"
btcctypes "github.com/babylonlabs-io/babylon/x/btccheckpoint/types"
btclctypes "github.com/babylonlabs-io/babylon/x/btclightclient/types"
btcstakingtypes "github.com/babylonlabs-io/babylon/x/btcstaking/types"
finalitytypes "github.com/babylonlabs-io/babylon/x/finality/types"
"github.com/btcsuite/btcd/btcec/v2"
"github.com/btcsuite/btcd/btcec/v2/schnorr"
"github.com/btcsuite/btcd/btcutil"
Expand All @@ -24,8 +24,8 @@ import (
"github.com/cosmos/relayer/v2/relayer/provider"
"go.uber.org/zap"

fpcfg "github.com/babylonchain/finality-provider/finality-provider/config"
"github.com/babylonchain/finality-provider/types"
fpcfg "github.com/babylonlabs-io/finality-provider/finality-provider/config"
"github.com/babylonlabs-io/finality-provider/types"
)

var _ ClientController = &BabylonController{}
Expand Down
6 changes: 3 additions & 3 deletions clientcontroller/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/btcsuite/btcd/chaincfg"
"go.uber.org/zap"

finalitytypes "github.com/babylonchain/babylon/x/finality/types"
fpcfg "github.com/babylonchain/finality-provider/finality-provider/config"
"github.com/babylonchain/finality-provider/types"
finalitytypes "github.com/babylonlabs-io/babylon/x/finality/types"
fpcfg "github.com/babylonlabs-io/finality-provider/finality-provider/config"
"github.com/babylonlabs-io/finality-provider/types"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions clientcontroller/retry_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"strings"

sdkErr "cosmossdk.io/errors"
btcstakingtypes "github.com/babylonchain/babylon/x/btcstaking/types"
finalitytypes "github.com/babylonchain/babylon/x/finality/types"
btcstakingtypes "github.com/babylonlabs-io/babylon/x/btcstaking/types"
finalitytypes "github.com/babylonlabs-io/babylon/x/finality/types"
)

// these errors are considered unrecoverable because they indicate
Expand Down
6 changes: 3 additions & 3 deletions eotsmanager/client/rpcclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"

"github.com/babylonchain/finality-provider/eotsmanager"
"github.com/babylonchain/finality-provider/eotsmanager/proto"
"github.com/babylonchain/finality-provider/eotsmanager/types"
"github.com/babylonlabs-io/finality-provider/eotsmanager"
"github.com/babylonlabs-io/finality-provider/eotsmanager/proto"
"github.com/babylonlabs-io/finality-provider/eotsmanager/types"
)

var _ eotsmanager.EOTSManager = &EOTSManagerGRpcClient{}
Expand Down
4 changes: 2 additions & 2 deletions eotsmanager/cmd/eotsd/daemon/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/jessevdk/go-flags"
"github.com/urfave/cli"

eotscfg "github.com/babylonchain/finality-provider/eotsmanager/config"
"github.com/babylonchain/finality-provider/util"
eotscfg "github.com/babylonlabs-io/finality-provider/eotsmanager/config"
"github.com/babylonlabs-io/finality-provider/util"
)

var InitCommand = cli.Command{
Expand Down
8 changes: 4 additions & 4 deletions eotsmanager/cmd/eotsd/daemon/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"github.com/cosmos/go-bip39"
"github.com/urfave/cli"

bbntypes "github.com/babylonchain/babylon/types"
"github.com/babylonchain/finality-provider/eotsmanager"
"github.com/babylonchain/finality-provider/eotsmanager/config"
"github.com/babylonchain/finality-provider/log"
bbntypes "github.com/babylonlabs-io/babylon/types"
"github.com/babylonlabs-io/finality-provider/eotsmanager"
"github.com/babylonlabs-io/finality-provider/eotsmanager/config"
"github.com/babylonlabs-io/finality-provider/log"
)

type KeyOutput struct {
Expand Down
12 changes: 6 additions & 6 deletions eotsmanager/cmd/eotsd/daemon/pop.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"github.com/cometbft/cometbft/crypto/tmhash"
sdk "github.com/cosmos/cosmos-sdk/types"

bbnparams "github.com/babylonchain/babylon/app/params"
bbn "github.com/babylonchain/babylon/types"
btcstktypes "github.com/babylonchain/babylon/x/btcstaking/types"
"github.com/babylonchain/finality-provider/eotsmanager"
"github.com/babylonchain/finality-provider/eotsmanager/config"
"github.com/babylonchain/finality-provider/log"
bbnparams "github.com/babylonlabs-io/babylon/app/params"
bbn "github.com/babylonlabs-io/babylon/types"
btcstktypes "github.com/babylonlabs-io/babylon/x/btcstaking/types"
"github.com/babylonlabs-io/finality-provider/eotsmanager"
"github.com/babylonlabs-io/finality-provider/eotsmanager/config"
"github.com/babylonlabs-io/finality-provider/log"
"github.com/urfave/cli"
)

Expand Down
10 changes: 5 additions & 5 deletions eotsmanager/cmd/eotsd/daemon/pop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"path/filepath"
"testing"

"github.com/babylonchain/babylon/testutil/datagen"
bbn "github.com/babylonchain/babylon/types"
btcstktypes "github.com/babylonchain/babylon/x/btcstaking/types"
dcli "github.com/babylonchain/finality-provider/eotsmanager/cmd/eotsd/daemon"
"github.com/babylonchain/finality-provider/testutil"
"github.com/babylonlabs-io/babylon/testutil/datagen"
bbn "github.com/babylonlabs-io/babylon/types"
btcstktypes "github.com/babylonlabs-io/babylon/x/btcstaking/types"
dcli "github.com/babylonlabs-io/finality-provider/eotsmanager/cmd/eotsd/daemon"
"github.com/babylonlabs-io/finality-provider/testutil"
"github.com/btcsuite/btcd/chaincfg"
"github.com/stretchr/testify/require"
"github.com/urfave/cli"
Expand Down
8 changes: 4 additions & 4 deletions eotsmanager/cmd/eotsd/daemon/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"io"
"os"

bbntypes "github.com/babylonchain/babylon/types"
"github.com/babylonchain/finality-provider/eotsmanager"
"github.com/babylonchain/finality-provider/eotsmanager/config"
"github.com/babylonchain/finality-provider/log"
bbntypes "github.com/babylonlabs-io/babylon/types"
"github.com/babylonlabs-io/finality-provider/eotsmanager"
"github.com/babylonlabs-io/finality-provider/eotsmanager/config"
"github.com/babylonlabs-io/finality-provider/log"
"github.com/btcsuite/btcd/btcec/v2/schnorr"
"github.com/urfave/cli"
)
Expand Down
4 changes: 2 additions & 2 deletions eotsmanager/cmd/eotsd/daemon/sign_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"testing"

sdkmath "cosmossdk.io/math"
dcli "github.com/babylonchain/finality-provider/eotsmanager/cmd/eotsd/daemon"
"github.com/babylonchain/finality-provider/testutil"
dcli "github.com/babylonlabs-io/finality-provider/eotsmanager/cmd/eotsd/daemon"
"github.com/babylonlabs-io/finality-provider/testutil"
"github.com/stretchr/testify/require"
"github.com/urfave/cli"

Expand Down
Loading

0 comments on commit fdc18c8

Please sign in to comment.