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

Relay v1.6.3: added support for bridge-hub-kusama/1002005 #3011

Merged
merged 4 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions relay-clients/client-bridge-hub-kusama/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ bp-messages = { git = "https://github.com/paritytech/polkadot-sdk", branch = "ma
bp-parachains = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-polkadot = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-polkadot-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bridge-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }

Expand Down
266 changes: 25 additions & 241 deletions relay-clients/client-bridge-hub-kusama/src/codegen_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

//! Autogenerated runtime API
//! THIS FILE WAS AUTOGENERATED USING parity-bridges-common::runtime-codegen
//! EXECUTED COMMAND: target/debug/runtime-codegen --from-node-url
//! wss://kusama-bridge-hub-rpc.polkadot.io
//! EXECUTED COMMAND: target/debug/runtime-codegen --from-wasm-file
//! bridge-hub-kusama_runtime-v1002005.compact.compressed.wasm

#[allow(dead_code, unused_imports, non_camel_case_types)]
#[allow(clippy::all)]
Expand Down Expand Up @@ -90,10 +90,6 @@ pub mod api {
pub last_confirmed_nonce: ::core::primitive::u64,
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct InboundMessageDetails {
pub dispatch_weight: ::sp_weights::Weight,
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct LaneId(pub [::core::primitive::u8; 4usize]);
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct MessageKey {
Expand All @@ -114,12 +110,6 @@ pub mod api {
pub latest_generated_nonce: ::core::primitive::u64,
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct OutboundMessageDetails {
pub nonce: ::core::primitive::u64,
pub dispatch_weight: ::sp_weights::Weight,
pub size: ::core::primitive::u32,
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub enum ReceivalResult<_0> {
#[codec(index = 0)]
Dispatched(runtime_types::bp_runtime::messages::MessageDispatchResult<_0>),
Expand Down Expand Up @@ -669,26 +659,6 @@ pub mod api {
pub resume_threshold: ::core::primitive::u32,
}
}
pub mod cumulus_primitives_core {
use super::runtime_types;
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct CollationInfo {
pub upward_messages: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
>,
pub horizontal_messages: ::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::polkadot_core_primitives::OutboundHrmpMessage<
runtime_types::polkadot_parachain_primitives::primitives::Id,
>,
>,
pub new_validation_code: ::core::option::Option<
runtime_types::polkadot_parachain_primitives::primitives::ValidationCode,
>,
pub processed_downward_messages: ::core::primitive::u32,
pub hrmp_watermark: ::core::primitive::u32,
pub head_data: runtime_types::polkadot_parachain_primitives::primitives::HeadData,
}
}
pub mod cumulus_primitives_parachain_inherent {
use super::runtime_types;
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
Expand Down Expand Up @@ -738,6 +708,29 @@ pub mod api {
pub id: _3,
}
}
pub mod frame_metadata_hash_extension {
use super::runtime_types;
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct CheckMetadataHash {
pub mode: runtime_types::frame_metadata_hash_extension::Mode,
}
#[derive(
::codec::Decode,
::codec::Encode,
Clone,
Debug,
Eq,
PartialEq,
scale_info::TypeInfo,
Copy,
)]
pub enum Mode {
#[codec(index = 0)]
Disabled,
#[codec(index = 1)]
Enabled,
}
}
pub mod frame_support {
use super::runtime_types;
pub mod dispatch {
Expand Down Expand Up @@ -1987,28 +1980,6 @@ pub mod api {
},
}
}
pub mod types {
use super::runtime_types;
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct FeeDetails<_0> {
pub inclusion_fee: ::core::option::Option<
runtime_types::pallet_transaction_payment::types::InclusionFee<_0>,
>,
pub tip: _0,
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct InclusionFee<_0> {
pub base_fee: _0,
pub len_fee: _0,
pub adjusted_weight_fee: _0,
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct RuntimeDispatchInfo<_0, _1> {
pub weight: _1,
pub class: runtime_types::frame_support::dispatch::DispatchClass,
pub partial_fee: _0,
}
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct ChargeTransactionPayment(#[codec(compact)] pub ::core::primitive::u128);
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
Expand Down Expand Up @@ -2520,10 +2491,6 @@ pub mod api {
PartialEq,
)]
pub struct Id(pub ::core::primitive::u32);
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct ValidationCode(
pub ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
);
}
}
pub mod polkadot_primitives {
Expand Down Expand Up @@ -2878,67 +2845,6 @@ pub mod api {
pub mod v1 {
use super::runtime_types;
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub enum AgentExecuteCommand {
#[codec(index = 0)]
TransferToken {
token: ::subxt::ext::subxt_core::utils::H160,
recipient: ::subxt::ext::subxt_core::utils::H160,
amount: ::core::primitive::u128,
},
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub enum Command {
#[codec(index = 0)]
AgentExecute {
agent_id: ::subxt::ext::subxt_core::utils::H256,
command:
runtime_types::snowbridge_core::outbound::v1::AgentExecuteCommand,
},
#[codec(index = 1)]
Upgrade {
impl_address: ::subxt::ext::subxt_core::utils::H160,
impl_code_hash: ::subxt::ext::subxt_core::utils::H256,
initializer: ::core::option::Option<
runtime_types::snowbridge_core::outbound::v1::Initializer,
>,
},
#[codec(index = 2)]
CreateAgent { agent_id: ::subxt::ext::subxt_core::utils::H256 },
#[codec(index = 3)]
CreateChannel {
channel_id: runtime_types::snowbridge_core::ChannelId,
agent_id: ::subxt::ext::subxt_core::utils::H256,
mode: runtime_types::snowbridge_core::outbound::v1::OperatingMode,
},
#[codec(index = 4)]
UpdateChannel {
channel_id: runtime_types::snowbridge_core::ChannelId,
mode: runtime_types::snowbridge_core::outbound::v1::OperatingMode,
},
#[codec(index = 5)]
SetOperatingMode {
mode: runtime_types::snowbridge_core::outbound::v1::OperatingMode,
},
#[codec(index = 6)]
TransferNativeFromAgent {
agent_id: ::subxt::ext::subxt_core::utils::H256,
recipient: ::subxt::ext::subxt_core::utils::H160,
amount: ::core::primitive::u128,
},
#[codec(index = 7)]
SetTokenTransferFees {
create_asset_xcm: ::core::primitive::u128,
transfer_asset_xcm: ::core::primitive::u128,
register_token: runtime_types::primitive_types::U256,
},
#[codec(index = 8)]
SetPricingParameters {
exchange_rate: runtime_types::snowbridge_core::pricing::UD60x18,
delivery_cost: ::core::primitive::u128,
multiplier: runtime_types::snowbridge_core::pricing::UD60x18,
},
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct Initializer {
pub params:
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
Expand All @@ -2953,11 +2859,6 @@ pub mod api {
}
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct Fee<_0> {
pub local: _0,
pub remote: _0,
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub enum SendError {
#[codec(index = 0)]
MessageTooLarge,
Expand All @@ -2981,8 +2882,6 @@ pub mod api {
pub local: _0,
pub remote: runtime_types::primitive_types::U256,
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct UD60x18(pub runtime_types::primitive_types::U256);
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct Channel {
Expand All @@ -3002,19 +2901,6 @@ pub mod api {
}
}
}
pub mod snowbridge_outbound_queue_merkle_tree {
use super::runtime_types;
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct MerkleProof {
pub root: ::subxt::ext::subxt_core::utils::H256,
pub proof: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::H256,
>,
pub number_of_leaves: ::core::primitive::u64,
pub leaf_index: ::core::primitive::u64,
pub leaf: ::subxt::ext::subxt_core::utils::H256,
}
}
pub mod snowbridge_pallet_ethereum_client {
use super::runtime_types;
pub mod pallet {
Expand Down Expand Up @@ -3454,15 +3340,6 @@ pub mod api {
PartialEq,
)]
pub struct Slot(pub ::core::primitive::u64);
#[derive(
::codec::Decode,
::codec::Encode,
::subxt::ext::subxt_core::ext::codec::CompactAs,
Clone,
Debug,
PartialEq,
)]
pub struct SlotDuration(pub ::core::primitive::u64);
}
pub mod sp_core {
use super::runtime_types;
Expand Down Expand Up @@ -3491,40 +3368,12 @@ pub mod api {
pub struct Signature(pub [::core::primitive::u8; 64usize]);
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct OpaqueMetadata(
pub ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
);
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub enum Void {}
}
pub mod sp_inherents {
use super::runtime_types;
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct CheckInherentsResult {
pub okay: ::core::primitive::bool,
pub fatal_error: ::core::primitive::bool,
pub errors: runtime_types::sp_inherents::InherentData,
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct InherentData {
pub data: ::subxt::ext::subxt_core::utils::KeyedVec<
[::core::primitive::u8; 8usize],
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
>,
}
}
pub mod sp_runtime {
use super::runtime_types;
pub mod generic {
use super::runtime_types;
pub mod block {
use super::runtime_types;
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct Block<_0, _1> {
pub header: _0,
pub extrinsics: ::subxt::ext::subxt_core::alloc::vec::Vec<_1>,
}
}
pub mod digest {
use super::runtime_types;
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
Expand All @@ -3551,71 +3400,6 @@ pub mod api {
}
}
}
pub mod transaction_validity {
use super::runtime_types;
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub enum InvalidTransaction {
#[codec(index = 0)]
Call,
#[codec(index = 1)]
Payment,
#[codec(index = 2)]
Future,
#[codec(index = 3)]
Stale,
#[codec(index = 4)]
BadProof,
#[codec(index = 5)]
AncientBirthBlock,
#[codec(index = 6)]
ExhaustsResources,
#[codec(index = 7)]
Custom(::core::primitive::u8),
#[codec(index = 8)]
BadMandatory,
#[codec(index = 9)]
MandatoryValidation,
#[codec(index = 10)]
BadSigner,
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub enum TransactionSource {
#[codec(index = 0)]
InBlock,
#[codec(index = 1)]
Local,
#[codec(index = 2)]
External,
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub enum TransactionValidityError {
#[codec(index = 0)]
Invalid(runtime_types::sp_runtime::transaction_validity::InvalidTransaction),
#[codec(index = 1)]
Unknown(runtime_types::sp_runtime::transaction_validity::UnknownTransaction),
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub enum UnknownTransaction {
#[codec(index = 0)]
CannotLookup,
#[codec(index = 1)]
NoUnsignedValidator,
#[codec(index = 2)]
Custom(::core::primitive::u8),
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub struct ValidTransaction {
pub priority: ::core::primitive::u64,
pub requires: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
>,
pub provides: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
>,
pub longevity: ::core::primitive::u64,
pub propagate: ::core::primitive::bool,
}
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub enum DispatchError {
#[codec(index = 0)]
Expand Down
Loading