Skip to content

Commit

Permalink
Runtime codegen tuning (#3008)
Browse files Browse the repository at this point in the history
* Set subxt-codegen as crates.io dependency

* Improved runtime-codegen

* Updated script for regenerate all

* Regenerated all codegens by `./scripts/regenerate_runtimes.sh`

* README.md nit
  • Loading branch information
bkontur committed Jun 5, 2024
1 parent e78d206 commit 0071134
Show file tree
Hide file tree
Showing 14 changed files with 16,234 additions and 9,408 deletions.
2 changes: 2 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ support it. Normally it means:

2. Regenerating bundled runtime wrapper code using `runtime-codegen` binary:

_(You can use the pre-defined `./scripts/regenerate_runtimes.sh` to regenerate all supported runtimes. If you need just a particular runtime, then follow the commands below.)_

If you can start updated chain node, it could be done using following command
(assuming you're in the root of the repository):
```sh
Expand Down
1,017 changes: 671 additions & 346 deletions relay-clients/client-bridge-hub-kusama/src/codegen_runtime.rs

Large diffs are not rendered by default.

2,113 changes: 951 additions & 1,162 deletions relay-clients/client-bridge-hub-polkadot/src/codegen_runtime.rs

Large diffs are not rendered by default.

2,638 changes: 1,283 additions & 1,355 deletions relay-clients/client-bridge-hub-rococo/src/codegen_runtime.rs

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions relay-clients/client-bridge-hub-rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ pub use codegen_runtime::api::runtime_types;

pub type RuntimeCall = runtime_types::bridge_hub_rococo_runtime::RuntimeCall;
pub type BridgeMessagesCall = runtime_types::pallet_bridge_messages::pallet::Call;
pub type BridgeBulletinMessagesCall = runtime_types::pallet_bridge_messages::pallet::Call2;

// TODO: https://github.com/paritytech/parity-bridges-common/issues/2547 - regenerate when ready - shuold be Call2
pub type BridgeBulletinMessagesCall = runtime_types::pallet_bridge_messages::pallet::Call;
pub type BridgeGrandpaCall = runtime_types::pallet_bridge_grandpa::pallet::Call;
pub type BridgeBulletinGrandpaCall = runtime_types::pallet_bridge_grandpa::pallet::Call2;
// TODO: https://github.com/paritytech/parity-bridges-common/issues/2547 - regenerate when ready - shuold be Call2
pub type BridgeBulletinGrandpaCall = runtime_types::pallet_bridge_grandpa::pallet::Call;
pub type BridgeParachainCall = runtime_types::pallet_bridge_parachains::pallet::Call;
type UncheckedExtrinsic = bp_bridge_hub_rococo::UncheckedExtrinsic<RuntimeCall, SignedExtension>;
type UtilityCall = runtime_types::pallet_utility::pallet::Call;
Expand Down
2,120 changes: 1,005 additions & 1,115 deletions relay-clients/client-bridge-hub-westend/src/codegen_runtime.rs

Large diffs are not rendered by default.

Loading

0 comments on commit 0071134

Please sign in to comment.