From a22f464c7b9ea9381a25c07c3eda6f1aaece261c Mon Sep 17 00:00:00 2001 From: Vladislav Markushin Date: Tue, 25 Jul 2023 15:19:59 -0300 Subject: [PATCH] update subxt types --- .../subxt/generated/src/default/parachain.rs | 796 +++++++++++++++++- 1 file changed, 759 insertions(+), 37 deletions(-) diff --git a/utils/subxt/generated/src/default/parachain.rs b/utils/subxt/generated/src/default/parachain.rs index 6079d837a..07537f373 100644 --- a/utils/subxt/generated/src/default/parachain.rs +++ b/utils/subxt/generated/src/default/parachain.rs @@ -339,9 +339,9 @@ pub mod api { let runtime_metadata_hash = client.metadata().metadata_hash(&PALLETS); if runtime_metadata_hash != [ - 46u8, 97u8, 193u8, 78u8, 57u8, 26u8, 185u8, 68u8, 51u8, 106u8, 123u8, 38u8, 202u8, - 177u8, 33u8, 169u8, 43u8, 160u8, 160u8, 224u8, 68u8, 190u8, 28u8, 238u8, 135u8, - 14u8, 208u8, 105u8, 137u8, 31u8, 152u8, 45u8, + 251u8, 123u8, 152u8, 157u8, 101u8, 130u8, 190u8, 3u8, 247u8, 46u8, 252u8, 87u8, + 60u8, 175u8, 182u8, 235u8, 115u8, 209u8, 82u8, 71u8, 235u8, 37u8, 66u8, 27u8, + 136u8, 231u8, 80u8, 8u8, 28u8, 63u8, 197u8, 234u8, ] { Err(::subxt::error::MetadataError::IncompatibleMetadata) } else { @@ -964,9 +964,10 @@ pub mod api { "Events", vec![], [ - 77u8, 1u8, 58u8, 4u8, 49u8, 14u8, 47u8, 217u8, 17u8, 110u8, 222u8, - 175u8, 251u8, 75u8, 8u8, 102u8, 197u8, 144u8, 37u8, 40u8, 226u8, 238u8, - 106u8, 51u8, 252u8, 204u8, 120u8, 53u8, 150u8, 219u8, 5u8, 16u8, + 12u8, 241u8, 58u8, 94u8, 6u8, 234u8, 177u8, 29u8, 113u8, 148u8, 182u8, + 114u8, 17u8, 143u8, 165u8, 75u8, 60u8, 121u8, 233u8, 109u8, 68u8, + 224u8, 32u8, 125u8, 255u8, 141u8, 102u8, 52u8, 160u8, 37u8, 246u8, + 186u8, ], ) } @@ -5775,10 +5776,9 @@ pub mod api { "sudo", Sudo { call: ::std::boxed::Box::new(call) }, [ - 237u8, 122u8, 113u8, 208u8, 19u8, 195u8, 158u8, 247u8, 37u8, 30u8, - 247u8, 45u8, 255u8, 98u8, 150u8, 120u8, 59u8, 64u8, 127u8, 243u8, 10u8, - 191u8, 236u8, 115u8, 136u8, 22u8, 48u8, 176u8, 213u8, 20u8, 92u8, - 184u8, + 134u8, 145u8, 175u8, 131u8, 36u8, 15u8, 183u8, 43u8, 81u8, 218u8, 78u8, + 146u8, 218u8, 64u8, 155u8, 98u8, 165u8, 102u8, 128u8, 239u8, 215u8, + 169u8, 30u8, 0u8, 53u8, 62u8, 76u8, 194u8, 9u8, 34u8, 8u8, 92u8, ], ) } @@ -5792,9 +5792,9 @@ pub mod api { "sudo_unchecked_weight", SudoUncheckedWeight { call: ::std::boxed::Box::new(call), weight }, [ - 104u8, 225u8, 182u8, 53u8, 58u8, 94u8, 184u8, 6u8, 2u8, 0u8, 122u8, - 246u8, 133u8, 175u8, 41u8, 233u8, 120u8, 195u8, 30u8, 217u8, 211u8, - 170u8, 53u8, 2u8, 34u8, 196u8, 171u8, 238u8, 19u8, 19u8, 238u8, 90u8, + 250u8, 174u8, 48u8, 15u8, 138u8, 144u8, 49u8, 236u8, 101u8, 44u8, 94u8, + 89u8, 219u8, 73u8, 205u8, 150u8, 143u8, 90u8, 40u8, 32u8, 30u8, 103u8, + 185u8, 229u8, 144u8, 100u8, 214u8, 182u8, 12u8, 163u8, 0u8, 27u8, ], ) } @@ -5823,9 +5823,9 @@ pub mod api { "sudo_as", SudoAs { who, call: ::std::boxed::Box::new(call) }, [ - 219u8, 193u8, 233u8, 254u8, 200u8, 101u8, 121u8, 83u8, 211u8, 107u8, - 63u8, 49u8, 100u8, 0u8, 139u8, 175u8, 157u8, 111u8, 181u8, 105u8, 31u8, - 89u8, 75u8, 9u8, 243u8, 64u8, 153u8, 208u8, 120u8, 232u8, 142u8, 63u8, + 129u8, 194u8, 224u8, 17u8, 145u8, 92u8, 12u8, 252u8, 25u8, 29u8, 69u8, + 231u8, 161u8, 156u8, 130u8, 44u8, 77u8, 126u8, 106u8, 18u8, 82u8, 8u8, + 251u8, 144u8, 217u8, 86u8, 64u8, 93u8, 81u8, 197u8, 138u8, 172u8, ], ) } @@ -7859,7 +7859,7 @@ pub mod api { pub params: runtime_types::pallet_ibc::TransferParams<::subxt::utils::AccountId32>, pub asset_id: ::core::primitive::u128, pub amount: ::core::primitive::u128, - pub memo: ::core::option::Option, + pub memo: ::core::option::Option<::std::string::String>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7896,6 +7896,60 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IncreaseCounters; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AddChannelsToFeelessChannelList { + pub source_channel: ::core::primitive::u64, + pub destination_channel: ::core::primitive::u64, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RemoveChannelsFromFeelessChannelList { + pub source_channel: ::core::primitive::u64, + pub destination_channel: ::core::primitive::u64, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetChildStorage { + pub key: ::std::vec::Vec<::core::primitive::u8>, + pub value: ::std::vec::Vec<::core::primitive::u8>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubstituteClientState { + pub client_id: ::std::string::String, + pub height: runtime_types::ibc::core::ics02_client::height::Height, + pub client_state_bytes: ::std::vec::Vec<::core::primitive::u8>, + pub consensus_state_bytes: ::std::vec::Vec<::core::primitive::u8>, + } pub struct TransactionApi; impl TransactionApi { pub fn deliver( @@ -7919,17 +7973,16 @@ pub mod api { params: runtime_types::pallet_ibc::TransferParams<::subxt::utils::AccountId32>, asset_id: ::core::primitive::u128, amount: ::core::primitive::u128, - memo: ::core::option::Option, + memo: ::core::option::Option<::std::string::String>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Ibc", "transfer", Transfer { params, asset_id, amount, memo }, [ - 139u8, 239u8, 162u8, 96u8, 182u8, 247u8, 244u8, 34u8, 1u8, 164u8, - 206u8, 183u8, 108u8, 136u8, 200u8, 45u8, 117u8, 167u8, 226u8, 114u8, - 53u8, 230u8, 5u8, 207u8, 131u8, 3u8, 191u8, 149u8, 255u8, 23u8, 52u8, - 42u8, + 164u8, 5u8, 38u8, 129u8, 232u8, 229u8, 37u8, 74u8, 69u8, 22u8, 49u8, + 209u8, 83u8, 224u8, 204u8, 50u8, 16u8, 142u8, 39u8, 1u8, 100u8, 35u8, + 150u8, 163u8, 236u8, 6u8, 51u8, 115u8, 11u8, 189u8, 179u8, 72u8, ], ) } @@ -7976,6 +8029,82 @@ pub mod api { ], ) } + pub fn add_channels_to_feeless_channel_list( + &self, + source_channel: ::core::primitive::u64, + destination_channel: ::core::primitive::u64, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Ibc", + "add_channels_to_feeless_channel_list", + AddChannelsToFeelessChannelList { source_channel, destination_channel }, + [ + 94u8, 90u8, 107u8, 98u8, 113u8, 134u8, 183u8, 32u8, 208u8, 138u8, + 173u8, 24u8, 152u8, 97u8, 73u8, 1u8, 95u8, 126u8, 203u8, 112u8, 13u8, + 122u8, 126u8, 7u8, 141u8, 110u8, 13u8, 185u8, 252u8, 71u8, 163u8, 18u8, + ], + ) + } + pub fn remove_channels_from_feeless_channel_list( + &self, + source_channel: ::core::primitive::u64, + destination_channel: ::core::primitive::u64, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Ibc", + "remove_channels_from_feeless_channel_list", + RemoveChannelsFromFeelessChannelList { + source_channel, + destination_channel, + }, + [ + 56u8, 207u8, 158u8, 148u8, 9u8, 34u8, 243u8, 213u8, 138u8, 143u8, 10u8, + 115u8, 118u8, 197u8, 187u8, 250u8, 210u8, 187u8, 169u8, 157u8, 158u8, + 61u8, 241u8, 90u8, 117u8, 123u8, 239u8, 105u8, 99u8, 196u8, 254u8, + 116u8, + ], + ) + } + pub fn set_child_storage( + &self, + key: ::std::vec::Vec<::core::primitive::u8>, + value: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Ibc", + "set_child_storage", + SetChildStorage { key, value }, + [ + 54u8, 168u8, 178u8, 188u8, 166u8, 223u8, 180u8, 182u8, 208u8, 217u8, + 154u8, 231u8, 21u8, 88u8, 211u8, 188u8, 63u8, 192u8, 34u8, 236u8, + 153u8, 118u8, 18u8, 41u8, 198u8, 99u8, 241u8, 132u8, 58u8, 170u8, 40u8, + 74u8, + ], + ) + } + pub fn substitute_client_state( + &self, + client_id: ::std::string::String, + height: runtime_types::ibc::core::ics02_client::height::Height, + client_state_bytes: ::std::vec::Vec<::core::primitive::u8>, + consensus_state_bytes: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Ibc", + "substitute_client_state", + SubstituteClientState { + client_id, + height, + client_state_bytes, + consensus_state_bytes, + }, + [ + 156u8, 107u8, 88u8, 238u8, 241u8, 13u8, 71u8, 9u8, 14u8, 67u8, 82u8, + 154u8, 205u8, 108u8, 253u8, 145u8, 3u8, 251u8, 93u8, 169u8, 43u8, 26u8, + 16u8, 209u8, 148u8, 111u8, 99u8, 155u8, 32u8, 145u8, 19u8, 149u8, + ], + ) + } } } pub type Event = runtime_types::pallet_ibc::pallet::Event; @@ -8208,12 +8337,269 @@ pub mod api { )] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AssetAdminUpdated { - pub admin_account: ::subxt::utils::AccountId32, + pub struct AssetAdminUpdated { + pub admin_account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for AssetAdminUpdated { + const PALLET: &'static str = "Ibc"; + const EVENT: &'static str = "AssetAdminUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct FeeLessChannelIdsAdded { + pub source_channel: ::core::primitive::u64, + pub destination_channel: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for FeeLessChannelIdsAdded { + const PALLET: &'static str = "Ibc"; + const EVENT: &'static str = "FeeLessChannelIdsAdded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct FeeLessChannelIdsRemoved { + pub source_channel: ::core::primitive::u64, + pub destination_channel: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for FeeLessChannelIdsRemoved { + const PALLET: &'static str = "Ibc"; + const EVENT: &'static str = "FeeLessChannelIdsRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ChargingFeeOnTransferInitiated { + pub sequence: ::core::primitive::u64, + pub from: ::std::vec::Vec<::core::primitive::u8>, + pub to: ::std::vec::Vec<::core::primitive::u8>, + pub ibc_denom: ::std::vec::Vec<::core::primitive::u8>, + pub local_asset_id: ::core::option::Option<::core::primitive::u128>, + pub amount: ::core::primitive::u128, + pub is_flat_fee: ::core::primitive::bool, + pub source_channel: ::std::vec::Vec<::core::primitive::u8>, + pub destination_channel: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::events::StaticEvent for ChargingFeeOnTransferInitiated { + const PALLET: &'static str = "Ibc"; + const EVENT: &'static str = "ChargingFeeOnTransferInitiated"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ChargingFeeConfirmed { + pub sequence: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for ChargingFeeConfirmed { + const PALLET: &'static str = "Ibc"; + const EVENT: &'static str = "ChargingFeeConfirmed"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ChargingFeeTimeout { + pub sequence: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for ChargingFeeTimeout { + const PALLET: &'static str = "Ibc"; + const EVENT: &'static str = "ChargingFeeTimeout"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ChargingFeeFailedAcknowledgement { + pub sequence: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for ChargingFeeFailedAcknowledgement { + const PALLET: &'static str = "Ibc"; + const EVENT: &'static str = "ChargingFeeFailedAcknowledgement"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ChildStateUpdated; + impl ::subxt::events::StaticEvent for ChildStateUpdated { + const PALLET: &'static str = "Ibc"; + const EVENT: &'static str = "ChildStateUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ClientStateSubstituted { + pub client_id: ::std::string::String, + pub height: runtime_types::ibc::core::ics02_client::height::Height, + } + impl ::subxt::events::StaticEvent for ClientStateSubstituted { + const PALLET: &'static str = "Ibc"; + const EVENT: &'static str = "ClientStateSubstituted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExecuteMemoStarted { + pub account_id: ::subxt::utils::AccountId32, + pub memo: ::core::option::Option<::std::string::String>, + } + impl ::subxt::events::StaticEvent for ExecuteMemoStarted { + const PALLET: &'static str = "Ibc"; + const EVENT: &'static str = "ExecuteMemoStarted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExecuteMemoIbcTokenTransferSuccess { + pub from: ::subxt::utils::AccountId32, + pub to: ::std::vec::Vec<::core::primitive::u8>, + pub asset_id: ::core::primitive::u128, + pub amount: ::core::primitive::u128, + pub channel: ::core::primitive::u64, + pub next_memo: ::core::option::Option<::std::string::String>, + } + impl ::subxt::events::StaticEvent for ExecuteMemoIbcTokenTransferSuccess { + const PALLET: &'static str = "Ibc"; + const EVENT: &'static str = "ExecuteMemoIbcTokenTransferSuccess"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExecuteMemoIbcTokenTransferFailedWithReason { + pub from: ::subxt::utils::AccountId32, + pub memo: ::std::string::String, + pub reason: ::core::primitive::u8, + } + impl ::subxt::events::StaticEvent for ExecuteMemoIbcTokenTransferFailedWithReason { + const PALLET: &'static str = "Ibc"; + const EVENT: &'static str = "ExecuteMemoIbcTokenTransferFailedWithReason"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExecuteMemoIbcTokenTransferFailed { + pub from: ::subxt::utils::AccountId32, + pub to: ::std::vec::Vec<::core::primitive::u8>, + pub asset_id: ::core::primitive::u128, + pub amount: ::core::primitive::u128, + pub channel: ::core::primitive::u64, + pub next_memo: ::core::option::Option<::std::string::String>, + } + impl ::subxt::events::StaticEvent for ExecuteMemoIbcTokenTransferFailed { + const PALLET: &'static str = "Ibc"; + const EVENT: &'static str = "ExecuteMemoIbcTokenTransferFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExecuteMemoXcmSuccess { + pub from: ::subxt::utils::AccountId32, + pub to: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + pub asset_id: ::core::primitive::u128, + pub para_id: ::core::option::Option<::core::primitive::u32>, + } + impl ::subxt::events::StaticEvent for ExecuteMemoXcmSuccess { + const PALLET: &'static str = "Ibc"; + const EVENT: &'static str = "ExecuteMemoXcmSuccess"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExecuteMemoXcmFailed { + pub from: ::subxt::utils::AccountId32, + pub to: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + pub asset_id: ::core::primitive::u128, + pub para_id: ::core::option::Option<::core::primitive::u32>, } - impl ::subxt::events::StaticEvent for AssetAdminUpdated { + impl ::subxt::events::StaticEvent for ExecuteMemoXcmFailed { const PALLET: &'static str = "Ibc"; - const EVENT: &'static str = "AssetAdminUpdated"; + const EVENT: &'static str = "ExecuteMemoXcmFailed"; } } pub mod storage { @@ -8267,6 +8653,26 @@ pub mod api { ], ) } + pub fn service_charge_out( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Ibc", + "ServiceChargeOut", + vec![], + [ + 3u8, 153u8, 106u8, 100u8, 56u8, 235u8, 77u8, 52u8, 230u8, 105u8, 155u8, + 35u8, 156u8, 113u8, 41u8, 45u8, 92u8, 253u8, 248u8, 97u8, 201u8, 101u8, + 18u8, 85u8, 248u8, 6u8, 200u8, 191u8, 42u8, 67u8, 172u8, 151u8, + ], + ) + } pub fn client_update_time( &self, _0: impl ::std::borrow::Borrow<[::core::primitive::u8]>, @@ -8401,6 +8807,92 @@ pub mod api { ], ) } + pub fn fee_less_channel_ids( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + _1: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Ibc", + "FeeLessChannelIds", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 190u8, 190u8, 60u8, 41u8, 38u8, 36u8, 108u8, 181u8, 192u8, 34u8, 88u8, + 107u8, 188u8, 195u8, 107u8, 232u8, 197u8, 153u8, 16u8, 234u8, 161u8, + 255u8, 37u8, 78u8, 4u8, 7u8, 40u8, 52u8, 9u8, 110u8, 150u8, 216u8, + ], + ) + } + pub fn fee_less_channel_ids_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (), + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Ibc", + "FeeLessChannelIds", + Vec::new(), + [ + 190u8, 190u8, 60u8, 41u8, 38u8, 36u8, 108u8, 181u8, 192u8, 34u8, 88u8, + 107u8, 188u8, 195u8, 107u8, 232u8, 197u8, 153u8, 16u8, 234u8, 161u8, + 255u8, 37u8, 78u8, 4u8, 7u8, 40u8, 52u8, 9u8, 110u8, 150u8, 216u8, + ], + ) + } + pub fn sequence_fee( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Ibc", + "SequenceFee", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 42u8, 117u8, 77u8, 205u8, 205u8, 54u8, 177u8, 179u8, 247u8, 26u8, 4u8, + 45u8, 160u8, 255u8, 209u8, 2u8, 203u8, 10u8, 54u8, 6u8, 155u8, 44u8, + 186u8, 242u8, 212u8, 31u8, 55u8, 45u8, 90u8, 9u8, 77u8, 119u8, + ], + ) + } + pub fn sequence_fee_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Ibc", + "SequenceFee", + Vec::new(), + [ + 42u8, 117u8, 77u8, 205u8, 205u8, 54u8, 177u8, 179u8, 247u8, 26u8, 4u8, + 45u8, 160u8, 255u8, 209u8, 2u8, 203u8, 10u8, 54u8, 6u8, 155u8, 44u8, + 186u8, 242u8, 212u8, 31u8, 55u8, 45u8, 90u8, 9u8, 77u8, 119u8, + ], + ) + } pub fn client_counter( &self, ) -> ::subxt::storage::address::Address< @@ -8865,6 +9357,98 @@ pub mod api { ], ) } + pub fn pending_send_packet_seqs( + &self, + _0: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::std::vec::Vec<::core::primitive::u64>, ::core::primitive::u64), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Ibc", + "PendingSendPacketSeqs", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 177u8, 235u8, 231u8, 90u8, 78u8, 216u8, 49u8, 192u8, 170u8, 167u8, + 215u8, 146u8, 83u8, 146u8, 76u8, 117u8, 40u8, 104u8, 7u8, 182u8, 56u8, + 30u8, 14u8, 255u8, 236u8, 34u8, 176u8, 197u8, 78u8, 220u8, 34u8, 224u8, + ], + ) + } + pub fn pending_send_packet_seqs_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::std::vec::Vec<::core::primitive::u64>, ::core::primitive::u64), + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Ibc", + "PendingSendPacketSeqs", + Vec::new(), + [ + 177u8, 235u8, 231u8, 90u8, 78u8, 216u8, 49u8, 192u8, 170u8, 167u8, + 215u8, 146u8, 83u8, 146u8, 76u8, 117u8, 40u8, 104u8, 7u8, 182u8, 56u8, + 30u8, 14u8, 255u8, 236u8, 34u8, 176u8, 197u8, 78u8, 220u8, 34u8, 224u8, + ], + ) + } + pub fn pending_recv_packet_seqs( + &self, + _0: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::std::vec::Vec<::core::primitive::u64>, ::core::primitive::u64), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Ibc", + "PendingRecvPacketSeqs", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 206u8, 66u8, 91u8, 112u8, 240u8, 28u8, 169u8, 232u8, 243u8, 211u8, + 174u8, 107u8, 109u8, 148u8, 165u8, 170u8, 28u8, 213u8, 221u8, 180u8, + 188u8, 250u8, 94u8, 128u8, 92u8, 177u8, 207u8, 36u8, 190u8, 3u8, 72u8, + 154u8, + ], + ) + } + pub fn pending_recv_packet_seqs_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::std::vec::Vec<::core::primitive::u64>, ::core::primitive::u64), + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Ibc", + "PendingRecvPacketSeqs", + Vec::new(), + [ + 206u8, 66u8, 91u8, 112u8, 240u8, 28u8, 169u8, 232u8, 243u8, 211u8, + 174u8, 107u8, 109u8, 148u8, 165u8, 170u8, 28u8, 213u8, 221u8, 180u8, + 188u8, 250u8, 94u8, 128u8, 92u8, 177u8, 207u8, 36u8, 190u8, 3u8, 72u8, + 154u8, + ], + ) + } } } pub mod constants { @@ -8951,6 +9535,34 @@ pub mod api { ], ) } + pub fn clean_up_packets_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Ibc", + "CleanUpPacketsPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + pub fn service_charge_out( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "Ibc", + "ServiceChargeOut", + [ + 225u8, 236u8, 95u8, 157u8, 90u8, 94u8, 106u8, 192u8, 254u8, 19u8, 87u8, + 80u8, 16u8, 62u8, 42u8, 204u8, 136u8, 106u8, 225u8, 53u8, 212u8, 52u8, + 177u8, 79u8, 4u8, 116u8, 201u8, 104u8, 222u8, 75u8, 86u8, 227u8, + ], + ) + } } } } @@ -11032,7 +11644,7 @@ pub mod api { runtime_types::pallet_ibc::TransferParams<::subxt::utils::AccountId32>, asset_id: ::core::primitive::u128, amount: ::core::primitive::u128, - memo: ::core::option::Option, + memo: ::core::option::Option<::std::string::String>, }, #[codec(index = 3)] upgrade_client { params: runtime_types::pallet_ibc::UpgradeParams }, @@ -11043,6 +11655,28 @@ pub mod api { }, #[codec(index = 5)] increase_counters, + #[codec(index = 6)] + add_channels_to_feeless_channel_list { + source_channel: ::core::primitive::u64, + destination_channel: ::core::primitive::u64, + }, + #[codec(index = 7)] + remove_channels_from_feeless_channel_list { + source_channel: ::core::primitive::u64, + destination_channel: ::core::primitive::u64, + }, + #[codec(index = 8)] + set_child_storage { + key: ::std::vec::Vec<::core::primitive::u8>, + value: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 9)] + substitute_client_state { + client_id: ::std::string::String, + height: runtime_types::ibc::core::ics02_client::height::Height, + client_state_bytes: ::std::vec::Vec<::core::primitive::u8>, + consensus_state_bytes: ::std::vec::Vec<::core::primitive::u8>, + }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11128,6 +11762,10 @@ pub mod api { AccessDenied, #[codec(index = 36)] RateLimiter, + #[codec(index = 37)] + FailedSendFeeToAccount, + #[codec(index = 38)] + OriginAddress, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11225,6 +11863,86 @@ pub mod api { }, #[codec(index = 11)] AssetAdminUpdated { admin_account: ::subxt::utils::AccountId32 }, + #[codec(index = 12)] + FeeLessChannelIdsAdded { + source_channel: ::core::primitive::u64, + destination_channel: ::core::primitive::u64, + }, + #[codec(index = 13)] + FeeLessChannelIdsRemoved { + source_channel: ::core::primitive::u64, + destination_channel: ::core::primitive::u64, + }, + #[codec(index = 14)] + ChargingFeeOnTransferInitiated { + sequence: ::core::primitive::u64, + from: ::std::vec::Vec<::core::primitive::u8>, + to: ::std::vec::Vec<::core::primitive::u8>, + ibc_denom: ::std::vec::Vec<::core::primitive::u8>, + local_asset_id: ::core::option::Option<::core::primitive::u128>, + amount: ::core::primitive::u128, + is_flat_fee: ::core::primitive::bool, + source_channel: ::std::vec::Vec<::core::primitive::u8>, + destination_channel: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 15)] + ChargingFeeConfirmed { sequence: ::core::primitive::u64 }, + #[codec(index = 16)] + ChargingFeeTimeout { sequence: ::core::primitive::u64 }, + #[codec(index = 17)] + ChargingFeeFailedAcknowledgement { sequence: ::core::primitive::u64 }, + #[codec(index = 18)] + ChildStateUpdated, + #[codec(index = 19)] + ClientStateSubstituted { + client_id: ::std::string::String, + height: runtime_types::ibc::core::ics02_client::height::Height, + }, + #[codec(index = 20)] + ExecuteMemoStarted { + account_id: ::subxt::utils::AccountId32, + memo: ::core::option::Option<::std::string::String>, + }, + #[codec(index = 21)] + ExecuteMemoIbcTokenTransferSuccess { + from: ::subxt::utils::AccountId32, + to: ::std::vec::Vec<::core::primitive::u8>, + asset_id: ::core::primitive::u128, + amount: ::core::primitive::u128, + channel: ::core::primitive::u64, + next_memo: ::core::option::Option<::std::string::String>, + }, + #[codec(index = 22)] + ExecuteMemoIbcTokenTransferFailedWithReason { + from: ::subxt::utils::AccountId32, + memo: ::std::string::String, + reason: ::core::primitive::u8, + }, + #[codec(index = 23)] + ExecuteMemoIbcTokenTransferFailed { + from: ::subxt::utils::AccountId32, + to: ::std::vec::Vec<::core::primitive::u8>, + asset_id: ::core::primitive::u128, + amount: ::core::primitive::u128, + channel: ::core::primitive::u64, + next_memo: ::core::option::Option<::std::string::String>, + }, + #[codec(index = 24)] + ExecuteMemoXcmSuccess { + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + asset_id: ::core::primitive::u128, + para_id: ::core::option::Option<::core::primitive::u32>, + }, + #[codec(index = 25)] + ExecuteMemoXcmFailed { + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + asset_id: ::core::primitive::u128, + para_id: ::core::option::Option<::core::primitive::u32>, + }, } } #[derive( @@ -11909,16 +12627,6 @@ pub mod api { )] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct MemoMessage; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Runtime; #[derive( :: subxt :: ext :: codec :: Decode, @@ -12190,6 +12898,20 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FixedU128(pub ::core::primitive::u128); } + pub mod per_things { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Perbill(pub ::core::primitive::u32); + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode,