From 5145d0f87b8b1c2b55f571807aa74fae56db3ad6 Mon Sep 17 00:00:00 2001 From: Leouarz Date: Fri, 9 Feb 2024 16:03:42 +0100 Subject: [PATCH] fix various stuff and regenerate subxt --- Cargo.lock | 18 +- avail-subxt/src/api_dev.rs | 335 +++++++++++++++++++++++-------------- node/src/chains/common.rs | 1 - node/src/chains/mod.rs | 15 +- 4 files changed, 219 insertions(+), 150 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b065f831e..ad227d4d5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10029,7 +10029,7 @@ dependencies = [ [[package]] name = "sp-crypto-ec-utils" version = "0.10.0" -source = "git+https://github.com/paritytech/polkadot-sdk#2556e33fb4c52ea8192de68df33c151768edc2a9" +source = "git+https://github.com/paritytech/polkadot-sdk#edd95b3749754d2ed0c5738588e872c87be91624" dependencies = [ "ark-bls12-377", "ark-bls12-377-ext", @@ -10069,7 +10069,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#2556e33fb4c52ea8192de68df33c151768edc2a9" +source = "git+https://github.com/paritytech/polkadot-sdk#edd95b3749754d2ed0c5738588e872c87be91624" dependencies = [ "proc-macro2", "quote", @@ -10090,7 +10090,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.25.0" -source = "git+https://github.com/paritytech/polkadot-sdk#2556e33fb4c52ea8192de68df33c151768edc2a9" +source = "git+https://github.com/paritytech/polkadot-sdk#edd95b3749754d2ed0c5738588e872c87be91624" dependencies = [ "environmental", "parity-scale-codec", @@ -10308,7 +10308,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#2556e33fb4c52ea8192de68df33c151768edc2a9" +source = "git+https://github.com/paritytech/polkadot-sdk#edd95b3749754d2ed0c5738588e872c87be91624" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -10340,7 +10340,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#2556e33fb4c52ea8192de68df33c151768edc2a9" +source = "git+https://github.com/paritytech/polkadot-sdk#edd95b3749754d2ed0c5738588e872c87be91624" dependencies = [ "Inflector", "expander", @@ -10432,7 +10432,7 @@ source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-v1.6 [[package]] name = "sp-std" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#2556e33fb4c52ea8192de68df33c151768edc2a9" +source = "git+https://github.com/paritytech/polkadot-sdk#edd95b3749754d2ed0c5738588e872c87be91624" [[package]] name = "sp-storage" @@ -10450,7 +10450,7 @@ dependencies = [ [[package]] name = "sp-storage" version = "19.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#2556e33fb4c52ea8192de68df33c151768edc2a9" +source = "git+https://github.com/paritytech/polkadot-sdk#edd95b3749754d2ed0c5738588e872c87be91624" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10488,7 +10488,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "16.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#2556e33fb4c52ea8192de68df33c151768edc2a9" +source = "git+https://github.com/paritytech/polkadot-sdk#edd95b3749754d2ed0c5738588e872c87be91624" dependencies = [ "parity-scale-codec", "sp-std 14.0.0", @@ -10589,7 +10589,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#2556e33fb4c52ea8192de68df33c151768edc2a9" +source = "git+https://github.com/paritytech/polkadot-sdk#edd95b3749754d2ed0c5738588e872c87be91624" dependencies = [ "anyhow", "impl-trait-for-tuples", diff --git a/avail-subxt/src/api_dev.rs b/avail-subxt/src/api_dev.rs index 528986cd2..fa4d6bfcd 100644 --- a/avail-subxt/src/api_dev.rs +++ b/avail-subxt/src/api_dev.rs @@ -710,119 +710,119 @@ pub mod api { return Ok(Error::System(variant_error)); } if pallet_name == "Utility" { - let variant_error = utility::Error::decode_with_metadata(cursor, 343u32, metadata)?; + let variant_error = utility::Error::decode_with_metadata(cursor, 341u32, metadata)?; return Ok(Error::Utility(variant_error)); } if pallet_name == "Babe" { - let variant_error = babe::Error::decode_with_metadata(cursor, 359u32, metadata)?; + let variant_error = babe::Error::decode_with_metadata(cursor, 357u32, metadata)?; return Ok(Error::Babe(variant_error)); } if pallet_name == "Indices" { - let variant_error = indices::Error::decode_with_metadata(cursor, 361u32, metadata)?; + let variant_error = indices::Error::decode_with_metadata(cursor, 359u32, metadata)?; return Ok(Error::Indices(variant_error)); } if pallet_name == "Balances" { let variant_error = - balances::Error::decode_with_metadata(cursor, 379u32, metadata)?; + balances::Error::decode_with_metadata(cursor, 377u32, metadata)?; return Ok(Error::Balances(variant_error)); } if pallet_name == "ElectionProviderMultiPhase" { let variant_error = election_provider_multi_phase::Error::decode_with_metadata( - cursor, 392u32, metadata, + cursor, 390u32, metadata, )?; return Ok(Error::ElectionProviderMultiPhase(variant_error)); } if pallet_name == "Staking" { - let variant_error = staking::Error::decode_with_metadata(cursor, 416u32, metadata)?; + let variant_error = staking::Error::decode_with_metadata(cursor, 414u32, metadata)?; return Ok(Error::Staking(variant_error)); } if pallet_name == "Session" { - let variant_error = session::Error::decode_with_metadata(cursor, 421u32, metadata)?; + let variant_error = session::Error::decode_with_metadata(cursor, 419u32, metadata)?; return Ok(Error::Session(variant_error)); } if pallet_name == "TechnicalCommittee" { let variant_error = - technical_committee::Error::decode_with_metadata(cursor, 424u32, metadata)?; + technical_committee::Error::decode_with_metadata(cursor, 422u32, metadata)?; return Ok(Error::TechnicalCommittee(variant_error)); } if pallet_name == "TechnicalMembership" { let variant_error = - technical_membership::Error::decode_with_metadata(cursor, 426u32, metadata)?; + technical_membership::Error::decode_with_metadata(cursor, 424u32, metadata)?; return Ok(Error::TechnicalMembership(variant_error)); } if pallet_name == "Grandpa" { - let variant_error = grandpa::Error::decode_with_metadata(cursor, 430u32, metadata)?; + let variant_error = grandpa::Error::decode_with_metadata(cursor, 428u32, metadata)?; return Ok(Error::Grandpa(variant_error)); } if pallet_name == "Treasury" { let variant_error = - treasury::Error::decode_with_metadata(cursor, 437u32, metadata)?; + treasury::Error::decode_with_metadata(cursor, 435u32, metadata)?; return Ok(Error::Treasury(variant_error)); } if pallet_name == "Sudo" { - let variant_error = sudo::Error::decode_with_metadata(cursor, 438u32, metadata)?; + let variant_error = sudo::Error::decode_with_metadata(cursor, 436u32, metadata)?; return Ok(Error::Sudo(variant_error)); } if pallet_name == "ImOnline" { let variant_error = - im_online::Error::decode_with_metadata(cursor, 441u32, metadata)?; + im_online::Error::decode_with_metadata(cursor, 439u32, metadata)?; return Ok(Error::ImOnline(variant_error)); } if pallet_name == "Scheduler" { let variant_error = - scheduler::Error::decode_with_metadata(cursor, 453u32, metadata)?; + scheduler::Error::decode_with_metadata(cursor, 451u32, metadata)?; return Ok(Error::Scheduler(variant_error)); } if pallet_name == "Bounties" { let variant_error = - bounties::Error::decode_with_metadata(cursor, 457u32, metadata)?; + bounties::Error::decode_with_metadata(cursor, 455u32, metadata)?; return Ok(Error::Bounties(variant_error)); } if pallet_name == "Tips" { - let variant_error = tips::Error::decode_with_metadata(cursor, 459u32, metadata)?; + let variant_error = tips::Error::decode_with_metadata(cursor, 457u32, metadata)?; return Ok(Error::Tips(variant_error)); } if pallet_name == "DataAvailability" { let variant_error = - data_availability::Error::decode_with_metadata(cursor, 461u32, metadata)?; + data_availability::Error::decode_with_metadata(cursor, 459u32, metadata)?; return Ok(Error::DataAvailability(variant_error)); } if pallet_name == "Preimage" { let variant_error = - preimage::Error::decode_with_metadata(cursor, 469u32, metadata)?; + preimage::Error::decode_with_metadata(cursor, 467u32, metadata)?; return Ok(Error::Preimage(variant_error)); } if pallet_name == "Multisig" { let variant_error = - multisig::Error::decode_with_metadata(cursor, 472u32, metadata)?; + multisig::Error::decode_with_metadata(cursor, 470u32, metadata)?; return Ok(Error::Multisig(variant_error)); } if pallet_name == "VoterList" { let variant_error = - voter_list::Error::decode_with_metadata(cursor, 476u32, metadata)?; + voter_list::Error::decode_with_metadata(cursor, 474u32, metadata)?; return Ok(Error::VoterList(variant_error)); } if pallet_name == "NominationPools" { let variant_error = - nomination_pools::Error::decode_with_metadata(cursor, 495u32, metadata)?; + nomination_pools::Error::decode_with_metadata(cursor, 493u32, metadata)?; return Ok(Error::NominationPools(variant_error)); } if pallet_name == "Identity" { let variant_error = - identity::Error::decode_with_metadata(cursor, 511u32, metadata)?; + identity::Error::decode_with_metadata(cursor, 509u32, metadata)?; return Ok(Error::Identity(variant_error)); } if pallet_name == "Vector" { - let variant_error = vector::Error::decode_with_metadata(cursor, 513u32, metadata)?; + let variant_error = vector::Error::decode_with_metadata(cursor, 511u32, metadata)?; return Ok(Error::Vector(variant_error)); } if pallet_name == "Proxy" { - let variant_error = proxy::Error::decode_with_metadata(cursor, 522u32, metadata)?; + let variant_error = proxy::Error::decode_with_metadata(cursor, 520u32, metadata)?; return Ok(Error::Proxy(variant_error)); } if pallet_name == "TxPause" { let variant_error = - tx_pause::Error::decode_with_metadata(cursor, 523u32, metadata)?; + tx_pause::Error::decode_with_metadata(cursor, 521u32, metadata)?; return Ok(Error::TxPause(variant_error)); } Err(::subxt::ext::scale_decode::Error::custom(format!( @@ -1129,9 +1129,9 @@ pub mod api { .hash(); if runtime_metadata_hash != [ - 213u8, 34u8, 61u8, 109u8, 163u8, 110u8, 100u8, 153u8, 230u8, 56u8, 188u8, 53u8, - 64u8, 217u8, 127u8, 214u8, 105u8, 250u8, 167u8, 150u8, 47u8, 127u8, 136u8, 209u8, - 120u8, 200u8, 133u8, 47u8, 21u8, 175u8, 40u8, 142u8, + 121u8, 244u8, 152u8, 174u8, 172u8, 91u8, 133u8, 240u8, 155u8, 229u8, 236u8, 20u8, + 165u8, 106u8, 44u8, 232u8, 154u8, 33u8, 48u8, 191u8, 28u8, 204u8, 207u8, 163u8, + 14u8, 247u8, 2u8, 198u8, 126u8, 57u8, 7u8, 81u8, ] { Err(::subxt::error::MetadataError::IncompatibleCodegen) } else { @@ -1915,10 +1915,10 @@ pub mod api { "Events", vec![], [ - 36u8, 169u8, 162u8, 207u8, 47u8, 135u8, 27u8, 169u8, 134u8, 234u8, - 40u8, 145u8, 56u8, 114u8, 79u8, 227u8, 126u8, 157u8, 139u8, 148u8, - 226u8, 217u8, 231u8, 140u8, 106u8, 11u8, 152u8, 5u8, 243u8, 199u8, - 251u8, 236u8, + 211u8, 97u8, 151u8, 237u8, 73u8, 170u8, 176u8, 122u8, 11u8, 40u8, 66u8, + 254u8, 152u8, 132u8, 254u8, 26u8, 88u8, 129u8, 121u8, 229u8, 66u8, + 189u8, 195u8, 154u8, 149u8, 7u8, 69u8, 204u8, 166u8, 182u8, 146u8, + 199u8, ], ) } @@ -2439,9 +2439,10 @@ pub mod api { "batch", types::Batch { calls }, [ - 86u8, 215u8, 138u8, 185u8, 27u8, 55u8, 16u8, 6u8, 135u8, 18u8, 167u8, - 38u8, 255u8, 209u8, 247u8, 53u8, 63u8, 50u8, 34u8, 219u8, 61u8, 183u8, - 112u8, 229u8, 53u8, 245u8, 218u8, 225u8, 53u8, 212u8, 201u8, 125u8, + 116u8, 193u8, 207u8, 249u8, 189u8, 231u8, 71u8, 45u8, 165u8, 26u8, + 108u8, 223u8, 105u8, 142u8, 159u8, 113u8, 95u8, 94u8, 176u8, 17u8, + 99u8, 244u8, 226u8, 183u8, 198u8, 126u8, 218u8, 240u8, 107u8, 71u8, + 19u8, 114u8, ], ) } @@ -2459,10 +2460,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 240u8, 203u8, 161u8, 131u8, 189u8, 104u8, 143u8, 206u8, 34u8, 151u8, - 207u8, 122u8, 183u8, 180u8, 208u8, 215u8, 13u8, 22u8, 121u8, 196u8, - 87u8, 244u8, 140u8, 31u8, 12u8, 134u8, 79u8, 242u8, 173u8, 98u8, 105u8, - 26u8, + 189u8, 56u8, 52u8, 188u8, 131u8, 205u8, 48u8, 153u8, 116u8, 213u8, + 77u8, 144u8, 225u8, 61u8, 220u8, 121u8, 247u8, 101u8, 2u8, 77u8, 206u8, + 55u8, 2u8, 131u8, 238u8, 206u8, 74u8, 9u8, 176u8, 243u8, 201u8, 159u8, ], ) } @@ -2476,10 +2476,10 @@ pub mod api { "batch_all", types::BatchAll { calls }, [ - 62u8, 43u8, 255u8, 49u8, 200u8, 113u8, 234u8, 219u8, 216u8, 175u8, - 148u8, 162u8, 207u8, 245u8, 245u8, 200u8, 89u8, 116u8, 36u8, 116u8, - 165u8, 210u8, 202u8, 122u8, 230u8, 1u8, 124u8, 149u8, 41u8, 39u8, - 104u8, 169u8, + 58u8, 178u8, 123u8, 140u8, 193u8, 164u8, 202u8, 44u8, 53u8, 141u8, + 13u8, 219u8, 205u8, 90u8, 117u8, 31u8, 183u8, 121u8, 68u8, 102u8, + 205u8, 190u8, 54u8, 106u8, 116u8, 199u8, 210u8, 253u8, 209u8, 243u8, + 212u8, 113u8, ], ) } @@ -2497,9 +2497,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 70u8, 84u8, 233u8, 150u8, 211u8, 210u8, 50u8, 54u8, 51u8, 253u8, 23u8, - 211u8, 111u8, 108u8, 98u8, 124u8, 144u8, 105u8, 169u8, 65u8, 196u8, - 3u8, 234u8, 7u8, 46u8, 159u8, 91u8, 245u8, 210u8, 84u8, 27u8, 130u8, + 185u8, 159u8, 86u8, 37u8, 236u8, 107u8, 157u8, 187u8, 66u8, 116u8, + 93u8, 67u8, 254u8, 13u8, 214u8, 45u8, 64u8, 189u8, 105u8, 194u8, 133u8, + 235u8, 76u8, 126u8, 120u8, 79u8, 28u8, 101u8, 178u8, 145u8, 52u8, + 108u8, ], ) } @@ -2513,10 +2514,9 @@ pub mod api { "force_batch", types::ForceBatch { calls }, [ - 246u8, 153u8, 205u8, 106u8, 182u8, 187u8, 232u8, 42u8, 73u8, 232u8, - 87u8, 20u8, 139u8, 236u8, 246u8, 124u8, 193u8, 208u8, 93u8, 63u8, - 231u8, 78u8, 239u8, 54u8, 224u8, 58u8, 233u8, 201u8, 137u8, 67u8, - 107u8, 175u8, + 146u8, 104u8, 182u8, 237u8, 131u8, 88u8, 238u8, 101u8, 12u8, 159u8, + 33u8, 192u8, 129u8, 65u8, 93u8, 128u8, 72u8, 161u8, 58u8, 70u8, 117u8, + 62u8, 248u8, 182u8, 50u8, 29u8, 2u8, 193u8, 4u8, 195u8, 97u8, 251u8, ], ) } @@ -2534,9 +2534,9 @@ pub mod api { weight, }, [ - 93u8, 22u8, 120u8, 64u8, 179u8, 252u8, 157u8, 90u8, 208u8, 241u8, 86u8, - 71u8, 203u8, 248u8, 207u8, 1u8, 64u8, 85u8, 170u8, 40u8, 2u8, 125u8, - 246u8, 233u8, 72u8, 120u8, 122u8, 41u8, 56u8, 131u8, 167u8, 187u8, + 13u8, 96u8, 175u8, 207u8, 250u8, 44u8, 15u8, 172u8, 104u8, 232u8, 19u8, + 124u8, 56u8, 193u8, 235u8, 162u8, 176u8, 36u8, 13u8, 253u8, 5u8, 4u8, + 16u8, 199u8, 170u8, 110u8, 150u8, 38u8, 84u8, 51u8, 80u8, 87u8, ], ) } @@ -10066,9 +10066,9 @@ pub mod api { length_bound, }, [ - 207u8, 50u8, 10u8, 3u8, 55u8, 50u8, 225u8, 159u8, 198u8, 138u8, 24u8, - 85u8, 83u8, 236u8, 158u8, 12u8, 190u8, 44u8, 115u8, 128u8, 165u8, - 108u8, 223u8, 4u8, 99u8, 93u8, 133u8, 81u8, 5u8, 87u8, 201u8, 16u8, + 168u8, 148u8, 150u8, 167u8, 199u8, 209u8, 96u8, 73u8, 192u8, 120u8, + 253u8, 44u8, 156u8, 14u8, 18u8, 97u8, 94u8, 136u8, 194u8, 127u8, 119u8, + 227u8, 131u8, 44u8, 96u8, 16u8, 98u8, 51u8, 106u8, 51u8, 65u8, 167u8, ], ) } @@ -10088,10 +10088,10 @@ pub mod api { length_bound, }, [ - 87u8, 100u8, 219u8, 199u8, 8u8, 97u8, 179u8, 88u8, 81u8, 236u8, 124u8, - 10u8, 22u8, 117u8, 20u8, 232u8, 129u8, 108u8, 147u8, 222u8, 242u8, - 195u8, 138u8, 60u8, 15u8, 241u8, 151u8, 33u8, 118u8, 127u8, 47u8, - 160u8, + 105u8, 77u8, 187u8, 105u8, 26u8, 149u8, 234u8, 78u8, 116u8, 53u8, 11u8, + 47u8, 241u8, 180u8, 60u8, 247u8, 218u8, 168u8, 223u8, 117u8, 180u8, + 162u8, 113u8, 230u8, 140u8, 154u8, 68u8, 19u8, 170u8, 86u8, 141u8, + 103u8, ], ) } @@ -10370,10 +10370,10 @@ pub mod api { _0.borrow(), )], [ - 131u8, 21u8, 184u8, 21u8, 58u8, 212u8, 123u8, 209u8, 213u8, 210u8, - 196u8, 102u8, 51u8, 164u8, 130u8, 101u8, 173u8, 67u8, 111u8, 42u8, - 238u8, 36u8, 231u8, 102u8, 242u8, 82u8, 147u8, 210u8, 13u8, 53u8, - 134u8, 163u8, + 109u8, 80u8, 159u8, 245u8, 103u8, 112u8, 219u8, 153u8, 197u8, 204u8, + 72u8, 140u8, 250u8, 223u8, 168u8, 207u8, 141u8, 26u8, 211u8, 107u8, + 125u8, 150u8, 42u8, 115u8, 173u8, 100u8, 30u8, 215u8, 82u8, 178u8, + 191u8, 25u8, ], ) } @@ -10392,10 +10392,10 @@ pub mod api { "ProposalOf", Vec::new(), [ - 131u8, 21u8, 184u8, 21u8, 58u8, 212u8, 123u8, 209u8, 213u8, 210u8, - 196u8, 102u8, 51u8, 164u8, 130u8, 101u8, 173u8, 67u8, 111u8, 42u8, - 238u8, 36u8, 231u8, 102u8, 242u8, 82u8, 147u8, 210u8, 13u8, 53u8, - 134u8, 163u8, + 109u8, 80u8, 159u8, 245u8, 103u8, 112u8, 219u8, 153u8, 197u8, 204u8, + 72u8, 140u8, 250u8, 223u8, 168u8, 207u8, 141u8, 26u8, 211u8, 107u8, + 125u8, 150u8, 42u8, 115u8, 173u8, 100u8, 30u8, 215u8, 82u8, 178u8, + 191u8, 25u8, ], ) } @@ -12659,10 +12659,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 162u8, 243u8, 79u8, 137u8, 171u8, 140u8, 83u8, 232u8, 53u8, 114u8, - 231u8, 183u8, 15u8, 143u8, 173u8, 109u8, 188u8, 128u8, 132u8, 249u8, - 239u8, 209u8, 239u8, 141u8, 240u8, 29u8, 207u8, 171u8, 60u8, 108u8, - 98u8, 252u8, + 39u8, 1u8, 132u8, 134u8, 18u8, 19u8, 165u8, 85u8, 83u8, 180u8, 59u8, + 189u8, 240u8, 53u8, 136u8, 214u8, 184u8, 95u8, 179u8, 154u8, 145u8, + 164u8, 171u8, 17u8, 124u8, 52u8, 140u8, 9u8, 33u8, 29u8, 189u8, 117u8, ], ) } @@ -12680,9 +12679,9 @@ pub mod api { weight, }, [ - 63u8, 89u8, 193u8, 195u8, 5u8, 145u8, 85u8, 249u8, 112u8, 184u8, 240u8, - 170u8, 100u8, 254u8, 146u8, 26u8, 197u8, 210u8, 16u8, 59u8, 50u8, 61u8, - 177u8, 70u8, 42u8, 167u8, 124u8, 238u8, 238u8, 69u8, 65u8, 183u8, + 126u8, 211u8, 180u8, 162u8, 173u8, 26u8, 106u8, 48u8, 72u8, 85u8, + 177u8, 217u8, 39u8, 7u8, 52u8, 157u8, 90u8, 246u8, 141u8, 18u8, 243u8, + 241u8, 1u8, 37u8, 130u8, 80u8, 135u8, 234u8, 32u8, 140u8, 236u8, 36u8, ], ) } @@ -12723,10 +12722,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 51u8, 51u8, 1u8, 46u8, 37u8, 62u8, 15u8, 8u8, 213u8, 104u8, 71u8, - 172u8, 152u8, 222u8, 231u8, 191u8, 38u8, 119u8, 202u8, 142u8, 132u8, - 116u8, 239u8, 200u8, 6u8, 98u8, 96u8, 143u8, 184u8, 107u8, 230u8, - 238u8, + 250u8, 223u8, 156u8, 45u8, 9u8, 120u8, 78u8, 121u8, 198u8, 206u8, 53u8, + 28u8, 253u8, 223u8, 231u8, 18u8, 165u8, 95u8, 210u8, 77u8, 248u8, 2u8, + 172u8, 91u8, 197u8, 128u8, 183u8, 8u8, 124u8, 161u8, 40u8, 45u8, ], ) } @@ -13646,10 +13644,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 65u8, 181u8, 185u8, 156u8, 28u8, 235u8, 102u8, 238u8, 113u8, 65u8, - 205u8, 181u8, 67u8, 97u8, 45u8, 12u8, 38u8, 238u8, 255u8, 155u8, 199u8, - 202u8, 207u8, 9u8, 145u8, 147u8, 180u8, 208u8, 8u8, 139u8, 102u8, - 232u8, + 103u8, 147u8, 154u8, 55u8, 66u8, 52u8, 109u8, 142u8, 164u8, 171u8, + 147u8, 2u8, 125u8, 169u8, 210u8, 204u8, 170u8, 126u8, 156u8, 110u8, + 79u8, 6u8, 28u8, 100u8, 210u8, 207u8, 22u8, 9u8, 110u8, 153u8, 149u8, + 226u8, ], ) } @@ -13694,10 +13692,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 123u8, 169u8, 229u8, 100u8, 113u8, 162u8, 253u8, 112u8, 185u8, 84u8, - 78u8, 236u8, 37u8, 124u8, 130u8, 188u8, 67u8, 218u8, 206u8, 239u8, - 119u8, 240u8, 113u8, 90u8, 183u8, 175u8, 172u8, 25u8, 209u8, 47u8, - 196u8, 184u8, + 26u8, 51u8, 85u8, 40u8, 194u8, 230u8, 70u8, 231u8, 90u8, 167u8, 115u8, + 198u8, 235u8, 85u8, 71u8, 150u8, 253u8, 79u8, 34u8, 123u8, 57u8, 224u8, + 29u8, 13u8, 188u8, 160u8, 199u8, 44u8, 160u8, 73u8, 151u8, 24u8, ], ) } @@ -13738,10 +13735,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 165u8, 249u8, 130u8, 51u8, 160u8, 241u8, 37u8, 2u8, 240u8, 186u8, 90u8, - 92u8, 191u8, 236u8, 163u8, 248u8, 175u8, 147u8, 137u8, 169u8, 70u8, - 185u8, 144u8, 29u8, 201u8, 205u8, 83u8, 45u8, 113u8, 138u8, 185u8, - 47u8, + 71u8, 98u8, 243u8, 90u8, 120u8, 20u8, 27u8, 59u8, 57u8, 25u8, 127u8, + 115u8, 65u8, 80u8, 65u8, 22u8, 136u8, 158u8, 209u8, 155u8, 127u8, + 117u8, 254u8, 89u8, 51u8, 233u8, 151u8, 166u8, 252u8, 115u8, 143u8, + 182u8, ], ) } @@ -13768,9 +13765,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 213u8, 47u8, 217u8, 172u8, 198u8, 66u8, 70u8, 181u8, 25u8, 6u8, 87u8, - 75u8, 127u8, 127u8, 198u8, 62u8, 5u8, 40u8, 227u8, 96u8, 106u8, 8u8, - 158u8, 213u8, 72u8, 253u8, 33u8, 9u8, 15u8, 72u8, 233u8, 193u8, + 251u8, 193u8, 254u8, 199u8, 78u8, 96u8, 70u8, 253u8, 71u8, 208u8, + 217u8, 77u8, 8u8, 57u8, 70u8, 40u8, 1u8, 10u8, 231u8, 76u8, 184u8, + 120u8, 234u8, 126u8, 136u8, 129u8, 226u8, 36u8, 134u8, 1u8, 183u8, + 127u8, ], ) } @@ -16668,9 +16666,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 1u8, 27u8, 226u8, 250u8, 95u8, 98u8, 215u8, 179u8, 92u8, 59u8, 111u8, - 95u8, 57u8, 35u8, 17u8, 220u8, 255u8, 63u8, 163u8, 224u8, 76u8, 246u8, - 116u8, 60u8, 34u8, 90u8, 23u8, 63u8, 97u8, 45u8, 154u8, 63u8, + 90u8, 2u8, 86u8, 164u8, 194u8, 245u8, 108u8, 54u8, 14u8, 25u8, 41u8, + 217u8, 10u8, 27u8, 170u8, 206u8, 223u8, 85u8, 84u8, 2u8, 58u8, 155u8, + 173u8, 113u8, 132u8, 14u8, 41u8, 151u8, 62u8, 152u8, 141u8, 160u8, ], ) } @@ -16696,9 +16694,10 @@ pub mod api { max_weight, }, [ - 135u8, 42u8, 53u8, 207u8, 113u8, 40u8, 96u8, 134u8, 82u8, 134u8, 38u8, - 159u8, 215u8, 203u8, 55u8, 126u8, 131u8, 178u8, 180u8, 60u8, 22u8, - 172u8, 249u8, 124u8, 58u8, 63u8, 233u8, 74u8, 87u8, 107u8, 18u8, 64u8, + 16u8, 231u8, 52u8, 134u8, 228u8, 174u8, 249u8, 131u8, 113u8, 200u8, + 202u8, 229u8, 53u8, 239u8, 176u8, 102u8, 223u8, 130u8, 105u8, 8u8, + 240u8, 127u8, 200u8, 145u8, 38u8, 99u8, 186u8, 192u8, 150u8, 183u8, + 154u8, 66u8, ], ) } @@ -21499,9 +21498,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 13u8, 29u8, 37u8, 126u8, 61u8, 13u8, 207u8, 215u8, 109u8, 118u8, 119u8, - 201u8, 155u8, 48u8, 222u8, 236u8, 51u8, 35u8, 185u8, 76u8, 56u8, 88u8, - 239u8, 159u8, 59u8, 218u8, 125u8, 56u8, 233u8, 93u8, 193u8, 171u8, + 56u8, 252u8, 62u8, 163u8, 133u8, 172u8, 29u8, 103u8, 101u8, 179u8, + 229u8, 39u8, 103u8, 208u8, 221u8, 155u8, 162u8, 57u8, 138u8, 17u8, + 18u8, 227u8, 2u8, 41u8, 122u8, 86u8, 105u8, 66u8, 80u8, 88u8, 251u8, + 229u8, ], ) } @@ -22091,14 +22091,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "emit event once the head is updated."] - pub struct HeaderUpdate { + pub struct HeaderUpdated { pub slot: ::core::primitive::u64, pub finalization_root: ::subxt::utils::H256, pub execution_state_root: ::subxt::utils::H256, } - impl ::subxt::events::StaticEvent for HeaderUpdate { + impl ::subxt::events::StaticEvent for HeaderUpdated { const PALLET: &'static str = "Vector"; - const EVENT: &'static str = "HeaderUpdate"; + const EVENT: &'static str = "HeaderUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22114,13 +22114,13 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "emit event once the sync committee updates."] - pub struct SyncCommitteeUpdate { + pub struct SyncCommitteeUpdated { pub period: ::core::primitive::u64, pub root: runtime_types::primitive_types::U256, } - impl ::subxt::events::StaticEvent for SyncCommitteeUpdate { + impl ::subxt::events::StaticEvent for SyncCommitteeUpdated { const PALLET: &'static str = "Vector"; - const EVENT: &'static str = "SyncCommitteeUpdate"; + const EVENT: &'static str = "SyncCommitteeUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22136,14 +22136,14 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "emit when new updater is set"] - pub struct BroadcasterUpdate { + pub struct BroadcasterUpdated { pub old: ::subxt::utils::H256, pub new: ::subxt::utils::H256, pub domain: ::core::primitive::u32, } - impl ::subxt::events::StaticEvent for BroadcasterUpdate { + impl ::subxt::events::StaticEvent for BroadcasterUpdated { const PALLET: &'static str = "Vector"; - const EVENT: &'static str = "BroadcasterUpdate"; + const EVENT: &'static str = "BroadcasterUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22159,15 +22159,15 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "emit when message gets executed."] - pub struct ExecutedMessage { + pub struct MessageExecuted { pub from: ::subxt::utils::H256, pub to: ::subxt::utils::H256, pub message_id: ::core::primitive::u64, pub message_root: ::subxt::utils::H256, } - impl ::subxt::events::StaticEvent for ExecutedMessage { + impl ::subxt::events::StaticEvent for MessageExecuted { const PALLET: &'static str = "Vector"; - const EVENT: &'static str = "ExecutedMessage"; + const EVENT: &'static str = "MessageExecuted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22796,6 +22796,89 @@ pub mod api { ], ) } + pub fn genesis_validator_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Vector", + "GenesisValidatorRoot", + vec![], + [ + 127u8, 84u8, 251u8, 16u8, 211u8, 108u8, 251u8, 185u8, 95u8, 142u8, + 135u8, 247u8, 8u8, 255u8, 175u8, 247u8, 37u8, 195u8, 38u8, 28u8, 162u8, + 93u8, 245u8, 57u8, 145u8, 44u8, 205u8, 162u8, 169u8, 186u8, 255u8, + 136u8, + ], + ) + } + pub fn genesis_timestamp( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Vector", + "GenesisTimestamp", + vec![], + [ + 114u8, 40u8, 176u8, 73u8, 163u8, 75u8, 246u8, 124u8, 166u8, 59u8, + 144u8, 46u8, 145u8, 108u8, 169u8, 234u8, 159u8, 152u8, 112u8, 196u8, + 145u8, 240u8, 156u8, 91u8, 13u8, 142u8, 179u8, 33u8, 123u8, 30u8, 21u8, + 218u8, + ], + ) + } + pub fn seconds_per_slot( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Vector", + "SecondsPerSlot", + vec![], + [ + 26u8, 233u8, 218u8, 184u8, 129u8, 76u8, 136u8, 25u8, 22u8, 47u8, 115u8, + 222u8, 46u8, 77u8, 121u8, 100u8, 181u8, 53u8, 178u8, 3u8, 10u8, 126u8, + 64u8, 176u8, 155u8, 43u8, 97u8, 159u8, 167u8, 18u8, 154u8, 70u8, + ], + ) + } + pub fn source_chain_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Vector", + "SourceChainId", + vec![], + [ + 112u8, 31u8, 32u8, 63u8, 118u8, 110u8, 228u8, 31u8, 167u8, 148u8, + 219u8, 218u8, 140u8, 183u8, 87u8, 221u8, 115u8, 151u8, 137u8, 103u8, + 0u8, 62u8, 48u8, 80u8, 194u8, 81u8, 120u8, 174u8, 11u8, 152u8, 241u8, + 31u8, + ], + ) + } } } pub mod constants { @@ -23132,10 +23215,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 133u8, 229u8, 253u8, 82u8, 41u8, 64u8, 244u8, 206u8, 255u8, 176u8, - 189u8, 194u8, 206u8, 185u8, 2u8, 193u8, 161u8, 42u8, 43u8, 163u8, - 227u8, 111u8, 252u8, 51u8, 229u8, 92u8, 143u8, 107u8, 209u8, 16u8, - 176u8, 106u8, + 68u8, 163u8, 35u8, 147u8, 217u8, 63u8, 53u8, 111u8, 245u8, 80u8, 241u8, + 149u8, 10u8, 144u8, 99u8, 170u8, 177u8, 71u8, 162u8, 211u8, 174u8, + 90u8, 133u8, 44u8, 84u8, 61u8, 137u8, 43u8, 57u8, 232u8, 134u8, 22u8, ], ) } @@ -23347,10 +23429,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 13u8, 13u8, 248u8, 86u8, 218u8, 110u8, 236u8, 240u8, 174u8, 232u8, - 133u8, 213u8, 220u8, 223u8, 251u8, 52u8, 177u8, 5u8, 215u8, 207u8, - 128u8, 150u8, 38u8, 96u8, 110u8, 65u8, 224u8, 84u8, 218u8, 169u8, - 103u8, 112u8, + 135u8, 19u8, 127u8, 211u8, 150u8, 205u8, 107u8, 38u8, 62u8, 69u8, 22u8, + 16u8, 60u8, 219u8, 136u8, 21u8, 253u8, 117u8, 48u8, 49u8, 22u8, 49u8, + 45u8, 167u8, 17u8, 128u8, 111u8, 124u8, 218u8, 113u8, 108u8, 4u8, ], ) } @@ -31803,27 +31884,27 @@ pub mod api { pub enum Event { #[codec(index = 0)] #[doc = "emit event once the head is updated."] - HeaderUpdate { + HeaderUpdated { slot: ::core::primitive::u64, finalization_root: ::subxt::utils::H256, execution_state_root: ::subxt::utils::H256, }, #[codec(index = 1)] #[doc = "emit event once the sync committee updates."] - SyncCommitteeUpdate { + SyncCommitteeUpdated { period: ::core::primitive::u64, root: runtime_types::primitive_types::U256, }, #[codec(index = 2)] #[doc = "emit when new updater is set"] - BroadcasterUpdate { + BroadcasterUpdated { old: ::subxt::utils::H256, new: ::subxt::utils::H256, domain: ::core::primitive::u32, }, #[codec(index = 3)] #[doc = "emit when message gets executed."] - ExecutedMessage { + MessageExecuted { from: ::subxt::utils::H256, to: ::subxt::utils::H256, message_id: ::core::primitive::u64, diff --git a/node/src/chains/common.rs b/node/src/chains/common.rs index 106c1876b..b768dff9d 100644 --- a/node/src/chains/common.rs +++ b/node/src/chains/common.rs @@ -62,7 +62,6 @@ pub fn runtime_genesis_config( sudo: AccountId32, technical_committee: Vec, session_keys: Vec, - vector_function_ids: (H256, H256), ) -> Value { let balances = dev_endowed_accounts(); let stakers: Vec<(AccountId, AccountId, Balance, StakerStatus)> = session_keys diff --git a/node/src/chains/mod.rs b/node/src/chains/mod.rs index 4c3f384a6..e3f60739c 100644 --- a/node/src/chains/mod.rs +++ b/node/src/chains/mod.rs @@ -4,7 +4,6 @@ mod definitions; use common::*; pub use definitions::*; -use pallet_vector::constants::{ROTATE_FUNCTION_ID, STEP_FUNCTION_ID}; use serde_json::Value; #[cfg(test)] use sp_runtime::BuildStorage; @@ -46,12 +45,7 @@ pub mod dev { let alice = AuthorityKeys::from_seed("Alice"); let sudo = alice.controller.clone(); - runtime_genesis_config( - sudo.clone(), - vec![sudo], - vec![alice], - (STEP_FUNCTION_ID, ROTATE_FUNCTION_ID), - ) + runtime_genesis_config(sudo.clone(), vec![sudo], vec![alice]) } #[test] @@ -84,12 +78,7 @@ pub mod dev_tri { let charlie = AuthorityKeys::from_seed("Charlie"); let sudo = alice.controller.clone(); - runtime_genesis_config( - sudo.clone(), - vec![sudo], - vec![alice, bob, charlie], - (STEP_FUNCTION_ID, ROTATE_FUNCTION_ID), - ) + runtime_genesis_config(sudo.clone(), vec![sudo], vec![alice, bob, charlie]) } #[test]