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

feat: cheqd-node v2 upgrade [DEV-3797] #139

Merged
merged 155 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
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
26249a8
Merge branch 'cosmos/v0.44.x' of https://github.com/forbole/bdjuno in…
MonikaCat Feb 20, 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
d8b0893
Merge branch 'cosmos/v0.46.x’ of https://github.com/forbole/bdjuno in…
MonikaCat Mar 10, 2023
00a6089
updated imports
MonikaCat 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
3aa2914
feat: [cheqd] add `x/did` and `x/resource` module handlers (#545)
MonikaCat Mar 21, 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
fc756ef
updated cheqd inflation
MonikaCat Mar 27, 2023
69ddb3c
Merge branch 'cosmos/v0.44.x' of https://github.com/forbole/bdjuno in…
MonikaCat Mar 27, 2023
b058cb2
feat: [cheqd] update validators VP (#550)
MonikaCat Mar 29, 2023
333eea8
feat: [cheqd] bump cheqd-node to 1.3.0 for mainnet chain (#105) (#547)
Apr 4, 2023
e60ca2f
build(deps): bump github.com/spf13/cobra from 1.6.1 to 1.7.0 (#551)
dependabot[bot] Apr 6, 2023
1a2df88
feat: [cheqd] add `height` column to top accounts table (#555)
MonikaCat Apr 13, 2023
83528b5
feat: [cheqd] update cheqd-node to `1.4.0` (#552)
Apr 14, 2023
3fb668c
feat: [cheqd] store latest height when updating top accounts records …
MonikaCat Apr 15, 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
54e2a11
feat: [cheqd] store account type with top accounts module (#570)
MonikaCat Apr 25, 2023
4b6ea5d
updated sql stmt
MonikaCat Apr 26, 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
ccb2b6d
fix: [cheqd] remove redelegation from top accounts calculations (#580)
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
bd0a840
upgraded cheqd node to v1.4.4 and juno to latest version
MonikaCat Dec 29, 2023
359d633
build(deps): bump github.com/go-co-op/gocron from 1.28.0 to 1.28.1 (#…
dependabot[bot] May 31, 2023
2e8a446
build(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4 (#588)
dependabot[bot] May 31, 2023
9d0fd89
build(deps): bump github.com/go-co-op/gocron from 1.28.1 to 1.28.2 (#…
dependabot[bot] Jun 2, 2023
aec7279
build(deps): bump golangci/golangci-lint-action from 3.4.0 to 3.5.0 (…
dependabot[bot] Jun 5, 2023
0358f50
build(deps): bump cosmossdk.io/math from 1.0.0 to 1.0.1 (#596)
dependabot[bot] Jun 9, 2023
6196d73
build(deps): bump golangci/golangci-lint-action from 3.5.0 to 3.6.0 (…
dependabot[bot] Jun 15, 2023
1e110ec
build(deps): bump github.com/go-co-op/gocron from 1.28.2 to 1.28.3 (#…
dependabot[bot] Jun 16, 2023
625f9a3
build(deps): bump github.com/prometheus/client_golang from 1.15.1 to …
dependabot[bot] Jun 16, 2023
a584a5b
build(deps): bump google.golang.org/grpc from 1.55.0 to 1.56.0 (#604)
dependabot[bot] Jun 16, 2023
51f5b3f
build: update how golangci-lint version is tracked
RiccardoM Jun 25, 2023
0c82cee
build(ci): update lint workflow to use make lint
RiccardoM Jun 25, 2023
df6c2ca
build(ci): run tests on all branches
RiccardoM Jun 25, 2023
704344d
build(ci): improve Docker build steps names
RiccardoM Jun 25, 2023
8d84d99
build(deps): bump technote-space/get-diff-action from 6.1.0 to 6.1.2 …
dependabot[bot] Jun 26, 2023
244c091
build(ci): increase linting timeout to 10 minutes
RiccardoM Jun 26, 2023
7903731
build(ci): replace PATTERNS with SUFFIX_FILTER when computing git diff
RiccardoM Jun 26, 2023
601f6cf
build(deps): bump google.golang.org/grpc from 1.56.0 to 1.56.2 (#616)
dependabot[bot] Jul 12, 2023
8d76262
build(deps): bump github.com/go-co-op/gocron from 1.28.3 to 1.30.1 (#…
dependabot[bot] Jul 12, 2023
b6ee059
build(deps): bump github.com/proullon/ramsql from 0.0.0-2018121320234…
dependabot[bot] Jul 12, 2023
f3f6f2a
build(deps): bump google.golang.org/grpc from 1.56.2 to 1.57.0 (#620)
dependabot[bot] Aug 2, 2023
0f2161d
build(deps): bump github.com/rs/zerolog from 1.29.1 to 1.30.0 (#621)
dependabot[bot] Aug 2, 2023
3f8f780
build(deps): bump github.com/go-co-op/gocron from 1.30.1 to 1.31.0 (#…
dependabot[bot] Aug 2, 2023
47d57d7
build(deps): bump github.com/go-co-op/gocron from 1.31.0 to 1.31.2 (#…
dependabot[bot] Aug 18, 2023
6e46e0e
build(deps): bump github.com/golangci/golangci-lint from 1.52.2 to 1.…
dependabot[bot] Aug 18, 2023
a3eff2a
build(deps): bump github.com/go-co-op/gocron from 1.31.2 to 1.32.1 (#…
dependabot[bot] Aug 22, 2023
0d04874
build(deps): bump github.com/proullon/ramsql from 0.0.1 to 0.1.1 (#636)
dependabot[bot] Aug 22, 2023
99e6ad3
build(deps): bump cosmossdk.io/math from 1.0.1 to 1.1.2 (#635)
dependabot[bot] Aug 22, 2023
7acb6f0
build(deps): bump github.com/golangci/golangci-lint from 1.54.1 to 1.…
dependabot[bot] Aug 23, 2023
7841bc3
build(deps): bump github.com/proullon/ramsql from 0.1.1 to 0.1.2 (#638)
dependabot[bot] Aug 29, 2023
bb0d13c
build(deps): bump github.com/go-co-op/gocron from 1.32.1 to 1.33.0 (#…
dependabot[bot] Aug 29, 2023
5d7e6bd
build(deps): bump google.golang.org/grpc from 1.57.0 to 1.58.0 (#642)
dependabot[bot] Sep 7, 2023
9496343
build(deps): bump github.com/go-co-op/gocron from 1.33.0 to 1.33.1 (#…
dependabot[bot] Sep 7, 2023
2ed5d15
build(deps): bump actions/checkout from 3 to 4 (#641)
dependabot[bot] Sep 7, 2023
068cab1
feat: add MsgExec support for modules
RiccardoM Sep 11, 2023
b5677de
build(deps): Bump docker/setup-buildx-action from 2 to 3 (#645)
dependabot[bot] Sep 15, 2023
92dab41
build(deps): Bump docker/login-action from 2 to 3 (#646)
dependabot[bot] Sep 15, 2023
2499c0c
build(deps): Bump docker/build-push-action from 4 to 5 (#647)
dependabot[bot] Sep 15, 2023
a392ca3
build(deps): Bump codecov/codecov-action from 3 to 4 (#648)
dependabot[bot] Sep 15, 2023
d084ffc
build(deps): Bump github.com/go-co-op/gocron from 1.33.1 to 1.34.0 (#…
dependabot[bot] Sep 20, 2023
fab7d93
build(deps): Bump github.com/go-co-op/gocron from 1.34.0 to 1.34.1 (#…
dependabot[bot] Sep 21, 2023
e555a10
build(deps): Bump github.com/go-co-op/gocron from 1.34.1 to 1.34.2 (#…
dependabot[bot] Sep 26, 2023
b153009
build(deps): Bump github.com/rs/zerolog from 1.30.0 to 1.31.0 (#656)
dependabot[bot] Sep 27, 2023
7a66caf
build(deps): Bump amannn/action-semantic-pull-request from 5.2.0 to 5…
dependabot[bot] Sep 27, 2023
1e7df3e
build(deps): Bump github.com/go-co-op/gocron from 1.34.2 to 1.35.0 (#…
dependabot[bot] Oct 3, 2023
e3592c0
build(deps): Bump github.com/prometheus/client_golang from 1.16.0 to …
dependabot[bot] Oct 3, 2023
1600cf4
build(deps): Bump golang.org/x/net from 0.14.0 to 0.17.0 (#665)
dependabot[bot] Nov 1, 2023
b616d3f
build(deps): Bump google.golang.org/grpc from 1.58.0 to 1.59.0 (#667)
dependabot[bot] Nov 1, 2023
ed2597d
build(deps): Bump github.com/go-co-op/gocron from 1.35.0 to 1.35.3 (#…
dependabot[bot] Nov 1, 2023
059bd2e
build(deps): Bump github.com/golangci/golangci-lint from 1.54.2 to 1.…
dependabot[bot] Nov 1, 2023
7b2d545
build(deps): Bump github.com/proullon/ramsql from 0.1.2 to 0.1.3 (#660)
dependabot[bot] Nov 1, 2023
3057432
build(deps): Bump github.com/spf13/cobra from 1.7.0 to 1.8.0 (#674)
dependabot[bot] Nov 23, 2023
017a4db
build(deps): Bump github.com/golangci/golangci-lint from 1.55.1 to 1.…
dependabot[bot] Nov 23, 2023
fa9a6b8
build(deps): Bump cosmossdk.io/math from 1.1.2 to 1.2.0 (#677)
dependabot[bot] Nov 23, 2023
e8fc9c7
build(deps): Bump github.com/go-co-op/gocron from 1.35.3 to 1.36.0 (#…
dependabot[bot] Nov 23, 2023
1d5de26
build(deps): Bump amannn/action-semantic-pull-request from 5.3.0 to 5…
dependabot[bot] Nov 23, 2023
0e02419
build(deps): Bump github.com/go-co-op/gocron from 1.36.0 to 1.37.0 (#…
dependabot[bot] Dec 28, 2023
5bb257f
build(deps): Bump github.com/prometheus/client_golang from 1.17.0 to …
dependabot[bot] Dec 28, 2023
fea4e94
build(deps): Bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#688)
dependabot[bot] Dec 28, 2023
4d9fdb1
build(deps): Bump google.golang.org/grpc from 1.59.0 to 1.60.1 (#689)
dependabot[bot] Dec 28, 2023
4f30887
build(deps): Bump github.com/dvsekhvalnov/jose2go from 1.5.0 to 1.6.0…
dependabot[bot] Dec 29, 2023
7cafcca
chore: fix typos (#687)
GoodDaisy Feb 1, 2024
1d49e99
build(deps): Bump google.golang.org/grpc from 1.60.1 to 1.61.0 (#697)
dependabot[bot] Feb 1, 2024
220d132
feat: add `message_type` module and store msg types inside `message_t…
MonikaCat Feb 2, 2024
44d0d99
build(deps): Bump github.com/rs/zerolog from 1.31.0 to 1.32.0 (#705)
dependabot[bot] Feb 5, 2024
16f9d49
build(deps): Bump actions/setup-go from 4 to 5 (#683)
dependabot[bot] Feb 5, 2024
883e020
build(deps): Bump codecov/codecov-action from 4.pre.beta to 4.0.1 (#703)
dependabot[bot] Feb 5, 2024
d9093b2
fix: add x/gov module proposal status change from deposit to voting (…
dzmitryhil Feb 5, 2024
2b45542
Merge branch 'cosmos/v0.46.x' of https://github.com/forbole/bdjuno in…
MonikaCat Feb 5, 2024
93511a1
chore: update docker-build.yml
MonikaCat Feb 6, 2024
6f9af04
updated top_accounts query height
MonikaCat Mar 14, 2024
890cbb1
fix: re-add support for gov v1beta1 msgs
dadamu Mar 20, 2024
39e7987
fix: check submit event with voting start period attritube to gov han…
dadamu Mar 21, 2024
42dec2e
build(deps): upgrade to cheqd v2 and cosmos-sdk v0.47.x
dadamu Apr 9, 2024
0a688b2
ci: fix bdjuno repo secret name
dadamu Apr 9, 2024
c2ed3b5
Merge branch 'chains/cheqd/mainnet' of github.com:forbole/callisto in…
filipdjokic Apr 9, 2024
425c197
Fix error and sync with upstream
filipdjokic Apr 9, 2024
7a2dc81
Remove unused workflows
filipdjokic Apr 9, 2024
0d8b024
Update go-lint action
filipdjokic Apr 9, 2024
e3005df
Ignore hadolint errors on cosmwasm dockerfile
filipdjokic Apr 9, 2024
ee6ef61
Update linter rules
filipdjokic Apr 9, 2024
a9b44da
Revert
filipdjokic Apr 9, 2024
a820594
Change cheqd-node version back to 1.4.4
filipdjokic Apr 9, 2024
3400e31
Add global hadolint ignore
filipdjokic Apr 9, 2024
e9af8d6
Change docker target build stage
filipdjokic Apr 9, 2024
2fabb1b
Update Dockerfile version
filipdjokic Apr 9, 2024
31d9c7a
Bump cheqd-node to v2.0.0-develop.10
filipdjokic Apr 9, 2024
0b6b7a2
Update entrypotint.sh
filipdjokic Apr 9, 2024
47dba72
Update hasura metadata path
filipdjokic Apr 9, 2024
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
1 change: 0 additions & 1 deletion .github/linters/.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
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ jobs:
file: Dockerfile
platforms: linux/amd64
load: true
target: bdjuno
target: callisto
tags: ${{ steps.meta.outputs.tags }}
outputs: type=docker,dest=/tmp/bdjuno-build.tar
outputs: type=docker,dest=/tmp/callisto-build.tar
cache-from: type=gha
cache-to: type=gha,mode=min

- name: Upload Docker test image
uses: actions/upload-artifact@v3
with:
name: bdjuno-build.tar
path: /tmp/bdjuno-build.tar
name: callisto-build.tar
path: /tmp/callisto-build.tar

build-hasuracli:
name: "Hasura CLI Docker Image"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
cache: true
cache: false # temporarily off, as golangci-lint doesn't align 100% with cached setup-go@v4, see: https://github.com/golangci/golangci-lint-action/issues/807

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: latest
args: --config .github/linters/.golangci.yaml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ jobs:
type=raw,value=${{ steps.set-network.outputs.NETWORK_NAME }}-latest
type=sha,format=long
labels: |
org.opencontainers.image.description="BDJuno for cheqd network"
org.opencontainers.image.description="Callisto for cheqd network"
org.opencontainers.image.source="https://github.com/cheqd/bdjuno"
org.opencontainers.image.vendor="Cheqd Foundation Limited"
org.opencontainers.image.created={{date 'dddd, MMMM Do YYYY, h:mm:ss a'}}
org.opencontainers.image.documentation="https://docs.cheqd.io/node"

- name: Build BDJuno image
- name: Build Callisto image
uses: docker/build-push-action@v4
with:
context: .
Expand Down
10 changes: 8 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
### APP-SPECIFIC EXCLUSIONS ###
.bdjuno/**
.idea/
build/
vendor/

# Configuration
*.toml
*.json
config.yaml

# Coverage
coverage.*
Expand Down
20 changes: 20 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
queue_rules:
- name: default
conditions:
- or:
- base~=cosmos/
- base~=chains/

pull_request_rules:
- name: automerge with label automerge and branch protection passing
conditions:
- "#approved-reviews-by>0"
- label=automerge
actions:
queue:
name: default
method: squash
commit_message_template: >
{{ title }} (#{{ number }})

{{ body }}
162 changes: 162 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
## Unreleased

### Changes

#### [cheqd]
- ([\#545](https://github.com/forbole/callisto/pull/545)) Added `x/did` and `x/resource` module handlers to store data in db
- ([\#550](https://github.com/forbole/callisto/pull/550)) Updated validators VP handlers, `voting_power` column type to TEXT, updated VotingPower type to `sdkmath.Int` for ValidatorVotingPower and ProposalValidatorStatusSnapshot struct
- ([\#580](https://github.com/forbole/callisto/pull/580)) Removed `redelegation` from top accounts calculations

#### [cheqd] Top Accounts Module
- ([\#510](https://github.com/forbole/callisto/pull/510)) Implemented `top_accounts` module to store chain native token's balance for ranking
- ([\#511](https://github.com/forbole/callisto/pull/511)) Implemented parse cmd for `top_accounts` module
- ([\#520](https://github.com/forbole/callisto/pull/520)) Upgraded `cheqd-node` to `v1.2.2` and proposals parsing to correctly parse `v0.46.x` gov proposals
- ([\#547](https://github.com/forbole/callisto/pull/547)) Upgraded `cheqd-node` to `v1.3.0` and added MsgDeactivateDidDoc handling
- ([\#552](https://github.com/forbole/callisto/pull/552)) Upgraded `cheqd-node` to `v1.4.0`
- ([\#555](https://github.com/forbole/callisto/pull/555)) Added `height` column to top accounts table
- ([\#560](https://github.com/forbole/callisto/pull/560)) Stored latest block height instead of height `0` when updating top accounts and added RefreshAvailableBalance to periodic ops
- ([\#570](https://github.com/forbole/callisto/pull/570)) Added `type` column to top accounts table, stored account type with top accounts module and added RefreshTopAccountsList to periodic ops

#### CI
- ([\#508](https://github.com/forbole/callisto/pull/508)) Upgrade workflow golangci version to v1.50.1
- ([\#610](https://github.com/forbole/callisto/pull/610)) Add support for gov `v1` proposals
- ([\#652](https://github.com/forbole/callisto/pull/652)) Update gov module parsing
- ([\#702](https://github.com/forbole/callisto/pull/702)) Add `message_type` module and store msg types inside `message_type` table, add `messages_by_type` function to allow to query messages by their types
- ([\#704](https://github.com/forbole/callisto/pull/704)) Update `BDJuno` name to `Callisto`

## 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/callisto/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/callisto/pull/467)) Store software upgrade plan and refresh data at upgrade height

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

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

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

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


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

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

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

## Version v3.1.0
### Dependencies
- Updated Juno to `v3.2.0`

### Changes
#### Hasura
- ([\#395](https://github.com/forbole/callisto/pull/395)) Remove time label from Hasura Prometheus monitoring

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

## Version v3.0.1
### Dependencies
- Updated Juno to `v3.1.1`

## Version v3.0.0
### Notes
This version introduces breaking changes to `transaction` and `message` PostgreSQL tables. It implements PostgreSQL table partitioning to fix slow data retrieval from database that stores large amount of transactions and messages. Read more details about [migrating to v3.0.0](https://docs.bigdipper.live/cosmos-based/parser/migrations/v2.0.0)

### New features
#### CLI
- ([\#356](https://github.com/forbole/callisto/pull/356)) Implemented `migrate` command to perform easy migration to higher BDJuno versions
- ([\#356](https://github.com/forbole/callisto/pull/356)) Updated `parse-genesis` command to parse genesis file without accessing the node

#### Database
- ([\#356](https://github.com/forbole/callisto/pull/356)) Added PostgreSQL table partition to `transaction` and `message` table
- ([\#356](https://github.com/forbole/callisto/pull/356)) Created new `messages_by_address` function

### Changes
#### Hasura
- ([\#377](https://github.com/forbole/callisto/pull/377)) Updated Hasura metadata
- ([\#381](https://github.com/forbole/callisto/pull/381)) Hasura actions are now a module

### Dependencies
- ([\#356](https://github.com/forbole/callisto/pull/356)) Updated Juno to `v3.0.0`

## Version v2.0.0
### Notes
This version introduces breaking changes to certain address-specific data that is no longer periodically parsed from the node and stored in the database. Instead, the data is now obtained directly from the node when needed using Hasura Actions. Read more details about [migrating to v2.0.0](https://docs.bigdipper.live/cosmos-based/parser/migrations/v2.0.0)

### New features
#### CLI
- ([\#257](https://github.com/forbole/callisto/pull/257)) Added `parse-genesis` command to parse the genesis file
- ([\#228](https://github.com/forbole/callisto/pull/228)) ([\#248](https://github.com/forbole/callisto/pull/248)) Added `fix` command:
- `auth`: fix vesting accounts details
- `blocks`: fix missing blocks and transactions from given start height
- `gov`: fix proposal with given proposal ID
- `staking`: fix validators info at the latest height

#### Hasura Actions
- ([\#329](https://github.com/forbole/callisto/pull/329)) Implemented Hasura Actions service to replace periodic queries. If you are using GraphQL queries on your application, you should updated the old queries to use the below new actions instead.
Here's a list of data acquired through Hasura Actions:
- Of a certain address/delegator:
- Account balance (`action_account_balance`)
- Delegation rewards (`action_delegation_reward`)
- Delegator withdraw address (`action_delegator_withdraw_address`)
- Delegations (`action_delegation`)
- Total delegations amount (`action_delegation_total`)
- Unbonding delegations (`action_unbonding_delegation`)
- Total unbonding delegations amount (`action_unbonding_delegation_total`)
- Redelegations (`action_redelegation`)
- Of a certain validator:
- Commission amount (`action_validator_commission_amount`)
- Delegations to this validator (`action_validator_delegations`)
- Redelegations from this validator (`action_validator_redelegations_from`)
- Unbonding delegations (`action_validator_unbonding_delegations`)
- ([\#352](https://github.com/forbole/callisto/pull/352)) Added prometheus monitoring to hasura actions

#### Local node support
- Added the support for `node.type = "local"` for parsing a static local node without the usage gRPC queries: [config reference](https://docs.bigdipper.live/cosmos-based/parser/config/config#node).

#### Modules
- ([\#232](https://github.com/forbole/callisto/pull/232)) Updated the `x/auth` module support to handle and store `vesting accounts` and `vesting periods` inside the database.
- ([\#276](https://github.com/forbole/callisto/pull/276)) Added the support for the `x/feegrant` module (v0.44.x)

### Changes

#### CLI
- ([\#351](https://github.com/forbole/callisto/pull/351)) Fixed version display for `callisto version` cmd

#### Database
- ([\#300](https://github.com/forbole/callisto/pull/300)) Changed `bonded_tokens` and `not_bonded_tokens` type inside `staking_pool` table to `TEXT` to avoid value overflow
- ([\#275](https://github.com/forbole/callisto/pull/275)) Added `tombstoned` column inside `validator_status` table
- ([\#232](https://github.com/forbole/callisto/pull/232)) Added `vesting_account` and `vesting_period` table
- ([\#276](https://github.com/forbole/callisto/pull/276)) Added `fee_grant_allowance` table (v0.44.x)

#### Modules
- ([\#353](https://github.com/forbole/callisto/pull/353)) Removed the support for the `history` module
24 changes: 12 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
###############################################################
### STAGE 1: Build BDJuno pre-requisites ###
### STAGE 1: Build Callisto pre-requisites ###
###############################################################

FROM golang:1.18-alpine AS builder
FROM golang:1.20-alpine AS builder

RUN apk update && apk add --no-cache make git bash

WORKDIR /go/src/github.com/forbole/bdjuno
WORKDIR /go/src/github.com/forbole/callisto
COPY . ./

######################################################
Expand All @@ -30,10 +30,10 @@ RUN go mod download && make build


###############################################################
### STAGE 2: Copy chain-specific BDJuno config ###
### STAGE 2: Copy chain-specific Callisto config ###
###############################################################

FROM alpine:3.17 AS bdjuno
FROM alpine:3.19 AS callisto

##################################################
## Enabe line below if chain supports cosmwasm ##
Expand All @@ -42,12 +42,12 @@ FROM alpine:3.17 AS bdjuno
#RUN apk update && apk add --no-cache ca-certificates build-base
RUN apk update && apk add --no-cache bash ca-certificates curl

# Copy BDJuno binary
COPY --from=builder /go/src/github.com/forbole/bdjuno/build/bdjuno /usr/local/bin/bdjuno
# Copy Callisto binary
COPY --from=builder /go/src/github.com/forbole/callisto/build/callisto /usr/local/bin/callisto

# Set user directory and details
ARG HOME_DIR="/bdjuno"
ARG USER="bdjuno"
ARG HOME_DIR="/callisto"
ARG USER="callisto"
SHELL ["/bin/sh", "-euo", "pipefail", "-c"]

# Add non-root user to use in the container
Expand All @@ -59,7 +59,7 @@ WORKDIR $HOME_DIR
USER $USER

# Copy chain-specific config file from Git repo
COPY --chown=$USER:$USER deploy/ .bdjuno/
RUN mv .bdjuno/entrypoint.sh . && chmod +x entrypoint.sh
COPY --chown=$USER:$USER deploy/ .callisto/
RUN mv .callisto/entrypoint.sh . && chmod +x entrypoint.sh

ENTRYPOINT [ "/bdjuno/entrypoint.sh" ]
ENTRYPOINT [ "/callisto/entrypoint.sh" ]
21 changes: 21 additions & 0 deletions Dockerfile.cosmwasm
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# hadolint global ignore=DL3018,DL4006,SC2046,DL3059,DL3007
FROM golang:1.20-alpine AS builder
RUN apk update && apk add --no-cache make git
WORKDIR /go/src/github.com/forbole/callisto
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 /callisto
COPY --from=builder /go/src/github.com/forbole/callisto/build/callisto /usr/bin/callisto
CMD [ "callisto" ]
11 changes: 11 additions & 0 deletions Dockerfile.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM golang:1.20-alpine AS builder
RUN apk update && apk add --no-cache make git
WORKDIR /go/src/github.com/forbole/callisto
COPY . ./
RUN go mod download
RUN make build

FROM alpine:latest
WORKDIR /callisto
COPY --from=builder /go/src/github.com/forbole/callisto/build/callisto /usr/bin/callisto
CMD [ "callisto" ]
Loading
Loading