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

Tomas/dbg below cap #3904

Closed
wants to merge 43 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
383849c
ci: run checks on release branches
Fraccaman Sep 27, 2024
5c2305f
Merge branch 'mergify/bp/0.44.0/pr-3854' (#3855)
tzemanovic Sep 28, 2024
602c987
update hermes
tzemanovic Sep 26, 2024
be55f9f
README: add notes about hermes
tzemanovic Sep 26, 2024
b3f675b
test/e2e: increase hermes timeout
tzemanovic Sep 27, 2024
cdf2873
update hermes
tzemanovic Sep 27, 2024
e1983f2
Merge branch 'mergify/bp/0.44.0/pr-3851' (#3853)
tzemanovic Sep 30, 2024
0a50935
Adds tests for whitelisted tokens gas payment
grarco Sep 30, 2024
78a4ecf
Removes eprintln from prepare proposal unit tests
grarco Sep 30, 2024
7d19104
Adds batch events tests
grarco Sep 30, 2024
8b30613
Adds test for identical events in batch
grarco Sep 30, 2024
a2061b2
Removes unused `Success` event
grarco Sep 30, 2024
9cf0f07
Changelog #3857
grarco Sep 30, 2024
0eecd3b
mergify: add backport strategy
Fraccaman Sep 26, 2024
960e521
Merge branch 'bp/0.44.0/pr-3849' (#3865)
tzemanovic Oct 1, 2024
a164b71
ci/mergify: add merge rule for backport to 0.44
tzemanovic Oct 1, 2024
92c757b
Merge branch 'mergify/bp/0.44.0/pr-3862' (#3863)
tzemanovic Oct 1, 2024
2bd9a60
Merge branch 'mergify/bp/0.44.0/pr-3857' (#3861)
tzemanovic Oct 2, 2024
828827e
test/e2e: no dbg logs in shielded sync
tzemanovic Sep 27, 2024
e212807
tx/types: rm unused code
tzemanovic Sep 19, 2024
edbac8b
refactor and test signature index
tzemanovic Sep 19, 2024
61498ec
tx: rm unsued `SignedTxData`
tzemanovic Sep 19, 2024
47745b7
tx: move signing related code into sign mod
tzemanovic Sep 19, 2024
1ecb1a8
tx: split out tx sections into dedicated mod
tzemanovic Sep 19, 2024
165250c
test/tx: add more unit tests
tzemanovic Sep 20, 2024
d9e2b4a
tx: improve the serialization api
tzemanovic Sep 23, 2024
976a4ac
tx: test tx sections api
tzemanovic Oct 2, 2024
59db279
changelog: add #3835
tzemanovic Sep 23, 2024
af153c6
Merge branch 'mergify/bp/0.44.0/pr-3868' (#3871)
tzemanovic Oct 3, 2024
8ad0c48
goveranance: let validator vote even if it doesn't have a self-bond
Fraccaman Oct 2, 2024
4f044c3
e2e test for ibc token gas payment
grarco Oct 1, 2024
0b20ed9
Fixes typos and updates docstring
grarco Oct 1, 2024
5d4db18
Fixes ibc gas payment test
grarco Oct 1, 2024
ddcf7be
Sped up ibc token test
grarco Oct 2, 2024
4b42da3
Changelog #3866
grarco Oct 2, 2024
cd52522
Improves epoch sleeping in ibc tests and renames token variable
grarco Oct 3, 2024
6f02228
Increases timeout on epoch sleep
grarco Oct 3, 2024
df859e4
Merge branch 'mergify/bp/0.44.0/pr-3874' (#3878)
tzemanovic Oct 3, 2024
f067401
Merge branch 'mergify/bp/0.44.0/pr-3866' (#3881)
tzemanovic Oct 3, 2024
d0c54ac
ci/mergify: unquote base name
tzemanovic Oct 3, 2024
ad1d4b3
Merge branch 'mergify/bp/0.44.0/pr-3876' (#3885)
tzemanovic Oct 4, 2024
38054ad
log validator below capacity set changes
tzemanovic Oct 10, 2024
30a2606
fixup! log validator below capacity set changes
tzemanovic Oct 10, 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: 2 additions & 0 deletions .changelog/unreleased/improvements/3835-refactor-tx-crate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Refactored tx crate modules and slightly improved its API.
([\#3835](https://github.com/anoma/namada/pull/3835))
2 changes: 2 additions & 0 deletions .changelog/unreleased/testing/3857-batch-events-tests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Added testing for batched tx events.
([\#3857](https://github.com/anoma/namada/pull/3857))
2 changes: 2 additions & 0 deletions .changelog/unreleased/testing/3866-test-ibc-gas-payment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Added test for gas payment with an IBC token.
([\#3866](https://github.com/anoma/namada/pull/3866))
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ on:
push:
branches:
- main
- 'v?[0-9]+.[0-9]+.[0-9]+'
# Run in PRs with conflicts (https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request)
pull_request_target:
branches:
- main
- 'v?[0-9]+.[0-9]+.[0-9]+'
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:

Expand Down Expand Up @@ -463,7 +465,7 @@ jobs:
runs-on: [self-hosted, 16vcpu-32ram-ubuntu22-namada-x86]
container:
image: ghcr.io/heliaxdev/namada-ci:namada-main
timeout-minutes: 20
timeout-minutes: 25

steps:
- name: Checkout repo
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- main
- 'v?[0-9]+.[0-9]+.[0-9]+'
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/scripts/e2e.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"e2e::eth_bridge_tests::everything": 4,
"e2e::ibc_tests::ibc_transfers": 414,
"e2e::ibc_tests::pgf_over_ibc": 415,
"e2e::ibc_tests::fee_payment_with_ibc_token": 357,
"e2e::ibc_tests::ibc_token_inflation": 840,
"e2e::ibc_tests::ibc_rate_limit": 485,
"e2e::ibc_tests::ibc_upgrade_client": 280,
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.10.0-namada-beta15-rc2
1.10.4-namada-beta17-rc2
25 changes: 21 additions & 4 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,24 @@ queue_rules:
- "#approved-reviews-by >= 1"
- base = main
merge_method: merge


- name: backport-0.44-queue
speculative_checks: 3
batch_size: 3
queue_conditions:
- "#approved-reviews-by >= 1"
- base = 0.44.0
merge_method: merge

pull_request_rules:
- name: main-automatic-merge
- name: automatic merge to main or backport branch
conditions:
- label = "merge"
- label != "do-not-merge"
- "#approved-reviews-by >= 1"
- base = main
- or:
- base = main
- base = "0.44.0"
actions:
queue:
autosquash: true
Expand All @@ -30,4 +39,12 @@ pull_request_rules:
reason: {{queue_dequeue_reason}}.

Sorry about that, but you can requeue the PR by using `@mergifyio requeue`
if you think this was a mistake.
if you think this was a mistake.

- name: backport PR to 0.44.0 lane
conditions:
- label = backport-44
actions:
backport:
branches:
- "0.44.0"
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,13 @@ Please see the [contributing page](./CONTRIBUTING.md).
### Dependencies

The ledger currently requires [CometBFT v0.37.11](https://github.com/cometbft/cometbft/releases/tag/v0.37.11) is installed and available on path. This can be achieved through following [these instructions](https://github.com/cometbft/cometbft/blob/main/docs/guides/install.md)

#### Hermes

We maintain a fork of [hermes](https://github.com/heliaxdev/hermes) that adds support for Namada.

Compatibility table with Namada:

| Namada | Hermes |
| ----------- | ----------- |
| v0.44.0 | 1.10.4-namada-beta17-rc2 |
2 changes: 1 addition & 1 deletion crates/apps_lib/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,7 @@ pub mod cmds {
fn def() -> App {
App::new(Self::CMD)
.about(wrap!(
"Query the substorage space of a specific enstablished \
"Query the substorage space of a specific established \
address."
))
.add_args::<args::QueryAccount<args::CliTypes>>()
Expand Down
8 changes: 5 additions & 3 deletions crates/apps_lib/src/client/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,8 @@ pub async fn sign_tx<N: Namada>(
where
<N::Client as namada_sdk::io::Client>::Error: std::fmt::Display,
{
let tx = if let Ok(transaction) = Tx::deserialize(tx_data.as_ref()) {
let tx = if let Ok(transaction) = Tx::try_from_json_bytes(tx_data.as_ref())
{
transaction
} else {
edisplay_line!(namada.io(), "Couldn't decode the transaction.");
Expand Down Expand Up @@ -1117,8 +1118,9 @@ where
};
let signature_path = File::create(&output_path)
.expect("Should be able to create signature file.");
serde_json::to_writer_pretty(signature_path, &signature)
.expect("Signature should be serializable.");
signature.to_writer_json(signature_path).expect(
"Signature should be serializable and the file writeable.",
);

display_line!(
namada.io(),
Expand Down
3 changes: 2 additions & 1 deletion crates/apps_lib/src/client/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,8 @@ pub async fn sign_offline(
safe_exit(1)
};

let tx = if let Ok(transaction) = Tx::deserialize(tx_data.as_ref()) {
let tx = if let Ok(transaction) = Tx::try_from_json_bytes(tx_data.as_ref())
{
transaction
} else {
eprintln!("Couldn't decode the transaction.");
Expand Down
14 changes: 0 additions & 14 deletions crates/events/src/extend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,20 +542,6 @@ impl EventAttributeEntry<'static> for MaspDataRefs {
}
}

/// Extend an [`Event`] with success data.
pub struct Success(pub bool);

impl EventAttributeEntry<'static> for Success {
type Value = bool;
type ValueOwned = Self::Value;

const KEY: &'static str = "success";

fn into_value(self) -> Self::Value {
self.0
}
}

/// Extend an [`Event`] with a new domain.
pub struct Domain<E>(PhantomData<E>);

Expand Down
2 changes: 1 addition & 1 deletion crates/node/src/dry_run_tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ where
H: 'static + StorageHasher + Sync,
CA: 'static + WasmCacheAccess + Sync,
{
let tx = Tx::try_from(&request.data[..]).into_storage_result()?;
let tx = Tx::try_from_bytes(&request.data[..]).into_storage_result()?;
tx.validate_tx().into_storage_result()?;

let gas_scale = parameters::get_gas_scale(&state)?;
Expand Down
Loading