Skip to content

Commit

Permalink
v1.2.0 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
joepetrowski committed Apr 19, 2024
1 parent 7bdfdb6 commit 6c35e46
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
21 changes: 9 additions & 12 deletions src/build_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,27 +502,24 @@ async fn send_as_superuser_from_kusama(auth: &CallInfo) -> KusamaRuntimeCall {
use kusama_relay::runtime_types::{
pallet_xcm::pallet::Call as XcmCall,
sp_weights::weight_v2::Weight as KusamaWeight,
staging_xcm::v3::multilocation::MultiLocation,
staging_xcm::v4::{
junction::Junction::Parachain, junctions::Junctions::X1, location::Location,
Instruction, Xcm,
},
xcm::{
double_encoded::DoubleEncoded,
v2::OriginKind,
v3::{
junction::Junction::Parachain, junctions::Junctions::X1, Instruction, WeightLimit,
Xcm,
},
VersionedMultiLocation,
VersionedXcm::V3,
double_encoded::DoubleEncoded, v2::OriginKind, v3::WeightLimit, VersionedLocation,
VersionedXcm::V4,
},
};

let (ref_time, proof_size) = get_weight(auth).await;
let para_id = auth.network.get_para_id().unwrap();
KusamaRuntimeCall::XcmPallet(XcmCall::send {
dest: Box::new(VersionedMultiLocation::V3(MultiLocation {
dest: Box::new(VersionedLocation::V4(Location {
parents: 0,
interior: X1(Parachain(para_id)),
interior: X1([Parachain(para_id)]),
})),
message: Box::new(V3(Xcm(vec![
message: Box::new(V4(Xcm(vec![
Instruction::UnpaidExecution {
weight_limit: WeightLimit::Unlimited,
check_origin: None,
Expand Down
2 changes: 1 addition & 1 deletion src/submit_referendum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ async fn polkadot_fellowship_referenda(
//
// let send_whitelist = CollectivesRuntimeCall::PolkadotXcm(
// PolkadotXcmCall::send {
// dest: MultiLocation { parents: 1, interior: Here },
// dest: Location { parents: 1, interior: Here },
// message: vec![UnpaidExecution, Transact {call: whitelist_call, ..}],
// }
// );
Expand Down
2 changes: 1 addition & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub(super) use kusama_bridge_hub::runtime_types::bridge_hub_kusama_runtime::Runt

#[subxt::subxt(runtime_metadata_insecure_url = "wss://kusama.api.encointer.org:443")]
pub mod kusama_encointer {}
pub(super) use kusama_encointer::runtime_types::encointer_runtime::RuntimeCall as KusamaEncointerRuntimeCall;
pub(super) use kusama_encointer::runtime_types::encointer_kusama_runtime::RuntimeCall as KusamaEncointerRuntimeCall;

#[subxt::subxt(runtime_metadata_insecure_url = "wss://kusama-coretime-rpc.polkadot.io:443")]
pub mod kusama_coretime {}
Expand Down

0 comments on commit 6c35e46

Please sign in to comment.