Skip to content

Commit

Permalink
ADD: update deps, disable rws and digital twin, minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dkuanyshbaev committed Oct 25, 2024
1 parent 11ec1ec commit 3b904d3
Show file tree
Hide file tree
Showing 11 changed files with 5,666 additions and 2,449 deletions.
7,845 changes: 5,533 additions & 2,312 deletions Cargo.lock

Large diffs are not rendered by default.

217 changes: 110 additions & 107 deletions Cargo.toml

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions frame/digital-twin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
//! Digital twin runtime module. This can be compiled with `#[no_std]`, ready for Wasm.
#![cfg_attr(not(feature = "std"), no_std)]

pub use pallet::*;

#[frame_support::pallet]
pub mod pallet {
use frame_support::pallet_prelude::*;
Expand Down Expand Up @@ -63,7 +61,6 @@ pub mod pallet {
StorageMap<_, Twox64Concat, u32, BTreeMap<H256, <T as frame_system::Config>::AccountId>>;

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
#[pallet::without_storage_info]
pub struct Pallet<T>(PhantomData<T>);

Expand Down
3 changes: 0 additions & 3 deletions frame/rws/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ use sp_runtime::RuntimeDebug;
//#[cfg(test)]
//mod tests;

pub use pallet::*;

#[derive(PartialEq, Eq, Clone, Encode, Decode, TypeInfo, RuntimeDebug)]
pub enum Subscription {
/// Lifetime subscription.
Expand Down Expand Up @@ -232,7 +230,6 @@ pub mod pallet {
pub(super) type UnspendBondValue<T: Config> = StorageValue<_, BalanceOf<T>, ValueQuery>;

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
#[pallet::without_storage_info]
pub struct Pallet<T>(PhantomData<T>);

Expand Down
4 changes: 2 additions & 2 deletions frame/xcm-info/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ parity-scale-codec = { workspace = true }
scale-info = { workspace = true }
sp-runtime = { workspace = true }
sp-std = { workspace = true }
xcm = { workspace = true }
staging-xcm = { workspace = true }

[features]
default = ["std"]
Expand All @@ -25,5 +25,5 @@ std = [
"scale-info/std",
"sp-runtime/std",
"sp-std/std",
"xcm/std",
"staging-xcm/std",
]
4 changes: 2 additions & 2 deletions node/generic-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use sp_inherents::{CheckInherentsResult, InherentData};
use sp_runtime::{
traits::Block as BlockT,
transaction_validity::{TransactionSource, TransactionValidity},
ApplyExtrinsicResult,
ApplyExtrinsicResult, ExtrinsicInclusionMode,
};
use sp_version::RuntimeVersion;

Expand All @@ -42,7 +42,7 @@ impl_runtime_apis! {
unimplemented!()
}

fn initialize_block(_header: &<Block as BlockT>::Header) {
fn initialize_block(_header: &<Block as BlockT>::Header) -> ExtrinsicInclusionMode {
unimplemented!()
}
}
Expand Down
4 changes: 2 additions & 2 deletions node/rpc/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ where
ext_rpc,
} = deps;

io.merge(System::new(client.clone(), pool.clone(), deny_unsafe).into_rpc())?;
io.merge(TransactionPayment::new(client.clone()).into_rpc())?;
//io.merge(System::new(client.clone(), pool.clone()).into_rpc())?;
//io.merge(TransactionPayment::new(client.clone()).into_rpc())?;
io.merge(ext_rpc)?;

Ok(io)
Expand Down
1 change: 0 additions & 1 deletion node/service/src/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ where
spawn_handle: task_manager.spawn_handle(),
import_queue,
block_announce_validator_builder: None,
warp_sync_params: Some(sc_service::WarpSyncParams::WithProvider(warp_sync)),
})?;

if config.offchain_worker.enabled {
Expand Down
4 changes: 2 additions & 2 deletions runtime/dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,8 @@ construct_runtime!(
// Robonomics Network modules.
Datalog: pallet_robonomics_datalog,
Launch: pallet_robonomics_launch,
RWS: pallet_robonomics_rws,
DigitalTwin: pallet_robonomics_digital_twin,
//RWS: pallet_robonomics_rws,
//DigitalTwin: pallet_robonomics_digital_twin,
Liability: pallet_robonomics_liability,

// Sudo. Usable initially.
Expand Down
18 changes: 9 additions & 9 deletions runtime/main/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ cumulus-pallet-xcm = { workspace = true }
cumulus-primitives-core = { workspace = true }
cumulus-primitives-utility = { workspace = true }
cumulus-primitives-timestamp = { workspace = true }
parachain-info = { workspace = true }
staging-parachain-info = { workspace = true }

# polkadot dependencies
xcm = { workspace = true }
xcm-builder = { workspace = true }
xcm-executor = { workspace = true }
staging-xcm = { workspace = true }
staging-xcm-builder = { workspace = true }
staging-xcm-executor = { workspace = true }
pallet-xcm = { path = "../../vendor/pallet-xcm", default-features = false }
pallet-xcm-info = { path = "../../frame/xcm-info", default-features = false }
polkadot-parachain = { workspace = true }
Expand Down Expand Up @@ -130,14 +130,14 @@ std = [
"cumulus-pallet-dmp-queue/std",
"cumulus-pallet-xcmp-queue/std",
"cumulus-pallet-xcm/std",
"xcm/std",
"xcm-builder/std",
"xcm-executor/std",
"staging-xcm/std",
"staging-xcm-builder/std",
"staging-xcm-executor/std",
"pallet-xcm/std",
"pallet-xcm-info/std",
"polkadot-parachain/std",
"polkadot-primitives/std",
"parachain-info/std",
"staging-parachain-info/std",
"scale-info/std",
]
runtime-benchmarks = [
Expand All @@ -152,7 +152,7 @@ runtime-benchmarks = [
"pallet-robonomics-launch/runtime-benchmarks",
"pallet-robonomics-datalog/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"staging-xcm-builder/runtime-benchmarks",
"frame-system-benchmarking",
"hex-literal",
]
12 changes: 6 additions & 6 deletions vendor/pallet-xcm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ sp-io = { workspace = true }
sp-runtime = { workspace = true }
sp-std = { workspace = true }

xcm = { workspace = true }
xcm-executor = { workspace = true }
staging-xcm = { workspace = true }
staging-xcm-executor = { workspace = true }

[dev-dependencies]
pallet-balances = { workspace = true }
polkadot-runtime-parachains = { workspace = true }
polkadot-parachain = { workspace = true }
xcm-builder = { workspace = true }
staging-xcm-builder = { workspace = true }

[features]
default = ["std"]
Expand All @@ -46,13 +46,13 @@ std = [
"frame-benchmarking?/std",
"frame-support/std",
"frame-system/std",
"xcm/std",
"xcm-executor/std",
"staging-xcm/std",
"staging-xcm-executor/std",
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"staging-xcm-builder/runtime-benchmarks",
]
try-runtime = ["frame-support/try-runtime"]

0 comments on commit 3b904d3

Please sign in to comment.