Skip to content
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
ffef79c
anvil-polkadot(impersonation): add impersonate...
iulianbarbu Sep 25, 2025
10a3388
anvil-polkadot(tests): add tracing support
iulianbarbu Sep 25, 2025
225672c
anvil-polkadot(misc): fix warnings
iulianbarbu Sep 25, 2025
0b86c79
anvil-polkadot: polish logging
iulianbarbu Sep 26, 2025
6017530
anvil-polkadot(impersonation): add impersonate...
iulianbarbu Sep 26, 2025
d29afb0
anvil-polkadot(impersonation): testing all impersonation RPCs
iulianbarbu Sep 26, 2025
14accf2
anvil-polkadot(impersonation): polish test
iulianbarbu Sep 29, 2025
106567b
anvil-polkadot: customize addr recovery in ReceiptExtractor
iulianbarbu Sep 30, 2025
69a8e92
anvil-polkadot: point to custom polkadot-sdk
iulianbarbu Sep 30, 2025
481a292
anvil-polkadot: fix impersonation test
iulianbarbu Sep 30, 2025
4fe4396
Cargo.lock: update to latest custom polkadot-sdk
iulianbarbu Sep 30, 2025
5a09b1a
anvil-polkadot: update ReceiptExtractor constructor usage
iulianbarbu Sep 30, 2025
e5ff766
anvil-polkadot(tests): refactor send_transaction
iulianbarbu Oct 1, 2025
bd5dae5
anvil-polkadot: fix comments and revert newlines
iulianbarbu Oct 1, 2025
31dcfd0
foundry-cli: revert change
iulianbarbu Oct 1, 2025
4e60394
Cargo.lock: fix unwanted crates updates
iulianbarbu Oct 1, 2025
affa8e5
anvil-polkadot(tests): assert tx failure when auto impersonation is f…
iulianbarbu Oct 1, 2025
61c25f0
anvil-polkadot: rename cheats manager to impersonation
iulianbarbu Oct 1, 2025
b4d4948
anvil-polkadot: cargo fmt fix
iulianbarbu Oct 1, 2025
bcc7555
anvil-polkadot: fix typo
iulianbarbu Oct 1, 2025
d37ae56
taplo: added config and formatted...
iulianbarbu Oct 1, 2025
53fc8d8
Update crates/anvil-polkadot/tests/it/utils.rs
iulianbarbu Oct 1, 2025
dcdf5c3
Update crates/anvil-polkadot/tests/it/mining.rs
iulianbarbu Oct 1, 2025
991d8c3
Cargo.toml: changed back to polkadot-sdk/master
iulianbarbu Oct 1, 2025
bcab3f9
anvil-polkadot: address feedback
iulianbarbu Oct 6, 2025
5d489e0
tomls: revert formatting
iulianbarbu Oct 6, 2025
6162666
taplo: remove config
iulianbarbu Oct 6, 2025
f9d868f
Merge branch 'master' into ib-add-impersonation
iulianbarbu Oct 7, 2025
6e34608
anvil-polkadot(tests): parameterize auto_impersonate test with rstest
iulianbarbu Oct 7, 2025
cac0a84
anvil-polkadot(toml): fix cargo.toml formatting
iulianbarbu Oct 7, 2025
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
62 changes: 62 additions & 0 deletions .config/.taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
include = ["**/*.toml"]
exclude = [
"**/*nested-1000.toml",
"**/node_modules/**",
"**/invalid/*",
"test-data/**",
"target",
]

[formatting]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have a CI step for checking this format? Because if we don't, it's not that useful. Not everyone uses a code editor that automatically uses taplo for formatting.

Also, where did we get this taplo format from? I am not a big fan of the rule which adds whitespace in order to align the = signs in dependency lists.

Overall I'm not really sure we need it at this point. Anyway, let's not bundle this in this PR, as it's unrelated and would be best to also ask the embedded EVM guys for feedback

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have a CI step for checking this format?

We should add one. I can work on this in some other PR, once a taplo config makes its way into the repo.

Because if we don't, it's not that useful. Not everyone uses a code editor that automatically uses taplo for formatting.

It is not a matter of automatically using taplo with the code editor, but to configure it (assuming our code editors allows it). I thought that our team should have taplo configured already given we also opened in the past PRs against polkadot-sdk.

Also, where did we get this taplo format from? I am not a big fan of the rule which adds whitespace in order to align the = signs in dependency lists.

It is the taplo config used by the taplo-cli repo. Changing a rule or the entire taplo config is straight forward (with the caveat that all tomls from anvil-polkadot should be formatted afterward). I am fine with most of the rules, only to have all of us use the same ones.

Overall I'm not really sure we need it at this point. Anyway, let's not bundle this in this PR, as it's unrelated and would be best to also ask the embedded EVM guys for feedback

Sure, we can ask. By then I'll revert my toml changes. I hoped we can align quickly behind some "battle tested" formatting, whichever that is and assumed people can comply easily with taplo formatting in their editors (given our previous polkadot-sdk practice), and preferences to be factored in incrementally. Will open a new PR on this subject, maybe with the formatting rules of polkadot-sdk (since we know them already).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert here: 5d489e0

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed taplo config: 6162666.

Copy link
Copy Markdown

@alindima alindima Oct 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be useful, but we should request feedback on the other devs working on the repo (since it affects all of us) and make sure that it's enforced by CI (otherwise it's not that useful)


[[rule]]

[rule.formatting]
include = ["taplo.toml"]
keys = ["exclude"]

array_auto_collapse = false

[[rule]]

[rule.formatting]
include = ["**/Cargo.toml"]

array_auto_expand = false
inline_table_expand = false

[[rule]]

[rule.formatting]
align_entries = true

[[rule]]
include = ["**/Cargo.toml"]
keys = ["dependencies", "*-dependencies", "workspace"]

[rule.formatting]
reorder_keys = true
align_comments = true

[[rule]]
include = ["**/Cargo.toml"]
keys = ["package", "workspace.package"]

[rule.formatting]
reorder_keys = false
align_comments = true

[[rule]]
include = ["**/Cargo.toml"]
keys = ["features"]

[rule.formatting]
reorder_arrays = true

[[rule]]
include = ["pyproject.toml"]

[rule.formatting]
align_entries = true
reorder_keys = false
align_comments = true
Loading
Loading