Skip to content
......@@ -17,7 +17,7 @@
//! Autogenerated runtime API
//! THIS FILE WAS AUTOGENERATED USING parity-bridges-common::runtime-codegen
//! EXECUTED COMMAND: target/debug/runtime-codegen --from-node-url
//! wss://polkadot-bridge-hub-rpc.polkadot.io
//! wss://polkadot-bridge-hub-rpc.polkadot.io/
#[allow(dead_code, unused_imports, non_camel_case_types)]
#[allow(clippy::all)]
......@@ -31,6 +31,11 @@ pub mod api {
use super::runtime_types;
pub mod bounded_collections {
use super::runtime_types;
pub mod bounded_btree_set {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct BoundedBTreeSet<_0>(pub ::std::vec::Vec<_0>);
}
pub mod bounded_vec {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
......@@ -244,6 +249,23 @@ pub mod api {
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct StrippableError;
}
pub mod bridge_hub_common {
use super::runtime_types;
pub mod message_queue {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum AggregateMessageOrigin {
#[codec(index = 0)]
Here,
#[codec(index = 1)]
Parent,
#[codec(index = 2)]
Sibling(runtime_types::polkadot_parachain_primitives::primitives::Id),
#[codec(index = 3)]
Snowbridge(runtime_types::snowbridge_core::ChannelId),
}
}
}
pub mod bridge_hub_polkadot_runtime {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
......@@ -273,6 +295,8 @@ pub mod api {
ParachainSystem(runtime_types::cumulus_pallet_parachain_system::pallet::Call),
#[codec(index = 2)]
Timestamp(runtime_types::pallet_timestamp::pallet::Call),
#[codec(index = 3)]
ParachainInfo(runtime_types::staging_parachain_info::pallet::Call),
#[codec(index = 10)]
Balances(runtime_types::pallet_balances::pallet::Call),
#[codec(index = 21)]
......@@ -283,6 +307,8 @@ pub mod api {
XcmpQueue(runtime_types::cumulus_pallet_xcmp_queue::pallet::Call),
#[codec(index = 31)]
PolkadotXcm(runtime_types::pallet_xcm::pallet::Call),
#[codec(index = 32)]
CumulusXcm(runtime_types::cumulus_pallet_xcm::pallet::Call),
#[codec(index = 33)]
DmpQueue(runtime_types::cumulus_pallet_dmp_queue::pallet::Call),
#[codec(index = 40)]
......@@ -297,6 +323,20 @@ pub mod api {
BridgeKusamaParachains(runtime_types::pallet_bridge_parachains::pallet::Call),
#[codec(index = 53)]
BridgeKusamaMessages(runtime_types::pallet_bridge_messages::pallet::Call),
#[codec(index = 80)]
EthereumInboundQueue(runtime_types::snowbridge_pallet_inbound_queue::pallet::Call),
#[codec(index = 81)]
EthereumOutboundQueue(
runtime_types::snowbridge_pallet_outbound_queue::pallet::Call,
),
#[codec(index = 82)]
EthereumBeaconClient(
runtime_types::snowbridge_pallet_ethereum_client::pallet::Call,
),
#[codec(index = 83)]
EthereumSystem(runtime_types::snowbridge_pallet_system::pallet::Call),
#[codec(index = 175)]
MessageQueue(runtime_types::pallet_message_queue::pallet::Call),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum RuntimeError {
......@@ -314,10 +354,6 @@ pub mod api {
XcmpQueue(runtime_types::cumulus_pallet_xcmp_queue::pallet::Error),
#[codec(index = 31)]
PolkadotXcm(runtime_types::pallet_xcm::pallet::Error),
#[codec(index = 32)]
CumulusXcm(runtime_types::cumulus_pallet_xcm::pallet::Error),
#[codec(index = 33)]
DmpQueue(runtime_types::cumulus_pallet_dmp_queue::pallet::Error),
#[codec(index = 40)]
Utility(runtime_types::pallet_utility::pallet::Error),
#[codec(index = 41)]
......@@ -330,6 +366,20 @@ pub mod api {
BridgeKusamaParachains(runtime_types::pallet_bridge_parachains::pallet::Error),
#[codec(index = 53)]
BridgeKusamaMessages(runtime_types::pallet_bridge_messages::pallet::Error),
#[codec(index = 80)]
EthereumInboundQueue(runtime_types::snowbridge_pallet_inbound_queue::pallet::Error),
#[codec(index = 81)]
EthereumOutboundQueue(
runtime_types::snowbridge_pallet_outbound_queue::pallet::Error,
),
#[codec(index = 82)]
EthereumBeaconClient(
runtime_types::snowbridge_pallet_ethereum_client::pallet::Error,
),
#[codec(index = 83)]
EthereumSystem(runtime_types::snowbridge_pallet_system::pallet::Error),
#[codec(index = 175)]
MessageQueue(runtime_types::pallet_message_queue::pallet::Error),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum RuntimeEvent {
......@@ -365,6 +415,20 @@ pub mod api {
BridgeKusamaParachains(runtime_types::pallet_bridge_parachains::pallet::Event),
#[codec(index = 53)]
BridgeKusamaMessages(runtime_types::pallet_bridge_messages::pallet::Event),
#[codec(index = 80)]
EthereumInboundQueue(runtime_types::snowbridge_pallet_inbound_queue::pallet::Event),
#[codec(index = 81)]
EthereumOutboundQueue(
runtime_types::snowbridge_pallet_outbound_queue::pallet::Event,
),
#[codec(index = 82)]
EthereumBeaconClient(
runtime_types::snowbridge_pallet_ethereum_client::pallet::Event,
),
#[codec(index = 83)]
EthereumSystem(runtime_types::snowbridge_pallet_system::pallet::Event),
#[codec(index = 175)]
MessageQueue(runtime_types::pallet_message_queue::pallet::Event),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum RuntimeHoldReason {}
......@@ -392,7 +456,7 @@ pub mod api {
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct RefundBridgedParachainMessages;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct RefundTransactionExtensionAdapter<_0>(pub _0);
pub struct RefundSignedExtensionAdapter<_0>(pub _0);
}
}
pub mod cumulus_pallet_dmp_queue {
......@@ -400,65 +464,56 @@ pub mod api {
pub mod pallet {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Call {
#[codec(index = 0)]
service_overweight {
index: ::core::primitive::u64,
weight_limit: ::sp_weights::Weight,
},
}
pub enum Call {}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
pub enum Event {
#[codec(index = 0)]
Unknown,
StartedExport,
#[codec(index = 1)]
OverLimit,
Exported { page: ::core::primitive::u32 },
#[codec(index = 2)]
ExportFailed { page: ::core::primitive::u32 },
#[codec(index = 3)]
CompletedExport,
#[codec(index = 4)]
StartedOverweightExport,
#[codec(index = 5)]
ExportedOverweight { index: ::core::primitive::u64 },
#[codec(index = 6)]
ExportOverweightFailed { index: ::core::primitive::u64 },
#[codec(index = 7)]
CompletedOverweightExport,
#[codec(index = 8)]
StartedCleanup,
#[codec(index = 9)]
CleanedSome { keys_removed: ::core::primitive::u32 },
#[codec(index = 10)]
Completed { error: ::core::primitive::bool },
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
pub enum MigrationState {
#[codec(index = 0)]
InvalidFormat { message_hash: [::core::primitive::u8; 32usize] },
NotStarted,
#[codec(index = 1)]
UnsupportedVersion { message_hash: [::core::primitive::u8; 32usize] },
StartedExport { next_begin_used: ::core::primitive::u32 },
#[codec(index = 2)]
ExecutedDownward {
message_hash: [::core::primitive::u8; 32usize],
message_id: [::core::primitive::u8; 32usize],
outcome: runtime_types::xcm::v3::traits::Outcome,
},
CompletedExport,
#[codec(index = 3)]
WeightExhausted {
message_hash: [::core::primitive::u8; 32usize],
message_id: [::core::primitive::u8; 32usize],
remaining_weight: ::sp_weights::Weight,
required_weight: ::sp_weights::Weight,
},
StartedOverweightExport { next_overweight_index: ::core::primitive::u64 },
#[codec(index = 4)]
OverweightEnqueued {
message_hash: [::core::primitive::u8; 32usize],
message_id: [::core::primitive::u8; 32usize],
overweight_index: ::core::primitive::u64,
required_weight: ::sp_weights::Weight,
},
CompletedOverweightExport,
#[codec(index = 5)]
OverweightServiced {
overweight_index: ::core::primitive::u64,
weight_used: ::sp_weights::Weight,
StartedCleanup {
cursor: ::core::option::Option<
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
>,
},
#[codec(index = 6)]
MaxMessagesExhausted { message_hash: [::core::primitive::u8; 32usize] },
Completed,
}
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct ConfigData {
pub max_individual: ::sp_weights::Weight,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct PageIndexData {
pub begin_used: ::core::primitive::u32,
pub end_used: ::core::primitive::u32,
pub overweight_count: ::core::primitive::u64,
}
}
pub mod cumulus_pallet_parachain_system {
use super::runtime_types;
......@@ -495,15 +550,13 @@ pub mod api {
#[codec(index = 2)]
ValidationFunctionDiscarded,
#[codec(index = 3)]
UpgradeAuthorized { code_hash: ::subxt::utils::H256 },
#[codec(index = 4)]
DownwardMessagesReceived { count: ::core::primitive::u32 },
#[codec(index = 5)]
#[codec(index = 4)]
DownwardMessagesProcessed {
weight_used: ::sp_weights::Weight,
dmq_head: ::subxt::utils::H256,
},
#[codec(index = 6)]
#[codec(index = 5)]
UpwardMessageSent {
message_hash: ::core::option::Option<[::core::primitive::u8; 32usize]>,
},
......@@ -533,18 +586,13 @@ pub mod api {
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct UsedBandwidth { pub ump_msg_count : :: core :: primitive :: u32 , pub ump_total_bytes : :: core :: primitive :: u32 , pub hrmp_outgoing : :: subxt :: utils :: KeyedVec < runtime_types :: polkadot_parachain_primitives :: primitives :: Id , runtime_types :: cumulus_pallet_parachain_system :: unincluded_segment :: HrmpChannelUpdate > , }
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct CodeUpgradeAuthorization {
pub code_hash: ::subxt::utils::H256,
pub check_version: ::core::primitive::bool,
}
}
pub mod cumulus_pallet_xcm {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {}
pub enum Call {}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
#[codec(index = 0)]
......@@ -554,7 +602,7 @@ pub mod api {
#[codec(index = 2)]
ExecutedDownward(
[::core::primitive::u8; 32usize],
runtime_types::xcm::v3::traits::Outcome,
runtime_types::staging_xcm::v4::traits::Outcome,
),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
......@@ -572,11 +620,6 @@ pub mod api {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Call {
#[codec(index = 0)]
service_overweight {
index: ::core::primitive::u64,
weight_limit: ::sp_weights::Weight,
},
#[codec(index = 1)]
suspend_xcm_execution,
#[codec(index = 2)]
......@@ -587,75 +630,23 @@ pub mod api {
update_drop_threshold { new: ::core::primitive::u32 },
#[codec(index = 5)]
update_resume_threshold { new: ::core::primitive::u32 },
#[codec(index = 6)]
update_threshold_weight { new: ::sp_weights::Weight },
#[codec(index = 7)]
update_weight_restrict_decay { new: ::sp_weights::Weight },
#[codec(index = 8)]
update_xcmp_max_individual_weight { new: ::sp_weights::Weight },
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
#[codec(index = 0)]
FailedToSend,
BadQueueConfig,
#[codec(index = 1)]
BadXcmOrigin,
AlreadySuspended,
#[codec(index = 2)]
BadXcm,
#[codec(index = 3)]
BadOverweightIndex,
#[codec(index = 4)]
WeightOverLimit,
AlreadyResumed,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
#[codec(index = 0)]
Success {
message_hash: [::core::primitive::u8; 32usize],
message_id: [::core::primitive::u8; 32usize],
weight: ::sp_weights::Weight,
},
#[codec(index = 1)]
Fail {
message_hash: [::core::primitive::u8; 32usize],
message_id: [::core::primitive::u8; 32usize],
error: runtime_types::xcm::v3::traits::Error,
weight: ::sp_weights::Weight,
},
#[codec(index = 2)]
BadVersion { message_hash: [::core::primitive::u8; 32usize] },
#[codec(index = 3)]
BadFormat { message_hash: [::core::primitive::u8; 32usize] },
#[codec(index = 4)]
XcmpMessageSent { message_hash: [::core::primitive::u8; 32usize] },
#[codec(index = 5)]
OverweightEnqueued {
sender: runtime_types::polkadot_parachain_primitives::primitives::Id,
sent_at: ::core::primitive::u32,
index: ::core::primitive::u64,
required: ::sp_weights::Weight,
},
#[codec(index = 6)]
OverweightServiced { index: ::core::primitive::u64, used: ::sp_weights::Weight },
}
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct InboundChannelDetails {
pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id,
pub state: runtime_types::cumulus_pallet_xcmp_queue::InboundState,
pub message_metadata: ::std::vec::Vec<(
::core::primitive::u32,
runtime_types::polkadot_parachain_primitives::primitives::XcmpMessageFormat,
)>,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum InboundState {
#[codec(index = 0)]
Ok,
#[codec(index = 1)]
Suspended,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct OutboundChannelDetails {
pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id,
pub state: runtime_types::cumulus_pallet_xcmp_queue::OutboundState,
......@@ -675,9 +666,6 @@ pub mod api {
pub suspend_threshold: ::core::primitive::u32,
pub drop_threshold: ::core::primitive::u32,
pub resume_threshold: ::core::primitive::u32,
pub threshold_weight: ::sp_weights::Weight,
pub weight_restrict_decay: ::sp_weights::Weight,
pub xcmp_max_individual_weight: ::sp_weights::Weight,
}
}
pub mod cumulus_primitives_core {
......@@ -791,6 +779,22 @@ pub mod api {
}
pub mod traits {
use super::runtime_types;
pub mod messages {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum ProcessMessageError {
#[codec(index = 0)]
BadFormat,
#[codec(index = 1)]
Corrupt,
#[codec(index = 2)]
Unsupported,
#[codec(index = 3)]
Overweight(::sp_weights::Weight),
#[codec(index = 4)]
Yield,
}
}
pub mod tokens {
use super::runtime_types;
pub mod misc {
......@@ -900,6 +904,12 @@ pub mod api {
},
#[codec(index = 7)]
remark_with_event { remark: ::std::vec::Vec<::core::primitive::u8> },
#[codec(index = 9)]
authorize_upgrade { code_hash: ::subxt::utils::H256 },
#[codec(index = 10)]
authorize_upgrade_without_checks { code_hash: ::subxt::utils::H256 },
#[codec(index = 11)]
apply_authorized_upgrade { code: ::std::vec::Vec<::core::primitive::u8> },
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
......@@ -915,6 +925,10 @@ pub mod api {
NonZeroRefCount,
#[codec(index = 5)]
CallFiltered,
#[codec(index = 6)]
NothingAuthorized,
#[codec(index = 7)]
Unauthorized,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
......@@ -935,6 +949,11 @@ pub mod api {
KilledAccount { account: ::sp_core::crypto::AccountId32 },
#[codec(index = 5)]
Remarked { sender: ::sp_core::crypto::AccountId32, hash: ::subxt::utils::H256 },
#[codec(index = 6)]
UpgradeAuthorized {
code_hash: ::subxt::utils::H256,
check_version: ::core::primitive::bool,
},
}
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
......@@ -946,6 +965,11 @@ pub mod api {
pub data: _1,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct CodeUpgradeAuthorization {
pub code_hash: ::subxt::utils::H256,
pub check_version: ::core::primitive::bool,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct EventRecord<_0, _1> {
pub phase: runtime_types::frame_system::Phase,
pub event: _0,
......@@ -1010,6 +1034,12 @@ pub mod api {
#[codec(compact)]
new_free: ::core::primitive::u128,
},
#[codec(index = 9)]
force_adjust_total_issuance {
direction: runtime_types::pallet_balances::types::AdjustmentDirection,
#[codec(compact)]
delta: ::core::primitive::u128,
},
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
......@@ -1033,6 +1063,10 @@ pub mod api {
TooManyHolds,
#[codec(index = 9)]
TooManyFreezes,
#[codec(index = 10)]
IssuanceDeactivated,
#[codec(index = 11)]
DeltaZero,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
......@@ -1115,6 +1149,11 @@ pub mod api {
Frozen { who: ::sp_core::crypto::AccountId32, amount: ::core::primitive::u128 },
#[codec(index = 20)]
Thawed { who: ::sp_core::crypto::AccountId32, amount: ::core::primitive::u128 },
#[codec(index = 21)]
TotalIssuanceForced {
old: ::core::primitive::u128,
new: ::core::primitive::u128,
},
}
}
pub mod types {
......@@ -1127,6 +1166,13 @@ pub mod api {
pub flags: runtime_types::pallet_balances::types::ExtraFlags,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum AdjustmentDirection {
#[codec(index = 0)]
Increase,
#[codec(index = 1)]
Decrease,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct BalanceLock<_0> {
pub id: [::core::primitive::u8; 8usize],
pub amount: _0,
......@@ -1271,7 +1317,7 @@ pub mod api {
# [codec (index = 0)] set_owner { new_owner : :: core :: option :: Option < :: sp_core :: crypto :: AccountId32 > , } , # [codec (index = 1)] set_operating_mode { operating_mode : runtime_types :: bp_messages :: MessagesOperatingMode , } , # [codec (index = 2)] receive_messages_proof { relayer_id_at_bridged_chain : :: sp_core :: crypto :: AccountId32 , proof : :: bridge_runtime_common :: messages :: target :: FromBridgedChainMessagesProof < :: subxt :: utils :: H256 > , messages_count : :: core :: primitive :: u32 , dispatch_weight : :: sp_weights :: Weight , } , # [codec (index = 3)] receive_messages_delivery_proof { proof : :: bridge_runtime_common :: messages :: source :: FromBridgedChainMessagesDeliveryProof < :: subxt :: utils :: H256 > , relayers_state : :: bp_messages :: UnrewardedRelayersState , } , }
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
# [codec (index = 0)] NotOperatingNormally , # [codec (index = 1)] InactiveOutboundLane , # [codec (index = 2)] MessageDispatchInactive , # [codec (index = 3)] MessageRejectedByChainVerifier (runtime_types :: bp_messages :: VerificationError ,) , # [codec (index = 4)] MessageRejectedByLaneVerifier (runtime_types :: bp_messages :: VerificationError ,) , # [codec (index = 5)] MessageRejectedByPallet (runtime_types :: bp_messages :: VerificationError ,) , # [codec (index = 6)] FailedToWithdrawMessageFee , # [codec (index = 7)] TooManyMessagesInTheProof , # [codec (index = 8)] InvalidMessagesProof , # [codec (index = 9)] InvalidMessagesDeliveryProof , # [codec (index = 10)] InvalidUnrewardedRelayersState , # [codec (index = 11)] InsufficientDispatchWeight , # [codec (index = 12)] MessageIsNotYetSent , # [codec (index = 13)] ReceivalConfirmation (runtime_types :: pallet_bridge_messages :: outbound_lane :: ReceivalConfirmationError ,) , # [codec (index = 14)] BridgeModule (runtime_types :: bp_runtime :: OwnedBridgeModuleError ,) , }
# [codec (index = 0)] NotOperatingNormally , # [codec (index = 1)] InactiveOutboundLane , # [codec (index = 2)] MessageDispatchInactive , # [codec (index = 3)] MessageRejectedByChainVerifier (runtime_types :: bp_messages :: VerificationError ,) , # [codec (index = 4)] MessageRejectedByPallet (runtime_types :: bp_messages :: VerificationError ,) , # [codec (index = 5)] FailedToWithdrawMessageFee , # [codec (index = 6)] TooManyMessagesInTheProof , # [codec (index = 7)] InvalidMessagesProof , # [codec (index = 8)] InvalidMessagesDeliveryProof , # [codec (index = 9)] InvalidUnrewardedRelayersState , # [codec (index = 10)] InsufficientDispatchWeight , # [codec (index = 11)] MessageIsNotYetSent , # [codec (index = 12)] ReceivalConfirmation (runtime_types :: pallet_bridge_messages :: outbound_lane :: ReceivalConfirmationError ,) , # [codec (index = 13)] BridgeModule (runtime_types :: bp_runtime :: OwnedBridgeModuleError ,) , }
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
# [codec (index = 0)] MessageAccepted { lane_id : runtime_types :: bp_messages :: LaneId , nonce : :: core :: primitive :: u64 , } , # [codec (index = 1)] MessagesReceived (:: std :: vec :: Vec < runtime_types :: bp_messages :: ReceivedMessages < runtime_types :: bridge_runtime_common :: messages_xcm_extension :: XcmBlobMessageDispatchResult > > ,) , # [codec (index = 2)] MessagesDelivered { lane_id : runtime_types :: bp_messages :: LaneId , messages : runtime_types :: bp_messages :: DeliveredMessages , } , }
......@@ -1378,12 +1424,18 @@ pub mod api {
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
#[codec(index = 0)]
RewardPaid {
RewardRegistered {
relayer: ::sp_core::crypto::AccountId32,
rewards_account_params: runtime_types::bp_relayers::RewardsAccountParams,
reward: ::core::primitive::u128,
},
#[codec(index = 1)]
RewardPaid {
relayer: ::sp_core::crypto::AccountId32,
rewards_account_params: runtime_types::bp_relayers::RewardsAccountParams,
reward: ::core::primitive::u128,
},
#[codec(index = 2)]
RegistrationUpdated {
relayer: ::sp_core::crypto::AccountId32,
registration: runtime_types::bp_relayers::registration::Registration<
......@@ -1391,9 +1443,9 @@ pub mod api {
::core::primitive::u128,
>,
},
#[codec(index = 2)]
Deregistered { relayer: ::sp_core::crypto::AccountId32 },
#[codec(index = 3)]
Deregistered { relayer: ::sp_core::crypto::AccountId32 },
#[codec(index = 4)]
SlashedAndDeregistered {
relayer: ::sp_core::crypto::AccountId32,
registration: runtime_types::bp_relayers::registration::Registration<
......@@ -1424,6 +1476,13 @@ pub mod api {
add_invulnerable { who: ::sp_core::crypto::AccountId32 },
#[codec(index = 6)]
remove_invulnerable { who: ::sp_core::crypto::AccountId32 },
#[codec(index = 7)]
update_bond { new_deposit: ::core::primitive::u128 },
#[codec(index = 8)]
take_candidate_slot {
deposit: ::core::primitive::u128,
target: ::sp_core::crypto::AccountId32,
},
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct CandidateInfo<_0, _1> {
......@@ -1450,6 +1509,22 @@ pub mod api {
NoAssociatedValidatorId,
#[codec(index = 8)]
ValidatorNotRegistered,
#[codec(index = 9)]
InsertToCandidateListFailed,
#[codec(index = 10)]
RemoveFromCandidateListFailed,
#[codec(index = 11)]
DepositTooLow,
#[codec(index = 12)]
UpdateCandidateListFailed,
#[codec(index = 13)]
InsufficientBond,
#[codec(index = 14)]
TargetIsNotCandidate,
#[codec(index = 15)]
IdenticalDeposit,
#[codec(index = 16)]
InvalidUnreserve,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
......@@ -1471,12 +1546,125 @@ pub mod api {
deposit: ::core::primitive::u128,
},
#[codec(index = 6)]
CandidateRemoved { account_id: ::sp_core::crypto::AccountId32 },
CandidateBondUpdated {
account_id: ::sp_core::crypto::AccountId32,
deposit: ::core::primitive::u128,
},
#[codec(index = 7)]
CandidateRemoved { account_id: ::sp_core::crypto::AccountId32 },
#[codec(index = 8)]
CandidateReplaced {
old: ::sp_core::crypto::AccountId32,
new: ::sp_core::crypto::AccountId32,
deposit: ::core::primitive::u128,
},
#[codec(index = 9)]
InvalidInvulnerableSkipped { account_id: ::sp_core::crypto::AccountId32 },
}
}
}
pub mod pallet_message_queue {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Call {
#[codec(index = 0)]
reap_page {
message_origin:
runtime_types::bridge_hub_common::message_queue::AggregateMessageOrigin,
page_index: ::core::primitive::u32,
},
#[codec(index = 1)]
execute_overweight {
message_origin:
runtime_types::bridge_hub_common::message_queue::AggregateMessageOrigin,
page: ::core::primitive::u32,
index: ::core::primitive::u32,
weight_limit: ::sp_weights::Weight,
},
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
#[codec(index = 0)]
NotReapable,
#[codec(index = 1)]
NoPage,
#[codec(index = 2)]
NoMessage,
#[codec(index = 3)]
AlreadyProcessed,
#[codec(index = 4)]
Queued,
#[codec(index = 5)]
InsufficientWeight,
#[codec(index = 6)]
TemporarilyUnprocessable,
#[codec(index = 7)]
QueuePaused,
#[codec(index = 8)]
RecursiveDisallowed,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
#[codec(index = 0)]
ProcessingFailed {
id: ::subxt::utils::H256,
origin:
runtime_types::bridge_hub_common::message_queue::AggregateMessageOrigin,
error: runtime_types::frame_support::traits::messages::ProcessMessageError,
},
#[codec(index = 1)]
Processed {
id: ::subxt::utils::H256,
origin:
runtime_types::bridge_hub_common::message_queue::AggregateMessageOrigin,
weight_used: ::sp_weights::Weight,
success: ::core::primitive::bool,
},
#[codec(index = 2)]
OverweightEnqueued {
id: [::core::primitive::u8; 32usize],
origin:
runtime_types::bridge_hub_common::message_queue::AggregateMessageOrigin,
page_index: ::core::primitive::u32,
message_index: ::core::primitive::u32,
},
#[codec(index = 3)]
PageReaped {
origin:
runtime_types::bridge_hub_common::message_queue::AggregateMessageOrigin,
index: ::core::primitive::u32,
},
}
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct BookState<_0> {
pub begin: ::core::primitive::u32,
pub end: ::core::primitive::u32,
pub count: ::core::primitive::u32,
pub ready_neighbours:
::core::option::Option<runtime_types::pallet_message_queue::Neighbours<_0>>,
pub message_count: ::core::primitive::u64,
pub size: ::core::primitive::u64,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Neighbours<_0> {
pub prev: _0,
pub next: _0,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Page<_0> {
pub remaining: _0,
pub remaining_size: _0,
pub first_index: _0,
pub first: _0,
pub last: _0,
pub heap: runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
}
}
pub mod pallet_multisig {
use super::runtime_types;
pub mod pallet {
......@@ -1779,21 +1967,21 @@ pub mod api {
pub enum Call {
#[codec(index = 0)]
send {
dest: ::std::boxed::Box<runtime_types::xcm::VersionedMultiLocation>,
dest: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
message: ::std::boxed::Box<runtime_types::xcm::VersionedXcm>,
},
#[codec(index = 1)]
teleport_assets {
dest: ::std::boxed::Box<runtime_types::xcm::VersionedMultiLocation>,
beneficiary: ::std::boxed::Box<runtime_types::xcm::VersionedMultiLocation>,
assets: ::std::boxed::Box<runtime_types::xcm::VersionedMultiAssets>,
dest: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
beneficiary: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
assets: ::std::boxed::Box<runtime_types::xcm::VersionedAssets>,
fee_asset_item: ::core::primitive::u32,
},
#[codec(index = 2)]
reserve_transfer_assets {
dest: ::std::boxed::Box<runtime_types::xcm::VersionedMultiLocation>,
beneficiary: ::std::boxed::Box<runtime_types::xcm::VersionedMultiLocation>,
assets: ::std::boxed::Box<runtime_types::xcm::VersionedMultiAssets>,
dest: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
beneficiary: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
assets: ::std::boxed::Box<runtime_types::xcm::VersionedAssets>,
fee_asset_item: ::core::primitive::u32,
},
#[codec(index = 3)]
......@@ -1803,9 +1991,8 @@ pub mod api {
},
#[codec(index = 4)]
force_xcm_version {
location: ::std::boxed::Box<
runtime_types::staging_xcm::v3::multilocation::MultiLocation,
>,
location:
::std::boxed::Box<runtime_types::staging_xcm::v4::location::Location>,
version: ::core::primitive::u32,
},
#[codec(index = 5)]
......@@ -1814,30 +2001,43 @@ pub mod api {
},
#[codec(index = 6)]
force_subscribe_version_notify {
location: ::std::boxed::Box<runtime_types::xcm::VersionedMultiLocation>,
location: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
},
#[codec(index = 7)]
force_unsubscribe_version_notify {
location: ::std::boxed::Box<runtime_types::xcm::VersionedMultiLocation>,
location: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
},
#[codec(index = 8)]
limited_reserve_transfer_assets {
dest: ::std::boxed::Box<runtime_types::xcm::VersionedMultiLocation>,
beneficiary: ::std::boxed::Box<runtime_types::xcm::VersionedMultiLocation>,
assets: ::std::boxed::Box<runtime_types::xcm::VersionedMultiAssets>,
dest: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
beneficiary: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
assets: ::std::boxed::Box<runtime_types::xcm::VersionedAssets>,
fee_asset_item: ::core::primitive::u32,
weight_limit: runtime_types::xcm::v3::WeightLimit,
},
#[codec(index = 9)]
limited_teleport_assets {
dest: ::std::boxed::Box<runtime_types::xcm::VersionedMultiLocation>,
beneficiary: ::std::boxed::Box<runtime_types::xcm::VersionedMultiLocation>,
assets: ::std::boxed::Box<runtime_types::xcm::VersionedMultiAssets>,
dest: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
beneficiary: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
assets: ::std::boxed::Box<runtime_types::xcm::VersionedAssets>,
fee_asset_item: ::core::primitive::u32,
weight_limit: runtime_types::xcm::v3::WeightLimit,
},
#[codec(index = 10)]
force_suspension { suspended: ::core::primitive::bool },
#[codec(index = 11)]
transfer_assets {
dest: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
beneficiary: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
assets: ::std::boxed::Box<runtime_types::xcm::VersionedAssets>,
fee_asset_item: ::core::primitive::u32,
weight_limit: runtime_types::xcm::v3::WeightLimit,
},
#[codec(index = 12)]
claim_assets {
assets: ::std::boxed::Box<runtime_types::xcm::VersionedAssets>,
beneficiary: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
},
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
......@@ -1868,7 +2068,7 @@ pub mod api {
#[codec(index = 12)]
AlreadySubscribed,
#[codec(index = 13)]
InvalidAsset,
CannotCheckOutTeleport,
#[codec(index = 14)]
LowBalance,
#[codec(index = 15)]
......@@ -1881,27 +2081,37 @@ pub mod api {
LockNotFound,
#[codec(index = 19)]
InUse,
#[codec(index = 20)]
InvalidAssetNotConcrete,
#[codec(index = 21)]
InvalidAssetUnknownReserve,
#[codec(index = 22)]
InvalidAssetUnsupportedReserve,
#[codec(index = 23)]
TooManyReserves,
#[codec(index = 24)]
LocalExecutionIncomplete,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
#[codec(index = 0)]
Attempted { outcome: runtime_types::xcm::v3::traits::Outcome },
Attempted { outcome: runtime_types::staging_xcm::v4::traits::Outcome },
#[codec(index = 1)]
Sent {
origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation,
destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation,
message: runtime_types::xcm::v3::Xcm,
origin: runtime_types::staging_xcm::v4::location::Location,
destination: runtime_types::staging_xcm::v4::location::Location,
message: runtime_types::staging_xcm::v4::Xcm,
message_id: [::core::primitive::u8; 32usize],
},
#[codec(index = 2)]
UnexpectedResponse {
origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation,
origin: runtime_types::staging_xcm::v4::location::Location,
query_id: ::core::primitive::u64,
},
#[codec(index = 3)]
ResponseReady {
query_id: ::core::primitive::u64,
response: runtime_types::xcm::v3::Response,
response: runtime_types::staging_xcm::v4::Response,
},
#[codec(index = 4)]
Notified {
......@@ -1931,15 +2141,15 @@ pub mod api {
},
#[codec(index = 8)]
InvalidResponder {
origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation,
origin: runtime_types::staging_xcm::v4::location::Location,
query_id: ::core::primitive::u64,
expected_location: ::core::option::Option<
runtime_types::staging_xcm::v3::multilocation::MultiLocation,
runtime_types::staging_xcm::v4::location::Location,
>,
},
#[codec(index = 9)]
InvalidResponderVersion {
origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation,
origin: runtime_types::staging_xcm::v4::location::Location,
query_id: ::core::primitive::u64,
},
#[codec(index = 10)]
......@@ -1947,98 +2157,99 @@ pub mod api {
#[codec(index = 11)]
AssetsTrapped {
hash: ::subxt::utils::H256,
origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation,
assets: runtime_types::xcm::VersionedMultiAssets,
origin: runtime_types::staging_xcm::v4::location::Location,
assets: runtime_types::xcm::VersionedAssets,
},
#[codec(index = 12)]
VersionChangeNotified {
destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation,
destination: runtime_types::staging_xcm::v4::location::Location,
result: ::core::primitive::u32,
cost: runtime_types::xcm::v3::multiasset::MultiAssets,
cost: runtime_types::staging_xcm::v4::asset::Assets,
message_id: [::core::primitive::u8; 32usize],
},
#[codec(index = 13)]
SupportedVersionChanged {
location: runtime_types::staging_xcm::v3::multilocation::MultiLocation,
location: runtime_types::staging_xcm::v4::location::Location,
version: ::core::primitive::u32,
},
#[codec(index = 14)]
NotifyTargetSendFail {
location: runtime_types::staging_xcm::v3::multilocation::MultiLocation,
location: runtime_types::staging_xcm::v4::location::Location,
query_id: ::core::primitive::u64,
error: runtime_types::xcm::v3::traits::Error,
},
#[codec(index = 15)]
NotifyTargetMigrationFail {
location: runtime_types::xcm::VersionedMultiLocation,
location: runtime_types::xcm::VersionedLocation,
query_id: ::core::primitive::u64,
},
#[codec(index = 16)]
InvalidQuerierVersion {
origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation,
origin: runtime_types::staging_xcm::v4::location::Location,
query_id: ::core::primitive::u64,
},
#[codec(index = 17)]
InvalidQuerier {
origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation,
origin: runtime_types::staging_xcm::v4::location::Location,
query_id: ::core::primitive::u64,
expected_querier:
runtime_types::staging_xcm::v3::multilocation::MultiLocation,
expected_querier: runtime_types::staging_xcm::v4::location::Location,
maybe_actual_querier: ::core::option::Option<
runtime_types::staging_xcm::v3::multilocation::MultiLocation,
runtime_types::staging_xcm::v4::location::Location,
>,
},
#[codec(index = 18)]
VersionNotifyStarted {
destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation,
cost: runtime_types::xcm::v3::multiasset::MultiAssets,
destination: runtime_types::staging_xcm::v4::location::Location,
cost: runtime_types::staging_xcm::v4::asset::Assets,
message_id: [::core::primitive::u8; 32usize],
},
#[codec(index = 19)]
VersionNotifyRequested {
destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation,
cost: runtime_types::xcm::v3::multiasset::MultiAssets,
destination: runtime_types::staging_xcm::v4::location::Location,
cost: runtime_types::staging_xcm::v4::asset::Assets,
message_id: [::core::primitive::u8; 32usize],
},
#[codec(index = 20)]
VersionNotifyUnrequested {
destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation,
cost: runtime_types::xcm::v3::multiasset::MultiAssets,
destination: runtime_types::staging_xcm::v4::location::Location,
cost: runtime_types::staging_xcm::v4::asset::Assets,
message_id: [::core::primitive::u8; 32usize],
},
#[codec(index = 21)]
FeesPaid {
paying: runtime_types::staging_xcm::v3::multilocation::MultiLocation,
fees: runtime_types::xcm::v3::multiasset::MultiAssets,
paying: runtime_types::staging_xcm::v4::location::Location,
fees: runtime_types::staging_xcm::v4::asset::Assets,
},
#[codec(index = 22)]
AssetsClaimed {
hash: ::subxt::utils::H256,
origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation,
assets: runtime_types::xcm::VersionedMultiAssets,
origin: runtime_types::staging_xcm::v4::location::Location,
assets: runtime_types::xcm::VersionedAssets,
},
#[codec(index = 23)]
VersionMigrationFinished { version: ::core::primitive::u32 },
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Origin {
#[codec(index = 0)]
Xcm(runtime_types::staging_xcm::v3::multilocation::MultiLocation),
Xcm(runtime_types::staging_xcm::v4::location::Location),
#[codec(index = 1)]
Response(runtime_types::staging_xcm::v3::multilocation::MultiLocation),
Response(runtime_types::staging_xcm::v4::location::Location),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum QueryStatus<_0> {
#[codec(index = 0)]
Pending {
responder: runtime_types::xcm::VersionedMultiLocation,
responder: runtime_types::xcm::VersionedLocation,
maybe_match_querier:
::core::option::Option<runtime_types::xcm::VersionedMultiLocation>,
::core::option::Option<runtime_types::xcm::VersionedLocation>,
maybe_notify:
::core::option::Option<(::core::primitive::u8, ::core::primitive::u8)>,
timeout: _0,
},
#[codec(index = 1)]
VersionNotifier {
origin: runtime_types::xcm::VersionedMultiLocation,
origin: runtime_types::xcm::VersionedLocation,
is_active: ::core::primitive::bool,
},
#[codec(index = 2)]
......@@ -2047,8 +2258,8 @@ pub mod api {
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct RemoteLockedFungibleRecord<_0> {
pub amount: ::core::primitive::u128,
pub owner: runtime_types::xcm::VersionedMultiLocation,
pub locker: runtime_types::xcm::VersionedMultiLocation,
pub owner: runtime_types::xcm::VersionedLocation,
pub locker: runtime_types::xcm::VersionedLocation,
pub consumers: runtime_types::bounded_collections::bounded_vec::BoundedVec<(
_0,
::core::primitive::u128,
......@@ -2104,15 +2315,6 @@ pub mod api {
pub struct Id(pub ::core::primitive::u32);
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct ValidationCode(pub ::std::vec::Vec<::core::primitive::u8>);
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum XcmpMessageFormat {
#[codec(index = 0)]
ConcatenatedVersionedXcm,
#[codec(index = 1)]
ConcatenatedEncodedBlob,
#[codec(index = 2)]
Signals,
}
}
}
pub mod polkadot_primitives {
......@@ -2172,339 +2374,1739 @@ pub mod api {
}
}
}
pub mod sp_arithmetic {
pub mod primitive_types {
use super::runtime_types;
pub mod fixed_point {
use super::runtime_types;
#[derive(
:: codec :: Decode,
:: codec :: Encode,
:: subxt :: ext :: codec :: CompactAs,
Clone,
Debug,
PartialEq,
)]
pub struct FixedU128(pub ::core::primitive::u128);
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum ArithmeticError {
#[codec(index = 0)]
Underflow,
#[codec(index = 1)]
Overflow,
#[codec(index = 2)]
DivisionByZero,
}
pub struct U256(pub [::core::primitive::u64; 4usize]);
}
pub mod sp_consensus_aura {
pub mod snowbridge_amcl {
use super::runtime_types;
pub mod sr25519 {
pub mod bls381 {
use super::runtime_types;
pub mod app_sr25519 {
pub mod big {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Public(pub runtime_types::sp_core::sr25519::Public);
pub struct Big {
pub w: [::core::primitive::i32; 14usize],
}
}
pub mod ecp {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct ECP {
pub x: runtime_types::snowbridge_amcl::bls381::fp::FP,
pub y: runtime_types::snowbridge_amcl::bls381::fp::FP,
pub z: runtime_types::snowbridge_amcl::bls381::fp::FP,
}
}
pub mod fp {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct FP {
pub x: runtime_types::snowbridge_amcl::bls381::big::Big,
pub xes: ::core::primitive::i32,
}
}
}
}
pub mod sp_consensus_grandpa {
pub mod snowbridge_beacon_primitives {
use super::runtime_types;
pub mod app {
pub mod bls {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Public(pub runtime_types::sp_core::ed25519::Public);
pub enum BlsError {
#[codec(index = 0)]
InvalidSignature,
#[codec(index = 1)]
InvalidPublicKey,
#[codec(index = 2)]
InvalidAggregatePublicKeys,
#[codec(index = 3)]
SignatureVerificationFailed,
}
}
pub mod types {
use super::runtime_types;
pub mod deneb {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct ExecutionPayloadHeader {
pub parent_hash: ::subxt::utils::H256,
pub fee_recipient: ::subxt::utils::H160,
pub state_root: ::subxt::utils::H256,
pub receipts_root: ::subxt::utils::H256,
pub logs_bloom: ::std::vec::Vec<::core::primitive::u8>,
pub prev_randao: ::subxt::utils::H256,
pub block_number: ::core::primitive::u64,
pub gas_limit: ::core::primitive::u64,
pub gas_used: ::core::primitive::u64,
pub timestamp: ::core::primitive::u64,
pub extra_data: ::std::vec::Vec<::core::primitive::u8>,
pub base_fee_per_gas: runtime_types::primitive_types::U256,
pub block_hash: ::subxt::utils::H256,
pub transactions_root: ::subxt::utils::H256,
pub withdrawals_root: ::subxt::utils::H256,
pub blob_gas_used: ::core::primitive::u64,
pub excess_blob_gas: ::core::primitive::u64,
}
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Signature(pub runtime_types::sp_core::ed25519::Signature);
pub struct BeaconHeader {
pub slot: ::core::primitive::u64,
pub proposer_index: ::core::primitive::u64,
pub parent_root: ::subxt::utils::H256,
pub state_root: ::subxt::utils::H256,
pub body_root: ::subxt::utils::H256,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct CompactBeaconState {
#[codec(compact)]
pub slot: ::core::primitive::u64,
pub block_roots_root: ::subxt::utils::H256,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct CompactExecutionHeader {
pub parent_hash: ::subxt::utils::H256,
#[codec(compact)]
pub block_number: ::core::primitive::u64,
pub state_root: ::subxt::utils::H256,
pub receipts_root: ::subxt::utils::H256,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct ExecutionHeaderState {
pub beacon_block_root: ::subxt::utils::H256,
pub beacon_slot: ::core::primitive::u64,
pub block_hash: ::subxt::utils::H256,
pub block_number: ::core::primitive::u64,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct ExecutionPayloadHeader {
pub parent_hash: ::subxt::utils::H256,
pub fee_recipient: ::subxt::utils::H160,
pub state_root: ::subxt::utils::H256,
pub receipts_root: ::subxt::utils::H256,
pub logs_bloom: ::std::vec::Vec<::core::primitive::u8>,
pub prev_randao: ::subxt::utils::H256,
pub block_number: ::core::primitive::u64,
pub gas_limit: ::core::primitive::u64,
pub gas_used: ::core::primitive::u64,
pub timestamp: ::core::primitive::u64,
pub extra_data: ::std::vec::Vec<::core::primitive::u8>,
pub base_fee_per_gas: runtime_types::primitive_types::U256,
pub block_hash: ::subxt::utils::H256,
pub transactions_root: ::subxt::utils::H256,
pub withdrawals_root: ::subxt::utils::H256,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Fork {
pub version: [::core::primitive::u8; 4usize],
pub epoch: ::core::primitive::u64,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct ForkVersions {
pub genesis: runtime_types::snowbridge_beacon_primitives::types::Fork,
pub altair: runtime_types::snowbridge_beacon_primitives::types::Fork,
pub bellatrix: runtime_types::snowbridge_beacon_primitives::types::Fork,
pub capella: runtime_types::snowbridge_beacon_primitives::types::Fork,
pub deneb: runtime_types::snowbridge_beacon_primitives::types::Fork,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct PublicKey(pub [::core::primitive::u8; 48usize]);
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Signature(pub [::core::primitive::u8; 96usize]);
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct SyncAggregate {
pub sync_committee_bits: [::core::primitive::u8; 64usize],
pub sync_committee_signature:
runtime_types::snowbridge_beacon_primitives::types::Signature,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct SyncCommittee {
pub pubkeys:
[runtime_types::snowbridge_beacon_primitives::types::PublicKey; 512usize],
pub aggregate_pubkey:
runtime_types::snowbridge_beacon_primitives::types::PublicKey,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct SyncCommitteePrepared {
pub root: ::subxt::utils::H256,
pub pubkeys: ::std::boxed::Box<
[runtime_types::snowbridge_milagro_bls::keys::PublicKey; 512usize],
>,
pub aggregate_pubkey: runtime_types::snowbridge_milagro_bls::keys::PublicKey,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum VersionedExecutionPayloadHeader {
# [codec (index = 0)] Capella (runtime_types :: snowbridge_beacon_primitives :: types :: ExecutionPayloadHeader ,) , # [codec (index = 1)] Deneb (runtime_types :: snowbridge_beacon_primitives :: types :: deneb :: ExecutionPayloadHeader ,) , }
}
pub mod updates {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct AncestryProof {
pub header_branch: ::std::vec::Vec<::subxt::utils::H256>,
pub finalized_block_root: ::subxt::utils::H256,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct CheckpointUpdate {
pub header: runtime_types::snowbridge_beacon_primitives::types::BeaconHeader,
pub current_sync_committee:
runtime_types::snowbridge_beacon_primitives::types::SyncCommittee,
pub current_sync_committee_branch: ::std::vec::Vec<::subxt::utils::H256>,
pub validators_root: ::subxt::utils::H256,
pub block_roots_root: ::subxt::utils::H256,
pub block_roots_branch: ::std::vec::Vec<::subxt::utils::H256>,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct ExecutionHeaderUpdate { pub header : runtime_types :: snowbridge_beacon_primitives :: types :: BeaconHeader , pub ancestry_proof : :: core :: option :: Option < runtime_types :: snowbridge_beacon_primitives :: updates :: AncestryProof > , pub execution_header : runtime_types :: snowbridge_beacon_primitives :: types :: VersionedExecutionPayloadHeader , pub execution_branch : :: std :: vec :: Vec < :: subxt :: utils :: H256 > , }
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct NextSyncCommitteeUpdate {
pub next_sync_committee:
runtime_types::snowbridge_beacon_primitives::types::SyncCommittee,
pub next_sync_committee_branch: ::std::vec::Vec<::subxt::utils::H256>,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Update { pub attested_header : runtime_types :: snowbridge_beacon_primitives :: types :: BeaconHeader , pub sync_aggregate : runtime_types :: snowbridge_beacon_primitives :: types :: SyncAggregate , pub signature_slot : :: core :: primitive :: u64 , pub next_sync_committee_update : :: core :: option :: Option < runtime_types :: snowbridge_beacon_primitives :: updates :: NextSyncCommitteeUpdate > , pub finalized_header : runtime_types :: snowbridge_beacon_primitives :: types :: BeaconHeader , pub finality_branch : :: std :: vec :: Vec < :: subxt :: utils :: H256 > , pub block_roots_root : :: subxt :: utils :: H256 , pub block_roots_branch : :: std :: vec :: Vec < :: subxt :: utils :: H256 > , }
}
}
pub mod sp_consensus_slots {
use super::runtime_types;
#[derive(
:: codec :: Decode,
:: codec :: Encode,
:: subxt :: ext :: codec :: CompactAs,
Clone,
Debug,
PartialEq,
)]
pub struct Slot(pub ::core::primitive::u64);
#[derive(
:: codec :: Decode,
:: codec :: Encode,
:: subxt :: ext :: codec :: CompactAs,
Clone,
Debug,
PartialEq,
)]
pub struct SlotDuration(pub ::core::primitive::u64);
}
pub mod sp_core {
pub mod snowbridge_core {
use super::runtime_types;
pub mod crypto {
pub mod inbound {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]);
pub struct Log {
pub address: ::subxt::utils::H160,
pub topics: ::std::vec::Vec<::subxt::utils::H256>,
pub data: ::std::vec::Vec<::core::primitive::u8>,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Message {
pub event_log: runtime_types::snowbridge_core::inbound::Log,
pub proof: runtime_types::snowbridge_core::inbound::Proof,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Proof {
pub block_hash: ::subxt::utils::H256,
pub tx_index: ::core::primitive::u32,
pub data: (
::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>,
::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>,
),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum VerificationError {
#[codec(index = 0)]
HeaderNotFound,
#[codec(index = 1)]
LogNotFound,
#[codec(index = 2)]
InvalidLog,
#[codec(index = 3)]
InvalidProof,
}
}
pub mod ecdsa {
pub mod operating_mode {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Signature(pub [::core::primitive::u8; 65usize]);
pub enum BasicOperatingMode {
#[codec(index = 0)]
Normal,
#[codec(index = 1)]
Halted,
}
}
pub mod ed25519 {
pub mod outbound {
use super::runtime_types;
pub mod v1 {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum AgentExecuteCommand {
#[codec(index = 0)]
TransferToken {
token: ::subxt::utils::H160,
recipient: ::subxt::utils::H160,
amount: ::core::primitive::u128,
},
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Command {
#[codec(index = 0)]
AgentExecute {
agent_id: ::subxt::utils::H256,
command:
runtime_types::snowbridge_core::outbound::v1::AgentExecuteCommand,
},
#[codec(index = 1)]
Upgrade {
impl_address: ::subxt::utils::H160,
impl_code_hash: ::subxt::utils::H256,
initializer: ::core::option::Option<
runtime_types::snowbridge_core::outbound::v1::Initializer,
>,
},
#[codec(index = 2)]
CreateAgent { agent_id: ::subxt::utils::H256 },
#[codec(index = 3)]
CreateChannel {
channel_id: runtime_types::snowbridge_core::ChannelId,
agent_id: ::subxt::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::utils::H256,
recipient: ::subxt::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: ::std::vec::Vec<::core::primitive::u8>,
pub maximum_required_gas: ::core::primitive::u64,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum OperatingMode {
#[codec(index = 0)]
Normal,
#[codec(index = 1)]
RejectingOutboundMessages,
}
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Public(pub [::core::primitive::u8; 32usize]);
pub struct Fee<_0> {
pub local: _0,
pub remote: _0,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Signature(pub [::core::primitive::u8; 64usize]);
pub enum SendError {
#[codec(index = 0)]
MessageTooLarge,
#[codec(index = 1)]
Halted,
#[codec(index = 2)]
InvalidChannel,
}
}
pub mod sr25519 {
pub mod pricing {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Public(pub [::core::primitive::u8; 32usize]);
pub struct PricingParameters<_0> {
pub exchange_rate: runtime_types::sp_arithmetic::fixed_point::FixedU128,
pub rewards: runtime_types::snowbridge_core::pricing::Rewards<_0>,
pub fee_per_gas: runtime_types::primitive_types::U256,
pub multiplier: runtime_types::sp_arithmetic::fixed_point::FixedU128,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Signature(pub [::core::primitive::u8; 64usize]);
pub struct Rewards<_0> {
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 OpaqueMetadata(pub ::std::vec::Vec<::core::primitive::u8>);
pub struct Channel {
pub agent_id: ::subxt::utils::H256,
pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Void {}
pub struct ChannelId(pub [::core::primitive::u8; 32usize]);
}
pub mod sp_inherents {
pub mod snowbridge_milagro_bls {
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,
pub mod keys {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct PublicKey {
pub point: runtime_types::snowbridge_amcl::bls381::ecp::ECP,
}
}
}
pub mod snowbridge_outbound_queue_merkle_tree {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct InherentData {
pub data: ::subxt::utils::KeyedVec<
[::core::primitive::u8; 8usize],
::std::vec::Vec<::core::primitive::u8>,
>,
pub struct MerkleProof {
pub root: ::subxt::utils::H256,
pub proof: ::std::vec::Vec<::subxt::utils::H256>,
pub number_of_leaves: ::core::primitive::u64,
pub leaf_index: ::core::primitive::u64,
pub leaf: ::subxt::utils::H256,
}
}
pub mod sp_runtime {
pub mod snowbridge_pallet_ethereum_client {
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: ::std::vec::Vec<_1>,
}
}
pub mod digest {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum DigestItem {
#[codec(index = 6)]
PreRuntime(
[::core::primitive::u8; 4usize],
::std::vec::Vec<::core::primitive::u8>,
),
#[codec(index = 4)]
Consensus(
[::core::primitive::u8; 4usize],
::std::vec::Vec<::core::primitive::u8>,
),
#[codec(index = 5)]
Seal(
[::core::primitive::u8; 4usize],
::std::vec::Vec<::core::primitive::u8>,
),
#[codec(index = 0)]
Other(::std::vec::Vec<::core::primitive::u8>),
#[codec(index = 8)]
RuntimeEnvironmentUpdated,
}
}
}
pub mod transaction_validity {
pub mod pallet {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum InvalidTransaction {
pub enum Call {
# [codec (index = 0)] force_checkpoint { update : :: std :: boxed :: Box < runtime_types :: snowbridge_beacon_primitives :: updates :: CheckpointUpdate > , } , # [codec (index = 1)] submit { update : :: std :: boxed :: Box < runtime_types :: snowbridge_beacon_primitives :: updates :: Update > , } , # [codec (index = 2)] submit_execution_header { update : :: std :: boxed :: Box < runtime_types :: snowbridge_beacon_primitives :: updates :: ExecutionHeaderUpdate > , } , # [codec (index = 3)] set_operating_mode { mode : runtime_types :: snowbridge_core :: operating_mode :: BasicOperatingMode , } , }
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
#[codec(index = 0)]
Call,
SkippedSyncCommitteePeriod,
#[codec(index = 1)]
Payment,
IrrelevantUpdate,
#[codec(index = 2)]
Future,
NotBootstrapped,
#[codec(index = 3)]
Stale,
SyncCommitteeParticipantsNotSupermajority,
#[codec(index = 4)]
BadProof,
InvalidHeaderMerkleProof,
#[codec(index = 5)]
AncientBirthBlock,
InvalidSyncCommitteeMerkleProof,
#[codec(index = 6)]
ExhaustsResources,
InvalidExecutionHeaderProof,
#[codec(index = 7)]
Custom(::core::primitive::u8),
InvalidAncestryMerkleProof,
#[codec(index = 8)]
BadMandatory,
InvalidBlockRootsRootMerkleProof,
#[codec(index = 9)]
MandatoryValidation,
InvalidFinalizedHeaderGap,
#[codec(index = 10)]
BadSigner,
HeaderNotFinalized,
#[codec(index = 11)]
BlockBodyHashTreeRootFailed,
#[codec(index = 12)]
HeaderHashTreeRootFailed,
#[codec(index = 13)]
SyncCommitteeHashTreeRootFailed,
#[codec(index = 14)]
SigningRootHashTreeRootFailed,
#[codec(index = 15)]
ForkDataHashTreeRootFailed,
#[codec(index = 16)]
ExpectedFinalizedHeaderNotStored,
#[codec(index = 17)]
BLSPreparePublicKeysFailed,
#[codec(index = 18)]
BLSVerificationFailed(
runtime_types::snowbridge_beacon_primitives::bls::BlsError,
),
#[codec(index = 19)]
InvalidUpdateSlot,
#[codec(index = 20)]
InvalidSyncCommitteeUpdate,
#[codec(index = 21)]
ExecutionHeaderTooFarBehind,
#[codec(index = 22)]
ExecutionHeaderSkippedBlock,
#[codec(index = 23)]
Halted,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
#[codec(index = 0)]
BeaconHeaderImported {
block_hash: ::subxt::utils::H256,
slot: ::core::primitive::u64,
},
#[codec(index = 1)]
ExecutionHeaderImported {
block_hash: ::subxt::utils::H256,
block_number: ::core::primitive::u64,
},
#[codec(index = 2)]
SyncCommitteeUpdated { period: ::core::primitive::u64 },
#[codec(index = 3)]
OperatingModeChanged {
mode: runtime_types::snowbridge_core::operating_mode::BasicOperatingMode,
},
}
}
}
pub mod snowbridge_pallet_inbound_queue {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Call {
#[codec(index = 0)]
submit { message: runtime_types::snowbridge_core::inbound::Message },
#[codec(index = 1)]
set_operating_mode {
mode: runtime_types::snowbridge_core::operating_mode::BasicOperatingMode,
},
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
#[codec(index = 0)]
InvalidGateway,
#[codec(index = 1)]
InvalidEnvelope,
#[codec(index = 2)]
InvalidNonce,
#[codec(index = 3)]
InvalidPayload,
#[codec(index = 4)]
InvalidChannel,
#[codec(index = 5)]
MaxNonceReached,
#[codec(index = 6)]
InvalidAccountConversion,
#[codec(index = 7)]
Halted,
#[codec(index = 8)]
Verification(runtime_types::snowbridge_core::inbound::VerificationError),
#[codec(index = 9)]
Send(runtime_types::snowbridge_pallet_inbound_queue::pallet::SendError),
#[codec(index = 10)]
ConvertMessage(
runtime_types::snowbridge_router_primitives::inbound::ConvertMessageError,
),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
#[codec(index = 0)]
MessageReceived {
channel_id: runtime_types::snowbridge_core::ChannelId,
nonce: ::core::primitive::u64,
message_id: [::core::primitive::u8; 32usize],
fee_burned: ::core::primitive::u128,
},
#[codec(index = 1)]
OperatingModeChanged {
mode: runtime_types::snowbridge_core::operating_mode::BasicOperatingMode,
},
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum SendError {
#[codec(index = 0)]
NotApplicable,
#[codec(index = 1)]
NotRoutable,
#[codec(index = 2)]
Transport,
#[codec(index = 3)]
DestinationUnsupported,
#[codec(index = 4)]
ExceedsMaxMessageSize,
#[codec(index = 5)]
MissingArgument,
#[codec(index = 6)]
Fees,
}
}
}
pub mod snowbridge_pallet_outbound_queue {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Call {
#[codec(index = 0)]
set_operating_mode {
mode: runtime_types::snowbridge_core::operating_mode::BasicOperatingMode,
},
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
#[codec(index = 0)]
MessageTooLarge,
#[codec(index = 1)]
Halted,
#[codec(index = 2)]
InvalidChannel,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
#[codec(index = 0)]
MessageQueued { id: ::subxt::utils::H256 },
#[codec(index = 1)]
MessageAccepted { id: ::subxt::utils::H256, nonce: ::core::primitive::u64 },
#[codec(index = 2)]
MessagesCommitted { root: ::subxt::utils::H256, count: ::core::primitive::u64 },
#[codec(index = 3)]
OperatingModeChanged {
mode: runtime_types::snowbridge_core::operating_mode::BasicOperatingMode,
},
}
}
pub mod types {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct CommittedMessage {
pub channel_id: runtime_types::snowbridge_core::ChannelId,
#[codec(compact)]
pub nonce: ::core::primitive::u64,
pub command: ::core::primitive::u8,
pub params: ::std::vec::Vec<::core::primitive::u8>,
#[codec(compact)]
pub max_dispatch_gas: ::core::primitive::u64,
#[codec(compact)]
pub max_fee_per_gas: ::core::primitive::u128,
#[codec(compact)]
pub reward: ::core::primitive::u128,
pub id: ::subxt::utils::H256,
}
}
}
pub mod snowbridge_pallet_system {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Call {
#[codec(index = 0)]
upgrade {
impl_address: ::subxt::utils::H160,
impl_code_hash: ::subxt::utils::H256,
initializer: ::core::option::Option<
runtime_types::snowbridge_core::outbound::v1::Initializer,
>,
},
#[codec(index = 1)]
set_operating_mode {
mode: runtime_types::snowbridge_core::outbound::v1::OperatingMode,
},
#[codec(index = 2)]
set_pricing_parameters {
params: runtime_types::snowbridge_core::pricing::PricingParameters<
::core::primitive::u128,
>,
},
#[codec(index = 3)]
create_agent,
#[codec(index = 4)]
create_channel {
mode: runtime_types::snowbridge_core::outbound::v1::OperatingMode,
},
#[codec(index = 5)]
update_channel {
mode: runtime_types::snowbridge_core::outbound::v1::OperatingMode,
},
#[codec(index = 6)]
force_update_channel {
channel_id: runtime_types::snowbridge_core::ChannelId,
mode: runtime_types::snowbridge_core::outbound::v1::OperatingMode,
},
#[codec(index = 7)]
transfer_native_from_agent {
recipient: ::subxt::utils::H160,
amount: ::core::primitive::u128,
},
#[codec(index = 8)]
force_transfer_native_from_agent {
location: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
recipient: ::subxt::utils::H160,
amount: ::core::primitive::u128,
},
#[codec(index = 9)]
set_token_transfer_fees {
create_asset_xcm: ::core::primitive::u128,
transfer_asset_xcm: ::core::primitive::u128,
register_token: runtime_types::primitive_types::U256,
},
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
#[codec(index = 0)]
LocationConversionFailed,
#[codec(index = 1)]
AgentAlreadyCreated,
#[codec(index = 2)]
NoAgent,
#[codec(index = 3)]
ChannelAlreadyCreated,
#[codec(index = 4)]
NoChannel,
#[codec(index = 5)]
UnsupportedLocationVersion,
#[codec(index = 6)]
InvalidLocation,
#[codec(index = 7)]
Send(runtime_types::snowbridge_core::outbound::SendError),
#[codec(index = 8)]
InvalidTokenTransferFees,
#[codec(index = 9)]
InvalidPricingParameters,
#[codec(index = 10)]
InvalidUpgradeParameters,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
#[codec(index = 0)]
Upgrade {
impl_address: ::subxt::utils::H160,
impl_code_hash: ::subxt::utils::H256,
initializer_params_hash: ::core::option::Option<::subxt::utils::H256>,
},
#[codec(index = 1)]
CreateAgent {
location:
::std::boxed::Box<runtime_types::staging_xcm::v4::location::Location>,
agent_id: ::subxt::utils::H256,
},
#[codec(index = 2)]
CreateChannel {
channel_id: runtime_types::snowbridge_core::ChannelId,
agent_id: ::subxt::utils::H256,
},
#[codec(index = 3)]
UpdateChannel {
channel_id: runtime_types::snowbridge_core::ChannelId,
mode: runtime_types::snowbridge_core::outbound::v1::OperatingMode,
},
#[codec(index = 4)]
SetOperatingMode {
mode: runtime_types::snowbridge_core::outbound::v1::OperatingMode,
},
#[codec(index = 5)]
TransferNativeFromAgent {
agent_id: ::subxt::utils::H256,
recipient: ::subxt::utils::H160,
amount: ::core::primitive::u128,
},
#[codec(index = 6)]
SetTokenTransferFees {
create_asset_xcm: ::core::primitive::u128,
transfer_asset_xcm: ::core::primitive::u128,
register_token: runtime_types::primitive_types::U256,
},
#[codec(index = 7)]
PricingParametersChanged {
params: runtime_types::snowbridge_core::pricing::PricingParameters<
::core::primitive::u128,
>,
},
}
}
}
pub mod snowbridge_router_primitives {
use super::runtime_types;
pub mod inbound {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum ConvertMessageError {
#[codec(index = 0)]
UnsupportedVersion,
}
}
}
pub mod sp_arithmetic {
use super::runtime_types;
pub mod fixed_point {
use super::runtime_types;
#[derive(
:: codec :: Decode,
:: codec :: Encode,
:: subxt :: ext :: codec :: CompactAs,
Clone,
Debug,
PartialEq,
)]
pub struct FixedU128(pub ::core::primitive::u128);
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum ArithmeticError {
#[codec(index = 0)]
Underflow,
#[codec(index = 1)]
Overflow,
#[codec(index = 2)]
DivisionByZero,
}
}
pub mod sp_consensus_aura {
use super::runtime_types;
pub mod sr25519 {
use super::runtime_types;
pub mod app_sr25519 {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Public(pub runtime_types::sp_core::sr25519::Public);
}
}
}
pub mod sp_consensus_grandpa {
use super::runtime_types;
pub mod app {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Public(pub runtime_types::sp_core::ed25519::Public);
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Signature(pub runtime_types::sp_core::ed25519::Signature);
}
}
pub mod sp_consensus_slots {
use super::runtime_types;
#[derive(
:: codec :: Decode,
:: codec :: Encode,
:: subxt :: ext :: codec :: CompactAs,
Clone,
Debug,
PartialEq,
)]
pub struct Slot(pub ::core::primitive::u64);
#[derive(
:: codec :: Decode,
:: codec :: Encode,
:: subxt :: ext :: codec :: CompactAs,
Clone,
Debug,
PartialEq,
)]
pub struct SlotDuration(pub ::core::primitive::u64);
}
pub mod sp_core {
use super::runtime_types;
pub mod crypto {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]);
}
pub mod ecdsa {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Signature(pub [::core::primitive::u8; 65usize]);
}
pub mod ed25519 {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Public(pub [::core::primitive::u8; 32usize]);
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Signature(pub [::core::primitive::u8; 64usize]);
}
pub mod sr25519 {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Public(pub [::core::primitive::u8; 32usize]);
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Signature(pub [::core::primitive::u8; 64usize]);
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct OpaqueMetadata(pub ::std::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::utils::KeyedVec<
[::core::primitive::u8; 8usize],
::std::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: ::std::vec::Vec<_1>,
}
}
pub mod digest {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum DigestItem {
#[codec(index = 6)]
PreRuntime(
[::core::primitive::u8; 4usize],
::std::vec::Vec<::core::primitive::u8>,
),
#[codec(index = 4)]
Consensus(
[::core::primitive::u8; 4usize],
::std::vec::Vec<::core::primitive::u8>,
),
#[codec(index = 5)]
Seal(
[::core::primitive::u8; 4usize],
::std::vec::Vec<::core::primitive::u8>,
),
#[codec(index = 0)]
Other(::std::vec::Vec<::core::primitive::u8>),
#[codec(index = 8)]
RuntimeEnvironmentUpdated,
}
}
}
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: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>,
pub provides: ::std::vec::Vec<::std::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)]
Other,
#[codec(index = 1)]
CannotLookup,
#[codec(index = 2)]
BadOrigin,
#[codec(index = 3)]
Module(runtime_types::sp_runtime::ModuleError),
#[codec(index = 4)]
ConsumerRemaining,
#[codec(index = 5)]
NoProviders,
#[codec(index = 6)]
TooManyConsumers,
#[codec(index = 7)]
Token(runtime_types::sp_runtime::TokenError),
#[codec(index = 8)]
Arithmetic(runtime_types::sp_arithmetic::ArithmeticError),
#[codec(index = 9)]
Transactional(runtime_types::sp_runtime::TransactionalError),
#[codec(index = 10)]
Exhausted,
#[codec(index = 11)]
Corruption,
#[codec(index = 12)]
Unavailable,
#[codec(index = 13)]
RootNotAllowed,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct ModuleError {
pub index: ::core::primitive::u8,
pub error: [::core::primitive::u8; 4usize],
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum MultiSignature {
#[codec(index = 0)]
Ed25519(runtime_types::sp_core::ed25519::Signature),
#[codec(index = 1)]
Sr25519(runtime_types::sp_core::sr25519::Signature),
#[codec(index = 2)]
Ecdsa(runtime_types::sp_core::ecdsa::Signature),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum TokenError {
#[codec(index = 0)]
FundsUnavailable,
#[codec(index = 1)]
OnlyProvider,
#[codec(index = 2)]
BelowMinimum,
#[codec(index = 3)]
CannotCreate,
#[codec(index = 4)]
UnknownAsset,
#[codec(index = 5)]
Frozen,
#[codec(index = 6)]
Unsupported,
#[codec(index = 7)]
CannotCreateHold,
#[codec(index = 8)]
NotExpendable,
#[codec(index = 9)]
Blocked,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum TransactionalError {
#[codec(index = 0)]
LimitReached,
#[codec(index = 1)]
NoLayer,
}
}
pub mod sp_trie {
use super::runtime_types;
pub mod storage_proof {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct StorageProof {
pub trie_nodes: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>,
}
}
}
pub mod sp_version {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct RuntimeVersion {
pub spec_name: ::std::string::String,
pub impl_name: ::std::string::String,
pub authoring_version: ::core::primitive::u32,
pub spec_version: ::core::primitive::u32,
pub impl_version: ::core::primitive::u32,
pub apis:
::std::vec::Vec<([::core::primitive::u8; 8usize], ::core::primitive::u32)>,
pub transaction_version: ::core::primitive::u32,
pub state_version: ::core::primitive::u8,
}
}
pub mod sp_weights {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct RuntimeDbWeight {
pub read: ::core::primitive::u64,
pub write: ::core::primitive::u64,
}
}
pub mod staging_parachain_info {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Call {}
}
}
pub mod staging_xcm {
use super::runtime_types;
pub mod v3 {
use super::runtime_types;
pub mod multilocation {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct MultiLocation {
pub parents: ::core::primitive::u8,
pub interior: runtime_types::xcm::v3::junctions::Junctions,
}
}
}
pub mod v4 {
use super::runtime_types;
pub mod asset {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Asset {
pub id: runtime_types::staging_xcm::v4::asset::AssetId,
pub fun: runtime_types::staging_xcm::v4::asset::Fungibility,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum AssetFilter {
#[codec(index = 0)]
Definite(runtime_types::staging_xcm::v4::asset::Assets),
#[codec(index = 1)]
Wild(runtime_types::staging_xcm::v4::asset::WildAsset),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct AssetId(pub runtime_types::staging_xcm::v4::location::Location);
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum AssetInstance {
#[codec(index = 0)]
Undefined,
#[codec(index = 1)]
Index(#[codec(compact)] ::core::primitive::u128),
#[codec(index = 2)]
Array4([::core::primitive::u8; 4usize]),
#[codec(index = 3)]
Array8([::core::primitive::u8; 8usize]),
#[codec(index = 4)]
Array16([::core::primitive::u8; 16usize]),
#[codec(index = 5)]
Array32([::core::primitive::u8; 32usize]),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Assets(
pub ::std::vec::Vec<runtime_types::staging_xcm::v4::asset::Asset>,
);
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Fungibility {
#[codec(index = 0)]
Fungible(#[codec(compact)] ::core::primitive::u128),
#[codec(index = 1)]
NonFungible(runtime_types::staging_xcm::v4::asset::AssetInstance),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum WildAsset {
#[codec(index = 0)]
All,
#[codec(index = 1)]
AllOf {
id: runtime_types::staging_xcm::v4::asset::AssetId,
fun: runtime_types::staging_xcm::v4::asset::WildFungibility,
},
#[codec(index = 2)]
AllCounted(#[codec(compact)] ::core::primitive::u32),
#[codec(index = 3)]
AllOfCounted {
id: runtime_types::staging_xcm::v4::asset::AssetId,
fun: runtime_types::staging_xcm::v4::asset::WildFungibility,
#[codec(compact)]
count: ::core::primitive::u32,
},
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum WildFungibility {
#[codec(index = 0)]
Fungible,
#[codec(index = 1)]
NonFungible,
}
}
pub mod junction {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Junction {
#[codec(index = 0)]
Parachain(#[codec(compact)] ::core::primitive::u32),
#[codec(index = 1)]
AccountId32 {
network: ::core::option::Option<
runtime_types::staging_xcm::v4::junction::NetworkId,
>,
id: [::core::primitive::u8; 32usize],
},
#[codec(index = 2)]
AccountIndex64 {
network: ::core::option::Option<
runtime_types::staging_xcm::v4::junction::NetworkId,
>,
#[codec(compact)]
index: ::core::primitive::u64,
},
#[codec(index = 3)]
AccountKey20 {
network: ::core::option::Option<
runtime_types::staging_xcm::v4::junction::NetworkId,
>,
key: [::core::primitive::u8; 20usize],
},
#[codec(index = 4)]
PalletInstance(::core::primitive::u8),
#[codec(index = 5)]
GeneralIndex(#[codec(compact)] ::core::primitive::u128),
#[codec(index = 6)]
GeneralKey {
length: ::core::primitive::u8,
data: [::core::primitive::u8; 32usize],
},
#[codec(index = 7)]
OnlyChild,
#[codec(index = 8)]
Plurality {
id: runtime_types::xcm::v3::junction::BodyId,
part: runtime_types::xcm::v3::junction::BodyPart,
},
#[codec(index = 9)]
GlobalConsensus(runtime_types::staging_xcm::v4::junction::NetworkId),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum NetworkId {
#[codec(index = 0)]
ByGenesis([::core::primitive::u8; 32usize]),
#[codec(index = 1)]
ByFork {
block_number: ::core::primitive::u64,
block_hash: [::core::primitive::u8; 32usize],
},
#[codec(index = 2)]
Polkadot,
#[codec(index = 3)]
Kusama,
#[codec(index = 4)]
Westend,
#[codec(index = 5)]
Rococo,
#[codec(index = 6)]
Wococo,
#[codec(index = 7)]
Ethereum {
#[codec(compact)]
chain_id: ::core::primitive::u64,
},
#[codec(index = 8)]
BitcoinCore,
#[codec(index = 9)]
BitcoinCash,
#[codec(index = 10)]
PolkadotBulletin,
}
}
pub mod junctions {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Junctions {
#[codec(index = 0)]
Here,
#[codec(index = 1)]
X1([runtime_types::staging_xcm::v4::junction::Junction; 1usize]),
#[codec(index = 2)]
X2([runtime_types::staging_xcm::v4::junction::Junction; 2usize]),
#[codec(index = 3)]
X3([runtime_types::staging_xcm::v4::junction::Junction; 3usize]),
#[codec(index = 4)]
X4([runtime_types::staging_xcm::v4::junction::Junction; 4usize]),
#[codec(index = 5)]
X5([runtime_types::staging_xcm::v4::junction::Junction; 5usize]),
#[codec(index = 6)]
X6([runtime_types::staging_xcm::v4::junction::Junction; 6usize]),
#[codec(index = 7)]
X7([runtime_types::staging_xcm::v4::junction::Junction; 7usize]),
#[codec(index = 8)]
X8([runtime_types::staging_xcm::v4::junction::Junction; 8usize]),
}
}
pub mod location {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Location {
pub parents: ::core::primitive::u8,
pub interior: runtime_types::staging_xcm::v4::junctions::Junctions,
}
}
pub mod traits {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Outcome {
#[codec(index = 0)]
Complete { used: ::sp_weights::Weight },
#[codec(index = 1)]
Incomplete {
used: ::sp_weights::Weight,
error: runtime_types::xcm::v3::traits::Error,
},
#[codec(index = 2)]
Error { error: runtime_types::xcm::v3::traits::Error },
}
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Instruction {
#[codec(index = 0)]
WithdrawAsset(runtime_types::staging_xcm::v4::asset::Assets),
#[codec(index = 1)]
ReserveAssetDeposited(runtime_types::staging_xcm::v4::asset::Assets),
#[codec(index = 2)]
ReceiveTeleportedAsset(runtime_types::staging_xcm::v4::asset::Assets),
#[codec(index = 3)]
QueryResponse {
#[codec(compact)]
query_id: ::core::primitive::u64,
response: runtime_types::staging_xcm::v4::Response,
max_weight: ::sp_weights::Weight,
querier: ::core::option::Option<
runtime_types::staging_xcm::v4::location::Location,
>,
},
#[codec(index = 4)]
TransferAsset {
assets: runtime_types::staging_xcm::v4::asset::Assets,
beneficiary: runtime_types::staging_xcm::v4::location::Location,
},
#[codec(index = 5)]
TransferReserveAsset {
assets: runtime_types::staging_xcm::v4::asset::Assets,
dest: runtime_types::staging_xcm::v4::location::Location,
xcm: runtime_types::staging_xcm::v4::Xcm,
},
#[codec(index = 6)]
Transact {
origin_kind: runtime_types::xcm::v2::OriginKind,
require_weight_at_most: ::sp_weights::Weight,
call: runtime_types::xcm::double_encoded::DoubleEncoded,
},
#[codec(index = 7)]
HrmpNewChannelOpenRequest {
#[codec(compact)]
sender: ::core::primitive::u32,
#[codec(compact)]
max_message_size: ::core::primitive::u32,
#[codec(compact)]
max_capacity: ::core::primitive::u32,
},
#[codec(index = 8)]
HrmpChannelAccepted {
#[codec(compact)]
recipient: ::core::primitive::u32,
},
#[codec(index = 9)]
HrmpChannelClosing {
#[codec(compact)]
initiator: ::core::primitive::u32,
#[codec(compact)]
sender: ::core::primitive::u32,
#[codec(compact)]
recipient: ::core::primitive::u32,
},
#[codec(index = 10)]
ClearOrigin,
#[codec(index = 11)]
DescendOrigin(runtime_types::staging_xcm::v4::junctions::Junctions),
#[codec(index = 12)]
ReportError(runtime_types::staging_xcm::v4::QueryResponseInfo),
#[codec(index = 13)]
DepositAsset {
assets: runtime_types::staging_xcm::v4::asset::AssetFilter,
beneficiary: runtime_types::staging_xcm::v4::location::Location,
},
#[codec(index = 14)]
DepositReserveAsset {
assets: runtime_types::staging_xcm::v4::asset::AssetFilter,
dest: runtime_types::staging_xcm::v4::location::Location,
xcm: runtime_types::staging_xcm::v4::Xcm,
},
#[codec(index = 15)]
ExchangeAsset {
give: runtime_types::staging_xcm::v4::asset::AssetFilter,
want: runtime_types::staging_xcm::v4::asset::Assets,
maximal: ::core::primitive::bool,
},
#[codec(index = 16)]
InitiateReserveWithdraw {
assets: runtime_types::staging_xcm::v4::asset::AssetFilter,
reserve: runtime_types::staging_xcm::v4::location::Location,
xcm: runtime_types::staging_xcm::v4::Xcm,
},
#[codec(index = 17)]
InitiateTeleport {
assets: runtime_types::staging_xcm::v4::asset::AssetFilter,
dest: runtime_types::staging_xcm::v4::location::Location,
xcm: runtime_types::staging_xcm::v4::Xcm,
},
#[codec(index = 18)]
ReportHolding {
response_info: runtime_types::staging_xcm::v4::QueryResponseInfo,
assets: runtime_types::staging_xcm::v4::asset::AssetFilter,
},
#[codec(index = 19)]
BuyExecution {
fees: runtime_types::staging_xcm::v4::asset::Asset,
weight_limit: runtime_types::xcm::v3::WeightLimit,
},
#[codec(index = 20)]
RefundSurplus,
#[codec(index = 21)]
SetErrorHandler(runtime_types::staging_xcm::v4::Xcm),
#[codec(index = 22)]
SetAppendix(runtime_types::staging_xcm::v4::Xcm),
#[codec(index = 23)]
ClearError,
#[codec(index = 24)]
ClaimAsset {
assets: runtime_types::staging_xcm::v4::asset::Assets,
ticket: runtime_types::staging_xcm::v4::location::Location,
},
#[codec(index = 25)]
Trap(#[codec(compact)] ::core::primitive::u64),
#[codec(index = 26)]
SubscribeVersion {
#[codec(compact)]
query_id: ::core::primitive::u64,
max_response_weight: ::sp_weights::Weight,
},
#[codec(index = 27)]
UnsubscribeVersion,
#[codec(index = 28)]
BurnAsset(runtime_types::staging_xcm::v4::asset::Assets),
#[codec(index = 29)]
ExpectAsset(runtime_types::staging_xcm::v4::asset::Assets),
#[codec(index = 30)]
ExpectOrigin(
::core::option::Option<runtime_types::staging_xcm::v4::location::Location>,
),
#[codec(index = 31)]
ExpectError(
::core::option::Option<(
::core::primitive::u32,
runtime_types::xcm::v3::traits::Error,
)>,
),
#[codec(index = 32)]
ExpectTransactStatus(runtime_types::xcm::v3::MaybeErrorCode),
#[codec(index = 33)]
QueryPallet {
module_name: ::std::vec::Vec<::core::primitive::u8>,
response_info: runtime_types::staging_xcm::v4::QueryResponseInfo,
},
#[codec(index = 34)]
ExpectPallet {
#[codec(compact)]
index: ::core::primitive::u32,
name: ::std::vec::Vec<::core::primitive::u8>,
module_name: ::std::vec::Vec<::core::primitive::u8>,
#[codec(compact)]
crate_major: ::core::primitive::u32,
#[codec(compact)]
min_crate_minor: ::core::primitive::u32,
},
#[codec(index = 35)]
ReportTransactStatus(runtime_types::staging_xcm::v4::QueryResponseInfo),
#[codec(index = 36)]
ClearTransactStatus,
#[codec(index = 37)]
UniversalOrigin(runtime_types::staging_xcm::v4::junction::Junction),
#[codec(index = 38)]
ExportMessage {
network: runtime_types::staging_xcm::v4::junction::NetworkId,
destination: runtime_types::staging_xcm::v4::junctions::Junctions,
xcm: runtime_types::staging_xcm::v4::Xcm,
},
#[codec(index = 39)]
LockAsset {
asset: runtime_types::staging_xcm::v4::asset::Asset,
unlocker: runtime_types::staging_xcm::v4::location::Location,
},
#[codec(index = 40)]
UnlockAsset {
asset: runtime_types::staging_xcm::v4::asset::Asset,
target: runtime_types::staging_xcm::v4::location::Location,
},
#[codec(index = 41)]
NoteUnlockable {
asset: runtime_types::staging_xcm::v4::asset::Asset,
owner: runtime_types::staging_xcm::v4::location::Location,
},
#[codec(index = 42)]
RequestUnlock {
asset: runtime_types::staging_xcm::v4::asset::Asset,
locker: runtime_types::staging_xcm::v4::location::Location,
},
#[codec(index = 43)]
SetFeesMode { jit_withdraw: ::core::primitive::bool },
#[codec(index = 44)]
SetTopic([::core::primitive::u8; 32usize]),
#[codec(index = 45)]
ClearTopic,
#[codec(index = 46)]
AliasOrigin(runtime_types::staging_xcm::v4::location::Location),
#[codec(index = 47)]
UnpaidExecution {
weight_limit: runtime_types::xcm::v3::WeightLimit,
check_origin: ::core::option::Option<
runtime_types::staging_xcm::v4::location::Location,
>,
},
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Instruction2 {
#[codec(index = 0)]
WithdrawAsset(runtime_types::staging_xcm::v4::asset::Assets),
#[codec(index = 1)]
ReserveAssetDeposited(runtime_types::staging_xcm::v4::asset::Assets),
#[codec(index = 2)]
ReceiveTeleportedAsset(runtime_types::staging_xcm::v4::asset::Assets),
#[codec(index = 3)]
QueryResponse {
#[codec(compact)]
query_id: ::core::primitive::u64,
response: runtime_types::staging_xcm::v4::Response,
max_weight: ::sp_weights::Weight,
querier: ::core::option::Option<
runtime_types::staging_xcm::v4::location::Location,
>,
},
#[codec(index = 4)]
TransferAsset {
assets: runtime_types::staging_xcm::v4::asset::Assets,
beneficiary: runtime_types::staging_xcm::v4::location::Location,
},
#[codec(index = 5)]
TransferReserveAsset {
assets: runtime_types::staging_xcm::v4::asset::Assets,
dest: runtime_types::staging_xcm::v4::location::Location,
xcm: runtime_types::staging_xcm::v4::Xcm,
},
#[codec(index = 6)]
Transact {
origin_kind: runtime_types::xcm::v2::OriginKind,
require_weight_at_most: ::sp_weights::Weight,
call: runtime_types::xcm::double_encoded::DoubleEncoded2,
},
#[codec(index = 7)]
HrmpNewChannelOpenRequest {
#[codec(compact)]
sender: ::core::primitive::u32,
#[codec(compact)]
max_message_size: ::core::primitive::u32,
#[codec(compact)]
max_capacity: ::core::primitive::u32,
},
#[codec(index = 8)]
HrmpChannelAccepted {
#[codec(compact)]
recipient: ::core::primitive::u32,
},
#[codec(index = 9)]
HrmpChannelClosing {
#[codec(compact)]
initiator: ::core::primitive::u32,
#[codec(compact)]
sender: ::core::primitive::u32,
#[codec(compact)]
recipient: ::core::primitive::u32,
},
#[codec(index = 10)]
ClearOrigin,
#[codec(index = 11)]
DescendOrigin(runtime_types::staging_xcm::v4::junctions::Junctions),
#[codec(index = 12)]
ReportError(runtime_types::staging_xcm::v4::QueryResponseInfo),
#[codec(index = 13)]
DepositAsset {
assets: runtime_types::staging_xcm::v4::asset::AssetFilter,
beneficiary: runtime_types::staging_xcm::v4::location::Location,
},
#[codec(index = 14)]
DepositReserveAsset {
assets: runtime_types::staging_xcm::v4::asset::AssetFilter,
dest: runtime_types::staging_xcm::v4::location::Location,
xcm: runtime_types::staging_xcm::v4::Xcm,
},
#[codec(index = 15)]
ExchangeAsset {
give: runtime_types::staging_xcm::v4::asset::AssetFilter,
want: runtime_types::staging_xcm::v4::asset::Assets,
maximal: ::core::primitive::bool,
},
#[codec(index = 16)]
InitiateReserveWithdraw {
assets: runtime_types::staging_xcm::v4::asset::AssetFilter,
reserve: runtime_types::staging_xcm::v4::location::Location,
xcm: runtime_types::staging_xcm::v4::Xcm,
},
#[codec(index = 17)]
InitiateTeleport {
assets: runtime_types::staging_xcm::v4::asset::AssetFilter,
dest: runtime_types::staging_xcm::v4::location::Location,
xcm: runtime_types::staging_xcm::v4::Xcm,
},
#[codec(index = 18)]
ReportHolding {
response_info: runtime_types::staging_xcm::v4::QueryResponseInfo,
assets: runtime_types::staging_xcm::v4::asset::AssetFilter,
},
#[codec(index = 19)]
BuyExecution {
fees: runtime_types::staging_xcm::v4::asset::Asset,
weight_limit: runtime_types::xcm::v3::WeightLimit,
},
#[codec(index = 20)]
RefundSurplus,
#[codec(index = 21)]
SetErrorHandler(runtime_types::staging_xcm::v4::Xcm2),
#[codec(index = 22)]
SetAppendix(runtime_types::staging_xcm::v4::Xcm2),
#[codec(index = 23)]
ClearError,
#[codec(index = 24)]
ClaimAsset {
assets: runtime_types::staging_xcm::v4::asset::Assets,
ticket: runtime_types::staging_xcm::v4::location::Location,
},
#[codec(index = 25)]
Trap(#[codec(compact)] ::core::primitive::u64),
#[codec(index = 26)]
SubscribeVersion {
#[codec(compact)]
query_id: ::core::primitive::u64,
max_response_weight: ::sp_weights::Weight,
},
#[codec(index = 27)]
UnsubscribeVersion,
#[codec(index = 28)]
BurnAsset(runtime_types::staging_xcm::v4::asset::Assets),
#[codec(index = 29)]
ExpectAsset(runtime_types::staging_xcm::v4::asset::Assets),
#[codec(index = 30)]
ExpectOrigin(
::core::option::Option<runtime_types::staging_xcm::v4::location::Location>,
),
#[codec(index = 31)]
ExpectError(
::core::option::Option<(
::core::primitive::u32,
runtime_types::xcm::v3::traits::Error,
)>,
),
#[codec(index = 32)]
ExpectTransactStatus(runtime_types::xcm::v3::MaybeErrorCode),
#[codec(index = 33)]
QueryPallet {
module_name: ::std::vec::Vec<::core::primitive::u8>,
response_info: runtime_types::staging_xcm::v4::QueryResponseInfo,
},
#[codec(index = 34)]
ExpectPallet {
#[codec(compact)]
index: ::core::primitive::u32,
name: ::std::vec::Vec<::core::primitive::u8>,
module_name: ::std::vec::Vec<::core::primitive::u8>,
#[codec(compact)]
crate_major: ::core::primitive::u32,
#[codec(compact)]
min_crate_minor: ::core::primitive::u32,
},
#[codec(index = 35)]
ReportTransactStatus(runtime_types::staging_xcm::v4::QueryResponseInfo),
#[codec(index = 36)]
ClearTransactStatus,
#[codec(index = 37)]
UniversalOrigin(runtime_types::staging_xcm::v4::junction::Junction),
#[codec(index = 38)]
ExportMessage {
network: runtime_types::staging_xcm::v4::junction::NetworkId,
destination: runtime_types::staging_xcm::v4::junctions::Junctions,
xcm: runtime_types::staging_xcm::v4::Xcm,
},
#[codec(index = 39)]
LockAsset {
asset: runtime_types::staging_xcm::v4::asset::Asset,
unlocker: runtime_types::staging_xcm::v4::location::Location,
},
#[codec(index = 40)]
UnlockAsset {
asset: runtime_types::staging_xcm::v4::asset::Asset,
target: runtime_types::staging_xcm::v4::location::Location,
},
#[codec(index = 41)]
NoteUnlockable {
asset: runtime_types::staging_xcm::v4::asset::Asset,
owner: runtime_types::staging_xcm::v4::location::Location,
},
#[codec(index = 42)]
RequestUnlock {
asset: runtime_types::staging_xcm::v4::asset::Asset,
locker: runtime_types::staging_xcm::v4::location::Location,
},
#[codec(index = 43)]
SetFeesMode { jit_withdraw: ::core::primitive::bool },
#[codec(index = 44)]
SetTopic([::core::primitive::u8; 32usize]),
#[codec(index = 45)]
ClearTopic,
#[codec(index = 46)]
AliasOrigin(runtime_types::staging_xcm::v4::location::Location),
#[codec(index = 47)]
UnpaidExecution {
weight_limit: runtime_types::xcm::v3::WeightLimit,
check_origin: ::core::option::Option<
runtime_types::staging_xcm::v4::location::Location,
>,
},
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum TransactionSource {
#[codec(index = 0)]
InBlock,
#[codec(index = 1)]
Local,
#[codec(index = 2)]
External,
pub struct PalletInfo {
#[codec(compact)]
pub index: ::core::primitive::u32,
pub name: runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
pub module_name: runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
#[codec(compact)]
pub major: ::core::primitive::u32,
#[codec(compact)]
pub minor: ::core::primitive::u32,
#[codec(compact)]
pub patch: ::core::primitive::u32,
}
#[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),
pub struct QueryResponseInfo {
pub destination: runtime_types::staging_xcm::v4::location::Location,
#[codec(compact)]
pub query_id: ::core::primitive::u64,
pub max_weight: ::sp_weights::Weight,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum UnknownTransaction {
pub enum Response {
#[codec(index = 0)]
CannotLookup,
Null,
#[codec(index = 1)]
NoUnsignedValidator,
Assets(runtime_types::staging_xcm::v4::asset::Assets),
#[codec(index = 2)]
Custom(::core::primitive::u8),
ExecutionResult(
::core::option::Option<(
::core::primitive::u32,
runtime_types::xcm::v3::traits::Error,
)>,
),
#[codec(index = 3)]
Version(::core::primitive::u32),
#[codec(index = 4)]
PalletsInfo(
runtime_types::bounded_collections::bounded_vec::BoundedVec<
runtime_types::staging_xcm::v4::PalletInfo,
>,
),
#[codec(index = 5)]
DispatchResult(runtime_types::xcm::v3::MaybeErrorCode),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct ValidTransaction {
pub priority: ::core::primitive::u64,
pub requires: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>,
pub provides: ::std::vec::Vec<::std::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)]
Other,
#[codec(index = 1)]
CannotLookup,
#[codec(index = 2)]
BadOrigin,
#[codec(index = 3)]
Module(runtime_types::sp_runtime::ModuleError),
#[codec(index = 4)]
ConsumerRemaining,
#[codec(index = 5)]
NoProviders,
#[codec(index = 6)]
TooManyConsumers,
#[codec(index = 7)]
Token(runtime_types::sp_runtime::TokenError),
#[codec(index = 8)]
Arithmetic(runtime_types::sp_arithmetic::ArithmeticError),
#[codec(index = 9)]
Transactional(runtime_types::sp_runtime::TransactionalError),
#[codec(index = 10)]
Exhausted,
#[codec(index = 11)]
Corruption,
#[codec(index = 12)]
Unavailable,
#[codec(index = 13)]
RootNotAllowed,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct ModuleError {
pub index: ::core::primitive::u8,
pub error: [::core::primitive::u8; 4usize],
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum MultiSignature {
#[codec(index = 0)]
Ed25519(runtime_types::sp_core::ed25519::Signature),
#[codec(index = 1)]
Sr25519(runtime_types::sp_core::sr25519::Signature),
#[codec(index = 2)]
Ecdsa(runtime_types::sp_core::ecdsa::Signature),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum TokenError {
#[codec(index = 0)]
FundsUnavailable,
#[codec(index = 1)]
OnlyProvider,
#[codec(index = 2)]
BelowMinimum,
#[codec(index = 3)]
CannotCreate,
#[codec(index = 4)]
UnknownAsset,
#[codec(index = 5)]
Frozen,
#[codec(index = 6)]
Unsupported,
#[codec(index = 7)]
CannotCreateHold,
#[codec(index = 8)]
NotExpendable,
#[codec(index = 9)]
Blocked,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum TransactionalError {
#[codec(index = 0)]
LimitReached,
#[codec(index = 1)]
NoLayer,
}
}
pub mod sp_trie {
use super::runtime_types;
pub mod storage_proof {
use super::runtime_types;
pub struct Xcm(pub ::std::vec::Vec<runtime_types::staging_xcm::v4::Instruction>);
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct StorageProof {
pub trie_nodes: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>,
}
}
}
pub mod sp_version {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct RuntimeVersion {
pub spec_name: ::std::string::String,
pub impl_name: ::std::string::String,
pub authoring_version: ::core::primitive::u32,
pub spec_version: ::core::primitive::u32,
pub impl_version: ::core::primitive::u32,
pub apis:
::std::vec::Vec<([::core::primitive::u8; 8usize], ::core::primitive::u32)>,
pub transaction_version: ::core::primitive::u32,
pub state_version: ::core::primitive::u8,
}
}
pub mod sp_weights {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct RuntimeDbWeight {
pub read: ::core::primitive::u64,
pub write: ::core::primitive::u64,
}
}
pub mod staging_xcm {
use super::runtime_types;
pub mod v3 {
use super::runtime_types;
pub mod multilocation {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct MultiLocation {
pub parents: ::core::primitive::u8,
pub interior: runtime_types::xcm::v3::junctions::Junctions,
}
}
pub struct Xcm2(pub ::std::vec::Vec<runtime_types::staging_xcm::v4::Instruction2>);
}
}
pub mod xcm {
......@@ -3279,6 +4881,8 @@ pub mod api {
BitcoinCore,
#[codec(index = 9)]
BitcoinCash,
#[codec(index = 10)]
PolkadotBulletin,
}
}
pub mod junctions {
......@@ -3506,15 +5110,6 @@ pub mod api {
#[codec(index = 39)]
ExceedsStackLimit,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Outcome {
#[codec(index = 0)]
Complete(::sp_weights::Weight),
#[codec(index = 1)]
Incomplete(::sp_weights::Weight, runtime_types::xcm::v3::traits::Error),
#[codec(index = 2)]
Error(runtime_types::xcm::v3::traits::Error),
}
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Instruction {
......@@ -4015,20 +5610,26 @@ pub mod api {
pub enum VersionedAssetId {
#[codec(index = 3)]
V3(runtime_types::xcm::v3::multiasset::AssetId),
#[codec(index = 4)]
V4(runtime_types::staging_xcm::v4::asset::AssetId),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum VersionedMultiAssets {
pub enum VersionedAssets {
#[codec(index = 1)]
V2(runtime_types::xcm::v2::multiasset::MultiAssets),
#[codec(index = 3)]
V3(runtime_types::xcm::v3::multiasset::MultiAssets),
#[codec(index = 4)]
V4(runtime_types::staging_xcm::v4::asset::Assets),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum VersionedMultiLocation {
pub enum VersionedLocation {
#[codec(index = 1)]
V2(runtime_types::xcm::v2::multilocation::MultiLocation),
#[codec(index = 3)]
V3(runtime_types::staging_xcm::v3::multilocation::MultiLocation),
#[codec(index = 4)]
V4(runtime_types::staging_xcm::v4::location::Location),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum VersionedResponse {
......@@ -4036,6 +5637,8 @@ pub mod api {
V2(runtime_types::xcm::v2::Response),
#[codec(index = 3)]
V3(runtime_types::xcm::v3::Response),
#[codec(index = 4)]
V4(runtime_types::staging_xcm::v4::Response),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum VersionedXcm {
......@@ -4043,6 +5646,8 @@ pub mod api {
V2(runtime_types::xcm::v2::Xcm),
#[codec(index = 3)]
V3(runtime_types::xcm::v3::Xcm),
#[codec(index = 4)]
V4(runtime_types::staging_xcm::v4::Xcm),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum VersionedXcm2 {
......@@ -4050,6 +5655,8 @@ pub mod api {
V2(runtime_types::xcm::v2::Xcm2),
#[codec(index = 3)]
V3(runtime_types::xcm::v3::Xcm2),
#[codec(index = 4)]
V4(runtime_types::staging_xcm::v4::Xcm2),
}
}
}
......
......@@ -18,13 +18,14 @@
pub mod codegen_runtime;
use bp_bridge_hub_polkadot::{TransactionExtension, AVERAGE_BLOCK_INTERVAL};
use bp_polkadot_core::SuffixedCommonTransactionExtensionExt;
use bp_bridge_hub_polkadot::{SignedExtension, AVERAGE_BLOCK_INTERVAL};
use bp_polkadot_core::SuffixedCommonSignedExtensionExt;
use codec::Encode;
use relay_substrate_client::{
calls::UtilityCall as MockUtilityCall, Chain, ChainWithBalances, ChainWithMessages,
ChainWithTransactions, ChainWithUtilityPallet, Error as SubstrateError,
MockedRuntimeUtilityPallet, SignParam, UnderlyingChainProvider, UnsignedTransaction,
ChainWithRuntimeVersion, ChainWithTransactions, ChainWithUtilityPallet,
Error as SubstrateError, MockedRuntimeUtilityPallet, SignParam, SimpleRuntimeVersion,
UnderlyingChainProvider, UnsignedTransaction,
};
use sp_core::{storage::StorageKey, Pair};
use sp_runtime::{generic::SignedPayload, traits::IdentifyAccount};
......@@ -40,8 +41,7 @@ pub type BridgeKusamaMessagesCall = runtime_types::pallet_bridge_messages::palle
pub type BridgePolkadotBulletinGrandpaCall = runtime_types::pallet_bridge_grandpa::pallet::Call;
pub type BridgeKusamaGrandpaCall = runtime_types::pallet_bridge_grandpa::pallet::Call;
pub type BridgeParachainCall = runtime_types::pallet_bridge_parachains::pallet::Call;
type UncheckedExtrinsic =
bp_bridge_hub_polkadot::UncheckedExtrinsic<RuntimeCall, TransactionExtension>;
type UncheckedExtrinsic = bp_bridge_hub_polkadot::UncheckedExtrinsic<RuntimeCall, SignedExtension>;
type UtilityCall = runtime_types::pallet_utility::pallet::Call;
/// Polkadot chain definition
......@@ -93,7 +93,7 @@ impl ChainWithTransactions for BridgeHubPolkadot {
) -> Result<Self::SignedTransaction, SubstrateError> {
let raw_payload = SignedPayload::new(
unsigned.call,
TransactionExtension::from_params(
SignedExtension::from_params(
param.spec_version,
param.transaction_version,
unsigned.era,
......@@ -126,3 +126,8 @@ impl ChainWithMessages for BridgeHubPolkadot {
const FROM_CHAIN_MESSAGE_DETAILS_METHOD: &'static str =
bp_bridge_hub_polkadot::FROM_BRIDGE_HUB_POLKADOT_MESSAGE_DETAILS_METHOD;
}
impl ChainWithRuntimeVersion for BridgeHubPolkadot {
const RUNTIME_VERSION: Option<SimpleRuntimeVersion> =
Some(SimpleRuntimeVersion { spec_version: 1_002_000, transaction_version: 3 });
}
[package]
name = "relay-bridge-hub-rococo-client"
version = "0.1.0"
authors.workspace = true
edition.workspace = true
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
repository.workspace = true
[lints]
workspace = true
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1", features = ["derive"] }
scale-info = { version = "2.11.1", default-features = false, features = ["derive"] }
subxt = { version = "0.35.3", default-features = false, features = ["native"] }
# Bridge dependencies
bp-bridge-hub-rococo = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-header-chain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-messages = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-parachains = { 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" }
# Substrate Dependencies
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
......@@ -18,13 +18,14 @@
pub mod codegen_runtime;
use bp_bridge_hub_rococo::{TransactionExtension, AVERAGE_BLOCK_INTERVAL};
use bp_polkadot_core::SuffixedCommonTransactionExtensionExt;
use bp_bridge_hub_rococo::{SignedExtension, AVERAGE_BLOCK_INTERVAL};
use bp_polkadot_core::SuffixedCommonSignedExtensionExt;
use codec::Encode;
use relay_substrate_client::{
calls::UtilityCall as MockUtilityCall, Chain, ChainWithBalances, ChainWithMessages,
ChainWithTransactions, ChainWithUtilityPallet, Error as SubstrateError,
MockedRuntimeUtilityPallet, SignParam, UnderlyingChainProvider, UnsignedTransaction,
ChainWithRuntimeVersion, ChainWithTransactions, ChainWithUtilityPallet,
Error as SubstrateError, MockedRuntimeUtilityPallet, SignParam, SimpleRuntimeVersion,
UnderlyingChainProvider, UnsignedTransaction,
};
use sp_core::{storage::StorageKey, Pair};
use sp_runtime::{generic::SignedPayload, traits::IdentifyAccount};
......@@ -38,8 +39,7 @@ pub type BridgeBulletinMessagesCall = runtime_types::pallet_bridge_messages::pal
pub type BridgeGrandpaCall = runtime_types::pallet_bridge_grandpa::pallet::Call;
pub type BridgeBulletinGrandpaCall = runtime_types::pallet_bridge_grandpa::pallet::Call2;
pub type BridgeParachainCall = runtime_types::pallet_bridge_parachains::pallet::Call;
type UncheckedExtrinsic =
bp_bridge_hub_rococo::UncheckedExtrinsic<RuntimeCall, TransactionExtension>;
type UncheckedExtrinsic = bp_bridge_hub_rococo::UncheckedExtrinsic<RuntimeCall, SignedExtension>;
type UtilityCall = runtime_types::pallet_utility::pallet::Call;
/// Rococo chain definition
......@@ -91,7 +91,7 @@ impl ChainWithTransactions for BridgeHubRococo {
) -> Result<Self::SignedTransaction, SubstrateError> {
let raw_payload = SignedPayload::new(
unsigned.call,
TransactionExtension::from_params(
SignedExtension::from_params(
param.spec_version,
param.transaction_version,
unsigned.era,
......@@ -124,3 +124,8 @@ impl ChainWithMessages for BridgeHubRococo {
const FROM_CHAIN_MESSAGE_DETAILS_METHOD: &'static str =
bp_bridge_hub_rococo::FROM_BRIDGE_HUB_ROCOCO_MESSAGE_DETAILS_METHOD;
}
impl ChainWithRuntimeVersion for BridgeHubRococo {
const RUNTIME_VERSION: Option<SimpleRuntimeVersion> =
Some(SimpleRuntimeVersion { spec_version: 1_009_000, transaction_version: 4 });
}
[package]
name = "relay-bridge-hub-westend-client"
version = "0.1.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"
authors.workspace = true
edition.workspace = true
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
repository.workspace = true
[lints]
workspace = true
[dependencies]
codec = { package = "parity-scale-codec", version = "3.1.5", features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
subxt = { version = "0.32.1", default-features = false, features = ["native"] }
codec = { package = "parity-scale-codec", version = "3.6.1", features = ["derive"] }
scale-info = { version = "2.11.1", default-features = false, features = ["derive"] }
subxt = { version = "0.35.3", default-features = false, features = ["native"] }
# Bridge dependencies
bp-bridge-hub-westend = { path = "../../primitives/chain-bridge-hub-westend" }
bp-header-chain = { path = "../../primitives/header-chain" }
bp-messages = { path = "../../primitives/messages" }
bp-parachains = { path = "../../primitives/parachains" }
bp-polkadot-core = { path = "../../primitives/polkadot-core" }
bp-rococo = { path = "../../primitives/chain-rococo" }
bp-bridge-hub-westend = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-header-chain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-messages = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-parachains = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-polkadot-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-rococo = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bridge-runtime-common = { path = "../../bin/runtime-common" }
relay-substrate-client = { path = "../client-substrate" }
bridge-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
# Substrate Dependencies
......@@ -32,5 +33,5 @@ sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "mas
sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
[dev-dependencies]
bp-runtime = { path = "../../primitives/runtime" }
bp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
......@@ -18,13 +18,14 @@
pub mod codegen_runtime;
use bp_bridge_hub_westend::{TransactionExtension, AVERAGE_BLOCK_INTERVAL};
use bp_polkadot_core::SuffixedCommonTransactionExtensionExt;
use bp_bridge_hub_westend::{SignedExtension, AVERAGE_BLOCK_INTERVAL};
use bp_polkadot_core::SuffixedCommonSignedExtensionExt;
use codec::Encode;
use relay_substrate_client::{
calls::UtilityCall as MockUtilityCall, Chain, ChainWithBalances, ChainWithMessages,
ChainWithTransactions, ChainWithUtilityPallet, Error as SubstrateError,
MockedRuntimeUtilityPallet, SignParam, UnderlyingChainProvider, UnsignedTransaction,
ChainWithRuntimeVersion, ChainWithTransactions, ChainWithUtilityPallet,
Error as SubstrateError, MockedRuntimeUtilityPallet, SignParam, SimpleRuntimeVersion,
UnderlyingChainProvider, UnsignedTransaction,
};
use sp_core::{storage::StorageKey, Pair};
use sp_runtime::{generic::SignedPayload, traits::IdentifyAccount};
......@@ -36,8 +37,7 @@ pub type RuntimeCall = runtime_types::bridge_hub_westend_runtime::RuntimeCall;
pub type BridgeMessagesCall = runtime_types::pallet_bridge_messages::pallet::Call;
pub type BridgeGrandpaCall = runtime_types::pallet_bridge_grandpa::pallet::Call;
pub type BridgeParachainCall = runtime_types::pallet_bridge_parachains::pallet::Call;
type UncheckedExtrinsic =
bp_bridge_hub_westend::UncheckedExtrinsic<RuntimeCall, TransactionExtension>;
type UncheckedExtrinsic = bp_bridge_hub_westend::UncheckedExtrinsic<RuntimeCall, SignedExtension>;
type UtilityCall = runtime_types::pallet_utility::pallet::Call;
/// Westend chain definition
......@@ -89,7 +89,7 @@ impl ChainWithTransactions for BridgeHubWestend {
) -> Result<Self::SignedTransaction, SubstrateError> {
let raw_payload = SignedPayload::new(
unsigned.call,
TransactionExtension::from_params(
SignedExtension::from_params(
param.spec_version,
param.transaction_version,
unsigned.era,
......@@ -122,3 +122,8 @@ impl ChainWithMessages for BridgeHubWestend {
const FROM_CHAIN_MESSAGE_DETAILS_METHOD: &'static str =
bp_bridge_hub_westend::FROM_BRIDGE_HUB_WESTEND_MESSAGE_DETAILS_METHOD;
}
impl ChainWithRuntimeVersion for BridgeHubWestend {
const RUNTIME_VERSION: Option<SimpleRuntimeVersion> =
Some(SimpleRuntimeVersion { spec_version: 1_009_000, transaction_version: 4 });
}
[package]
name = "relay-kusama-client"
version = "0.1.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"
authors.workspace = true
edition.workspace = true
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
repository.workspace = true
[lints]
workspace = true
[dependencies]
codec = { package = "parity-scale-codec", version = "3.1.5", features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
subxt = { version = "0.32.1", default-features = false, features = ["native"] }
codec = { package = "parity-scale-codec", version = "3.6.1", features = ["derive"] }
scale-info = { version = "2.11.1", default-features = false, features = ["derive"] }
subxt = { version = "0.35.3", default-features = false, features = ["native"] }
# Bridge dependencies
bp-kusama = { path = "../../primitives/chain-kusama" }
bp-polkadot-core = { path = "../../primitives/polkadot-core" }
bp-runtime = { path = "../../primitives/runtime" }
bp-kusama = { 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" }
relay-substrate-client = { path = "../client-substrate" }
relay-utils = { path = "../utils" }
relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
relay-utils = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
# Substrate Dependencies
......
......@@ -19,11 +19,12 @@
pub mod codegen_runtime;
use bp_kusama::{AccountInfoStorageMapKeyProvider, KUSAMA_SYNCED_HEADERS_GRANDPA_INFO_METHOD};
use bp_polkadot_core::SuffixedCommonTransactionExtensionExt;
use bp_polkadot_core::SuffixedCommonSignedExtensionExt;
use codec::Encode;
use relay_substrate_client::{
Chain, ChainWithBalances, ChainWithGrandpa, ChainWithTransactions, Error as SubstrateError,
RelayChain, SignParam, UnderlyingChainProvider, UnsignedTransaction,
Chain, ChainWithBalances, ChainWithGrandpa, ChainWithRuntimeVersion, ChainWithTransactions,
Error as SubstrateError, RelayChain, SignParam, SimpleRuntimeVersion, UnderlyingChainProvider,
UnsignedTransaction,
};
use sp_core::{storage::StorageKey, Pair};
use sp_runtime::{generic::SignedPayload, traits::IdentifyAccount, MultiAddress};
......@@ -87,7 +88,7 @@ impl RelayChain for Kusama {
impl ChainWithTransactions for Kusama {
type AccountKeyPair = sp_core::sr25519::Pair;
type SignedTransaction =
bp_polkadot_core::UncheckedExtrinsic<Self::Call, bp_kusama::TransactionExtension>;
bp_polkadot_core::UncheckedExtrinsic<Self::Call, bp_kusama::SignedExtension>;
fn sign_transaction(
param: SignParam<Self>,
......@@ -95,7 +96,7 @@ impl ChainWithTransactions for Kusama {
) -> Result<Self::SignedTransaction, SubstrateError> {
let raw_payload = SignedPayload::new(
unsigned.call,
bp_kusama::TransactionExtension::from_params(
bp_kusama::SignedExtension::from_params(
param.spec_version,
param.transaction_version,
unsigned.era,
......@@ -118,3 +119,8 @@ impl ChainWithTransactions for Kusama {
))
}
}
impl ChainWithRuntimeVersion for Kusama {
const RUNTIME_VERSION: Option<SimpleRuntimeVersion> =
Some(SimpleRuntimeVersion { spec_version: 1_001_002, transaction_version: 25 });
}
[package]
name = "relay-polkadot-bulletin-client"
version = "0.1.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"
authors.workspace = true
edition.workspace = true
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
repository.workspace = true
[lints]
workspace = true
[dependencies]
codec = { package = "parity-scale-codec", version = "3.1.5", features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
subxt = { version = "0.32.1", default-features = false, features = ["native"] }
codec = { package = "parity-scale-codec", version = "3.6.1", features = ["derive"] }
scale-info = { version = "2.11.1", default-features = false, features = ["derive"] }
subxt = { version = "0.35.3", default-features = false, features = ["native"] }
# Bridge dependencies
bp-header-chain = { path = "../../primitives/header-chain" }
bp-messages = { path = "../../primitives/messages" }
bp-polkadot-core = { path = "../../primitives/polkadot-core" }
bp-polkadot-bulletin = { path = "../../primitives/chain-polkadot-bulletin" }
bp-runtime = { path = "../../primitives/runtime" }
bridge-runtime-common = { path = "../../bin/runtime-common" }
relay-substrate-client = { path = "../client-substrate" }
relay-utils = { path = "../utils" }
bp-header-chain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-messages = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-polkadot-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-polkadot-bulletin = { 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" }
relay-utils = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
# Substrate Dependencies
......
......@@ -21,8 +21,9 @@ mod codegen_runtime;
use bp_polkadot_bulletin::POLKADOT_BULLETIN_SYNCED_HEADERS_GRANDPA_INFO_METHOD;
use codec::Encode;
use relay_substrate_client::{
Chain, ChainWithBalances, ChainWithGrandpa, ChainWithMessages, ChainWithTransactions,
Error as SubstrateError, SignParam, UnderlyingChainProvider, UnsignedTransaction,
Chain, ChainWithBalances, ChainWithGrandpa, ChainWithMessages, ChainWithRuntimeVersion,
ChainWithTransactions, Error as SubstrateError, SignParam, SimpleRuntimeVersion,
UnderlyingChainProvider, UnsignedTransaction,
};
use sp_core::{storage::StorageKey, Pair};
use sp_runtime::{generic::SignedPayload, traits::IdentifyAccount, MultiAddress};
......@@ -101,10 +102,8 @@ impl ChainWithBalances for PolkadotBulletin {
impl ChainWithTransactions for PolkadotBulletin {
type AccountKeyPair = sp_core::sr25519::Pair;
type SignedTransaction = bp_polkadot_bulletin::UncheckedExtrinsic<
Self::Call,
bp_polkadot_bulletin::TransactionExtension,
>;
type SignedTransaction =
bp_polkadot_bulletin::UncheckedExtrinsic<Self::Call, bp_polkadot_bulletin::SignedExtension>;
fn sign_transaction(
param: SignParam<Self>,
......@@ -112,7 +111,7 @@ impl ChainWithTransactions for PolkadotBulletin {
) -> Result<Self::SignedTransaction, SubstrateError> {
let raw_payload = SignedPayload::new(
unsigned.call,
bp_polkadot_bulletin::TransactionExtension::from_params(
bp_polkadot_bulletin::SignedExtension::from_params(
param.spec_version,
param.transaction_version,
unsigned.era,
......@@ -133,3 +132,8 @@ impl ChainWithTransactions for PolkadotBulletin {
))
}
}
impl ChainWithRuntimeVersion for PolkadotBulletin {
const RUNTIME_VERSION: Option<SimpleRuntimeVersion> =
Some(SimpleRuntimeVersion { spec_version: 100, transaction_version: 1 });
}
[package]
name = "relay-polkadot-client"
version = "0.1.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"
authors.workspace = true
edition.workspace = true
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
repository.workspace = true
[lints]
workspace = true
[dependencies]
codec = { package = "parity-scale-codec", version = "3.1.5", features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
subxt = { version = "0.32.1", default-features = false, features = ["native"] }
codec = { package = "parity-scale-codec", version = "3.6.1", features = ["derive"] }
scale-info = { version = "2.11.1", default-features = false, features = ["derive"] }
subxt = { version = "0.35.3", default-features = false, features = ["native"] }
# Bridge dependencies
bp-polkadot = { path = "../../primitives/chain-polkadot" }
bp-polkadot-core = { path = "../../primitives/polkadot-core" }
bp-runtime = { path = "../../primitives/runtime" }
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" }
relay-substrate-client = { path = "../client-substrate" }
relay-utils = { path = "../utils" }
relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
relay-utils = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
# Substrate Dependencies
......
......@@ -19,11 +19,12 @@
mod codegen_runtime;
use bp_polkadot::{AccountInfoStorageMapKeyProvider, POLKADOT_SYNCED_HEADERS_GRANDPA_INFO_METHOD};
use bp_polkadot_core::SuffixedCommonTransactionExtensionExt;
use bp_polkadot_core::SuffixedCommonSignedExtensionExt;
use codec::Encode;
use relay_substrate_client::{
Chain, ChainWithBalances, ChainWithGrandpa, ChainWithTransactions, Error as SubstrateError,
RelayChain, SignParam, UnderlyingChainProvider, UnsignedTransaction,
Chain, ChainWithBalances, ChainWithGrandpa, ChainWithRuntimeVersion, ChainWithTransactions,
Error as SubstrateError, RelayChain, SignParam, SimpleRuntimeVersion, UnderlyingChainProvider,
UnsignedTransaction,
};
use sp_core::{storage::StorageKey, Pair};
use sp_runtime::{generic::SignedPayload, traits::IdentifyAccount, MultiAddress};
......@@ -87,7 +88,7 @@ impl RelayChain for Polkadot {
impl ChainWithTransactions for Polkadot {
type AccountKeyPair = sp_core::sr25519::Pair;
type SignedTransaction =
bp_polkadot_core::UncheckedExtrinsic<Self::Call, bp_polkadot::TransactionExtension>;
bp_polkadot_core::UncheckedExtrinsic<Self::Call, bp_polkadot::SignedExtension>;
fn sign_transaction(
param: SignParam<Self>,
......@@ -95,7 +96,7 @@ impl ChainWithTransactions for Polkadot {
) -> Result<Self::SignedTransaction, SubstrateError> {
let raw_payload = SignedPayload::new(
unsigned.call,
bp_polkadot::TransactionExtension::from_params(
bp_polkadot::SignedExtension::from_params(
param.spec_version,
param.transaction_version,
unsigned.era,
......@@ -118,3 +119,8 @@ impl ChainWithTransactions for Polkadot {
))
}
}
impl ChainWithRuntimeVersion for Polkadot {
const RUNTIME_VERSION: Option<SimpleRuntimeVersion> =
Some(SimpleRuntimeVersion { spec_version: 1_001_002, transaction_version: 25 });
}
[package]
name = "relay-rococo-client"
version = "0.1.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"
authors.workspace = true
edition.workspace = true
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
repository.workspace = true
[lints]
workspace = true
[dependencies]
codec = { package = "parity-scale-codec", version = "3.1.5", features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
subxt = { version = "0.32.1", default-features = false, features = ["native"] }
codec = { package = "parity-scale-codec", version = "3.6.1", features = ["derive"] }
scale-info = { version = "2.11.1", default-features = false, features = ["derive"] }
subxt = { version = "0.35.3", default-features = false, features = ["native"] }
# Bridge dependencies
bp-polkadot-core = { path = "../../primitives/polkadot-core" }
bp-rococo = { path = "../../primitives/chain-rococo" }
bp-polkadot-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-rococo = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
relay-substrate-client = { path = "../client-substrate" }
relay-utils = { path = "../utils" }
relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
relay-utils = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
# Substrate Dependencies
......