Skip to content

Commit

Permalink
Merge branch 'base' into murisi/masp-ibc-replay-protection-using-txda…
Browse files Browse the repository at this point in the history
…ta-on-0.39.0
  • Loading branch information
murisi committed Jun 12, 2024
2 parents 0ae6f2b + 879a326 commit 41d4415
Show file tree
Hide file tree
Showing 237 changed files with 9,311 additions and 4,679 deletions.
2 changes: 2 additions & 0 deletions .changelog/v0.38.0/bug-fixes/3075-force-fee-payment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fixed the fee collection logic in `finalize_block` to match that of
`process_proposal`. ([\#3075](https://github.com/anoma/namada/issues/3075))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Improved masp vp verification to run in parallel.
([\#2972](https://github.com/anoma/namada/pull/2972))
2 changes: 2 additions & 0 deletions .changelog/v0.38.0/improvements/3232-masp-no-transfer-dep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Removed any dependency on the specific transaction data from the masp vp.
([\#3232](https://github.com/anoma/namada/pull/3232))
3 changes: 3 additions & 0 deletions .changelog/v0.38.0/improvements/3268-track-caller-events.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Add a new event attribute facility to track events to their origin
in Namada's source code. This is useful for debugging purposes.
([\#3268](https://github.com/anoma/namada/pull/3268))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Include the used MASP randomness parameters in the test vectors.
([\#3296](https://github.com/anoma/namada/pull/3296))
3 changes: 3 additions & 0 deletions .changelog/v0.38.0/improvements/3305-update-config-rs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Replaced unmaintained config-rs to an unreleased version
that replaces its also unmaintained yaml dependency.
([\#3305](https://github.com/anoma/namada/pull/3305))
4 changes: 4 additions & 0 deletions .changelog/v0.38.0/improvements/3308-wasmer-upgrade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Upgrade `wasmer` vm to upstream version `4.3.1`,
moving away from the [forked code based on version
`2.3.0`](https://github.com/heliaxdev/wasmer/tree/255054f7f58b7b4a525f2fee6b9b86422d1ca15b).
([\#3308](https://github.com/anoma/namada/pull/3308))
3 changes: 3 additions & 0 deletions .changelog/v0.38.0/improvements/3310-scheduled-migrations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Allow nodes to schedule a migrations json to be read and run to facilitate hard-forking. This is done by
taking a migrations json and passing the path, a hash of the contents, and a block height to the node when
starting the ledger. ([\#3310](https://github.com/anoma/namada/pull/3310))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Store IBC denom when minting the IBC token
([\#3317](https://github.com/anoma/namada/issues/3317))
2 changes: 2 additions & 0 deletions .changelog/v0.38.0/improvements/3331-replace-wee-alloc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Switched from wee allocator to rlsf for WASM.
([\#3331](https://github.com/anoma/namada/pull/3331))
1 change: 1 addition & 0 deletions .changelog/v0.38.0/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Namada 0.38.0 is a minor release that upgrades the MASP and events and also cleans up dependencies.
2 changes: 2 additions & 0 deletions .changelog/v0.38.1/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Namada 0.38.1 is a patch release that fixes a license issue with the last minor release needed to build binaries in CI.

3 changes: 3 additions & 0 deletions .changelog/v0.39.0/bug-fixes/3340-validator--by-tm-addr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Fixes an issue with unsanitized input to a PoS query to find
a validator by TM address which may cause a node to panic.
([\#3340](https://github.com/anoma/namada/pull/3340))
2 changes: 2 additions & 0 deletions .changelog/v0.39.0/bug-fixes/3358-fix-dry-run-writelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fix to clear the write log when dry-run batched transaction
([\#3358](https://github.com/anoma/namada/issues/3358))
6 changes: 6 additions & 0 deletions .changelog/v0.39.0/improvements/3297-split-transfer-tx.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- The transfer command has been split into:
- `transfer` (shielded transfer)
- `transparent-transfer`
- `shield` (from transparent to shielded)
- `unshield` (from shielded to transparent)
([\#3297](https://github.com/anoma/namada/pull/3297))
2 changes: 2 additions & 0 deletions .changelog/v0.39.0/improvements/3315-wasmer-read-only-mem.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Avoid growing wasm memory when performing read-only accesses.
([\#3315](https://github.com/anoma/namada/pull/3315))
2 changes: 2 additions & 0 deletions .changelog/v0.39.0/improvements/3318-masp-custom-epoch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Added a separate epoch tracker for masp to decouple its logic from the rest of
the protocol. ([\#3318](https://github.com/anoma/namada/pull/3318))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Default to the address from local config when the `--node`
argument is not specified for `shielded-sync` command
([\#3333](https://github.com/anoma/namada/pull/3333))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Allow NAM transfers for protocol actions.
([\#3348](https://github.com/anoma/namada/pull/3348))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Select gas payer from implicit address in the Namada CLI.
([\#3349](https://github.com/anoma/namada/pull/3349))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Remove old disposable keys from the wallet.
([\#3350](https://github.com/anoma/namada/pull/3350))
2 changes: 2 additions & 0 deletions .changelog/v0.39.0/improvements/3351-masp-adjustments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Addressed some minor issues in the shielded token code.
([\#3351](https://github.com/anoma/namada/pull/3351))
1 change: 1 addition & 0 deletions .changelog/v0.39.0/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Namada 0.39.0 is a minor release that primarily abstracts the different kinds of transfer transactions and makes upgrades to the MASP and VPs.
1 change: 0 additions & 1 deletion .github/workflows/scripts/e2e.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"e2e::ledger_tests::test_genesis_validators": 14,
"e2e::ledger_tests::test_node_connectivity_and_consensus": 28,
"e2e::ledger_tests::test_epoch_sleep": 12,
"e2e::ledger_tests::wrapper_disposable_signer": 28,
"e2e::ledger_tests::deactivate_and_reactivate_validator": 67,
"e2e::ledger_tests::test_invalid_validator_txs": 73,
"e2e::ledger_tests::suspend_ledger": 30,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/hermes.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.8.2-namada-beta10-rc
1.8.2-namada-beta11-rc2
34 changes: 16 additions & 18 deletions .github/workflows/scripts/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"integration::masp::cross_epoch_unshield",
"integration::masp::dynamic_assets",
"integration::masp::masp_incentives",
"integration::masp::masp_pinned_txs",
"integration::masp::masp_txs_and_queries",
"integration::masp::multiple_unfetched_txs_same_block",
"integration::masp::spend_unconverted_asset_type",
"integration::masp::wrapper_fee_unshielding",
"integration::masp::wrapper_fee_unshielding_out_of_gas",
]

NIGHTLY_VERSION = open("rust-nightly-version", "r").read().strip()
CARGO_TEST_COMMAND = "RUST_BACKTRACE=1 cargo +{} test --lib {} --features integration -Z unstable-options -- --test-threads=1 --exact -Z unstable-options --report-time"
CARGO_TEST_COMMAND = (
"RUST_BACKTRACE=1 cargo +{} test --lib {} --features integration -Z"
" unstable-options -- --test-threads=1 --exact -Z unstable-options --report-time"
)

test_results = {}
has_failures = False
Expand All @@ -27,28 +27,26 @@
start = time.time()
command = CARGO_TEST_COMMAND.format(NIGHTLY_VERSION, task)
end = time.time()
subprocess.check_call(command, shell=True, stdout=sys.stdout, stderr=subprocess.STDOUT)
subprocess.check_call(
command, shell=True, stdout=sys.stdout, stderr=subprocess.STDOUT
)
test_results[task] = {
'status': 'ok',
'time': round(end - start),
'command': command
"status": "ok",
"time": round(end - start),
"command": command,
}
except:
test_results[task] = {
'status': 'fail',
'time': -1,
'command': command
}
test_results[task] = {"status": "fail", "time": -1, "command": command}
has_failures = True
continue

for test_name in test_results.keys():
test_status = test_results[test_name]['status']
time = test_results[test_name]['time']
test_status = test_results[test_name]["status"]
time = test_results[test_name]["time"]
print("- Test {} ({}s) -> status: {}".format(test_name, time, test_status))
if test_results[test_name]['status'] != 'ok':
test_command = test_results[test_name]['command']
if test_results[test_name]["status"] != "ok":
test_command = test_results[test_name]["command"]
print(" Run locally with: {}".format(test_command))

if has_failures:
exit(1)
exit(1)
75 changes: 75 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,80 @@
# CHANGELOG

## v0.39.0

Namada 0.39.0 is a minor release that primarily abstracts the different kinds of transfer transactions and makes upgrades to the MASP and VPs.

### BUG FIXES

- Fixes an issue with unsanitized input to a PoS query to find
a validator by TM address which may cause a node to panic.
([\#3340](https://github.com/anoma/namada/pull/3340))
- Fix to clear the write log when dry-run batched transaction
([\#3358](https://github.com/anoma/namada/issues/3358))

### IMPROVEMENTS

- The transfer command has been split into:
- `transfer` (shielded transfer)
- `transparent-transfer`
- `shield` (from transparent to shielded)
- `unshield` (from shielded to transparent)
([\#3297](https://github.com/anoma/namada/pull/3297))
- Avoid growing wasm memory when performing read-only accesses.
([\#3315](https://github.com/anoma/namada/pull/3315))
- Added a separate epoch tracker for masp to decouple its logic from the rest of
the protocol. ([\#3318](https://github.com/anoma/namada/pull/3318))
- Default to the address from local config when the `--node`
argument is not specified for `shielded-sync` command
([\#3333](https://github.com/anoma/namada/pull/3333))
- Allow NAM transfers for protocol actions.
([\#3348](https://github.com/anoma/namada/pull/3348))
- Select gas payer from implicit address in the Namada CLI.
([\#3349](https://github.com/anoma/namada/pull/3349))
- Remove old disposable keys from the wallet.
([\#3350](https://github.com/anoma/namada/pull/3350))
- Addressed some minor issues in the shielded token code.
([\#3351](https://github.com/anoma/namada/pull/3351))

## v0.38.1

Namada 0.38.1 is a patch release that fixes a license issue with the last minor release needed to build binaries in CI.

## v0.38.0

Namada 0.38.0 is a minor release that upgrades the MASP and events and also cleans up dependencies.

### BUG FIXES

- Fixed the fee collection logic in `finalize_block` to match that of
`process_proposal`. ([\#3075](https://github.com/anoma/namada/issues/3075))

### IMPROVEMENTS

- Improved masp vp verification to run in parallel.
([\#2972](https://github.com/anoma/namada/pull/2972))
- Removed any dependency on the specific transaction data from the masp vp.
([\#3232](https://github.com/anoma/namada/pull/3232))
- Add a new event attribute facility to track events to their origin
in Namada's source code. This is useful for debugging purposes.
([\#3268](https://github.com/anoma/namada/pull/3268))
- Include the used MASP randomness parameters in the test vectors.
([\#3296](https://github.com/anoma/namada/pull/3296))
- Replaced unmaintained config-rs to an unreleased version
that replaces its also unmaintained yaml dependency.
([\#3305](https://github.com/anoma/namada/pull/3305))
- Upgrade `wasmer` vm to upstream version `4.3.1`,
moving away from the [forked code based on version
`2.3.0`](https://github.com/heliaxdev/wasmer/tree/255054f7f58b7b4a525f2fee6b9b86422d1ca15b).
([\#3308](https://github.com/anoma/namada/pull/3308))
- Allow nodes to schedule a migrations json to be read and run to facilitate hard-forking. This is done by
taking a migrations json and passing the path, a hash of the contents, and a block height to the node when
starting the ledger. ([\#3310](https://github.com/anoma/namada/pull/3310))
- Store IBC denom when minting the IBC token
([\#3317](https://github.com/anoma/namada/issues/3317))
- Switched from wee allocator to rlsf for WASM.
([\#3331](https://github.com/anoma/namada/pull/3331))

## v0.37.0

Namada 0.37.0 is a minor release that adds replay protection entries to consensus and enables merklizing data without diffs.
Expand Down
Loading

0 comments on commit 41d4415

Please sign in to comment.