Newer
Older
message: ::std::boxed::Box<runtime_types::xcm::VersionedXcm>,
},
#[codec(index = 1)]
teleport_assets {
Svyatoslav Nikolsky
committed
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 {
Svyatoslav Nikolsky
committed
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)]
execute {
message: ::std::boxed::Box<runtime_types::xcm::VersionedXcm2>,
max_weight: ::sp_weights::Weight,
},
#[codec(index = 4)]
force_xcm_version {
Svyatoslav Nikolsky
committed
location:
::std::boxed::Box<runtime_types::staging_xcm::v4::location::Location>,
version: ::core::primitive::u32,
},
#[codec(index = 5)]
force_default_xcm_version {
maybe_xcm_version: ::core::option::Option<::core::primitive::u32>,
},
#[codec(index = 6)]
force_subscribe_version_notify {
Svyatoslav Nikolsky
committed
location: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
},
#[codec(index = 7)]
force_unsubscribe_version_notify {
Svyatoslav Nikolsky
committed
location: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
},
#[codec(index = 8)]
limited_reserve_transfer_assets {
Svyatoslav Nikolsky
committed
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 {
Svyatoslav Nikolsky
committed
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 },
Svyatoslav Nikolsky
committed
#[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,
},
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
#[codec(index = 0)]
Unreachable,
#[codec(index = 1)]
SendFailure,
#[codec(index = 2)]
Filtered,
#[codec(index = 3)]
UnweighableMessage,
#[codec(index = 4)]
DestinationNotInvertible,
#[codec(index = 5)]
Empty,
#[codec(index = 6)]
CannotReanchor,
#[codec(index = 7)]
TooManyAssets,
#[codec(index = 8)]
InvalidOrigin,
#[codec(index = 9)]
BadVersion,
#[codec(index = 10)]
BadLocation,
#[codec(index = 11)]
NoSubscription,
#[codec(index = 12)]
AlreadySubscribed,
#[codec(index = 13)]
CannotCheckOutTeleport,
#[codec(index = 14)]
LowBalance,
#[codec(index = 15)]
TooManyLocks,
#[codec(index = 16)]
AccountNotSovereign,
#[codec(index = 17)]
FeesNotMet,
#[codec(index = 18)]
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)]
Svyatoslav Nikolsky
committed
Attempted { outcome: runtime_types::staging_xcm::v4::traits::Outcome },
Svyatoslav Nikolsky
committed
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],
},
UnexpectedResponse {
Svyatoslav Nikolsky
committed
origin: runtime_types::staging_xcm::v4::location::Location,
query_id: ::core::primitive::u64,
},
ResponseReady {
query_id: ::core::primitive::u64,
Svyatoslav Nikolsky
committed
response: runtime_types::staging_xcm::v4::Response,
Notified {
query_id: ::core::primitive::u64,
pallet_index: ::core::primitive::u8,
call_index: ::core::primitive::u8,
},
NotifyOverweight {
query_id: ::core::primitive::u64,
pallet_index: ::core::primitive::u8,
call_index: ::core::primitive::u8,
actual_weight: ::sp_weights::Weight,
max_budgeted_weight: ::sp_weights::Weight,
},
NotifyDispatchError {
query_id: ::core::primitive::u64,
pallet_index: ::core::primitive::u8,
call_index: ::core::primitive::u8,
},
NotifyDecodeFailed {
query_id: ::core::primitive::u64,
pallet_index: ::core::primitive::u8,
call_index: ::core::primitive::u8,
},
InvalidResponder {
Svyatoslav Nikolsky
committed
origin: runtime_types::staging_xcm::v4::location::Location,
query_id: ::core::primitive::u64,
expected_location: ::core::option::Option<
Svyatoslav Nikolsky
committed
runtime_types::staging_xcm::v4::location::Location,
InvalidResponderVersion {
Svyatoslav Nikolsky
committed
origin: runtime_types::staging_xcm::v4::location::Location,
query_id: ::core::primitive::u64,
},
ResponseTaken { query_id: ::core::primitive::u64 },
AssetsTrapped {
hash: ::subxt::utils::H256,
Svyatoslav Nikolsky
committed
origin: runtime_types::staging_xcm::v4::location::Location,
assets: runtime_types::xcm::VersionedAssets,
VersionChangeNotified {
Svyatoslav Nikolsky
committed
destination: runtime_types::staging_xcm::v4::location::Location,
result: ::core::primitive::u32,
Svyatoslav Nikolsky
committed
cost: runtime_types::staging_xcm::v4::asset::Assets,
message_id: [::core::primitive::u8; 32usize],
},
SupportedVersionChanged {
Svyatoslav Nikolsky
committed
location: runtime_types::staging_xcm::v4::location::Location,
version: ::core::primitive::u32,
},
NotifyTargetSendFail {
Svyatoslav Nikolsky
committed
location: runtime_types::staging_xcm::v4::location::Location,
query_id: ::core::primitive::u64,
error: runtime_types::xcm::v3::traits::Error,
},
NotifyTargetMigrationFail {
Svyatoslav Nikolsky
committed
location: runtime_types::xcm::VersionedLocation,
query_id: ::core::primitive::u64,
},
InvalidQuerierVersion {
Svyatoslav Nikolsky
committed
origin: runtime_types::staging_xcm::v4::location::Location,
query_id: ::core::primitive::u64,
},
InvalidQuerier {
Svyatoslav Nikolsky
committed
origin: runtime_types::staging_xcm::v4::location::Location,
query_id: ::core::primitive::u64,
Svyatoslav Nikolsky
committed
expected_querier: runtime_types::staging_xcm::v4::location::Location,
maybe_actual_querier: ::core::option::Option<
Svyatoslav Nikolsky
committed
runtime_types::staging_xcm::v4::location::Location,
VersionNotifyStarted {
Svyatoslav Nikolsky
committed
destination: runtime_types::staging_xcm::v4::location::Location,
cost: runtime_types::staging_xcm::v4::asset::Assets,
message_id: [::core::primitive::u8; 32usize],
},
VersionNotifyRequested {
Svyatoslav Nikolsky
committed
destination: runtime_types::staging_xcm::v4::location::Location,
cost: runtime_types::staging_xcm::v4::asset::Assets,
message_id: [::core::primitive::u8; 32usize],
},
VersionNotifyUnrequested {
Svyatoslav Nikolsky
committed
destination: runtime_types::staging_xcm::v4::location::Location,
cost: runtime_types::staging_xcm::v4::asset::Assets,
message_id: [::core::primitive::u8; 32usize],
},
Svyatoslav Nikolsky
committed
paying: runtime_types::staging_xcm::v4::location::Location,
fees: runtime_types::staging_xcm::v4::asset::Assets,
AssetsClaimed {
hash: ::subxt::utils::H256,
Svyatoslav Nikolsky
committed
origin: runtime_types::staging_xcm::v4::location::Location,
assets: runtime_types::xcm::VersionedAssets,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Origin {
#[codec(index = 0)]
Svyatoslav Nikolsky
committed
Xcm(runtime_types::staging_xcm::v4::location::Location),
#[codec(index = 1)]
Svyatoslav Nikolsky
committed
Response(runtime_types::staging_xcm::v4::location::Location),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum QueryStatus<_0> {
#[codec(index = 0)]
Pending {
Svyatoslav Nikolsky
committed
responder: runtime_types::xcm::VersionedLocation,
maybe_match_querier:
Svyatoslav Nikolsky
committed
::core::option::Option<runtime_types::xcm::VersionedLocation>,
maybe_notify:
::core::option::Option<(::core::primitive::u8, ::core::primitive::u8)>,
timeout: _0,
},
#[codec(index = 1)]
VersionNotifier {
Svyatoslav Nikolsky
committed
origin: runtime_types::xcm::VersionedLocation,
is_active: ::core::primitive::bool,
},
#[codec(index = 2)]
Ready { response: runtime_types::xcm::VersionedResponse, at: _0 },
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct RemoteLockedFungibleRecord<_0> {
pub amount: ::core::primitive::u128,
Svyatoslav Nikolsky
committed
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,
)>,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum VersionMigrationStage {
#[codec(index = 0)]
MigrateSupportedVersion,
MigrateVersionNotifiers,
#[codec(index = 2)]
NotifyCurrentTargets(
::core::option::Option<::std::vec::Vec<::core::primitive::u8>>,
),
#[codec(index = 3)]
MigrateAndNotifyOldTargets,
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
}
}
}
pub mod polkadot_core_primitives {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct InboundDownwardMessage<_0> {
pub sent_at: _0,
pub msg: ::std::vec::Vec<::core::primitive::u8>,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct InboundHrmpMessage<_0> {
pub sent_at: _0,
pub data: ::std::vec::Vec<::core::primitive::u8>,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct OutboundHrmpMessage<_0> {
pub recipient: _0,
pub data: ::std::vec::Vec<::core::primitive::u8>,
}
}
pub mod polkadot_parachain_primitives {
use super::runtime_types;
pub mod primitives {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct HeadData(pub ::std::vec::Vec<::core::primitive::u8>);
#[derive(
:: codec :: Decode,
:: codec :: Encode,
:: subxt :: ext :: codec :: CompactAs,
Clone,
Debug,
PartialEq,
)]
pub struct Id(pub ::core::primitive::u32);
}
}
pub mod polkadot_primitives {
use super::runtime_types;
pub mod async_backing {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct AsyncBackingParams {
pub max_candidate_depth: ::core::primitive::u32,
pub allowed_ancestry_len: ::core::primitive::u32,
}
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct AbridgedHostConfiguration {
pub max_code_size: ::core::primitive::u32,
pub max_head_data_size: ::core::primitive::u32,
pub max_upward_queue_count: ::core::primitive::u32,
pub max_upward_queue_size: ::core::primitive::u32,
pub max_upward_message_size: ::core::primitive::u32,
pub max_upward_message_num_per_candidate: ::core::primitive::u32,
pub hrmp_max_message_num_per_candidate: ::core::primitive::u32,
pub validation_upgrade_cooldown: ::core::primitive::u32,
pub validation_upgrade_delay: ::core::primitive::u32,
pub async_backing_params:
runtime_types::polkadot_primitives::v6::async_backing::AsyncBackingParams,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct AbridgedHrmpChannel {
pub max_capacity: ::core::primitive::u32,
pub max_total_size: ::core::primitive::u32,
pub max_message_size: ::core::primitive::u32,
pub msg_count: ::core::primitive::u32,
pub total_size: ::core::primitive::u32,
pub mqc_head: ::core::option::Option<::subxt::utils::H256>,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct PersistedValidationData<_0, _1> {
pub parent_head:
runtime_types::polkadot_parachain_primitives::primitives::HeadData,
pub relay_parent_number: _1,
pub relay_parent_storage_root: _0,
pub max_pov_size: ::core::primitive::u32,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum UpgradeGoAhead {
#[codec(index = 0)]
Abort,
#[codec(index = 1)]
GoAhead,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum UpgradeRestriction {
#[codec(index = 0)]
Present,
}
}
}
Svyatoslav Nikolsky
committed
pub mod primitive_types {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
Svyatoslav Nikolsky
committed
pub struct U256(pub [::core::primitive::u64; 4usize]);
Svyatoslav Nikolsky
committed
pub mod snowbridge_amcl {
Svyatoslav Nikolsky
committed
pub mod bls381 {
Svyatoslav Nikolsky
committed
pub mod big {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
Svyatoslav Nikolsky
committed
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,
}
Svyatoslav Nikolsky
committed
pub mod snowbridge_beacon_primitives {
Svyatoslav Nikolsky
committed
pub mod bls {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
Svyatoslav Nikolsky
committed
pub enum BlsError {
#[codec(index = 0)]
InvalidSignature,
#[codec(index = 1)]
InvalidPublicKey,
#[codec(index = 2)]
InvalidAggregatePublicKeys,
#[codec(index = 3)]
SignatureVerificationFailed,
}
Svyatoslav Nikolsky
committed
pub mod types {
Svyatoslav Nikolsky
committed
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
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)]
Svyatoslav Nikolsky
committed
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)]
Svyatoslav Nikolsky
committed
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)]
Svyatoslav Nikolsky
committed
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)]
Svyatoslav Nikolsky
committed
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
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 ,) , }
Svyatoslav Nikolsky
committed
pub mod updates {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
Svyatoslav Nikolsky
committed
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)]
Svyatoslav Nikolsky
committed
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 > , }
Svyatoslav Nikolsky
committed
pub mod snowbridge_core {
Svyatoslav Nikolsky
committed
pub mod inbound {
Svyatoslav Nikolsky
committed
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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 operating_mode {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum BasicOperatingMode {
#[codec(index = 0)]
Normal,
#[codec(index = 1)]
Halted,
}
}
pub mod outbound {
use super::runtime_types;
pub mod v1 {
use super::runtime_types;
#[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 enum SendError {
#[codec(index = 0)]
MessageTooLarge,
#[codec(index = 1)]
Halted,
#[codec(index = 2)]
InvalidChannel,
}
}
pub mod pricing {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Rewards<_0> {
pub local: _0,
pub remote: runtime_types::primitive_types::U256,
}
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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 struct ChannelId(pub [::core::primitive::u8; 32usize]);
}
pub mod snowbridge_milagro_bls {
use super::runtime_types;
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_pallet_ethereum_client {
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)] 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)]
SkippedSyncCommitteePeriod,
#[codec(index = 1)]
IrrelevantUpdate,
#[codec(index = 2)]
NotBootstrapped,
#[codec(index = 3)]
SyncCommitteeParticipantsNotSupermajority,
#[codec(index = 4)]
InvalidHeaderMerkleProof,
#[codec(index = 5)]
InvalidSyncCommitteeMerkleProof,
#[codec(index = 6)]
InvalidExecutionHeaderProof,
#[codec(index = 7)]
InvalidAncestryMerkleProof,
#[codec(index = 8)]
InvalidBlockRootsRootMerkleProof,
#[codec(index = 9)]
HeaderNotFinalized,
#[codec(index = 10)]
BlockBodyHashTreeRootFailed,
#[codec(index = 11)]
HeaderHashTreeRootFailed,
#[codec(index = 12)]
SyncCommitteeHashTreeRootFailed,
#[codec(index = 13)]
SigningRootHashTreeRootFailed,
#[codec(index = 14)]
ForkDataHashTreeRootFailed,
#[codec(index = 15)]
ExpectedFinalizedHeaderNotStored,
#[codec(index = 16)]
BLSPreparePublicKeysFailed,
#[codec(index = 17)]
BLSVerificationFailed(
runtime_types::snowbridge_beacon_primitives::bls::BlsError,
),
#[codec(index = 18)]
InvalidUpdateSlot,
#[codec(index = 19)]
InvalidSyncCommitteeUpdate,
#[codec(index = 20)]
ExecutionHeaderTooFarBehind,
#[codec(index = 21)]
ExecutionHeaderSkippedBlock,
#[codec(index = 22)]
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,