Skip to content

Commit

Permalink
Merge tag 'v0.9.0' into interop/ethbridge/merge-0.8.1
Browse files Browse the repository at this point in the history
Namada 0.9.0

* tag 'v0.9.0':
  Namada 0.9.0
  release.sh: list prerequisites in a comment
  changelog: add #569
  queries: fix unused import in wasm build
  Fixes pgf council vote format
  Rwnames `type`, adds examples
  Custom proposal and vote memos in governance spec
  RPC: fix storage_value to return data as read w/o re-encoding in Option
  [ci] wasm checksums update
  router: add `with_options` for handlers that use request/response
  move the current RPC patterns under "shell" sub-router
  make fmt
  Log at INFO by default for namadan
  Add changelog
  ledger/queries: comment out `println`s for router path matching dbg
  ledger/queries: fix require_no_proof doc-string
  ci: fix workflow name
  ci: fix mold usage
  Update README.md
  some doc comment edits
  fix: namadan should log at info by default
  ci: use mold linker
  changelog: add #632
  feat: change native token to nam
  [ci] wasm checksums update
  changelog: add #671
  add back consensus timeout commit config for abciplus
  switch to tendermint-rs with consensus timeout
  wasm: update checksums
  changelog: add #553
  apps: replace RPC module and its handlers with new queries mod
  shared: add new queries router macro to replicate handwritten RPC paths
  add deps for router macro and update `Cargo.lock`s
  protocol: update imports and add missing rustdoc
  move ledger's protocol module into shared crate
  ci: invalide cf cache
  fix broken link
  split back out the core VPs
  Modify specs
  test/e2e/helpers: add a helper to query and parse block height
  changelog: add #658
  client: add a block query to print hash, height and time of a block
  wasm: update checksums.json
  [fix]: Fixed the borsh schema for libsecp256k signatures
  [feat]: Added the recovery id to secp256k signatures
  [ci] wasm checksums update
  feat: remove nft
  • Loading branch information
juped committed Nov 2, 2022
2 parents 8ae9563 + 6cbce4a commit 2d6e0e0
Show file tree
Hide file tree
Showing 133 changed files with 2,939 additions and 2,566 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Add back consensus commit timeout configuration set in tendermint
([#671](https://github.com/anoma/namada/pull/671))
2 changes: 2 additions & 0 deletions .changelog/v0.9.0/bug-fixes/702-fix-default-node-logging.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fix info logs to show by default for namadan
([#702](https://github.com/anoma/namada/pull/702))
2 changes: 2 additions & 0 deletions .changelog/v0.9.0/features/658-add-client-block-query.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Client: Add a command to query the last committed block's hash, height and
timestamp. ([#658](https://github.com/anoma/namada/issues/658))
4 changes: 4 additions & 0 deletions .changelog/v0.9.0/improvements/553-rpc-queries-router.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Replace the handcrafted RPC paths with a new `router!` macro RPC queries
definition that handles dynamic path matching, type-safe handler function
dispatch and also generates type-safe client methods for the queries.
([#553](https://github.com/anoma/namada/pull/553))
2 changes: 2 additions & 0 deletions .changelog/v0.9.0/improvements/569-rpc-sub-shell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Move all shell RPC endpoints under the /shell path. This is a breaking change
to RPC consumers. ([#569](https://github.com/anoma/namada/pull/569))
2 changes: 2 additions & 0 deletions .changelog/v0.9.0/miscellaneous/632-xan-to-nam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Renamed native token from XAN to NAM
([#632](https://github.com/anoma/namada/pull/632))
1 change: 1 addition & 0 deletions .changelog/v0.9.0/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Namada 0.9.0 is a scheduled minor release.
27 changes: 23 additions & 4 deletions .github/workflows/build-and-test-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,13 @@ jobs:
matrix:
os: [ubuntu-latest]
nightly_version: [nightly-2022-05-20]
mold_version: [1.6.0]
make:
- name: ABCI
suffix: ''
cache_key: anoma
cache_version: v1
wait_for: anoma-release-eth (ubuntu-latest, ABCI Release build, anoma-e2e-release, v1)
wait_for: anoma-release-eth (ubuntu-latest, 1.6.0, ABCI Release build, anoma-e2e-release, v1)
tendermint_artifact: tendermint-unreleased-ad825dcadbd4b98c3f91ce5a711e4fb36a69c377

env:
Expand Down Expand Up @@ -177,19 +178,29 @@ jobs:
restore-keys: ${{ runner.os }}-${{ matrix.make.cache_key }}-${{ matrix.make.cache_version }}-cargo-
- name: Start sccache server
run: sccache --start-server
- name: Install mold linker
run: |
wget -q -O- https://github.com/rui314/mold/releases/download/v${{ matrix.mold_version }}/mold-${{ matrix.mold_version }}-x86_64-linux.tar.gz | tar -xz
mv mold-${{ matrix.mold_version }}-x86_64-linux/bin/mold /usr/local/bin
- name: Build
run: make build${{ matrix.make.suffix }}
env:
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=/usr/local/bin/mold"
- name: Build test
run: make build-test${{ matrix.make.suffix }}
env:
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=/usr/local/bin/mold"
- name: Download wasm artifacts
uses: actions/download-artifact@v3
with:
name: wasm-${{ github.sha }}
path: ./wasm
- name: Run unit test
run: make test-unit${{ matrix.make.suffix }}
env:
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=/usr/local/bin/mold"
- name: Wait for release binaries
uses: lewagon/wait-on-check-action@master
uses: lewagon/wait-on-check-action@@v1.2.0
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
check-name: ${{ matrix.make.wait_for }}
Expand Down Expand Up @@ -228,10 +239,11 @@ jobs:
ANOMA_TENDERMINT_WEBSOCKET_TIMEOUT: 20
ANOMA_E2E_USE_PREBUILT_BINARIES: "true"
ANOMA_E2E_KEEP_TEMP: "true"
ENV_VAR_TM_STDOUT: "false"
ANOMA_TM_STDOUT: "false"
ANOMA_LOG_COLOR: "false"
ANOMA_MASP_PARAMS_DIR: "/home/runner/work/masp"
ANOMA_LOG: "info"
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=/usr/local/bin/mold"
- name: Upload e2e logs
if: success() || failure()
uses: actions/upload-artifact@v3
Expand All @@ -240,7 +252,7 @@ jobs:
path: |
/tmp/.*/logs/
/tmp/.*/e2e-test.*/setup/validator-*/.anoma/logs/*.log
retention-days: 5
retention-days: 3
- name: Print sccache stats
if: always()
run: sccache --show-stats
Expand All @@ -255,6 +267,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
mold_version: [1.6.0]
make:
- name: ABCI Release build
suffix: ''
Expand Down Expand Up @@ -316,8 +329,14 @@ jobs:
restore-keys: ${{ runner.os }}-${{ matrix.make.cache_key }}-${{ matrix.make.cache_version }}-cargo-
- name: Start sccache server
run: sccache --start-server
- name: Install mold linker
run: |
wget -q -O- https://github.com/rui314/mold/releases/download/v${{ matrix.mold_version }}/mold-${{ matrix.mold_version }}-x86_64-linux.tar.gz | tar -xz
mv mold-${{ matrix.mold_version }}-x86_64-linux/bin/mold /usr/local/bin
- name: Build
run: make build-release${{ matrix.make.suffix }}
env:
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=/usr/local/bin/mold"
- name: Upload target binaries
uses: actions/upload-artifact@v3
with:
Expand Down
25 changes: 22 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ jobs:
matrix:
os: [ubuntu-latest]
nightly_version: [nightly-2022-05-20]
mold_version: [1.6.0]
make:
- name: ABCI
suffix: ''
cache_key: anoma
cache_version: v1
wait_for: anoma-release (ubuntu-latest, ABCI Release build, anoma-e2e-release, v1)
wait_for: anoma-release (ubuntu-latest, 1.6.0, ABCI Release build, anoma-e2e-release, v1)
tendermint_artifact: tendermint-unreleased-ad825dcadbd4b98c3f91ce5a711e4fb36a69c377

env:
Expand Down Expand Up @@ -179,19 +180,29 @@ jobs:
restore-keys: ${{ runner.os }}-${{ matrix.make.cache_key }}-${{ matrix.make.cache_version }}-cargo-
- name: Start sccache server
run: sccache --start-server
- name: Install mold linker
run: |
wget -q -O- https://github.com/rui314/mold/releases/download/v${{ matrix.mold_version }}/mold-${{ matrix.mold_version }}-x86_64-linux.tar.gz | tar -xz
mv mold-${{ matrix.mold_version }}-x86_64-linux/bin/mold /usr/local/bin
- name: Build
run: make build${{ matrix.make.suffix }}
env:
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=/usr/local/bin/mold"
- name: Build test
run: make build-test${{ matrix.make.suffix }}
env:
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=/usr/local/bin/mold"
- name: Download wasm artifacts
uses: actions/download-artifact@v3
with:
name: wasm-${{ github.sha }}
path: ./wasm
- name: Run unit test
run: make test-unit${{ matrix.make.suffix }}
env:
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=/usr/local/bin/mold"
- name: Wait for release binaries
uses: lewagon/wait-on-check-action@master
uses: lewagon/wait-on-check-action@v1.2.0
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
check-name: ${{ matrix.make.wait_for }}
Expand Down Expand Up @@ -230,10 +241,11 @@ jobs:
ANOMA_TENDERMINT_WEBSOCKET_TIMEOUT: 20
ANOMA_E2E_USE_PREBUILT_BINARIES: "true"
ANOMA_E2E_KEEP_TEMP: "true"
ENV_VAR_TM_STDOUT: "false"
ANOMA_TM_STDOUT: "false"
ANOMA_LOG_COLOR: "false"
ANOMA_MASP_PARAMS_DIR: "/home/runner/work/masp"
ANOMA_LOG: "info"
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=/usr/local/bin/mold"
- name: Upload e2e logs
if: success() || failure()
uses: actions/upload-artifact@v3
Expand All @@ -257,6 +269,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
mold_version: [1.6.0]
make:
- name: ABCI Release build
suffix: ''
Expand Down Expand Up @@ -316,10 +329,16 @@ jobs:
~/.cargo/git
key: ${{ runner.os }}-${{ matrix.make.cache_key }}-${{ matrix.make.cache_version }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-${{ matrix.make.cache_key }}-${{ matrix.make.cache_version }}-cargo-
- name: Install mold linker
run: |
wget -q -O- https://github.com/rui314/mold/releases/download/v${{ matrix.mold_version }}/mold-${{ matrix.mold_version }}-x86_64-linux.tar.gz | tar -xz
mv mold-${{ matrix.mold_version }}-x86_64-linux/bin/mold /usr/local/bin
- name: Start sccache server
run: sccache --start-server
- name: Build
run: make build-release${{ matrix.make.suffix }}
env:
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=/usr/local/bin/mold"
- name: Upload target binaries
uses: actions/upload-artifact@v3
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,21 @@ jobs:
command: cd documentation/specs && mdbook build
cache_subkey: specs
cache_version: v1
distribution_id: E2Y9R2H4P5LYED
- name: Build docs
folder: documentation/docs
bucket: namada-docs-static-website
command: cd documentation/docs && mdbook build
cache_subkey: docs
cache_version: v1
distribution_id: E2T9UML53913RV
- name: Build development docs
folder: documentation/dev
bucket: namada-dev-static-website
command: cargo run --bin namada_encoding_spec && cd documentation/dev && mdbook build
cache_subkey: dev
cache_version: v1
distribution_id: E6XPP5KFWXJFQ

env:
CARGO_INCREMENTAL: 0
Expand Down Expand Up @@ -127,6 +130,9 @@ jobs:
- name: Publish docs
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: aws s3 sync ${{ matrix.make.folder }}/book/html/ s3://${{ matrix.make.bucket }} --region eu-west-1 --delete
- name: Invalidate distribution cache
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: aws cloudfront create-invalidation --distribution-id ${{ matrix.make.distribution_id }} --paths "/*"
- name: Print sccache stats
if: always()
run: sccache --show-stats
Expand Down
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# CHANGELOG

## v0.9.0

Namada 0.9.0 is a scheduled minor release.

### BUG FIXES

- Add back consensus commit timeout configuration set in tendermint
([#671](https://github.com/anoma/namada/pull/671))
- Fix info logs to show by default for namadan
([#702](https://github.com/anoma/namada/pull/702))

### FEATURES

- Client: Add a command to query the last committed block's hash, height and
timestamp. ([#658](https://github.com/anoma/namada/issues/658))

### IMPROVEMENTS

- Replace the handcrafted RPC paths with a new `router!` macro RPC queries
definition that handles dynamic path matching, type-safe handler function
dispatch and also generates type-safe client methods for the queries.
([#553](https://github.com/anoma/namada/pull/553))
- Move all shell RPC endpoints under the /shell path. This is a breaking change
to RPC consumers. ([#569](https://github.com/anoma/namada/pull/569))

### MISCELLANEOUS

- Renamed native token from XAN to NAM
([#632](https://github.com/anoma/namada/pull/632))

## v0.8.1

Namada 0.8.1 is a point release focused on standardizing Tendermint
Expand Down
Loading

0 comments on commit 2d6e0e0

Please sign in to comment.