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

fix: merge main to base #281

Open
wants to merge 111 commits into
base: base/consumer-chain-support
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
934e142
chore(e2e): babylond in docker (#65)
Lazar955 Sep 25, 2024
627a8d0
chore(e2e): parse go mod for babylond version (#67)
Lazar955 Sep 25, 2024
608038c
doc: Add core logic of finality provider and status transition (#71)
gitferry Sep 27, 2024
74baa4c
fix: fpd panics on jailed finality provider (#78)
gitferry Oct 1, 2024
8080c4c
chore: bump to bbn v0.11.0 (#81)
RafilxTenfen Oct 2, 2024
dfa7e25
chore: Enable gosec and fix findings (#83)
vitsalis Oct 7, 2024
9232072
chore: Remove running multiple fp instances support (#86)
gitferry Oct 10, 2024
2f0b1c8
Bump Babylon v0.12.0 (#88)
gitferry Oct 10, 2024
e694b2c
ci: GH actions for goreleaser, changelog reminder, and backport (#89)
SebastianElvis Oct 10, 2024
80f6eb0
ci: add goreleaser setup and move out changelog reminder (#91)
SebastianElvis Oct 11, 2024
5af9109
chore: update CI to publish docker images for base/consumer-chain-sup…
bap2pecs Oct 15, 2024
cee934b
feat(cmd): edit finality provider description (#90)
Lazar955 Oct 15, 2024
d56d0f8
chore: Bump babylon version to v0.13.0 (#97)
gitferry Oct 16, 2024
2dbba5a
chore: add finality activation height (#101)
RafilxTenfen Oct 24, 2024
1ee2769
chore: backport release v090 (#105) (#106)
RafilxTenfen Oct 24, 2024
4092953
feat(cmd): print binary version in fpd (#104)
Lazar955 Oct 24, 2024
3f8aa01
fix: update the start height var
RafilxTenfen Oct 25, 2024
5118dc5
chore: refactor eotsd keys cmd (#102)
gitferry Oct 25, 2024
c02f046
backport: Update changelog (#110)
gitferry Oct 27, 2024
0573858
chore: Bump babylon version to v0.15.0 (#114)
gitferry Oct 31, 2024
4e105a3
backport: rename config `ChainName` to `ChainType` (#87)
bap2pecs Nov 4, 2024
fc280b8
fix: Ignore duplicated finality vote err (#124)
gitferry Nov 13, 2024
3de6fd8
doc: Spec of commit public randomness (#117)
gitferry Nov 13, 2024
cb1c05e
chore(*): fix lint config (#126)
Lazar955 Nov 13, 2024
4341881
chore: Upgrade Babylon version 0.16.0 (#128)
gitferry Nov 14, 2024
ab8df8b
chore: add lint lint version in gh action (#129)
gitferry Nov 14, 2024
a5f022f
doc: Spec of finality vote submission (#120)
gitferry Nov 19, 2024
e052ab3
chore: Replace fast sync with batch processing (#132)
gitferry Nov 20, 2024
81531dc
fix: Ignore voting power not updated error (#139)
gitferry Nov 21, 2024
fd05973
fix dockerfile & CVEs issues (#127)
huynaism Nov 21, 2024
5dff674
chore: Bump Babylon to v0.17.1 (#146)
gitferry Nov 22, 2024
207880d
chore: remove update of config after keys add in fpd (#149)
RafilxTenfen Nov 22, 2024
3117772
fix: allow to create keys with empty hd path (#148)
RafilxTenfen Nov 22, 2024
ac1c2de
chore: Use sign schnorr instead of getting private key from EOTS mana…
gitferry Nov 26, 2024
022bb68
fix: Remove start height validation (#158)
gitferry Nov 26, 2024
86626fc
backport: Changelog update (#160) (#161)
gitferry Nov 26, 2024
0fca54e
fix: eotsd `--output` flag (#166)
RafilxTenfen Nov 27, 2024
b4cd6ac
chore: Remove last processed height (#167)
gitferry Nov 27, 2024
36f1f9d
[backport] feat: add new cmd fpd commit-pubrand (#153)
bap2pecs Nov 28, 2024
965510a
chore: Remove key creation in `create-finality-provider` (#168)
gitferry Nov 28, 2024
5a267ce
chore(cmd): adds eotsd version command (#175)
Lazar955 Nov 29, 2024
8fd17f7
docs: finality provider phase 1 to phase 2 documentation for operator…
samricotta Nov 29, 2024
dd94b92
chore(adr-35): Refactor determining start height (#176)
gitferry Nov 30, 2024
6565301
chore: Change `btc_pk` text to `eots_pk` (#179)
gitferry Dec 2, 2024
807263a
chore: Remove fp manager (#182)
gitferry Dec 4, 2024
ee15a86
feat(adr-035): eots manager signing requests (#184)
Lazar955 Dec 4, 2024
7d7f4f8
chore: benchmark pub randomness commit (#190)
Lazar955 Dec 4, 2024
bdf768e
chore: Remove `register-finality-provider` cmd (#189)
gitferry Dec 5, 2024
a358d7b
chore: Not block unjailing (#195)
gitferry Dec 5, 2024
9dea909
chore: adds unsafeSignEOTS for testing double signing (#193)
Lazar955 Dec 5, 2024
40cad01
chore: Bump Babylon to v0.18.0 (#197)
gitferry Dec 5, 2024
8bc31e6
docs: update jailing guidelines (#198)
samricotta Dec 5, 2024
27349c9
fix: EOTS signing for multiple finality providers (#199)
gitferry Dec 6, 2024
a0e8f8a
[backport] Update changelog (#202)
gitferry Dec 6, 2024
cdbd96c
chore: x/incentive cmds (#203)
Lazar955 Dec 6, 2024
69c755f
docs: prometheus metrics (#204)
samricotta Dec 9, 2024
768bec3
chore: create fp from json (#207)
Lazar955 Dec 10, 2024
c0600dc
chore: Remove sync fp status loop (#208)
gitferry Dec 10, 2024
0c0b494
chore: Clean up unused cmd (#211)
gitferry Dec 10, 2024
e305548
chore: gradual benchmark pub rand (#214)
Lazar955 Dec 11, 2024
552573d
docs: fix invalid link README.md
osrm Dec 11, 2024
08ec9ab
chore: add multiple fpd connecting to one eotsd in e2e tests (#216)
gitferry Dec 11, 2024
d8506b6
feat: prune used merkle proof (#218)
Lazar955 Dec 16, 2024
4f702d6
chore: Remove todos (#221)
gitferry Dec 16, 2024
df2b89b
backport: #217 - shouldn't wait SubmissionRetryInterval at the first …
bap2pecs Dec 17, 2024
f86f73b
feat: add save key on mapping after import of keys (#228)
RafilxTenfen Dec 17, 2024
e995884
chore: query fp before register (#226)
Lazar955 Dec 17, 2024
70df36f
feat: list all keys in store (#234)
Lazar955 Dec 19, 2024
7140c9e
docs: update docs to include withdrawal of rewards for FP (#232)
samricotta Dec 20, 2024
e05927e
chore: Refactor `CommitPubRand` (#233)
gitferry Dec 20, 2024
cb9e0d5
chore: bump babylon to v1.0.0-rc.1 (#238)
Lazar955 Dec 21, 2024
709e2c2
chore: release v0.14.0 (#239)
RafilxTenfen Dec 21, 2024
0cf7d59
docs: natively display status for created FP (#237)
samricotta Dec 21, 2024
41ccf67
chore: release v0.14.1 (#241) (#242)
RafilxTenfen Dec 22, 2024
818f36f
fix: save key name mapping verifies if there is a client running (#244)
RafilxTenfen Dec 23, 2024
d2bf472
fix: start fp after register (#246)
Lazar955 Dec 23, 2024
996ec25
chore: update changelog v0.14.2 (#249) (#250)
Lazar955 Dec 24, 2024
edc7f68
chore: nlreturn lint (#251)
Lazar955 Dec 24, 2024
d7059e0
feat: rm interceptors and use context (#252)
Lazar955 Dec 24, 2024
d2258c0
fix: docs: Invalid clone link in the guide (#256)
vitsalis Dec 27, 2024
419645b
chore: Refactor to start from the last finalized height (#257)
gitferry Jan 3, 2025
5f8d43a
chore: Allow running of jailed fp (#260)
gitferry Jan 6, 2025
d2dbb04
chore: change default config value (#266)
gitferry Jan 7, 2025
eccbe16
[backport] Update Changelog (#267) (#268)
gitferry Jan 7, 2025
5e68a2e
feat: export pop command (#262)
RafilxTenfen Jan 7, 2025
0c97c12
fix: Broken links on operation guide (#272)
vitsalis Jan 7, 2025
afb436f
docs: `create-finality-provider` json approach (#273)
samricotta Jan 8, 2025
78d98ed
docs: update to include configuring (#280)
samricotta Jan 13, 2025
30d2a1a
docs: Edit finality provider documentation (#278)
samricotta Jan 13, 2025
ec66593
Merge branch 'main' into merbe-main-to-base-2025
SebastianElvis Jan 14, 2025
904ac20
feat: delete fp pop (#284)
RafilxTenfen Jan 14, 2025
d506aa9
feat: poll many blocks (#277)
Lazar955 Jan 17, 2025
46c75a4
chore: Remove skip height (#291)
Lazar955 Jan 17, 2025
16adc56
fix compile, fuzz and e2e
SebastianElvis Jan 21, 2025
9568dd0
fix bcd e2e
SebastianElvis Jan 21, 2025
5a372e8
fix op compile
SebastianElvis Jan 21, 2025
548f278
feat: add new command to validate exported pop (#297)
RafilxTenfen Jan 24, 2025
e1e768a
chore: modified to output pops to file (#302)
RafilxTenfen Jan 24, 2025
1c678fd
chore: Improve fpd start (#294)
gitferry Jan 27, 2025
2765ab0
chore: check if tx index enabled (#301)
Lazar955 Jan 27, 2025
8dc751d
fix: increment `fp_total_failed_votes` if block is finalized (#307)
Lazar955 Jan 28, 2025
bc7cc1e
chore: bump babylon to v1.0.0-rc.4 (#308)
Lazar955 Jan 28, 2025
873b8dd
fix
SebastianElvis Jan 29, 2025
d20bbac
Merge branch 'main' into merbe-main-to-base-2025
SebastianElvis Jan 29, 2025
74913c6
fix fuzz tests and lint
SebastianElvis Jan 29, 2025
5f1332c
fix: edit finality provider `commission-rate` (#296)
samricotta Jan 29, 2025
3a8caaa
chore: changelog v0.15.0 (#311) (#312)
Lazar955 Jan 29, 2025
81c3288
fix bcd e2e
SebastianElvis Jan 30, 2025
0126bb0
fix gosec
SebastianElvis Jan 30, 2025
eff5ab7
Merge branch 'main' into merbe-main-to-base-2025
SebastianElvis Jan 30, 2025
f2b7587
fix e2e
SebastianElvis Jan 31, 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
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

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Backport' step
Uses Step
uses 'tibdex/backport' with ref 'v2', not a pinned commit hash
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Comment on lines +22 to +38

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
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
Comment on lines +10 to +11

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
16 changes: 5 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
go-lint-version: 'v1.60.2'
run-unit-tests: true
run-lint: true
run-build: true
run-gosec: true
gosec-args: "-exclude-generated -exclude-dir=itest -exclude-dir=testutil ./..."

e2e_babylon:
runs-on: ubuntu-22.04
Expand All @@ -26,17 +29,6 @@ jobs:
- name: Run e2e Babylon tests
run: make test-e2e-babylon

e2e_wasmd:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Run e2e Wasmd tests
run: make test-e2e-wasmd

e2e_bcd:
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -64,3 +56,5 @@ jobs:
secrets: inherit
with:
publish: false
dockerfile: ./Dockerfile
repoName: finality-provider
11 changes: 11 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: goreleaser

on:
push:
tags:
- '*'

jobs:
release:
uses: babylonlabs-io/.github/.github/workflows/[email protected]
secrets: inherit
Comment on lines +10 to +11

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
24 changes: 12 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
go-lint-version: 'v1.60.2'
run-unit-tests: true
run-lint: true
run-build: true
run-gosec: true
gosec-args: "-exclude-generated -exclude-dir=itest -exclude-dir=testutil ./..."

e2e_babylon:
runs-on: ubuntu-22.04
Expand All @@ -28,17 +31,6 @@ jobs:
- name: Run e2e Babylon tests
run: make test-e2e-babylon

e2e_wasmd:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Run e2e Wasmd tests
run: make test-e2e-wasmd

e2e_bcd:
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -66,7 +58,15 @@ jobs:

docker_pipeline:
needs: ["lint_test"]
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
secrets: inherit
with:
publish: true
dockerfile: ./Dockerfile
repoName: finality-provider
docker_scan: true
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ devnet-data/
main
tmp/
build/
dist/

*.swp
82 changes: 81 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,86 @@
run:
build-tags:
build-tags:
- e2e_op
- e2e_babylon
- e2e_bcd
- e2e_wasmd
timeout: 5m

linters:
disable-all: true
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- containedctx
- contextcheck
- decorder
- dogsled
- durationcheck
- errcheck
- errchkjson
- errname
- errorlint
- exhaustive
- forbidigo
- forcetypeassert
- goconst
- gocritic
- gocyclo
- goheader
- gomodguard
- goprintffuncname
- gosimple
- govet
- grouper
- importas
- ineffassign
- loggercheck
- maintidx
- makezero
- misspell
- nakedret
- nilerr
- nlreturn
- noctx
- nonamedreturns
- nosprintfhostport
- paralleltest
- reassign
- revive
- rowserrcheck
- sqlclosecheck
- staticcheck
- stylecheck
- tenv
- testableexamples
- tparallel
- typecheck
- unconvert
- unparam
- usestdlibvars
- unused
- wastedassign
- whitespace
# - wrapcheck # we really should be using this, lax for now todo(lazar): unlax at somepoint, good practice

issues:
max-same-issues: 0
# Default: https://golangci-lint.run/usage/false-positives/#default-exclusions
exclude-dirs:
- e2etest
- itest
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- gocyclo
- errcheck
- dupl
- gosec
- nonamedreturns
- unparam
- path-except: _test\.go
linters:
- forbidigo
73 changes: 73 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
project_name: finality-provider

builds:
- id: fpd-linux-amd64
main: ./finality-provider/cmd/fpd/main.go
binary: fpd
hooks:
pre:
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.x86_64.a -O /usr/lib/libwasmvm_muslc.x86_64.a
goos:
- linux
goarch:
- amd64
env:
- GO111MODULE=on
flags:
- -mod=readonly
- -trimpath
tags:
- netgo
- osusergo

- id: eotsd-linux-amd64
main: ./eotsmanager/cmd/eotsd/main.go
binary: eotsd
hooks:
pre:
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.x86_64.a -O /usr/lib/libwasmvm_muslc.x86_64.a
goos:
- linux
goarch:
- amd64
env:
- GO111MODULE=on
flags:
- -mod=readonly
- -trimpath
tags:
- netgo
- osusergo

archives:
- id: zipped
builds:
- fpd-linux-amd64
- eotsd-linux-amd64
name_template: "{{.ProjectName}}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
format: tar.gz
files:
- none*
- id: binaries
builds:
- fpd-linux-amd64
- eotsd-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: finality-provider

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

dist: dist
5 changes: 5 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# LND < 0.17.0 issue, not fixing
CVE-2024-27304
GHSA-7jwh-3vrq-q3m8
CVE-2024-27289
CVE-2024-38359
Loading
Loading