Skip to content

Commit

Permalink
Merge tag 'v0.20.0' into fraccaman/multisignature-draft-rebase
Browse files Browse the repository at this point in the history
Namada 0.20.0 is a minor release addressing several improvements to the PoS system and the ledger stability.

* tag 'v0.20.0': (113 commits)
  Namada 0.20.0
  refator e2e masp tests
  fix tx_transfer
  ci: fix github colon parsing
  changelog: add #1693
  channgelog: add #1738
  [feat]: Moved cli commands common to testing, cli, and sdk out into apps
  ci: pre-download masp parameters
  changelog: add #1733
  pos/epoched: keep 2 past epochs of data by default
  changelog: add #1729
  test/ledger/finalize_block: fix slashing tests
  pos/slash: fix the validator state update to be in sync with set changes
  app/ledger/finalize_block: log block rewards before recording slashes
  test/e2e/slashing: extend the test to discover rewards issues
  pos: error out if validator is not in expected state for rewards
  changelog: add #1717
  test/shell/finalize_block: add some txs to DB commit test
  refactor: rename function
  refactor: rename method
  remove test_invalid_sender
  remove negative check
  ci: clean up
  fix formatting
  don't use flaky sleep
  refactor creation of namada nodes
  make Who clonable
  refactor: use immutable reference
  refactor: use immutable reference
  refactor: remove duplicated code
  test/e2e/slashing: wait for wasm on original validator
  add changelog
  fix changes in finalize_block
  remove vp_token
  changelog: add #1173
  client/rpc: use the new token balance method
  shared/ledger/queries: add token balance client-only method
  changelog: add #1692
  changelog: add #1670
  changelog: add #1667
  [fix]: Fixing errors introduced by merging in main
  [chore]: Incorporating in review comments
  Update core/src/types/uint.rs
  Update apps/src/lib/config/genesis.rs
  [fix]: Fixed the faucet to use uint instead of amount. This makes it portable across different assets
  converts faucet_withdrawal_limit to be correct
  changelog: add #1656
  pos: return sorted validator sets and code re-use for queries
  Expanding and fixing slashes query
  CLI query a validator's state
  query bonded-stake and order
  fix client_connections encoding
  handle errors for unjail-validator tx in the client
  expand and fix e2e test `double_signing_gets_slashed`
  add unjail tx at CLI
  changelog: add #1621
  ci/test/e2e: add new test
  apps: move epoch-sleep client cmd under utils
  changelog: add #1656
  pos: return sorted validator sets and code re-use for queries
  Expanding and fixing slashes query
  CLI query a validator's state
  update pr template
  test/e2e/proposal_submission: wait for proposal to be committed
  test/e2e/double_signing: path for validator copy that keeps logs in CI
  add comments
  fix according to feedback
  refactor: fix formatting
  add changelog
  refactor: simplify code
  refactor: introduce name for magic constant
  add test case
  feat: store total consensus stake; garbage collect validator sets
  query bonded-stake and order
  wait for wasm-precompile before expecting block hash
  changelog: add #1605
  apps: use fd-lock instead of file-lock for cross-platform support
  changelog: add #1695
  deps: update sysinfo to latest 0.29.4
  improve error handling for `set_initial_validators`
  changelog: add #1686
  app/ledger/finalize_block: refactor validator set update for re-use
  app/ledger/init_chain: get genesis validator set using the new fn
  pos: add a function to get genesis validator consensus set for TM
  fix a test
  fix for tx signing
  for clippy
  fix multitoken vp to check the minter
  for clippy
  modify EthBridge VP and EthBridgePool VP for multitoken
  revert unexpected changes
  change eth_bridge balance keys to multitoken keys
  add unit tests
  remove InternalAddress::Minted
  rename
  fix token decoding
  fix balance print
  add multitoken VP file
  change to multitokens
  change multitoken
  ...
  • Loading branch information
Fraccaman committed Jul 25, 2023
2 parents 40603dc + b6714b5 commit fe59f89
Show file tree
Hide file tree
Showing 173 changed files with 8,794 additions and 8,713 deletions.
2 changes: 2 additions & 0 deletions .changelog/v0.20.0/bug-fixes/1667-faucet-limit-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fix genesis `faucet_withdrawal_limit` parser to respect tokens' denomination.
([\#1667](https://github.com/anoma/namada/pull/1667))
3 changes: 3 additions & 0 deletions .changelog/v0.20.0/bug-fixes/1686-delete-prefix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- PoS: ensure that the size of genesis validator set
is limited by the `max_validator_slots` parameter.
([\#1686](https://github.com/anoma/namada/pull/1686))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fix inconsistency state before commit
([\#1709](https://github.com/anoma/namada/issues/1709))
3 changes: 3 additions & 0 deletions .changelog/v0.20.0/bug-fixes/1729-pos-fix-rewards-boundary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- PoS: Fixed an epoch boundary issue in which a validator who's being slashed
on a start of a new epoch is disregarded during processing of block votes.
([\#1729](https://github.com/anoma/namada/pull/1729))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- PoS: purge validator sets for old epochs from the storage; store total
validator stake ([\#1129](https://github.com/anoma/namada/issues/1129))
2 changes: 2 additions & 0 deletions .changelog/v0.20.0/improvements/1173-token-balance-query.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Added a reusable token balance query method.
([\#1173](https://github.com/anoma/namada/pull/1173))
2 changes: 2 additions & 0 deletions .changelog/v0.20.0/improvements/1605-win-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Replaced file-lock with fd-lock dependency to support Windows build.
([\#1605](https://github.com/anoma/namada/pull/1605))
2 changes: 2 additions & 0 deletions .changelog/v0.20.0/improvements/1621-utils-next-epoch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Added a command to wait for the next epoch: `client utils epoch-sleep`.
([\#1621](https://github.com/anoma/namada/pull/1621))
2 changes: 2 additions & 0 deletions .changelog/v0.20.0/improvements/1656-pos-cli-queries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Added a client query for `validator-state` and improved the slashes query to
show more info. ([\#1656](https://github.com/anoma/namada/pull/1656))
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Removed associated type on `masp::ShieldedUtils`. This type was an
attempt to reduce the number of generic parameters needed when interacting
with MASP but resulted in making code re-use extremely difficult.
([\#1670](https://github.com/anoma/namada/pull/1670))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Removed `impl From<u64> for EthBridgeVotingPower` and replaced it with a
`TryFrom`. ([\#1692](https://github.com/anoma/namada/pull/1692))
2 changes: 2 additions & 0 deletions .changelog/v0.20.0/improvements/1695-update-sysinfo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Updated sysinfo dependency.
([\#1695](https://github.com/anoma/namada/pull/1695))
2 changes: 2 additions & 0 deletions .changelog/v0.20.0/improvements/1717-storage-refactor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Refactored storage code to only use an immutable reference when reading and
writing to a batch. ([\#1717](https://github.com/anoma/namada/pull/1717))
2 changes: 2 additions & 0 deletions .changelog/v0.20.0/miscellaneous/1693-ibc-multitoken.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Replaced token sub-prefix with a multitoken address and native VP for IBC and
ETH bridge. ([\#1693](https://github.com/anoma/namada/pull/1693))
2 changes: 2 additions & 0 deletions .changelog/v0.20.0/miscellaneous/1733-pos-data-history.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- PoS: Keep the data for last two epochs by default.
([\#1733](https://github.com/anoma/namada/pull/1733))
2 changes: 2 additions & 0 deletions .changelog/v0.20.0/miscellaneous/1738-refactor-cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Refactored CLI into libraries for future re-use in integration tests and
to enable generic IO. ([\#1738](https://github.com/anoma/namada/pull/1738))
2 changes: 2 additions & 0 deletions .changelog/v0.20.0/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Namada 0.20.0 is a minor releasing addressing several improvements to the PoS system and the ledger
stability.
3 changes: 3 additions & 0 deletions .changelog/v0.20.0/testing/1714-refactor-e2e-tests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Added integration testing infrastructure for node, client and
the wallet and replaced MASP E2E tests with integration tests.
([\#1714](https://github.com/anoma/namada/pull/1714))
10 changes: 0 additions & 10 deletions .github/PULL_REQUEST_TEMPLATE/new_topic.md

This file was deleted.

7 changes: 7 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Describe your changes

## Indicate on which release or other PRs this topic is based on

## Checklist before merging to `draft`
- [ ] I have added a changelog
- [ ] Git history is in acceptable state
13 changes: 0 additions & 13 deletions .github/workflows/automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ jobs:
command: spawn-devnet.py
logs: 'false'
timeout: 25
- name: Load tester
comment: pls load test
command: load-test.py
logs: 'true'
logs_path: /tmp/namada-load-tester/logs/
timeout: 360

steps:
- name: Configure AWS Credentials
Expand Down Expand Up @@ -79,13 +73,6 @@ jobs:
GITHUB_DISPATCH_TOKEN: ${{ secrets.GT_DISPATCH }}
SLACK_DEVNET_SECRET: ${{ secrets.SLACK_DEVNET_SECRET }}
BINARIES_COMMIT_SHA: ${{ steps.comment-branch.outputs.head_sha }}
- name: Upload load tester logs
if: ${{ matrix.make.logs == 'true' && steps.check.outputs.triggered == 'true' }}
uses: actions/upload-artifact@v3
with:
name: logs-load-tester-${{ github.event.pull_request.head.sha || github.sha }}
path: ${{ matrix.make.logs_path }}
retention-days: 5
- name: Comment not found
if: steps.check.outputs.triggered != 'true'
run: echo "Comment $COMMENT not found"
Expand Down
Loading

0 comments on commit fe59f89

Please sign in to comment.