Skip to content

Commit 186a82e

Browse files
Update runtime: BridgeHubPolkadot v2.1.1 (#3260)
- Update spec version to 2_001_001 - Bump substrate-relay version to v - Regenerate runtime code Co-authored-by: rosarp <1832625+rosarp@users.noreply.github.com>
1 parent 319db61 commit 186a82e

3 files changed

Lines changed: 64 additions & 29 deletions

File tree

relay-clients/client-bridge-hub-polkadot/src/codegen_runtime.rs

Lines changed: 62 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//! Autogenerated runtime API
1818
//! THIS FILE WAS AUTOGENERATED USING parity-bridges-common::runtime-codegen
1919
//! EXECUTED COMMAND: target/release/runtime-codegen --from-wasm-file
20-
//! /tmp/tmp.ER5ViBLgH2/bridge-hub-polkadot_runtime-v2000007.compact.compressed.wasm
20+
//! wbuild/bridge-hub-polkadot_runtime-v2001001.compact.compressed.wasm
2121
2222
#[allow(dead_code, unused_imports, non_camel_case_types, unreachable_patterns)]
2323
#[allow(clippy::all)]
@@ -652,7 +652,7 @@ pub mod api {
652652
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
653653
pub struct BasicParachainInherentData {
654654
pub validation_data:
655-
runtime_types::polkadot_primitives::v8::PersistedValidationData<
655+
runtime_types::polkadot_primitives::v9::PersistedValidationData<
656656
::subxt::ext::subxt_core::utils::H256,
657657
::core::primitive::u32,
658658
>,
@@ -700,13 +700,13 @@ pub mod api {
700700
pub ingress_channels: ::subxt::ext::subxt_core::alloc::vec::Vec<
701701
(
702702
runtime_types::polkadot_parachain_primitives::primitives::Id,
703-
runtime_types::polkadot_primitives::v8::AbridgedHrmpChannel,
703+
runtime_types::polkadot_primitives::v9::AbridgedHrmpChannel,
704704
),
705705
>,
706706
pub egress_channels: ::subxt::ext::subxt_core::alloc::vec::Vec<
707707
(
708708
runtime_types::polkadot_parachain_primitives::primitives::Id,
709-
runtime_types::polkadot_primitives::v8::AbridgedHrmpChannel,
709+
runtime_types::polkadot_primitives::v9::AbridgedHrmpChannel,
710710
),
711711
>,
712712
}
@@ -723,7 +723,7 @@ pub mod api {
723723
pub used_bandwidth: runtime_types::cumulus_pallet_parachain_system::unincluded_segment::UsedBandwidth,
724724
pub para_head_hash: ::core::option::Option<_0>,
725725
pub consumed_go_ahead_signal: ::core::option::Option<
726-
runtime_types::polkadot_primitives::v8::UpgradeGoAhead,
726+
runtime_types::polkadot_primitives::v9::UpgradeGoAhead,
727727
>,
728728
}
729729
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
@@ -736,7 +736,7 @@ pub mod api {
736736
pub used_bandwidth: runtime_types::cumulus_pallet_parachain_system::unincluded_segment::UsedBandwidth,
737737
pub hrmp_watermark: ::core::option::Option<::core::primitive::u32>,
738738
pub consumed_go_ahead_signal: ::core::option::Option<
739-
runtime_types::polkadot_primitives::v8::UpgradeGoAhead,
739+
runtime_types::polkadot_primitives::v9::UpgradeGoAhead,
740740
>,
741741
#[codec(skip)]
742742
pub __ignore: ::core::marker::PhantomData<_0>,
@@ -1373,40 +1373,76 @@ pub mod api {
13731373
#[codec(index = 10)]
13741374
Minted { who: ::sp_core::crypto::AccountId32, amount: ::core::primitive::u128 },
13751375
#[codec(index = 11)]
1376-
Burned { who: ::sp_core::crypto::AccountId32, amount: ::core::primitive::u128 },
1376+
MintedCredit { amount: ::core::primitive::u128 },
13771377
#[codec(index = 12)]
1378+
Burned { who: ::sp_core::crypto::AccountId32, amount: ::core::primitive::u128 },
1379+
#[codec(index = 13)]
1380+
BurnedDebt { amount: ::core::primitive::u128 },
1381+
#[codec(index = 14)]
13781382
Suspended {
13791383
who: ::sp_core::crypto::AccountId32,
13801384
amount: ::core::primitive::u128,
13811385
},
1382-
#[codec(index = 13)]
1386+
#[codec(index = 15)]
13831387
Restored {
13841388
who: ::sp_core::crypto::AccountId32,
13851389
amount: ::core::primitive::u128,
13861390
},
1387-
#[codec(index = 14)]
1391+
#[codec(index = 16)]
13881392
Upgraded { who: ::sp_core::crypto::AccountId32 },
1389-
#[codec(index = 15)]
1393+
#[codec(index = 17)]
13901394
Issued { amount: ::core::primitive::u128 },
1391-
#[codec(index = 16)]
1395+
#[codec(index = 18)]
13921396
Rescinded { amount: ::core::primitive::u128 },
1393-
#[codec(index = 17)]
1397+
#[codec(index = 19)]
13941398
Locked { who: ::sp_core::crypto::AccountId32, amount: ::core::primitive::u128 },
1395-
#[codec(index = 18)]
1399+
#[codec(index = 20)]
13961400
Unlocked {
13971401
who: ::sp_core::crypto::AccountId32,
13981402
amount: ::core::primitive::u128,
13991403
},
1400-
#[codec(index = 19)]
1404+
#[codec(index = 21)]
14011405
Frozen { who: ::sp_core::crypto::AccountId32, amount: ::core::primitive::u128 },
1402-
#[codec(index = 20)]
1406+
#[codec(index = 22)]
14031407
Thawed { who: ::sp_core::crypto::AccountId32, amount: ::core::primitive::u128 },
1404-
#[codec(index = 21)]
1408+
#[codec(index = 23)]
14051409
TotalIssuanceForced {
14061410
old: ::core::primitive::u128,
14071411
new: ::core::primitive::u128,
14081412
},
1409-
#[codec(index = 22)]
1413+
#[codec(index = 24)]
1414+
Held {
1415+
reason: runtime_types::bridge_hub_polkadot_runtime::RuntimeHoldReason,
1416+
who: ::sp_core::crypto::AccountId32,
1417+
amount: ::core::primitive::u128,
1418+
},
1419+
#[codec(index = 25)]
1420+
BurnedHeld {
1421+
reason: runtime_types::bridge_hub_polkadot_runtime::RuntimeHoldReason,
1422+
who: ::sp_core::crypto::AccountId32,
1423+
amount: ::core::primitive::u128,
1424+
},
1425+
#[codec(index = 26)]
1426+
TransferOnHold {
1427+
reason: runtime_types::bridge_hub_polkadot_runtime::RuntimeHoldReason,
1428+
source: ::sp_core::crypto::AccountId32,
1429+
dest: ::sp_core::crypto::AccountId32,
1430+
amount: ::core::primitive::u128,
1431+
},
1432+
#[codec(index = 27)]
1433+
TransferAndHold {
1434+
reason: runtime_types::bridge_hub_polkadot_runtime::RuntimeHoldReason,
1435+
source: ::sp_core::crypto::AccountId32,
1436+
dest: ::sp_core::crypto::AccountId32,
1437+
transferred: ::core::primitive::u128,
1438+
},
1439+
#[codec(index = 28)]
1440+
Released {
1441+
reason: runtime_types::bridge_hub_polkadot_runtime::RuntimeHoldReason,
1442+
who: ::sp_core::crypto::AccountId32,
1443+
amount: ::core::primitive::u128,
1444+
},
1445+
#[codec(index = 29)]
14101446
Unexpected(runtime_types::pallet_balances::pallet::UnexpectedKind),
14111447
}
14121448
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
@@ -2359,6 +2395,8 @@ pub mod api {
23592395
who: ::sp_core::crypto::AccountId32,
23602396
proxy_type: runtime_types::bridge_hub_polkadot_runtime::ProxyType,
23612397
disambiguation_index: ::core::primitive::u16,
2398+
at: ::core::primitive::u32,
2399+
extrinsic_index: ::core::primitive::u32,
23622400
},
23632401
#[codec(index = 2)]
23642402
PureKilled {
@@ -3275,7 +3313,7 @@ pub mod api {
32753313
}
32763314
pub mod polkadot_primitives {
32773315
use super::runtime_types;
3278-
pub mod v8 {
3316+
pub mod v9 {
32793317
use super::runtime_types;
32803318
pub mod async_backing {
32813319
use super::runtime_types;
@@ -3297,7 +3335,7 @@ pub mod api {
32973335
pub validation_upgrade_cooldown: ::core::primitive::u32,
32983336
pub validation_upgrade_delay: ::core::primitive::u32,
32993337
pub async_backing_params:
3300-
runtime_types::polkadot_primitives::v8::async_backing::AsyncBackingParams,
3338+
runtime_types::polkadot_primitives::v9::async_backing::AsyncBackingParams,
33013339
}
33023340
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
33033341
pub struct AbridgedHrmpChannel {
@@ -4348,14 +4386,9 @@ pub mod api {
43484386
}
43494387
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
43504388
pub struct Proof {
4351-
pub receipt_proof: (
4352-
::subxt::ext::subxt_core::alloc::vec::Vec<
4353-
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
4354-
>,
4355-
::subxt::ext::subxt_core::alloc::vec::Vec<
4356-
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
4357-
>,
4358-
),
4389+
pub receipt_proof: ::subxt::ext::subxt_core::alloc::vec::Vec<
4390+
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
4391+
>,
43594392
pub execution_proof:
43604393
runtime_types::snowbridge_beacon_primitives::types::ExecutionProof,
43614394
}
@@ -4560,6 +4593,8 @@ pub mod api {
45604593
Sr25519([::core::primitive::u8; 64usize]),
45614594
#[codec(index = 2)]
45624595
Ecdsa([::core::primitive::u8; 65usize]),
4596+
#[codec(index = 3)]
4597+
Eth([::core::primitive::u8; 65usize]),
45634598
}
45644599
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
45654600
pub enum TokenError {

relay-clients/client-bridge-hub-polkadot/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,5 @@ impl ChainWithMessages for BridgeHubPolkadot {
144144

145145
impl ChainWithRuntimeVersion for BridgeHubPolkadot {
146146
const RUNTIME_VERSION: Option<SimpleRuntimeVersion> =
147-
Some(SimpleRuntimeVersion { spec_version: 2_000_007, transaction_version: 4 });
147+
Some(SimpleRuntimeVersion { spec_version: 2_001_001, transaction_version: 4 });
148148
}

substrate-relay/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "substrate-relay"
3-
version = "1.8.19"
3+
version = "1.8.20"
44
authors.workspace = true
55
edition.workspace = true
66
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"

0 commit comments

Comments
 (0)