diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c41753b61..4defd97a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,58 +11,6 @@ permissions: jobs: - release-binary: - name: "Binary" - runs-on: ubuntu-latest - outputs: - VERSION: ${{ steps.set-version.outputs.VERSION }} - - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - uses: actions/setup-go@v3 - with: - go-version-file: ./go.mod - - # Node.js setup is needed to run Semantic Release - - uses: actions/setup-node@v3 - with: - node-version: 16 - cache: 'npm' - cache-dependency-path: '**/package-lock.json' - - - name: "Obtain Github App token" - id: app-token - uses: getsentry/action-github-app-token@v1.0.6 - with: - app_id: ${{ secrets.BOT_APP_ID }} - private_key: ${{ secrets.BOT_APP_PRIVATE_KEY }} - - - name: "Install Semantic Release dependencies" - run: npm ci - - - name: "Execute Semantic Release" - run: npx semantic-release - env: - GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3 - with: - distribution: goreleaser - version: latest - args: release --rm-dist - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Set version number - id: set-version - run: | - VERSION=$( git describe --tags ${{ github.sha }}) - echo ::set-output name=VERSION::"$VERSION" - release-bdjuno: name: "BDJuno Docker Image" runs-on: ubuntu-latest @@ -75,10 +23,6 @@ jobs: with: fetch-depth: 0 - - uses: actions/setup-go@v3 - with: - go-version-file: ./go.mod - - name: Set network name id: set-network run: | @@ -109,9 +53,8 @@ jobs: latest=auto prefix=${{ steps.set-network.outputs.NETWORK_NAME }}-,onlatest=true tags: | - type=semver,pattern={{version}},value=${{ needs.release-binary.outputs.VERSION }} + type=sha,format=long labels: | - org.opencontainers.image.title="BDJuno for cheqd network" org.opencontainers.image.description="BDJuno for cheqd network" org.opencontainers.image.source="https://github.com/cheqd/bdjuno" org.opencontainers.image.vendor="Cheqd Foundation Limited" @@ -134,7 +77,6 @@ jobs: release-hasuracli: name: "Hasura CLI Docker Image" runs-on: ubuntu-latest - needs: release-binary steps: - uses: actions/checkout@v3 @@ -171,9 +113,8 @@ jobs: latest=auto prefix=${{ steps.set-network.outputs.NETWORK_NAME }}-,onlatest=true tags: | - type=semver,pattern={{version}},value=${{ needs.release-binary.outputs.VERSION }} + type=sha,format=long labels: | - org.opencontainers.image.title="Hasura CLI for BDJuno" org.opencontainers.image.description="Standalone Hasura CLI for cheqd network BDJuno configuration" org.opencontainers.image.source="https://github.com/cheqd/bdjuno" org.opencontainers.image.vendor="Cheqd Foundation Limited" diff --git a/.goreleaser.yml b/.goreleaser.yml deleted file mode 100644 index 3326b37cc..000000000 --- a/.goreleaser.yml +++ /dev/null @@ -1,74 +0,0 @@ -project_name: cheqd-bdjuno - -env: - - GO111MODULE=on - -before: - hooks: - - make clean - - go mod tidy -compat=1.17 - - go mod download - -builds: - - id: bdjuno-linux - main: ./cmd/bdjuno - binary: bdjuno - env: - - CGO_ENABLED=1 - targets: - - linux_amd64 - flags: - - -mod=readonly - - -trimpath - ldflags: - - -X github.com/forbole/juno/v3/cmd.Version={{ .Version }} - - -X github.com/forbole/juno/v3/cmd.Commit={{ .Commit }} - -archives: - - id: release-archives - replacements: - darwin: Darwin - linux: Linux - amd64: x86_64 - format: tar.gz - wrap_in_directory: true - name_template: "{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}" - files: - - LICENSE - - README.md - -checksum: - algorithm: sha256 - -changelog: - use: github-native - groups: - - title: Features - regexp: "^.*feat[(\\w)]*:+.*$" - order: 0 - - title: 'Fixes' - regexp: "^.*fix[(\\w)]*:+.*$" - order: 1 - - title: 'Performance Improvements' - regexp: "^.*perf[(\\w)]*:+.*$" - order: 2 - - title: 'Build Improvements' - regexp: "^.*build[(\\w)]*:+.*$" - order: 3 - - title: 'Security' - regexp: "^.*build[(\\w)]*:+.*$" - order: 4 - - title: 'Other changes' - order: 999 - - -release: - github: - owner: cheqd - name: bdjuno - - draft: false - prerelease: auto - mode: append - header: | - # Release Notes for {{.ProjectName}} v{{.Version}} diff --git a/.releaserc.json b/.releaserc.json index 2da00d0cd..216fe2df0 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -1,6 +1,9 @@ { "branches": [ - "chains/cheqd/mainnet", + { + "name": "chains/cheqd/mainnet", + "channel": "mainnet" + }, { "name": "chains/cheqd/testnet", "channel": "testnet" diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..6dc9bbff7 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,113 @@ +## Unreleased +### Changes +#### 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 + +#### Gov Module +- ([\#461](https://github.com/forbole/bdjuno/pull/461)) Parse `x/gov` genesis with `genesisDoc.InitialHeight` instead of the hard-coded height 1 + +#### Daily refetch +- ([\#454](https://github.com/forbole/bdjuno/pull/454)) Added `daily refetch` module to refetch missing blocks every day + + +## 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` + +### Changes +#### 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 +- 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/bdjuno/pull/356)) Implemented `migrate` command to perform easy migration to higher BDJuno versions +- ([\#356](https://github.com/forbole/bdjuno/pull/356)) Updated `parse-genesis` command to parse genesis file without accessing the node + +#### Database +- ([\#356](https://github.com/forbole/bdjuno/pull/356)) Added PostgreSQL table partition to `transaction` and `message` table +- ([\#356](https://github.com/forbole/bdjuno/pull/356)) Created new `messages_by_address` function + +### Changes +#### Hasura +- ([\#377](https://github.com/forbole/bdjuno/pull/377)) Updated Hasura metadata +- ([\#381](https://github.com/forbole/bdjuno/pull/381)) Hasura actions are now a module + +### Dependencies +- ([\#356](https://github.com/forbole/bdjuno/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/bdjuno/pull/257)) Added `parse-genesis` command to parse the genesis file +- ([\#228](https://github.com/forbole/bdjuno/pull/228)) ([\#248](https://github.com/forbole/bdjuno/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/bdjuno/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/bdjuno/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/bdjuno/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/bdjuno/pull/276)) Added the support for the `x/feegrant` module (v0.44.x) + +### Changes + +#### CLI +- ([\#351](https://github.com/forbole/bdjuno/pull/351)) Fixed version display for `bdjuno version` cmd + +#### Database +- ([\#300](https://github.com/forbole/bdjuno/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/bdjuno/pull/275)) Added `tombstoned` column inside `validator_status` table +- ([\#232](https://github.com/forbole/bdjuno/pull/232)) Added `vesting_account` and `vesting_period` table +- ([\#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 \ No newline at end of file