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

Upgrade bdjuno to support cosmos sdk v0.47.x #30

Merged
merged 177 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
7d460ab
build(deps): bump github.com/lib/pq from 1.10.5 to 1.10.6 (#409)
dependabot[bot] May 17, 2022
30e1f3a
fix: save all coins from total supply query (#410)
huichiaotsou May 26, 2022
7d7337c
build(deps): bump forbole/juno to v3.2.1 (#412)
MonikaCat May 27, 2022
37daff5
build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.7.2 (#416)
dependabot[bot] Jun 7, 2022
3af94ce
build(deps): bump github.com/rs/zerolog from 1.26.1 to 1.27.0 (#417)
dependabot[bot] Jun 13, 2022
77cd3b0
build(deps): bump github.com/go-co-op/gocron from 1.13.0 to 1.14.0 (#…
dependabot[bot] Jun 16, 2022
6d75333
build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.4 (#424)
dependabot[bot] Jun 21, 2022
443af04
build(deps): bump github.com/spf13/cobra from 1.4.0 to 1.5.0 (#423)
dependabot[bot] Jun 21, 2022
e13edfe
build(deps): bump technote-space/get-diff-action from 6.0.1 to 6.1.0 …
dependabot[bot] Jun 21, 2022
c3d890b
fix: update proposal to latest status in parse proposal cmd (#401)
huichiaotsou Jun 22, 2022
50e9794
build(deps): bump github.com/stretchr/testify from 1.7.4 to 1.7.5 (#425)
dependabot[bot] Jun 24, 2022
b584c6a
build(deps): bump github.com/stretchr/testify from 1.7.5 to 1.8.0 (#428)
dependabot[bot] Jul 1, 2022
73c0ac8
build(deps): bump github.com/go-co-op/gocron from 1.14.0 to 1.15.0 (#…
dependabot[bot] Jul 1, 2022
661c62e
fix: missing go.sum entry when building container image (#429)
maiquanghiep Jul 4, 2022
f9eaebd
feat: Add workflow to build bdjuno container image (#431)
maiquanghiep Jul 6, 2022
49e3089
feat: update proposals that have invalid status but can still be in v…
huichiaotsou Jul 6, 2022
52ce0df
feat: update inflation following mint param change proposal passed (#…
huichiaotsou Jul 6, 2022
e8f3d2e
build: updated Mergify config to also work on chains branches
RiccardoM Jul 19, 2022
3687dcf
build(deps): bump github.com/go-co-op/gocron from 1.15.0 to 1.15.1 (#…
dependabot[bot] Jul 21, 2022
adf2b22
build(deps): bump forbole/juno to v3.3.0 (#440)
MonikaCat Jul 28, 2022
2bbc921
build(deps): bump github.com/go-co-op/gocron from 1.15.1 to 1.16.1 (#…
dependabot[bot] Aug 1, 2022
2a3e297
chore: release v3.2.0
RiccardoM Aug 3, 2022
ad67aeb
build(deps): bump github.com/go-co-op/gocron from 1.16.1 to 1.16.2 (#…
dependabot[bot] Aug 5, 2022
413ffe6
build(deps): bump github.com/prometheus/client_golang from 1.12.2 to …
dependabot[bot] Aug 8, 2022
ea65fc9
fix: remove tombstone from `validator_status` (already exists in `val…
huichiaotsou Aug 8, 2022
d3574df
build(ci): replace DOCKERHUB_TOKEN with DOCKERHUB_PASSWORD
RiccardoM Aug 15, 2022
f6e0cfc
build: go v1.18 (#452)
huichiaotsou Aug 16, 2022
f2847a2
build(deps): bump github.com/go-co-op/gocron from 1.16.2 to 1.16.3 (#…
dependabot[bot] Aug 23, 2022
c01e1de
feat: updated staking pool values (#455)
MonikaCat Aug 24, 2022
9c9712a
build(deps): bump github.com/go-co-op/gocron from 1.16.3 to 1.17.0 (#…
dependabot[bot] Aug 25, 2022
c946ce2
feat: add daily refetch module (#454)
MonikaCat Aug 26, 2022
faa7f4d
build(deps): bump github.com/rs/zerolog from 1.27.0 to 1.28.0 (#460)
dependabot[bot] Aug 29, 2022
bc93e79
fix: parse gov genesis with `doc.InitialHeight` instead of height 1 (…
huichiaotsou Aug 29, 2022
a108238
build(deps): bump github.com/lib/pq from 1.10.6 to 1.10.7 (#463)
dependabot[bot] Sep 7, 2022
48f05f0
build(deps): bump forbole/juno to v3.4.0 (#462)
MonikaCat Sep 12, 2022
4dccf53
fix: get open proposal ids in deposit/voting period by block time ins…
huichiaotsou Sep 15, 2022
f48289c
build(deps): bump amannn/action-semantic-pull-request from 4.5.0 to 4…
dependabot[bot] Sep 28, 2022
696b0ff
build(deps): bump Dockerfile Go version to 1.18 (backport #466) (#474)
mergify[bot] Oct 1, 2022
739acc8
feat: store software upgrade plan and refresh data at upgrade height …
huichiaotsou Oct 4, 2022
80b8862
build(deps): bump github.com/spf13/cobra from 1.5.0 to 1.6.0 (#478)
dependabot[bot] Oct 13, 2022
4b866dc
build(deps): bump amannn/action-semantic-pull-request from 4.6.0 to 5…
dependabot[bot] Oct 13, 2022
f586bd1
build(deps): bump technote-space/get-diff-action from 6.1.0 to 6.1.1 …
dependabot[bot] Oct 17, 2022
f1dbcb5
build(deps): bump amannn/action-semantic-pull-request from 5.0.0 to 5…
dependabot[bot] Oct 17, 2022
3ffdef7
build(deps): Bump amannn/action-semantic-pull-request from 5.0.1 to 5…
dependabot[bot] Oct 18, 2022
26854db
build(deps): bump github.com/go-co-op/gocron from 1.17.0 to 1.17.1 (#…
dependabot[bot] Oct 18, 2022
2b8145e
fix: support building bdjuno image for chains with CosmWasm (#485)
maiquanghiep Oct 24, 2022
a739aa2
build(deps): bump golangci/golangci-lint-action from 3.2.0 to 3.3.0 (…
dependabot[bot] Oct 24, 2022
5d34331
build(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1 (#487)
dependabot[bot] Oct 24, 2022
ea862d4
build(deps): bump github.com/spf13/cobra from 1.6.0 to 1.6.1 (#488)
dependabot[bot] Oct 25, 2022
0fe206a
fix: improve Hasura permissions (#473)
MonikaCat Oct 25, 2022
c999075
feat: remove block height foreign key from propoval vote and deposit,…
huichiaotsou Oct 27, 2022
e7d9375
feat: add host address to hasura actions (#491)
huichiaotsou Oct 31, 2022
2422612
build(deps): bump github.com/prometheus/client_golang from 1.13.0 to …
dependabot[bot] Nov 4, 2022
2db82c1
build(deps): bump github.com/prometheus/client_golang from 1.13.1 to …
dependabot[bot] Nov 9, 2022
1147d3b
build(deps): bump github.com/go-co-op/gocron from 1.17.1 to 1.18.0 (#…
dependabot[bot] Nov 9, 2022
a7aa04d
feat: manually trigger periodic task (#492)
huichiaotsou Nov 13, 2022
d326199
fix: check if proposal has passed voting end time before marking it a…
huichiaotsou Nov 14, 2022
6823035
build(deps): bump golangci/golangci-lint-action from 3.3.0 to 3.3.1 (…
dependabot[bot] Nov 15, 2022
d378f58
build(ci): upgrade golangci version (#508)
huichiaotsou Dec 16, 2022
c2728e3
build(deps): bump technote-space/get-diff-action from 6.1.1 to 6.1.2 …
dependabot[bot] Dec 16, 2022
5033d62
build(deps): bump github.com/rs/zerolog from 1.28.0 to 1.29.0 (#516)
dependabot[bot] Jan 30, 2023
20cbb0e
build(deps): bump golangci/golangci-lint-action from 3.3.1 to 3.4.0 (…
dependabot[bot] Jan 30, 2023
4f4508a
build(deps): bump docker/build-push-action from 3 to 4 (#518)
dependabot[bot] Feb 3, 2023
eaac03a
updated cosmos-sdk to v0.46.x and juno to v4
MonikaCat Feb 8, 2023
0ee50ec
updated bdjuno paths to v4
MonikaCat Feb 8, 2023
2bce237
updated migrate cmd desc
MonikaCat Feb 8, 2023
50b77c1
updated golangci.yaml
MonikaCat Feb 9, 2023
b12d56b
build(deps): bump amannn/action-semantic-pull-request from 5.0.2 to 5…
dependabot[bot] Feb 13, 2023
eedd9f6
feat: update proposal snapshots handling on block (#523)
MonikaCat Feb 14, 2023
e1b5ef4
feat: update proposal snapshots handling on block (#523)
MonikaCat Feb 14, 2023
9869cde
fix: fix docker authentication & determine Dockerfile at run time (#524)
maiquanghiep Feb 16, 2023
8573e2f
fix: correct docker/build-push-action's input (#525)
maiquanghiep Feb 17, 2023
83a54c6
Merge branch 'cosmos/v0.44.x' of https://github.com/forbole/bdjuno in…
MonikaCat Feb 17, 2023
3f86471
build(deps): bump golang.org/x/text from 0.3.7 to 0.3.8 (#526)
dependabot[bot] Feb 23, 2023
0dc24f3
build(deps): bump github.com/stretchr/testify from 1.8.1 to 1.8.2 (#528)
dependabot[bot] Feb 27, 2023
825643f
build(deps): bump golang.org/x/crypto from 0.0.0-20220214200702-86341…
dependabot[bot] Feb 27, 2023
4f63f9b
build(deps): bump golang.org/x/net from 0.1.0 to 0.7.0 (#535)
dependabot[bot] Mar 10, 2023
1c05dd2
build(deps): bump actions/setup-go from 3 to 4 (#538)
dependabot[bot] Mar 16, 2023
26aba2e
build(deps): bump amannn/action-semantic-pull-request from 5.1.0 to 5…
dependabot[bot] Mar 17, 2023
4e03eaa
fix: sdkmath type in PoolSnapshot (#536)
saiSunkari19 Mar 17, 2023
171152c
build(deps): bump forbole/juno and forbole/bdjuno to v4 (#542)
MonikaCat Mar 20, 2023
7ed8123
build(deps): bump github.com/go-co-op/gocron from 1.18.0 to 1.19.0 (#…
dependabot[bot] Mar 20, 2023
16aad0d
build(deps): bump google.golang.org/grpc from 1.50.0 to 1.53.0 (#544)
dependabot[bot] Mar 22, 2023
f529266
build(deps): bump google.golang.org/grpc from 1.53.0 to 1.54.0 (#546)
dependabot[bot] Mar 22, 2023
69ddb3c
Merge branch 'cosmos/v0.44.x' of https://github.com/forbole/bdjuno in…
MonikaCat Mar 27, 2023
e60ca2f
build(deps): bump github.com/spf13/cobra from 1.6.1 to 1.7.0 (#551)
dependabot[bot] Apr 6, 2023
d68d481
build(deps): bump golangci-lint from v1.50.1 to v1.51.1 (#559)
MonikaCat Apr 15, 2023
2443c67
build(deps): bump github.com/go-co-op/gocron from 1.19.0 to 1.22.0 (#…
dependabot[bot] Apr 15, 2023
8143c7f
build(deps): bump github.com/rs/zerolog from 1.29.0 to 1.29.1 (#558)
dependabot[bot] Apr 15, 2023
9620604
build(deps): bump github.com/prometheus/client_golang from 1.14.0 to …
dependabot[bot] Apr 15, 2023
578b589
build(deps): bump github.com/lib/pq from 1.10.7 to 1.10.8 (#561)
dependabot[bot] Apr 17, 2023
98b218f
build(deps): bump github.com/go-co-op/gocron from 1.22.0 to 1.22.1 (#…
dependabot[bot] Apr 17, 2023
64f28db
build(deps): bump github.com/tendermint/tendermint from 0.34.22 to 0.…
dependabot[bot] Apr 18, 2023
e993231
build(deps): bump github.com/go-co-op/gocron from 1.22.1 to 1.22.2 (#…
dependabot[bot] Apr 18, 2023
60b9ef6
build(deps): bump github.com/go-co-op/gocron from 1.22.2 to 1.22.4 (#…
dependabot[bot] Apr 20, 2023
584fe1d
Merge branch 'cosmos/v0.44.x' of https://github.com/forbole/bdjuno in…
MonikaCat Apr 21, 2023
db47fd0
build(deps): bump github.com/go-co-op/gocron from 1.22.4 to 1.23.0 (#…
dependabot[bot] Apr 24, 2023
365f862
Merge branch 'cosmos/v0.44.x' of https://github.com/forbole/bdjuno in…
MonikaCat Apr 27, 2023
8be91a4
build(deps): bump github.com/lib/pq from 1.10.8 to 1.10.9 (#571)
dependabot[bot] Apr 27, 2023
c1e6251
build(deps): bump github.com/prometheus/client_golang from 1.15.0 to …
dependabot[bot] May 4, 2023
cb3249c
build(deps): bump google.golang.org/grpc from 1.54.0 to 1.55.0 (#574)
dependabot[bot] May 5, 2023
5488f36
build(deps): bump github.com/go-co-op/gocron from 1.23.0 to 1.24.0 (#…
dependabot[bot] May 5, 2023
e1d1299
build(ci): update Mergify to only require 1 review
RiccardoM May 5, 2023
b3f0aa9
build(deps): bump github.com/go-co-op/gocron from 1.24.0 to 1.25.0 (#…
dependabot[bot] May 8, 2023
95cb933
build(deps): bump github.com/go-co-op/gocron from 1.25.0 to 1.26.0 (#…
dependabot[bot] May 10, 2023
f103ec7
build(deps): bump github.com/go-co-op/gocron from 1.26.0 to 1.27.0 (#…
dependabot[bot] May 12, 2023
edcf055
build(deps): bump github.com/go-co-op/gocron from 1.27.0 to 1.27.1 (#…
dependabot[bot] May 18, 2023
da02572
chore: update dependabot reviewers & bug report assignees (#579)
MonikaCat May 18, 2023
dff462d
Merge branch 'cosmos/v0.44.x' of https://github.com/forbole/bdjuno in…
MonikaCat May 18, 2023
eacaace
build(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.3 (#582)
dependabot[bot] May 19, 2023
b53a474
Merge branch 'cosmos/v0.44.x' of https://github.com/forbole/bdjuno in…
MonikaCat May 19, 2023
c31ab78
build(deps): bump github.com/go-co-op/gocron from 1.27.1 to 1.28.0 (#…
dependabot[bot] May 25, 2023
2df4fac
Merge branch 'cosmos/v0.44.x' of https://github.com/forbole/bdjuno in…
MonikaCat May 25, 2023
1b86557
build(deps): bump github.com/go-co-op/gocron from 1.28.0 to 1.28.1 (#…
dependabot[bot] May 31, 2023
beb2b93
build(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4 (#588)
dependabot[bot] May 31, 2023
58d811f
build(deps): bump github.com/go-co-op/gocron from 1.28.1 to 1.28.2 (#…
dependabot[bot] Jun 2, 2023
0430e8b
build(deps): bump golangci/golangci-lint-action from 3.4.0 to 3.5.0 (…
dependabot[bot] Jun 5, 2023
471cdb3
update juno to v5
MonikaCat Jun 9, 2023
f224f4e
Merge branch 'cosmos/v0.46.x' of https://github.com/forbole/bdjuno in…
MonikaCat Jun 9, 2023
122d038
replace tendermint with cometbft pkg
MonikaCat Jun 9, 2023
05010ea
build(deps): replace github.com/gogo/protobuf with github.com/cosmos/…
MonikaCat Jun 9, 2023
b616cbc
build: bump Go version to 1.20
MonikaCat Jun 9, 2023
fbe11c1
build(deps): bump github.com/forbole/juno to v5.1.0
MonikaCat Jun 9, 2023
a7d6893
build(deps): bump github.com/forbole/bdjuno to v5
MonikaCat Jun 9, 2023
1c3e4e2
build(deps): replace github.com/gogo/protobuf with github.com/cosmos/…
MonikaCat Jun 9, 2023
da4426c
build(deps): bump cosmossdk.io/math from 1.0.0 to 1.0.1 (#596)
dependabot[bot] Jun 9, 2023
fe53071
build(deps): bump github.com/cosmos/gogoproto from 1.4.8 to 1.4.10 (#…
dependabot[bot] Jun 9, 2023
5e2bb1d
build(deps): bump golangci/golangci-lint-action from 3.5.0 to 3.6.0 (…
dependabot[bot] Jun 15, 2023
bd524da
build(deps): bump github.com/go-co-op/gocron from 1.28.2 to 1.28.3 (#…
dependabot[bot] Jun 16, 2023
5abd6af
build(deps): bump github.com/cometbft/cometbft from 0.37.1 to 0.37.2 …
dependabot[bot] Jun 16, 2023
838dc76
build(deps): bump github.com/prometheus/client_golang from 1.15.1 to …
dependabot[bot] Jun 16, 2023
74b570d
build(deps): bump google.golang.org/grpc from 1.55.0 to 1.56.0 (#604)
dependabot[bot] Jun 16, 2023
3babb63
build: update how golangci-lint version is tracked
RiccardoM Jun 25, 2023
8efcc66
build(ci): update lint workflow to use make lint
RiccardoM Jun 25, 2023
87c2dbd
build(ci): run tests on all branches
RiccardoM Jun 25, 2023
4016e70
build(ci): improve Docker build steps names
RiccardoM Jun 25, 2023
0e0f3c9
chore: run make format
RiccardoM Jun 25, 2023
99fec17
chore: update CHANGELOG
RiccardoM Jun 26, 2023
4ea2683
chore: set go module to github.com/forbole/bdjuno/v4
RiccardoM Jun 26, 2023
b01f1c0
build: set Go version to 1.19
RiccardoM Jun 26, 2023
d32fd6a
build(deps): bump technote-space/get-diff-action from 6.1.0 to 6.1.2 …
dependabot[bot] Jun 26, 2023
3b7895b
build(ci): increase linting timeout to 10 minutes
RiccardoM Jun 26, 2023
a724b93
build(ci): replace PATTERNS with SUFFIX_FILTER when computing git diff
RiccardoM Jun 26, 2023
67a1737
feat: support gov v1 proposals (#610)
RiccardoM Jun 29, 2023
43679dc
build(deps): bump google.golang.org/grpc from 1.56.0 to 1.56.2 (#616)
dependabot[bot] Jul 12, 2023
d54b36b
build(deps): bump github.com/go-co-op/gocron from 1.28.3 to 1.30.1 (#…
dependabot[bot] Jul 12, 2023
d11f724
build(deps): bump github.com/proullon/ramsql from 0.0.0-2018121320234…
dependabot[bot] Jul 12, 2023
6c5a3be
build(deps): bump google.golang.org/grpc from 1.56.2 to 1.57.0 (#620)
dependabot[bot] Aug 2, 2023
aec814f
build(deps): bump github.com/rs/zerolog from 1.29.1 to 1.30.0 (#621)
dependabot[bot] Aug 2, 2023
e8bd46f
build(deps): bump github.com/go-co-op/gocron from 1.30.1 to 1.31.0 (#…
dependabot[bot] Aug 2, 2023
5a422be
build(deps): bump github.com/go-co-op/gocron from 1.31.0 to 1.31.2 (#…
dependabot[bot] Aug 18, 2023
9447342
build(deps): bump github.com/golangci/golangci-lint from 1.52.2 to 1.…
dependabot[bot] Aug 18, 2023
458f549
build(deps): bump github.com/forbole/juno/v5 from 5.1.0 to 5.2.0 (#631)
dependabot[bot] Aug 18, 2023
4f9ec86
build(deps): bump github.com/go-co-op/gocron from 1.31.2 to 1.32.1 (#…
dependabot[bot] Aug 22, 2023
784406f
build(deps): bump github.com/proullon/ramsql from 0.0.1 to 0.1.1 (#636)
dependabot[bot] Aug 22, 2023
99cc273
build(deps): bump cosmossdk.io/math from 1.0.1 to 1.1.2 (#635)
dependabot[bot] Aug 22, 2023
90971cb
build(deps): bump github.com/golangci/golangci-lint from 1.54.1 to 1.…
dependabot[bot] Aug 23, 2023
d4d0ea2
build(deps): bump github.com/proullon/ramsql from 0.1.1 to 0.1.2 (#638)
dependabot[bot] Aug 29, 2023
10c4246
build(deps): bump github.com/go-co-op/gocron from 1.32.1 to 1.33.0 (#…
dependabot[bot] Aug 29, 2023
5590c07
build(deps): bump google.golang.org/grpc from 1.57.0 to 1.58.0 (#642)
dependabot[bot] Sep 7, 2023
13b5fdf
build(deps): bump github.com/go-co-op/gocron from 1.33.0 to 1.33.1 (#…
dependabot[bot] Sep 7, 2023
6f35476
build(deps): bump actions/checkout from 3 to 4 (#641)
dependabot[bot] Sep 7, 2023
31ae8b5
feat: add MsgExec support for modules
RiccardoM Sep 11, 2023
617779f
build(deps): Bump docker/setup-buildx-action from 2 to 3 (#645)
dependabot[bot] Sep 15, 2023
54ad4f0
build(deps): Bump docker/login-action from 2 to 3 (#646)
dependabot[bot] Sep 15, 2023
8a6cc4d
build(deps): Bump docker/build-push-action from 4 to 5 (#647)
dependabot[bot] Sep 15, 2023
e2c8896
build(deps): Bump codecov/codecov-action from 3 to 4 (#648)
dependabot[bot] Sep 15, 2023
bff0786
build(deps): Bump github.com/go-co-op/gocron from 1.33.1 to 1.34.0 (#…
dependabot[bot] Sep 20, 2023
1eb66c0
build(deps): Bump github.com/go-co-op/gocron from 1.34.0 to 1.34.1 (#…
dependabot[bot] Sep 21, 2023
90548d6
build(deps): Bump github.com/go-co-op/gocron from 1.34.1 to 1.34.2 (#…
dependabot[bot] Sep 26, 2023
0d05a77
build(deps): Bump github.com/rs/zerolog from 1.30.0 to 1.31.0 (#656)
dependabot[bot] Sep 27, 2023
e75ec6e
build(deps): Bump amannn/action-semantic-pull-request from 5.2.0 to 5…
dependabot[bot] Sep 27, 2023
d6e3f4d
build(deps): Bump github.com/go-co-op/gocron from 1.34.2 to 1.35.0 (#…
dependabot[bot] Oct 3, 2023
505fe0d
build(deps): Bump github.com/prometheus/client_golang from 1.16.0 to …
dependabot[bot] Oct 3, 2023
7b4ec26
feat: update `x/gov` module parsing (#652)
MonikaCat Oct 3, 2023
1bfba30
Merge branch 'cosmos/v0.47.x' into chains/coreum-2
Oct 31, 2023
24954e0
Post-merge fixes
Nov 3, 2023
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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Bug report
about: Create a report to help us improve
title: ''
labels: 'kind/bug'
assignees: 'RiccardoM'
assignees: 'MonikaCat'

---
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
Expand Down
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ updates:
interval: daily
open-pull-requests-limit: 10
reviewers:
- riccardom
- MonikaCat
labels:
- automerge
- dependencies
59 changes: 59 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: docker-build

on:
push:
branches:
- cosmos/*/*
- chains/*/*

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Set BDJuno chain name 🔧
shell: bash
run: echo "CHAIN_NAME=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')" >> $GITHUB_ENV

- name: Set BDJuno version 🔧
shell: bash
run: echo "GITHUB_VERSION=$(git describe --tags)" >> $GITHUB_ENV

- name: Prepare tags 🏷️
id: prep
run: |
DOCKER_IMAGE=${{ secrets.DOCKERHUB_BDJUNO_REPO }}
CHAIN_NAME="${{env.CHAIN_NAME}}"
VERSION="${{env.GITHUB_VERSION}}"
TAGS="${DOCKER_IMAGE}:${CHAIN_NAME}-${VERSION}"
echo ::set-output name=version::${VERSION}
echo ::set-output name=tags::${TAGS}
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')

- name: Determine Dockerfile to use 🔍
run: |
if [[ -f Dockerfile.cosmwasm ]]; then
export DOCKERFILE=Dockerfile.cosmwasm
else
export DOCKERFILE=Dockerfile.default
fi
echo "DOCKERFILE=${DOCKERFILE}" >> $GITHUB_ENV

- name: Set up Docker Buildx 🧰
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub 👤
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push 📤
uses: docker/build-push-action@v5
with:
context: .
file: "./${{ env.DOCKERFILE }}"
push: true
tags: ${{ steps.prep.outputs.tags }}
17 changes: 10 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
- main
- chains/coreum
push:
branches:
- main
- chains/coreum

jobs:
Expand All @@ -18,11 +16,16 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/setup-go@v3
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Setup Go 🧰
uses: actions/setup-go@v4
with:
go-version: 1.18
- uses: actions/checkout@v3
- uses: technote-space/[email protected]
go-version: "1.20"

- name: Compute diff 📜
uses: technote-space/[email protected]
with:
SUFFIX_FILTER: |
.go
Expand All @@ -33,4 +36,4 @@ jobs:
version: v1.50.0
args: --timeout 10m
github-token: ${{ secrets.GITHUB_TOKEN }}
if: "env.GIT_DIFF != ''"
if: "env.GIT_DIFF != ''"
35 changes: 27 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ name: Tests
on:
pull_request:
branches:
- main
- chains/coreum
push:
branches:
- main
- chains/coreum

jobs:
Expand All @@ -18,17 +16,38 @@ jobs:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
if: "!startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/cosmos')"

Unit-tests:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Test & Create coverage report
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Setup Go 🧰
uses: actions/setup-go@v4
with:
go-version: "1.20"

- name: Compute diff 📜
uses: technote-space/[email protected]
id: git_diff
with:
SUFFIX_FILTER: |
.go
.mod
.sum

- name: Build 🔨
if: "env.GIT_DIFF != ''"
run: make build

- name: Test & Coverage report creation 🧪
run: make test-unit stop-docker-test
- name: Upload cove coverage
uses: codecov/codecov-action@v3

- name: Upload coverage 📤
if: "env.GIT_DIFF != ''"
uses: codecov/codecov-action@v4-beta
with:
file: ./coverage.txt
5 changes: 4 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ linters:
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- gocritic
- gofmt
Expand Down Expand Up @@ -51,6 +50,10 @@ issues:
- text: "ST1016:"
linters:
- stylecheck
# Disable until Msg-based gov proposals are fully implemented
- text: "SA1019:"
linters:
- staticcheck
max-issues-per-linter: 10000
max-same-issues: 10000

Expand Down
10 changes: 6 additions & 4 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
queue_rules:
- name: default
conditions:
- base~=cosmos/
- or:
- base~=cosmos/
- base~=chains/

pull_request_rules:
- name: automerge to master with label automerge and branch protection passing
- name: automerge with label automerge and branch protection passing
conditions:
- "#approved-reviews-by>1"
- "#approved-reviews-by>0"
- label=automerge
actions:
queue:
Expand All @@ -15,4 +17,4 @@ pull_request_rules:
commit_message_template: >
{{ title }} (#{{ number }})

{{ body }}
{{ body }}
55 changes: 54 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,54 @@
## Unreleased
- ([\#610](https://github.com/forbole/bdjuno/pull/610)) Add support for gov `v1` proposals
- ([\#652](https://github.com/forbole/bdjuno/pull/652)) Update gov module parsing

## Version v4.0.0
## Notes
This version is thought to be used with Cosmos SDK `v0.47.x`.

### Changes

#### Parse Command
- ([\#492](https://github.com/forbole/bdjuno/pull/492)) Add parse command for periodic tasks: `x/bank` total supply, `x/distribution` community pool, `x/mint` inflation, `pricefeed` token price and price history, `x/staking` staking pool

#### Upgrade Module
- ([\#467](https://github.com/forbole/bdjuno/pull/467)) Store software upgrade plan and refresh data at upgrade height

#### Staking Module
- ([\#443](https://github.com/forbole/bdjuno/pull/443)) Remove tombstone status from staking module(already stored in slashing module)
- ([\#455](https://github.com/forbole/bdjuno/pull/455)) Added `unbonding_tokens` and `staked_not_bonded_tokens` values to staking pool table
- ([\#536](https://github.com/forbole/bdjuno/pull/536)) Fix `PoolSnapshot` tokens type from `sdk.Int` to `sdkmath.Int`

#### Gov Module
- ([\#461](https://github.com/forbole/bdjuno/pull/461)) Parse `x/gov` genesis with `genesisDoc.InitialHeight` instead of the hard-coded height 1
- ([\#465](https://github.com/forbole/bdjuno/pull/465)) Get open proposal ids in deposit or voting period by block time instead of current time
- ([\#489](https://github.com/forbole/bdjuno/pull/489)) Remove block height foreign key from proposal_vote and proposal_deposit tables and add column timestamp
- ([\#499](https://github.com/forbole/bdjuno/pull/499)) Check if proposal has passed voting end time before marking it invalid
- ([\#523](https://github.com/forbole/bdjuno/pull/523)) Update proposal snapshots handling on block

#### Daily refetch
- ([\#454](https://github.com/forbole/bdjuno/pull/454)) Added `daily refetch` module to refetch missing blocks every day

#### Hasura
- ([\#473](https://github.com/forbole/bdjuno/pull/473)) Improved Hasura permissions
- ([\#491](https://github.com/forbole/bdjuno/pull/491)) Add host address to Hasura actions

### Dependencies
- ([\#542](https://github.com/forbole/bdjuno/pull/542)) Updated Juno to `v5.1.0`


## Version v3.2.0
### Changes
#### Mint module
- ([\#432](https://github.com/forbole/bdjuno/pull/432)) Update inflation rate when mint param change proposal is passed

#### Gov module
- ([\#401](https://github.com/forbole/bdjuno/pull/401)) Update the proposal status to the latest in `bdjuno parse gov proposal [id]` command
- ([\#430](https://github.com/forbole/bdjuno/pull/430)) Update the proposals that have invalid status but can still be in voting or deposit periods

### Dependencies
- ([\#440](https://github.com/forbole/bdjuno/pull/440)) Updated Juno to `v3.3.0`

## Version v3.1.0
### Dependencies
- Updated Juno to `v3.2.0`
Expand All @@ -6,6 +57,8 @@
#### Hasura
- ([\#395](https://github.com/forbole/bdjuno/pull/395)) Remove time label from Hasura Prometheus monitoring

#### Bank module
- ([\#410](https://github.com/forbole/bdjuno/pull/410)) Change total supply query from only 1 page to all pages

## Version v3.0.1
### Dependencies
Expand Down Expand Up @@ -83,4 +136,4 @@ This version introduces breaking changes to certain address-specific data that i
- ([\#276](https://github.com/forbole/bdjuno/pull/276)) Added `fee_grant_allowance` table (v0.44.x)

#### Modules
- ([\#353](https://github.com/forbole/bdjuno/pull/353)) Removed the support for the `history` module
- ([\#353](https://github.com/forbole/bdjuno/pull/353)) Removed the support for the `history` module
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM --platform=$BUILDPLATFORM golang:1.18-alpine AS builder
FROM --platform=$BUILDPLATFORM golang:1.20-alpine AS builder
RUN apk update && apk add --no-cache make git gcc libc-dev
WORKDIR /go/src/github.com/forbole/bdjuno
COPY . ./
RUN go mod download
ARG arch=x86_64
# we use the same arch in the CI as a workaround since we don't use the wasm in the indexer
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.1.1/libwasmvm_muslc.${arch}.a /lib/libwasmvm_muslc.${arch}.a
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.3.0/libwasmvm_muslc.${arch}.a /lib/libwasmvm_muslc.${arch}.a
# Copy the library you want to the final location that will be found by the linker flag `-lwasmvm_muslc`
RUN cp /lib/libwasmvm_muslc.${arch}.a /lib/libwasmvm_muslc.a
RUN make build
Expand Down
22 changes: 22 additions & 0 deletions Dockerfile.cosmwasm
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


FROM golang:1.20-alpine AS builder
RUN apk update && apk add --no-cache make git
WORKDIR /go/src/github.com/forbole/bdjuno
COPY . ./

RUN apk update && apk add --no-cache ca-certificates build-base git
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.1.1/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.1.1/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a
RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 9ecb037336bd56076573dc18c26631a9d2099a7f2b40dc04b6cae31ffb4c8f9a
RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 6e4de7ba9bad4ae9679c7f9ecf7e283dd0160e71567c6a7be6ae47c81ebe7f32
## Copy the library you want to the final location that will be found by the linker flag `-lwasmvm_muslc`
RUN cp /lib/libwasmvm_muslc.$(uname -m).a /lib/libwasmvm_muslc.a
RUN go mod download
RUN LINK_STATICALLY=true BUILD_TAGS="muslc" make build

FROM alpine:latest
RUN apk update && apk add --no-cache ca-certificates build-base
WORKDIR /bdjuno
COPY --from=builder /go/src/github.com/forbole/bdjuno/build/bdjuno /usr/bin/bdjuno
CMD [ "bdjuno" ]
2 changes: 1 addition & 1 deletion Dockerfile.hasura
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM --platform=$TARGETPLATFORM hasura/graphql-engine:v2.1.1.cli-migrations-v3
FROM --platform=$TARGETPLATFORM hasura/graphql-engine:v2.35.0.cli-migrations-v3
COPY hasura hasura
WORKDIR hasura
27 changes: 17 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ all: lint build test-unit
### Build flags ###
###############################################################################

LD_FLAGS = -X github.com/forbole/juno/v3/cmd.Version=$(VERSION) \
-X github.com/forbole/juno/v3/cmd.Commit=$(COMMIT) \
-linkmode=external -extldflags "-Wl,-z,muldefs -static" \

LD_FLAGS = -X github.com/forbole/juno/v5/cmd.Version=$(VERSION) \
-X github.com/forbole/juno/v5/cmd.Commit=$(COMMIT) \
-linkmode=external -extldflags "-Wl,-z,muldefs -static"
BUILD_FLAGS := -tags muslc -ldflags '$(LD_FLAGS)'

###############################################################################
##############################################################################
### Build ###
###############################################################################

Expand Down Expand Up @@ -61,17 +60,25 @@ test-unit: start-docker-test
@go test -mod=readonly -v -coverprofile coverage.txt ./...
.PHONY: test-unit

###############################################################################
### Linting ###
###############################################################################
golangci_lint_cmd=github.com/golangci/golangci-lint/cmd/golangci-lint

lint:
golangci-lint run --out-format=tab
@echo "--> Running linter"
@go run $(golangci_lint_cmd) run --timeout=10m

lint-fix:
golangci-lint run --fix --out-format=tab --issues-exit-code=0
@echo "--> Running linter"
@go run $(golangci_lint_cmd) run --fix --out-format=tab --issues-exit-code=0

.PHONY: lint lint-fix

format:
find . -name '*.go' -type f -not -path "*.git*" | xargs gofmt -w -s
find . -name '*.go' -type f -not -path "*.git*" | xargs misspell -w
find . -name '*.go' -type f -not -path "*.git*" | xargs goimports -w -local github.com/forbole/bdjuno
find . -name '*.go' -type f -not -path "*.git*" -not -name '*.pb.go' -not -name '*_mocks.go' | xargs gofmt -w -s
find . -name '*.go' -type f -not -path "*.git*" -not -name '*.pb.go' -not -name '*_mocks.go' | xargs misspell -w
find . -name '*.go' -type f -not -path "*.git*" -not -name '*.pb.go' -not -name '*_mocks.go' | xargs goimports -w -local github.com/forbole/bdjuno
.PHONY: format

clean:
Expand Down
Loading
Loading