Skip to content

Commit

Permalink
Move parentchain pallet under worker-pallets folder (#2613)
Browse files Browse the repository at this point in the history
* use dedicated folder for worker pallets

* include member to workspace

---------

Co-authored-by: Kasper Ziemianek <kasper.ziemianek@gmail.com>
  • Loading branch information
Traf333 and kziemianek committed Apr 12, 2024
1 parent 8c053d9 commit 8683fd3
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 45 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ members = [
'pallets/group',
'pallets/identity-management',
'pallets/parachain-staking',
'pallets/parentchain',
'pallets/teebag',
'pallets/vc-management',
'pallets/xcm-asset-manager',
Expand All @@ -27,6 +26,7 @@ members = [
'runtime/litmus',
'runtime/rococo',
'runtime/common',
'worker-pallets/parentchain',
]

[profile.release]
Expand Down
2 changes: 1 addition & 1 deletion bitacross-worker/app-libs/sgx-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sp-std = { default-features = false, git = "https://github.com/paritytech/substr
sp-version = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }


pallet-parentchain = { path = "../../../pallets/parentchain", default-features = false }
pallet-parentchain = { path = "../../../worker-pallets/parentchain", default-features = false }

[features]
default = ["std"]
Expand Down
1 change: 0 additions & 1 deletion bitacross-worker/app-libs/sgx-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ pub use frame_support::{
};
use itp_sgx_runtime_primitives::types::Moment;
pub use pallet_balances::Call as BalancesCall;
pub use pallet_parentchain::Call as ParentchainPalletCall;
pub use pallet_timestamp::Call as TimestampCall;
#[cfg(any(feature = "std", test))]
pub use sp_runtime::BuildStorage;
Expand Down
2 changes: 1 addition & 1 deletion bitacross-worker/app-libs/stf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ sp-std = { default-features = false, git = "https://github.com/paritytech/substr
# litentry
litentry-macros = { path = "../../../primitives/core/macros", default-features = false }
litentry-primitives = { path = "../../litentry/primitives", default-features = false }
pallet-parentchain = { path = "../../../pallets/parentchain", default-features = false }
pallet-parentchain = { path = "../../../worker-pallets/parentchain", default-features = false }

[dev-dependencies]
sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
Expand Down
38 changes: 0 additions & 38 deletions pallets/parentchain/Cargo.toml

This file was deleted.

2 changes: 1 addition & 1 deletion tee-worker/app-libs/sgx-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pallet-evm = { default-features = false, optional = true, git = "https://github.

# Litentry
pallet-imt = { package = "pallet-identity-management-tee", path = "../../litentry/pallets/identity-management", default-features = false }
pallet-parentchain = { path = "../../../pallets/parentchain", default-features = false }
pallet-parentchain = { package = "pallet-parentchain", path = "../../../worker-pallets/parentchain", default-features = false }

[features]
default = ["std"]
Expand Down
2 changes: 1 addition & 1 deletion tee-worker/app-libs/stf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ lc-stf-task-sender = { path = "../../litentry/core/stf-task/sender", default-fea
litentry-hex-utils = { path = "../../../primitives/hex", default-features = false }
litentry-macros = { path = "../../../primitives/core/macros", default-features = false }
litentry-primitives = { path = "../../litentry/primitives", default-features = false }
pallet-parentchain = { path = "../../../pallets/parentchain", default-features = false }
pallet-parentchain = { path = "../../../worker-pallets/parentchain", default-features = false }

[dev-dependencies]
sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
Expand Down
38 changes: 38 additions & 0 deletions worker-pallets/parentchain/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[package]
name = "pallet-parentchain"
description = "The remote attestation registry and verification pallet for litentry blockchains and parachains"
version = "0.9.0"
authors = ['Trust Computing GmbH <info@litentry.com>', 'Integritee AG <hello@integritee.network>']
homepage = 'https://litentry.com/'
repository = 'https://github.com/litentry/litentry-parachain'
license = "Apache-2.0"
edition = "2021"

[dependencies]
parity-scale-codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }

frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }

[dev-dependencies]
env_logger = "0.9.0"
sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }

[features]
default = ["std"]
std = [
"parity-scale-codec/std",
"scale-info/std",
"frame-support/std",
"frame-system/std",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
]

try-runtime = ["frame-support/try-runtime"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8683fd3

Please sign in to comment.