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

Sync from main to base/consumer-chain-support #400

Merged
merged 76 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
4e126df
deploy new pipeline
huynaism Nov 12, 2024
acfd7b8
add permission
huynaism Nov 12, 2024
85cccda
try hadolint_nofail
huynaism Nov 12, 2024
6f57b90
ok disable failing
huynaism Nov 12, 2024
82948de
hadolint #1836,#1840
huynaism Nov 12, 2024
64e5f64
hadolint #1834
huynaism Nov 12, 2024
c068865
hadolinit #1833, cleanup
huynaism Nov 12, 2024
5d4e119
hadolint #1837
huynaism Nov 12, 2024
12dbe32
hadolint # #1838
huynaism Nov 12, 2024
e946ab5
hadolint #1833
huynaism Nov 12, 2024
16d3c6b
hadolint 1833
huynaism Nov 12, 2024
9a93992
wrong version
huynaism Nov 12, 2024
d0fcba7
fix shell error
huynaism Nov 12, 2024
a6dc380
#1838 again
huynaism Nov 12, 2024
ca402cb
again
huynaism Nov 12, 2024
d4da954
cant use progress bar on alpine base
huynaism Nov 13, 2024
11c7332
Backport v0.16.1 changelog update (#276)
KonradStaniec Nov 18, 2024
48978b0
fix(client): Panic due to possible nil params response (#277)
gitferry Nov 19, 2024
4b17a1e
chore: Allow unbonding time to be min unbonding value (#278)
gitferry Nov 20, 2024
b627a67
remove bloat
huynaism Nov 20, 2024
b2754d8
add changelog
huynaism Nov 20, 2024
d204d98
feat(adr-032): Add ResumeFinalityProposal and handler (#242)
gitferry Nov 20, 2024
d4dceb1
chore(gomod): update cosmos math (#284)
Lazar955 Nov 20, 2024
f138195
Bump comet bft version (#285)
KonradStaniec Nov 21, 2024
007fd20
Merge branch 'main' into devops/add-docker-sec
huynaism Nov 21, 2024
4c70a72
Merge pull request #264 from babylonlabs-io/devops/add-docker-sec
huynaism Nov 21, 2024
530bd85
Backport v17 changelog (#288)
KonradStaniec Nov 21, 2024
07dc0d1
hotfix: Invalid minUnbondingTime for verifying inclusion proof (#289)
gitferry Nov 22, 2024
2aa26d5
Backport v0.17.1 changelog (#293)
gitferry Nov 22, 2024
9c4d7d6
chore: gh sync workflow from main to base/consumer branch (#299)
gusin13 Nov 25, 2024
457909d
ADR-034: Add highest voted height to finality provider (#304)
gitferry Nov 28, 2024
1809466
chore: add more logs to VerifyInclusionProofAndGetHeight (#305)
RafilxTenfen Nov 28, 2024
6f77345
Enforce that unbonding tx always has version 2 (#311)
KonradStaniec Dec 2, 2024
92b8f3a
feat(ADR-036): custom withdrawal address (#309)
Lazar955 Dec 3, 2024
4fb3741
adr-37 parameters for btc light client ranges (#310)
KonradStaniec Dec 3, 2024
8b35d80
backport v0.17.2 changelog (#315)
KonradStaniec Dec 3, 2024
925fca6
require exact amount of blocks for unbonding timelock (#314)
KonradStaniec Dec 3, 2024
99d1037
Enforce correct parameters version when verifing EOI (#317)
KonradStaniec Dec 4, 2024
aa32cd4
fix getStatus call on BTCDelegation (#318)
KonradStaniec Dec 4, 2024
bee9f30
fix build (#319)
KonradStaniec Dec 4, 2024
08903f1
backport changelog (#323)
KonradStaniec Dec 5, 2024
213b1ae
fix: Decrementing jailed fp counter (#324)
gitferry Dec 5, 2024
43b3008
docs: btcstaking: Update btcstaking module docs to include EOI (#326)
vitsalis Dec 6, 2024
ff75124
fix genesis state validation (#328)
KonradStaniec Dec 9, 2024
cfc59bc
Konradstaniec/fix linter config (#329)
KonradStaniec Dec 9, 2024
e819a3b
backport/changelog updae (#332)
KonradStaniec Dec 9, 2024
b8a2d25
enable more linters from golanci-lint (#333)
KonradStaniec Dec 9, 2024
bf31f69
chore: add testnet upgrade data (#316)
RafilxTenfen Dec 9, 2024
ef667f7
Add scaffold to test replaying the block of the app (#337)
KonradStaniec Dec 10, 2024
5ae51dc
chore: add print bip 340 to debug pubkey-raw (#338)
RafilxTenfen Dec 11, 2024
ee74454
Konradstaniec/add sending tx to replay tests (#340)
KonradStaniec Dec 12, 2024
93954e8
select params for pre approval flow based on BTC LC tip (#341)
KonradStaniec Dec 12, 2024
41a9aed
add btc staking relevant replay test (#343)
KonradStaniec Dec 13, 2024
ccc00b7
fix: Non-determinism while jailing (#342)
gitferry Dec 13, 2024
a56b247
[backport] Update changelog (#347)
gitferry Dec 13, 2024
3cd871c
andomnes commit replay test (#344)
KonradStaniec Dec 16, 2024
b3da9cb
chore: refactory (#348)
RafilxTenfen Dec 16, 2024
af3fc80
`EndBlocker` -> `BeginBlocker` in BeginBlocker section
OrfeasLitos Dec 16, 2024
cd0bbcd
Konradstaniec/enable more lin (#350)
KonradStaniec Dec 16, 2024
d0f9092
fix: withdrawal cli for rewards (#352)
samricotta Dec 17, 2024
f1ae78e
docs: Add stake transition documentation (#351)
vitsalis Dec 17, 2024
02b7023
[backport] remove unused deps in `.proto` files (#358)
lesterli Dec 19, 2024
c3aaaa1
feat: improve performance BTC reward distribution (#306)
RafilxTenfen Dec 20, 2024
d80bdcd
Typos on app upgrade README (#335)
Akare123 Dec 20, 2024
40f890d
chore(adr-39): Refactor rewarding (#360)
gitferry Dec 20, 2024
2135919
Konradstaniec/testnet parameters (#364)
KonradStaniec Dec 20, 2024
bf53a4a
chore(adr-39): Reject out-dated finality votes (#365)
gitferry Dec 20, 2024
be9eb6b
fix: slashed fp and BTC rewards tracker (#371)
RafilxTenfen Dec 24, 2024
c001e72
backport: v1.0.0-rc.2 (#372) (#373)
RafilxTenfen Dec 24, 2024
aaac0d4
fix block tally in finality module (#374)
KonradStaniec Jan 2, 2025
372e67b
fix: `HandleRewarding` gaps of unfinalized blocks (#378)
RafilxTenfen Jan 3, 2025
6fc700a
fix epoching ante handler (#385)
KonradStaniec Jan 6, 2025
a0352f6
backport/change log changes v1.0.0-rc.3 (#389)
KonradStaniec Jan 6, 2025
a85d6c7
chore: tryfix e2e flunky `TestBTCRewardsDistribution` (#391)
RafilxTenfen Jan 8, 2025
93b9c5c
docs: fix link for guides (#392)
samricotta Jan 9, 2025
b2cdb43
chore: Bump SDK to 0.50.11 (#353)
vitsalis Jan 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ jobs:
run-integration-tests: false
run-lint: true

proto_lint:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run proto lint
run: |
make proto-lint

docker_pipeline:
uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.7.0
secrets: inherit
Expand Down Expand Up @@ -138,6 +147,28 @@ jobs:
run: |
make test-e2e-cache-btc-staking

e2e-run-btc-rewards:
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: Cache Go
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Run e2e TestBTCRewardsDistribution
run: |
make test-e2e-cache-btc-rewards

e2e-run-btc-staking-pre-approval:
needs: [e2e-docker-build-babylon]
runs-on: ubuntu-22.04
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ jobs:
run-lint: true

docker_pipeline:
uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.7.0
uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.10.2
needs: ["lint_test"]
secrets: inherit
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
with:
publish: true
dockerfile: ./contrib/images/babylond/Dockerfile
repoName: babylond
docker_scan: true
17 changes: 17 additions & 0 deletions .github/workflows/sync_pr_main_to_base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Create Sync PR from main to base/consumer-chain-support

on:
schedule:
- cron: "0 0 * * *"

permissions:
pull-requests: write

jobs:
call_sync_branch:
uses: babylonlabs-io/.github/.github/workflows/reusable_sync_branch.yml@v0.7.0
with:
base_branch: "main"
target_branch: "base/consumer-chain-support"
reviewers: "SebastianElvis,maurolacy,gusin13"
secrets: inherit
90 changes: 32 additions & 58 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,103 +1,77 @@
run:
timeout: 5m
# TODO: enable all linters
linters:
disable-all: true
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- containedctx
- contextcheck
- cyclop
# - bodyclose
# - containedctx
# - contextcheck
- decorder
- depguard
- dogsled
- dupl
# - dogsled
- durationcheck
- errcheck
- errchkjson
- errname
- errorlint
- execinquery
- exhaustive
- exhaustivestruct
- exhaustruct
- exportloopref
# - errorlint
# - exhaustive
- forbidigo
- forcetypeassert
- funlen
- gci
- gochecknoglobals
- gochecknoinits
- gocognit
# - forcetypeassert
- goconst
- gocritic
- gocyclo
- godot
- godox
- goerr113
- gofumpt
# - gocyclo
- goheader
- golint
- gomnd
- gomoddirectives
- gomodguard
- goprintffuncname
- gosec
- gosimple
- govet
- grouper
- ifshort
- importas
- ineffassign
- interfacebloat
- interfacer
- ireturn
- lll
- loggercheck
- maintidx
# - maintidx
- makezero
- maligned
- misspell
- nakedret
- nestif
- nilerr
- nilnil
- nlreturn
# - nlreturn
- noctx
- nolintlint
- nonamedreturns
- nosnakecase
- nosprintfhostport
- paralleltest
- prealloc
- predeclared
- promlinter
# - paralleltest
- reassign
- revive
# - revive
- rowserrcheck
- scopelint
- sqlclosecheck
- staticcheck
- structcheck
- stylecheck
- tagliatelle
# - stylecheck
- tenv
- testableexamples
- testpackage
- thelper
- tparallel
# - tparallel
- typecheck
- unconvert
- unparam
- unused
- usestdlibvars
- varcheck
- varnamelen
- unused
- wastedassign
- whitespace
- wrapcheck
- wsl
# - wrapcheck

issues:
max-same-issues: 0
# Default: https://golangci-lint.run/usage/false-positives/#default-exclusions
exclude-dirs:
- e2etest
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- gocyclo
- errcheck
- dupl
- gosec
- path-except: _test\.go
linters:
- forbidigo
124 changes: 124 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,143 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## Unreleased

### Improvements

- [#391](https://github.com/babylonlabs-io/babylon/pull/391) Fix e2e `TestBTCRewardsDistribution` flunky
check of rewards

### Bug fixes

- [#353](https://github.com/babylonlabs-io/babylon/pull/353) Bump to SDK
0.50.11

## v1.0.0-rc3

### Bug fixes

- [#374](https://github.com/babylonlabs-io/babylon/pull/374) Fix non-consecutive finalization
of the block in `TallyBlocks` function
- [#378](https://github.com/babylonlabs-io/babylon/pull/378) Fix give out rewards
with gaps of unfinalized blocks
- [#385](https://github.com/babylonlabs-io/babylon/pull/385) Fix epoching module
ante handler to return from antehandler chain only in case of error

## v1.0.0-rc2

### Bug fixes

- [#371](https://github.com/babylonlabs-io/babylon/pull/371) Do not prune BTC
reward tracker structures at the slash of finality provider.

## v1.0.0-rc.1

### Improvements

- [#306](https://github.com/babylonlabs-io/babylon/pull/306) feat: improve BTC reward distribution with
virtual block periods for each finality provider that has delegations and reward tracker structures.
- [#338](https://github.com/babylonlabs-io/babylon/pull/338) Add print BIP-340 in
`debug pubkey-raw` subcommand
- [#316](https://github.com/babylonlabs-io/babylon/pull/316) Add testnet upgrade data
- [#326](https://github.com/babylonlabs-io/babylon/pull/326) docs: btcstaking:
Update btcstaking module docs to include EOI
- [#348](https://github.com/babylonlabs-io/babylon/pull/348) refactory `PrivateSigner`
and module account vars in appparams
- [#351](https://github.com/babylonlabs-io/babylon/pull/351) docs: Add state
transition docs.
- [#358](https://github.com/babylonlabs-io/babylon/pull/358) Remove unused deps in `.proto` files
- [#364](https://github.com/babylonlabs-io/babylon/pull/364) Add testnet upgrade data

### Bug fixes

- [#324](https://github.com/babylonlabs-io/babylon/pull/324) Fix decrementing
jailed fp counter
- [#352](https://github.com/babylonlabs-io/babylon/pull/352) Fix: withdrawal cli
for rewards

### State Machine Breaking

- [#341](https://github.com/babylonlabs-io/babylon/pull/341) Select parameters
for pre-approval flow based on BTC LC tip height
- [#360](https://github.com/babylonlabs-io/babylon/pull/360) Refactor rewarding
- [#365](https://github.com/babylonlabs-io/babylon/pull/365) Reject outdated finality votes

## v0.18.2

### Bug fixes

- [#342](https://github.com/babylonlabs-io/babylon/pull/342) Fix non-determinism while jailing

## v0.18.1

- [#328](https://github.com/babylonlabs-io/babylon/pull/328) Fix btc activation height validation in genesis

## v0.18.0

### Improvements

- [#309](https://github.com/babylonlabs-io/babylon/pull/309) feat(adr-036): custom withdrawal address
- [#305](https://github.com/babylonlabs-io/babylon/pull/305) chore: add more error logs to `VerifyInclusionProofAndGetHeight`
- [#304](https://github.com/babylonlabs-io/babylon/pull/304) Add highest voted height to finality provider
- [#314](https://github.com/babylonlabs-io/babylon/pull/314) Require exact unbonding time in delegation
- [#317](https://github.com/babylonlabs-io/babylon/pull/317) Enforce that EOI
delegations using correct parameters version

### State Machine Breaking

- [#310](https://github.com/babylonlabs-io/babylon/pull/310) implement adr-37 -
making params valid for btc light client ranges

### Bug fixes

- [#318](https://github.com/babylonlabs-io/babylon/pull/318) Fix BTC delegation status check
to relay on UnbondingTime in delegation

## v0.17.2

### Improvements

- [#311](https://github.com/babylonlabs-io/babylon/pull/311) Enforce version 2
for unbonding transactions

## v0.17.1

### Bug fixes

- [#289](https://github.com/babylonlabs-io/babylon/pull/289) hotfix: Invalid minUnbondingTime for verifying inclusion proof

## v0.17.0

### State Breaking

- [278](https://github.com/babylonlabs-io/babylon/pull/278) Allow unbonding time to be min unbonding value

### Improvements

- [#264](https://github.com/babylonlabs-io/babylon/pull/264) bump docker workflow
version to 0.10.2, fix some Dockerfile issues
- [#284](https://github.com/babylonlabs-io/babylon/pull/284) Update cosmos sdk math dependency
- [#285](https://github.com/babylonlabs-io/babylon/pull/285) Update cometbft dependency
version

### Bug fixes

- [#270](https://github.com/babylonlabs-io/babylon/pull/270) Validate there is only
one finality provider key in the staking request
- [#270](https://github.com/babylonlabs-io/babylon/pull/277) Panic due to possible
nil params response

## v0.16.1

### API Breaking

- [#273](https://github.com/babylonlabs-io/babylon/pull/273) Add full staking tx to BTC delegation creation event

## v0.16.0

### Improvements

* [#242](https://github.com/babylonlabs-io/babylon/pull/242) Add
ResumeFinalityProposal and handler
* [#258](https://github.com/babylonlabs-io/babylon/pull/258) fix go releaser
and trigger by github action
* [#252](https://github.com/babylonlabs-io/babylon/pull/252) Fix
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ test-e2e-cache-btc-timestamping-phase-2-rly:
test-e2e-cache-btc-staking:
go test -run TestBTCStakingTestSuite -mod=readonly -timeout=60m -v $(PACKAGES_E2E) --tags=e2e

test-e2e-cache-btc-rewards:
go test -run TestBTCRewardsDistribution -mod=readonly -timeout=60m -v $(PACKAGES_E2E) --tags=e2e

test-e2e-cache-btc-staking-pre-approval:
go test -run TestBTCStakingPreApprovalTestSuite -mod=readonly -timeout=60m -v $(PACKAGES_E2E) --tags=e2e

Expand Down Expand Up @@ -407,7 +410,7 @@ protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(pro

proto-all: proto-gen proto-swagger-gen ## Generate all protobuf related files

proto-gen: ## Generate protobuf files
proto-gen: proto-lint ## Generate protobuf files
@echo "Generating Protobuf files"
@$(protoImage) sh ./proto/scripts/protocgen.sh

Expand All @@ -421,7 +424,7 @@ proto-format: ## Format protobuf files
proto-lint: ## Lint protobuf files
@$(protoImage) buf lint --error-format=json

.PHONY: proto-gen proto-swagger-gen proto-format prot-lint
.PHONY: proto-gen proto-swagger-gen proto-format proto-lint

###############################################################################
### Docker ###
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ document about its design and implementation.
## Joining the testnet

Please follow the instructions on the [User
Guides](https://docs.babylonchain.io/docs/user-guides/overview).
Guides](https://github.com/babylonlabs-io/networks/blob/main/bbn-test-5/README.md).

## Contributing

Expand Down
Loading
Loading