Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge devnet-5 version to base branch #266

Merged
merged 93 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
83fb0e7
fix: testnet command minor issues (#91)
RafilxTenfen Sep 26, 2024
22f9283
fix: Epoch initial height (#93)
gitferry Sep 27, 2024
39f8e56
fix: Epoch num missing in response conversion (#99)
gitferry Sep 27, 2024
da4cc46
chore: add changelog for pr 91 (#97)
RafilxTenfen Sep 27, 2024
8b656dd
chore: update changelog of release v0.10.1 (#104)
RafilxTenfen Sep 27, 2024
13b1e35
chore: Add signing info query cmd (#106)
gitferry Sep 30, 2024
d640591
Remove `x/zoneconcierge` module (#55)
KonradStaniec Sep 30, 2024
47863ba
backport: Fix changelog (#109)
gitferry Sep 30, 2024
c11bbb3
chore: upgrade token distribution (#103)
RafilxTenfen Sep 30, 2024
ae2e53e
feat: in-protocol minimum gas price (#107)
SebastianElvis Oct 1, 2024
6b5e633
chore: add user 1137 back to docker (#112)
RafilxTenfen Oct 1, 2024
04e12eb
feat: Implement ADR-26 - pre-approval flow (#117)
KonradStaniec Oct 2, 2024
fd526f1
backport update change log (#122)
KonradStaniec Oct 2, 2024
b8bcb89
docs: Update `btcstaking` module documentation (#123)
samricotta Oct 3, 2024
6e5210d
feat(ADR-028): refunding transaction fee for certain txs (#125)
SebastianElvis Oct 4, 2024
b56406b
chore: upgrade multibuild (#113)
RafilxTenfen Oct 4, 2024
6a74ebc
chore: tx fee refunding follow-up (#130)
SebastianElvis Oct 7, 2024
89dd901
chore: Execute codespell and clean up typos (#136)
vitsalis Oct 7, 2024
b128f1d
fix: intercept staking module messages inside MsgExec (#138)
SebastianElvis Oct 7, 2024
64b6897
chore: Do not convert int to uint32 in btcstaking lib (#135)
vitsalis Oct 7, 2024
efeb745
New external staking events (#131)
KonradStaniec Oct 7, 2024
a6a7c28
fix: removed btc status unbonding from error return string (#140)
RafilxTenfen Oct 7, 2024
da9ba2a
chore: Remove nolint:errcheck and instead handle errors (#134)
vitsalis Oct 7, 2024
029873d
fix handling covent message when quorum is already reached (#141)
KonradStaniec Oct 8, 2024
bbdfa4e
test: adapt tests to the pre-approval flow (#137)
SebastianElvis Oct 8, 2024
07e4437
chore: Upgrade CosmWasm Parameters (#132)
RafilxTenfen Oct 8, 2024
fe232fe
feat: Add new external events related to finality provider status cha…
gitferry Oct 9, 2024
935668b
chore: remove signed finality provider (#142)
RafilxTenfen Oct 9, 2024
e1b085b
chore: add status to btc delegation rest (#146)
RafilxTenfen Oct 9, 2024
2d00e8c
backport changelog changes (#153)
KonradStaniec Oct 9, 2024
0b203a6
chore: backport github action (#149)
SebastianElvis Oct 9, 2024
223c541
chore(query): Add block results query (#148)
gitferry Oct 10, 2024
e4a655b
Housekeeping: backport IBC transfer e2e (#151)
maurolacy Oct 10, 2024
ea1b174
ci: add Github actions for changelog reminder and goreleaser (#155)
SebastianElvis Oct 10, 2024
a5c4e94
fix(btcstaking/client): edit fp arg (#154)
Lazar955 Oct 10, 2024
a2f6b3a
chore: fix changelog (#156)
Lazar955 Oct 10, 2024
8436249
chore: Remove devdoc from Makefile and unnecessary replace on go.mod …
vitsalis Oct 10, 2024
23ff41d
ci: add goreleaser setup and move out changelog reminder (#170)
SebastianElvis Oct 11, 2024
86f6bc5
chore: Improve external events format (#169)
gitferry Oct 11, 2024
58e13f0
fix: Non-determinism in sorting finality providers in the voting powe…
gitferry Oct 11, 2024
e66765c
chore: Remove localnet functionality from Makefile (#184)
vitsalis Oct 11, 2024
d0eca74
chore: Bitcoin heights and depths made uint32 (#181)
vitsalis Oct 11, 2024
508046b
Properly validate whether tranactions are standard (#185)
KonradStaniec Oct 14, 2024
b7c87a7
Update changelog v0.12.1 (#190)
KonradStaniec Oct 14, 2024
c4c25b6
Do not panic on nil proof when handling votes (#186)
KonradStaniec Oct 14, 2024
c35c6a0
fix: fixing witness construction of slashing tx (#193)
SebastianElvis Oct 14, 2024
4996ca1
docs: Add documentation to btccheckpoint module (#147)
samricotta Oct 14, 2024
c4f1ff0
docs: small additional edits for btccheckpoint module (#195)
samricotta Oct 15, 2024
6f1808b
fix: `BTCDelgationResponse` missing `staking_time` (#197)
gitferry Oct 15, 2024
c6167e5
chore: Handle `FinalityProviderSigningInfo` object (#194)
samricotta Oct 15, 2024
089917e
chore: update exposed db objects in `x/checkpointing` module (#201)
samricotta Oct 15, 2024
35610ce
refactor: simplify logics in FP set rotation (#188)
SebastianElvis Oct 16, 2024
1c00726
chore: update exposed db objects in `x/incentive` module (#200)
samricotta Oct 16, 2024
a6044d7
chore: update exposed db objects in `x/btcstaking` module (#202)
samricotta Oct 16, 2024
5a3f401
update change log (#206)
KonradStaniec Oct 16, 2024
bdf1e52
chore: update exposed db object `RewardGuages` in `x/incentive` modul…
samricotta Oct 17, 2024
f418d1f
chore: rename total voting power to total bonded sat (#207)
SebastianElvis Oct 17, 2024
c836041
chore: update exposed db object `Evidence` in `x/finality` module (#208)
samricotta Oct 18, 2024
78581a7
chore: Parameterize finality parameters in `prepare-genesis` cmd (#210)
gitferry Oct 18, 2024
b1a4b48
chore: bump wasmd and re-enable static linking (#213)
SebastianElvis Oct 21, 2024
6a0ccac
feat: Implement ADR-29 - generalized unbonding (#215)
KonradStaniec Oct 22, 2024
9efe79b
chore: add check in finality for block height finality parameter to a…
RafilxTenfen Oct 23, 2024
0831dc6
chore: Make injected checkpoint a standard tx (#224)
gitferry Oct 23, 2024
a31a234
Backport change log changes (#227)
KonradStaniec Oct 23, 2024
77462ca
chore: Add inclusion height to early unbonding event (#228)
gitferry Oct 25, 2024
0caa9be
Fix removing voting power during expiry (#218)
KonradStaniec Oct 25, 2024
0082d2d
backport: Update changelog (#233)
gitferry Oct 25, 2024
fcc6fdc
feat(finality): move voting power table to finality module (#217)
SebastianElvis Oct 29, 2024
c9a55a5
change defaults for cache (#235)
KonradStaniec Oct 29, 2024
a98cfd9
mint: Babylon inflation module (#211)
SebastianElvis Oct 30, 2024
c7eddc9
Add more info to staking creation event (#238)
KonradStaniec Oct 30, 2024
a2cf760
backport: change log (#239) (#240)
RafilxTenfen Oct 31, 2024
0f1b296
fix: CI: Add write permissions to goreleaser invoke (#241)
filippos47 Oct 31, 2024
e41021e
chore: Add logs to checking unbonding output (#249)
gitferry Nov 5, 2024
2851bf5
chore: Add tests for unbonding value mismatch (#250)
gitferry Nov 5, 2024
98e9746
chore: remove before upgrade to use tag (#229)
RafilxTenfen Nov 5, 2024
232f604
chore: Fix flunky TestValidateParsedMessageAgainstTheParams (#252)
gitferry Nov 6, 2024
6fe5781
chore(*): upgrade comet bft and go version (#253)
Lazar955 Nov 6, 2024
c07e4ef
Avoid unnecessary bech32 decoding (#254)
KonradStaniec Nov 7, 2024
cbdc68a
Removes retry library (#256)
KonradStaniec Nov 8, 2024
aa99e2e
fix error handling in checkpointing module (#257)
KonradStaniec Nov 8, 2024
90e6b5c
feat: fix go releaser and hook by github action (#258)
liam-icheng-lai Nov 9, 2024
d4d31e1
chore(gomod): upgrade dependancies (#262)
Lazar955 Nov 12, 2024
dd4009d
incentive: full tokenomics implementation (#260)
SebastianElvis Nov 13, 2024
d10dd40
Merge branch 'main' into rebase-devnet-5
SebastianElvis Nov 14, 2024
540d59f
fix conflicts
SebastianElvis Nov 14, 2024
50e9a23
Phase-1 stake ingesting - RFC15 (#265)
KonradStaniec Nov 14, 2024
88cce45
Backport v0.16.0 changelog (#268)
KonradStaniec Nov 15, 2024
1be1c2b
fix compile
SebastianElvis Nov 15, 2024
2d423a8
Add validation that there is only one fp key in delegation (#270)
KonradStaniec Nov 15, 2024
c861e03
Add staking tx to the creation event (#273)
KonradStaniec Nov 18, 2024
098751b
Merge branch 'main' into rebase-devnet-5
SebastianElvis Nov 18, 2024
579d66c
fix tests and disable v1 upgrade e2e
SebastianElvis Nov 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
38 changes: 38 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Adapted from https://github.com/marketplace/actions/backporting
#
# Usage:
# - Let's say you want to backport a pull request on a branch named `production`.
# - Then label it with `backport production`.
# - That's it! When the pull request gets merged, it will be backported to
# the `production` branch. If the pull request cannot be backported, a comment
# explaining why will automatically be posted.
#
# Note: multiple backport labels can be added. For example, if a pull request
# has the labels `backport staging` and `backport production` it will be
# backported to both branches: `staging` and `production`.
name: Backport
on:
pull_request_target:
types:
- closed
- labeled

jobs:
backport:
name: Backport
runs-on: ubuntu-latest
# Only react to merged PRs for security reasons.
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
if: >
github.event.pull_request.merged
&& (
github.event.action == 'closed'
|| (
github.event.action == 'labeled'
&& contains(github.event.label.name, 'backport')
)
)
steps:
- uses: tibdex/backport@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
11 changes: 11 additions & 0 deletions .github/workflows/changelog-reminder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Changelog Reminder
on:
pull_request:
types: [assigned, opened, synchronize, reopened, labeled, unlabeled]
branches:
- main

jobs:
changelog_reminder:
uses: babylonlabs-io/.github/.github/workflows/[email protected]
secrets: inherit
106 changes: 25 additions & 81 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ concurrency:

jobs:
lint_test:
uses: babylonlabs-io/.github/.github/workflows/reusable_go_lint_test.yml@v0.5.0
uses: babylonlabs-io/.github/.github/workflows/reusable_go_lint_test.yml@v0.7.0
secrets: inherit
with:
go-version: '1.23'
go-lint-version: 'v1.60.2'
run-unit-tests: true
run-integration-tests: false
run-lint: true

docker_pipeline:
uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.5.0
uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.7.0
secrets: inherit
with:
publish: false
Expand Down Expand Up @@ -47,29 +49,6 @@ jobs:
name: babylond-${{ github.sha }} # so it renovates at every new sha
path: /tmp/docker-babylond.tar.gz

e2e-docker-build-babylon-before-upgrade:
runs-on: ubuntu-22.04
steps:
# - name: Artifact babylond-before-upgrade exists # TODO: check why it doesn't work to load from older workflow runs .-.
# uses: xSAVIKx/artifact-exists-action@v0
# id: check-babylond-before-upgrade
# with:
# name: babylond-before-upgrade
- name: Checkout repository
uses: actions/checkout@v4
- name: Build docker babylond-before-upgrade
run: |
make -C contrib/images babylond-before-upgrade
- name: Docker save babylond-before-upgrade
run: |
docker save -o /tmp/docker-babylond-before-upgrade.tar.gz babylonlabs-io/babylond-before-upgrade:latest
- name: Upload babylond-before-upgrade artifact
uses: actions/upload-artifact@v4
with:
name: babylond-before-upgrade
path: /tmp/docker-babylond-before-upgrade.tar.gz
# retention-days: 90 active this back if artifact-exists-action works

e2e-docker-build-e2e-init-chain:
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -127,7 +106,7 @@ jobs:
- name: Cache Go
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.23
- name: Run e2e TestIBCTranferTestSuite
run: |
make test-e2e-cache-ibc-transfer
Expand All @@ -149,39 +128,12 @@ jobs:
- name: Cache Go
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.23
- name: Run e2e TestBTCTimestampingTestSuite
run: |
make test-e2e-cache-btc-timestamping

e2e-run-btc-timestamping-phase-2-hermes:
needs: [e2e-docker-build-babylon]
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download babylon artifact
uses: actions/download-artifact@v4
with:
name: babylond-${{ github.sha }}
path: /tmp
- name: Docker load babylond
run: |
docker load < /tmp/docker-babylond.tar.gz
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Cache Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Run e2e TestBTCTimestampingPhase2HermesTestSuite
run: |
make test-e2e-cache-btc-timestamping-phase-2-hermes

e2e-run-btc-timestamping-phase-2-rly:
e2e-run-btc-staking:
needs: [e2e-docker-build-babylon]
runs-on: ubuntu-22.04
steps:
Expand All @@ -195,20 +147,15 @@ jobs:
- name: Docker load babylond
run: |
docker load < /tmp/docker-babylond.tar.gz
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Cache Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Run e2e TestBTCTimestampingPhase2RlyTestSuite
go-version: 1.23
- name: Run e2e TestBTCStakingTestSuite
run: |
make test-e2e-cache-btc-timestamping-phase-2-rly
make test-e2e-cache-btc-staking

e2e-run-btc-staking:
e2e-run-btc-staking-pre-approval:
needs: [e2e-docker-build-babylon]
runs-on: ubuntu-22.04
steps:
Expand All @@ -225,13 +172,16 @@ jobs:
- name: Cache Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Run e2e TestBTCStakingTestSuite
go-version: 1.23
- name: Run e2e TestBTCStakingPreApprovalTestSuite
run: |
make test-e2e-cache-btc-staking
make test-e2e-cache-btc-staking-pre-approval

e2e-run-upgrade-signet:
needs: [e2e-docker-build-babylon, e2e-docker-build-babylon-before-upgrade, e2e-docker-build-e2e-init-chain]
# Disable this test because v1 upgrade does not cover integration features
# TODO: Reenable this test after having v2 upgrade
e2e-run-upgrade-v1:
if: false
needs: [e2e-docker-build-babylon, e2e-docker-build-e2e-init-chain]
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
Expand All @@ -241,11 +191,6 @@ jobs:
with:
name: babylond-${{ github.sha }}
path: /tmp
- name: Download babylond-before-upgrade artifact
uses: actions/download-artifact@v4
with:
name: babylond-before-upgrade
path: /tmp
- name: Download init-chain artifact
uses: actions/download-artifact@v4
with:
Expand All @@ -255,21 +200,20 @@ jobs:
run: |
docker load < /tmp/docker-babylond.tar.gz

- name: Docker load babylond-before-upgrade
run: |
docker load < /tmp/docker-babylond-before-upgrade.tar.gz

- name: Docker load init chain
run: |
docker load < /tmp/docker-init-chain.tar.gz

- name: Cache Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Run e2e TestSoftwareUpgradeSignetLaunchTestSuite
go-version: 1.23
- name: Run e2e TestSoftwareUpgradeV1TestnetTestSuite
run: |
sudo make test-e2e-cache-upgrade-signet
sudo make test-e2e-cache-upgrade-v1
- name: Dump docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v2

e2e-run-bcd-consumer-integration-test:
needs: [e2e-docker-build-babylon, e2e-docker-build-ibcsim-bcd]
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: goreleaser

on:
release:
types: [published]

permissions:
contents: write

jobs:
release:
uses: babylonlabs-io/.github/.github/workflows/[email protected]
secrets: inherit
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ on:

jobs:
lint_test:
uses: babylonlabs-io/.github/.github/workflows/reusable_go_lint_test.yml@v0.5.0
uses: babylonlabs-io/.github/.github/workflows/reusable_go_lint_test.yml@v0.7.0
secrets: inherit
with:
go-version: '1.23'
go-lint-version: 'v1.60.2'
run-unit-tests: true
run-integration-tests: false
run-lint: true

docker_pipeline:
uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.5.0
uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.7.0
needs: ["lint_test"]
secrets: inherit
with:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,5 @@ docs/diagrams/plantuml.jar
.testnets/
.testnet/
mytestnet/
output/
output/
dist/
57 changes: 57 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
version: 2
project_name: babylon

builds:
- id: babylond-linux-amd64
main: ./cmd/babylond/main.go
binary: babylond
goos:
- linux
goarch:
- amd64
env:
- GO111MODULE=on
flags:
- -mod=readonly
- -trimpath
ldflags:
- -X github.com/cosmos/cosmos-sdk/version.Name=babylon
- -X github.com/cosmos/cosmos-sdk/version.AppName=babylond
- -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=netgo,ledger
- -w -s
tags:
- netgo
- ledger

archives:
- id: zipped
builds:
- babylond-linux-amd64
name_template: "{{.ProjectName}}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
format: tar.gz
files:
- none*
- id: binaries
builds:
- babylond-linux-amd64
name_template: "{{.ProjectName}}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
format: binary
files:
- none*

checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
algorithm: sha256

release:
github:
owner: babylonlabs-io
name: babylon

# Docs: https://goreleaser.com/customization/changelog/
changelog:
disable: true

dist: dist
Loading