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

Adds Paseo to control tool #1295

Merged
merged 16 commits into from
Oct 4, 2024
Merged

Adds Paseo to control tool #1295

merged 16 commits into from
Oct 4, 2024

Conversation

claravanstaden
Copy link
Contributor

@claravanstaden claravanstaden commented Sep 27, 2024

Adds Paseo in the control tool to generate commands.

# Conflicts:
#	control/Cargo.lock
#	control/Cargo.toml
#	control/preimage/Cargo.toml
#	control/preimage/src/asset_hub_runtime.rs
#	control/preimage/src/bridge_hub_runtime.rs
#	control/preimage/src/constants.rs
#	control/preimage/src/helpers.rs
#	control/preimage/src/relay_runtime.rs
Copy link

codecov bot commented Sep 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.54%. Comparing base (24b9d31) to head (4902e87).
Report is 106 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1295      +/-   ##
==========================================
- Coverage   77.83%   72.54%   -5.29%     
==========================================
  Files          14       18       +4     
  Lines         415      601     +186     
  Branches       76      108      +32     
==========================================
+ Hits          323      436     +113     
- Misses         75      156      +81     
+ Partials       17        9       -8     
Flag Coverage Δ
solidity 72.54% <ø> (-5.29%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@claravanstaden claravanstaden marked this pull request as ready for review October 1, 2024 07:08
Copy link
Collaborator

@vgeddes vgeddes left a comment

Choose a reason for hiding this comment

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

Looks good. a few minor comments about bindings generation

@@ -0,0 +1,3 @@
pub mod runtime;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are you subxt codegen for the paseo runtime, instead of the derive macro used in the other runtimes?

For example Westend:

#[subxt::subxt(
    runtime_metadata_path = "polkadot-metadata.bin",
    derive_for_all_types = "Clone"
)]
mod runtime {}

pub use runtime::*;

I dislike subxt codegen as it creates huge files that slow down our repo. whereas the macro does the codegen on the fly locally.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed, 02a7335.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This README is becoming a bit stale. Can you delete lines 43-73, and update lines 78-onwards to reflect current reality.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated. 02a7335.

@@ -79,3 +79,8 @@ subxt metadata --url ws://127.0.0.1:8000 -f bytes -o runtimes/polkadot/polkadot-
subxt metadata --url ws://127.0.0.1:8001 -f bytes -o runtimes/bridge-hub-polkadot/bridge-hub-metadata.bin
subxt metadata --url ws://127.0.0.1:8002 -f bytes -o runtimes/asset-hub-polkadot/asset-hub-metadata.bin
```

Update runtime.rs:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is Paseo a special case in the readme?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed it, it's not necessary anymore.

@claravanstaden claravanstaden merged commit cdf2b0a into main Oct 4, 2024
3 checks passed
@claravanstaden claravanstaden deleted the deploy-testnet branch October 4, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants