Newer
Older
location: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
},
#[codec(index = 7)]
force_unsubscribe_version_notify {
location: ::std::boxed::Box<runtime_types::xcm::VersionedLocation>,
},
#[codec(index = 8)]
limited_reserve_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 = 9)]
limited_teleport_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 = 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>,
},
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
}
#[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)]
#[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)]
Attempted { outcome: runtime_types::staging_xcm::v4::traits::Outcome },
#[codec(index = 1)]
Sent {
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::v4::location::Location,
query_id: ::core::primitive::u64,
},
#[codec(index = 3)]
ResponseReady {
query_id: ::core::primitive::u64,
response: runtime_types::staging_xcm::v4::Response,
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
},
#[codec(index = 4)]
Notified {
query_id: ::core::primitive::u64,
pallet_index: ::core::primitive::u8,
call_index: ::core::primitive::u8,
},
#[codec(index = 5)]
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,
},
#[codec(index = 6)]
NotifyDispatchError {
query_id: ::core::primitive::u64,
pallet_index: ::core::primitive::u8,
call_index: ::core::primitive::u8,
},
#[codec(index = 7)]
NotifyDecodeFailed {
query_id: ::core::primitive::u64,
pallet_index: ::core::primitive::u8,
call_index: ::core::primitive::u8,
},
#[codec(index = 8)]
InvalidResponder {
origin: runtime_types::staging_xcm::v4::location::Location,
query_id: ::core::primitive::u64,
expected_location: ::core::option::Option<
runtime_types::staging_xcm::v4::location::Location,
>,
},
#[codec(index = 9)]
InvalidResponderVersion {
origin: runtime_types::staging_xcm::v4::location::Location,
query_id: ::core::primitive::u64,
},
#[codec(index = 10)]
ResponseTaken { query_id: ::core::primitive::u64 },
#[codec(index = 11)]
AssetsTrapped {
hash: ::subxt::utils::H256,
origin: runtime_types::staging_xcm::v4::location::Location,
assets: runtime_types::xcm::VersionedAssets,
},
#[codec(index = 12)]
VersionChangeNotified {
destination: runtime_types::staging_xcm::v4::location::Location,
result: ::core::primitive::u32,
cost: runtime_types::staging_xcm::v4::asset::Assets,
message_id: [::core::primitive::u8; 32usize],
},
#[codec(index = 13)]
SupportedVersionChanged {
location: runtime_types::staging_xcm::v4::location::Location,
version: ::core::primitive::u32,
},
#[codec(index = 14)]
NotifyTargetSendFail {
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::VersionedLocation,
query_id: ::core::primitive::u64,
},
#[codec(index = 16)]
InvalidQuerierVersion {
origin: runtime_types::staging_xcm::v4::location::Location,
query_id: ::core::primitive::u64,
},
#[codec(index = 17)]
InvalidQuerier {
origin: runtime_types::staging_xcm::v4::location::Location,
query_id: ::core::primitive::u64,
expected_querier: runtime_types::staging_xcm::v4::location::Location,
maybe_actual_querier: ::core::option::Option<
runtime_types::staging_xcm::v4::location::Location,
>,
},
#[codec(index = 18)]
VersionNotifyStarted {
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::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::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::v4::location::Location,
fees: runtime_types::staging_xcm::v4::asset::Assets,
},
#[codec(index = 22)]
AssetsClaimed {
hash: ::subxt::utils::H256,
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::v4::location::Location),
#[codec(index = 1)]
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::VersionedLocation,
maybe_match_querier:
::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::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,
pub owner: runtime_types::xcm::VersionedLocation,
pub locker: runtime_types::xcm::VersionedLocation,
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
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,
#[codec(index = 1)]
MigrateVersionNotifiers,
#[codec(index = 2)]
NotifyCurrentTargets(
::core::option::Option<::std::vec::Vec<::core::primitive::u8>>,
),
#[codec(index = 3)]
MigrateAndNotifyOldTargets,
}
}
}
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);
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct ValidationCode(pub ::std::vec::Vec<::core::primitive::u8>);
}
}
pub mod polkadot_primitives {
use super::runtime_types;
pub mod v6 {
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,
}
}
}
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct U256(pub [::core::primitive::u64; 4usize]);
use super::runtime_types;
use super::runtime_types;
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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,
}
}
}
}
use super::runtime_types;
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
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)]
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
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
2562
2563
2564
2565
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 > , }
}
}
use super::runtime_types;
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
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,
}
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum BasicOperatingMode {
#[codec(index = 0)]
Normal,
#[codec(index = 1)]
Halted,
}
use super::runtime_types;
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
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 Fee<_0> {
pub local: _0,
pub remote: _0,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum SendError {
#[codec(index = 0)]
MessageTooLarge,
#[codec(index = 1)]
Halted,
#[codec(index = 2)]
InvalidChannel,
}
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,
pub multiplier: runtime_types::sp_arithmetic::fixed_point::FixedU128,
}
#[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 UD60x18(pub 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]);
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_outbound_queue_merkle_tree {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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 snowbridge_pallet_ethereum_client {
use super::runtime_types;
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)]
#[codec(index = 1)]
#[codec(index = 2)]
#[codec(index = 3)]
#[codec(index = 4)]
#[codec(index = 5)]
#[codec(index = 6)]
#[codec(index = 7)]
#[codec(index = 8)]
#[codec(index = 9)]
#[codec(index = 10)]
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
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 {