Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pallet-base code cleanup.
  • Loading branch information
Neopallium committed Nov 23, 2022
commit 7bb0810c3a52ee182479da86b416409c22358097
1 change: 1 addition & 0 deletions pallets/asset/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ std = [
"codec/std",
"frame-support/std",
"frame-system/std",
"pallet-base/std",
"pallet-balances/std",
"pallet-identity/std",
#"polymesh-contracts/std",
Expand Down
11 changes: 11 additions & 0 deletions pallets/base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ frame-system = { git = "https://github.com/PolymeshAssociation/substrate", defau
frame-support = { git = "https://github.com/PolymeshAssociation/substrate", default-features = false, branch = "polymesh-monthly-2022-05" }

[features]
default = ["std"]
no_std = []
std = [
"codec/std",
"sp-runtime/std",
"frame-support/std",
"frame-system/std",
"sp-std/std",
"polymesh-primitives/std",
"polymesh-common-utilities/std",
]
2 changes: 0 additions & 2 deletions pallets/base/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ pub fn try_next_post<T: Config, I: CheckedInc>(seq: &mut I) -> Result<I, Dispatc
.ok_or_else(|| Error::<T>::CounterOverflow.into())
}

impl<T: Config> frame_support::traits::IntegrityTest for Module<T> {}

impl<T: Config> StorageInfoTrait for Module<T> {
fn storage_info() -> Vec<StorageInfo> {
Vec::new()
Expand Down
1 change: 1 addition & 0 deletions pallets/bridge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ std = [
"frame-benchmarking/std",
"frame-support/std",
"frame-system/std",
"pallet-base/std",
"pallet-balances/std",
"pallet-identity/std",
"pallet-multisig/std",
Expand Down
37 changes: 19 additions & 18 deletions pallets/compliance-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,26 @@ default = ["std", "equalize"]
no_std = []
only-staking = []
std = [
"serde_derive",
"serde/std",
"codec/std",
"sp-std/std",
"sp-io/std",
"sp-core/std",
"sp-runtime/std",
"sp-version/std",
"sp-api/std",
"frame-system/std",
"frame-support/std",
"frame-benchmarking/std",
"pallet-timestamp/std",
"polymesh-common-utilities/std",
"polymesh-primitives/std",
"serde_derive",
"serde/std",
"codec/std",
"sp-std/std",
"sp-io/std",
"sp-core/std",
"sp-runtime/std",
"sp-version/std",
"sp-api/std",
"frame-system/std",
"frame-support/std",
"frame-benchmarking/std",
"pallet-base/std",
"pallet-timestamp/std",
"polymesh-common-utilities/std",
"polymesh-primitives/std",
]

runtime-benchmarks = [
"frame-benchmarking",
"pallet-asset/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"frame-benchmarking",
"pallet-asset/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
]
3 changes: 2 additions & 1 deletion pallets/contracts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ std = [
"sp-core/std",
"frame-system/std",
"frame-support/std",
"pallet-base/std",
"pallet-identity/std",
"pallet-contracts/std",
"polymesh-primitives/std",
"polymesh-common-utilities/std",
"pwasm-utils/std",
"pwasm-utils/std",
]
runtime-benchmarks = [
"frame-benchmarking",
Expand Down
1 change: 1 addition & 0 deletions pallets/corporate-actions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ std = [
"codec/std",
"frame-support/std",
"frame-system/std",
"pallet-base/std",
"pallet-balances/std",
"pallet-timestamp/std",
"polymesh-common-utilities/std",
Expand Down
1 change: 1 addition & 0 deletions pallets/external-agents/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ std = [
"codec/std",
"frame-support/std",
"frame-system/std",
"pallet-base/std",
"pallet-identity/std",
"polymesh-common-utilities/std",
"polymesh-primitives/std",
Expand Down
1 change: 1 addition & 0 deletions pallets/identity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ std = [
"confidential_identity_v2/u64_backend",
"frame-support/std",
"frame-system/std",
"pallet-base/std",
"pallet-balances/std",
"pallet-permissions/std",
"pallet-timestamp/std",
Expand Down
1 change: 1 addition & 0 deletions pallets/pips/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ std = [
"codec/std",
"frame-support/std",
"frame-system/std",
"pallet-base/std",
"pallet-balances/std",
"pallet-group/std",
"pallet-identity/std",
Expand Down
1 change: 1 addition & 0 deletions pallets/portfolio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ std = [
"codec/std",
"frame-support/std",
"frame-system/std",
"pallet-base/std",
"pallet-balances/std",
"polymesh-common-utilities/std",
"polymesh-primitives/std",
Expand Down
1 change: 1 addition & 0 deletions pallets/runtime/develop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ std = [
"pallet-asset/std",
"pallet-authority-discovery/std",
"pallet-authorship/std",
"pallet-base/std",
"pallet-babe/std",
"pallet-balances/std",
"pallet-sto/std",
Expand Down
1 change: 1 addition & 0 deletions pallets/runtime/mainnet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ std = [
"pallet-asset/std",
"pallet-authority-discovery/std",
"pallet-authorship/std",
"pallet-base/std",
"pallet-babe/std",
"pallet-balances/std",
"pallet-bridge/std",
Expand Down
1 change: 1 addition & 0 deletions pallets/runtime/testnet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ std = [
"pallet-asset/std",
"pallet-authority-discovery/std",
"pallet-authorship/std",
"pallet-base/std",
"pallet-babe/std",
"pallet-balances/std",
"pallet-sto/std",
Expand Down
1 change: 1 addition & 0 deletions pallets/runtime/tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ std = [
"ink_primitives/std",
"pallet-asset/std",
"pallet-authorship/std",
"pallet-base/std",
"pallet-babe/std",
"pallet-balances/std",
"pallet-sto/std",
Expand Down
3 changes: 1 addition & 2 deletions pallets/settlement/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ std = [
"codec/std",
"frame-support/std",
"frame-system/std",
#"pallet-contracts/std",
#"polymesh-contracts/std",
"pallet-base/std",
"pallet-balances/std",
"pallet-asset/std",
"pallet-identity/std",
Expand Down
41 changes: 21 additions & 20 deletions pallets/sto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,27 @@ default = ["std", "equalize"]
no_std = []
only-staking = []
std = [
"serde_derive",
"serde/std",
"codec/std",
"sp-std/std",
"sp-io/std",
"sp-core/std",
"sp-runtime/std",
"sp-version/std",
"sp-api/std",
"frame-system/std",
"frame-support/std",
"frame-benchmarking/std",
"polymesh-common-utilities/std",
"pallet-balances/std",
"polymesh-primitives/std",
"pallet-identity/std",
"pallet-asset/std",
"pallet-settlement/std",
"pallet-timestamp/std"
"serde_derive",
"serde/std",
"codec/std",
"sp-std/std",
"sp-io/std",
"sp-core/std",
"sp-runtime/std",
"sp-version/std",
"sp-api/std",
"frame-system/std",
"frame-support/std",
"frame-benchmarking/std",
"polymesh-common-utilities/std",
"pallet-base/std",
"pallet-balances/std",
"polymesh-primitives/std",
"pallet-identity/std",
"pallet-asset/std",
"pallet-settlement/std",
"pallet-timestamp/std"
]
runtime-benchmarks = [
"frame-benchmarking"
"frame-benchmarking"
]