From f4f4bcc92af6e609dce8f36997b21aa00432d563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Enrique=20Mu=C3=B1oz=20Mart=C3=ADn?= Date: Mon, 12 Feb 2024 10:32:02 +0100 Subject: [PATCH] Refactor: Use workspace dependencies (#1725) * fix: better workspace usage * compiling with cargo check * clean all Cargo.toml files * taplo fmt and minor fix * fix benchmarking issue --------- Co-authored-by: William Freudenberger --- Cargo.lock | 30 +---- Cargo.toml | 12 +- libs/mocks/Cargo.toml | 37 +++--- libs/primitives/Cargo.toml | 56 ++++----- libs/proofs/Cargo.toml | 20 ++-- libs/test-utils/Cargo.toml | 34 +++--- libs/traits/Cargo.toml | 50 ++++---- libs/types/Cargo.toml | 60 +++++----- libs/utils/Cargo.toml | 34 +++--- pallets/anchors/Cargo.toml | 82 ++++++------- pallets/block-rewards/Cargo.toml | 99 ++++++++-------- pallets/bridge/Cargo.toml | 63 +++++----- pallets/collator-allowlist/Cargo.toml | 44 +++---- pallets/crowdloan-claim/Cargo.toml | 65 ++++++----- pallets/crowdloan-reward/Cargo.toml | 59 +++++----- pallets/ethereum-transaction/Cargo.toml | 68 +++++------ pallets/fees/Cargo.toml | 54 ++++----- pallets/foreign-investments/Cargo.toml | 36 +++--- pallets/interest-accrual/Cargo.toml | 64 +++++----- pallets/investments/Cargo.toml | 73 ++++++------ pallets/keystore/Cargo.toml | 42 +++---- pallets/liquidity-pools-gateway/Cargo.toml | 51 ++++---- .../axelar-gateway-precompile/Cargo.toml | 38 +++--- .../routers/Cargo.toml | 45 ++++---- pallets/liquidity-pools/Cargo.toml | 102 ++++++++-------- pallets/liquidity-rewards/Cargo.toml | 65 ++++++----- pallets/loans/Cargo.toml | 50 ++++---- pallets/migration/Cargo.toml | 58 +++++----- pallets/nft-sales/Cargo.toml | 89 +++++++------- pallets/nft/Cargo.toml | 82 ++++++------- pallets/order-book/Cargo.toml | 65 +++++------ pallets/order-book/src/benchmarking.rs | 6 +- pallets/permissions/Cargo.toml | 48 ++++---- pallets/pool-fees/Cargo.toml | 48 ++++---- pallets/pool-registry/Cargo.toml | 102 ++++++++-------- pallets/pool-system/Cargo.toml | 109 +++++++++--------- pallets/restricted-tokens/Cargo.toml | 77 +++++++------ pallets/restricted-xtokens/Cargo.toml | 11 +- pallets/rewards/Cargo.toml | 59 +++++----- pallets/transfer-allowlist/Cargo.toml | 57 +++++---- 40 files changed, 1125 insertions(+), 1119 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3ec1840f0a..5c17550a28 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -527,7 +527,7 @@ dependencies = [ "cfg-traits", "cfg-types", "cfg-utils", - "ethabi 18.0.0", + "ethabi", "fp-evm", "frame-benchmarking", "frame-support", @@ -2915,20 +2915,6 @@ dependencies = [ "uint", ] -[[package]] -name = "ethabi" -version = "18.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7413c5f74cc903ea37386a8965a936cbeb334bd270862fdece542c1b2dcbc898" -dependencies = [ - "ethereum-types 0.14.1", - "hex", - "serde", - "sha3 0.10.8", - "thiserror", - "uint", -] - [[package]] name = "ethbloom" version = "0.11.1" @@ -5639,7 +5625,7 @@ dependencies = [ "cfg-traits", "cfg-types", "cumulus-primitives-core", - "ethabi 16.0.0", + "ethabi", "frame-support", "frame-system", "hex", @@ -7333,7 +7319,6 @@ dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "log", "pallet-timestamp", "parity-scale-codec 3.6.9", "scale-info", @@ -7393,7 +7378,7 @@ dependencies = [ "cfg-traits", "cfg-types", "cfg-utils", - "ethabi 16.0.0", + "ethabi", "fp-self-contained", "frame-benchmarking", "frame-support", @@ -7429,7 +7414,7 @@ dependencies = [ "frame-support", "frame-system", "hex", - "hex-literal 0.4.1", + "hex-literal 0.3.4", "pallet-balances", "parity-scale-codec 3.6.9", "rand 0.8.5", @@ -7766,7 +7751,6 @@ dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "orml-asset-registry", "orml-tokens", "orml-traits", "pallet-balances", @@ -7810,7 +7794,6 @@ dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "log", "orml-tokens", "orml-traits", "pallet-balances", @@ -7870,8 +7853,6 @@ dependencies = [ "frame-benchmarking", "frame-support", "frame-system", - "lazy_static", - "log", "orml-asset-registry", "orml-tokens", "orml-traits", @@ -8027,7 +8008,6 @@ dependencies = [ "orml-xtokens", "parity-scale-codec 3.6.9", "scale-info", - "serde", "sp-std", "xcm", ] @@ -10977,7 +10957,7 @@ dependencies = [ "cumulus-primitives-parachain-inherent", "cumulus-test-relay-sproof-builder", "development-runtime", - "ethabi 16.0.0", + "ethabi", "ethereum", "fp-self-contained", "frame-support", diff --git a/Cargo.toml b/Cargo.toml index 61fa62acbf..e91c571e03 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,7 +58,7 @@ documentation = "https://reference.centrifuge.io/centrifuge_chain/index.html" [workspace.dependencies] hex-literal = { version = "0.3.4" } -hex = { version = "0.4.3", default_features = false } +hex = { version = "0.4.3", default-features = false } smallvec = "1.6.1" serde = { version = "1.0.119", features = ["derive"] } parity-scale-codec = { version = "3.0", default-features = false, features = ["derive"] } @@ -79,6 +79,11 @@ jsonrpsee = { version = "0.16.2", features = ["server", "macros"] } url = "2.2.2" tempfile = "3.1.0" strum = { version = "0.24", default-features = false, features = ["derive"] } +bitflags = { version = "1.3" } +rand = { version = "0.8.5", default-features = false } +rev_slice = { version = "0.1.5", default-features = false } +impl-trait-for-tuples = "0.2.1" +num-traits = { version = "0.2", default-features = false } # Cumulus cumulus-pallet-aura-ext = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.43" } @@ -161,6 +166,8 @@ sp-blockchain = { git = "https://github.com/paritytech/substrate", default-featu sp-consensus = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } sp-keystore = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } sp-keyring = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +sp-staking = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +sp-trie = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } frame-executive = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, features = [ @@ -236,6 +243,7 @@ fp-storage = { git = "https://github.com/moonbeam-foundation/frontier", default- moonbeam-relay-encoder = { git = "https://github.com/moonbeam-foundation/moonbeam", default-features = false, rev = "96ac7576f93bb6828415bf3edeef9e8c4b5b4adf" } xcm-primitives = { git = "https://github.com/moonbeam-foundation/moonbeam", default-features = false, rev = "96ac7576f93bb6828415bf3edeef9e8c4b5b4adf" } pallet-xcm-transactor = { git = "https://github.com/moonbeam-foundation/moonbeam", default-features = false, rev = "96ac7576f93bb6828415bf3edeef9e8c4b5b4adf" } +precompile-utils = { git = "https://github.com/moonbeam-foundation/moonbeam", default-features = false, rev = "96ac7576f93bb6828415bf3edeef9e8c4b5b4adf" } # Centrifuge organization fudge = { git = "https://github.com/centrifuge/fudge", branch = "polkadot-v0.9.43" } @@ -286,6 +294,8 @@ cfg-traits = { path = "libs/traits", default-features = false } cfg-types = { path = "libs/types", default-features = false } cfg-utils = { path = "libs/utils", default-features = false } cfg-mocks = { path = "libs/mocks", default-features = false } +cfg-test-utils = { path = "libs/test-utils", default-features = false } +proofs = { path = "libs/proofs", default-features = false } # Centrifuge runtimes runtime-common = { path = "runtime/common", default-features = false } diff --git a/libs/mocks/Cargo.toml b/libs/mocks/Cargo.toml index edc46dbc77..9c1b443ada 100644 --- a/libs/mocks/Cargo.toml +++ b/libs/mocks/Cargo.toml @@ -1,29 +1,32 @@ [package] -authors = ["Centrifuge "] -description = "Generic mocks built with mock-builder for traits" -edition = "2021" -license = "LGPL-3.0" name = "cfg-mocks" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Generic mocks built with mock-builder for traits" version = "0.0.1" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -parity-scale-codec = { default-features = false, version = "3.0.0", features = ["derive"] } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } + +cfg-primitives = { workspace = true } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } -cfg-primitives = { path = "../primitives", default-features = false } -cfg-traits = { path = "../traits", default-features = false } -cfg-types = { path = "../types", default-features = false } -orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.43" } +orml-traits = { workspace = true } xcm = { workspace = true } mock-builder = { workspace = true } diff --git a/libs/primitives/Cargo.toml b/libs/primitives/Cargo.toml index 37066bfce4..4577236191 100644 --- a/libs/primitives/Cargo.toml +++ b/libs/primitives/Cargo.toml @@ -1,49 +1,44 @@ [package] -authors = ["Centrifuge "] -description = "Primitive types for Centrifuge" -edition = "2021" -license = "LGPL-3.0" name = "cfg-primitives" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Primitive types for Centrifuge" version = "2.0.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -serde = { version = "1.0.119" } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +serde = { workspace = true } # substrate primitives dependencies -sp-arithmetic = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-consensus-aura = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +sp-arithmetic = { workspace = true } +sp-consensus-aura = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # substrate frame dependencies -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -pallet-collective = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-collective = { workspace = true } # cumulus primitives dependencies -cumulus-primitives-core = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.43" } +cumulus-primitives-core = { workspace = true } # XCM primitives dependencies -xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.43" } -xcm-executor = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.43" } +xcm = { workspace = true } +xcm-executor = { workspace = true } [features] default = ["std"] -runtime-benchmarks = [ - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "pallet-collective/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", - "xcm-executor/runtime-benchmarks", -] std = [ "parity-scale-codec/std", "cumulus-primitives-core/std", @@ -61,6 +56,13 @@ std = [ "xcm-executor/std", "xcm/std", ] +runtime-benchmarks = [ + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-collective/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "xcm-executor/runtime-benchmarks", +] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", diff --git a/libs/proofs/Cargo.toml b/libs/proofs/Cargo.toml index 1f8fe0ea0f..12e52207b9 100644 --- a/libs/proofs/Cargo.toml +++ b/libs/proofs/Cargo.toml @@ -1,22 +1,24 @@ [package] -authors = ["Centrifuge "] -description = "Proofs" -edition = "2021" -license = "LGPL-3.0" name = "proofs" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Proofs" version = "2.0.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-std = { workspace = true } [dev-dependencies] -sp-core = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } +sp-core = { workspace = true, default-features = true } [features] default = ["std"] diff --git a/libs/test-utils/Cargo.toml b/libs/test-utils/Cargo.toml index 4489db5ed6..3ca61873e0 100644 --- a/libs/test-utils/Cargo.toml +++ b/libs/test-utils/Cargo.toml @@ -1,31 +1,33 @@ [package] name = "cfg-test-utils" +description = "Utilities for testing" version = "0.1.0" -edition = "2021" -authors = ["Centrifuge"] -homepage = "https://centrifuge.io" -license = "LGPL-3.0" -repository = "https://github.com/centrifuge/centrifuge-chain" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -cfg-primitives = { path = "../primitives", default-features = false } -cfg-traits = { path = "../traits", default-features = false } -cfg-types = { path = "../types", default-features = false } +cfg-primitives = { workspace = true } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -serde = { version = "1.0.119", default-features = false } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +serde = { workspace = true } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Optional dependencies -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } [features] default = ["std"] diff --git a/libs/traits/Cargo.toml b/libs/traits/Cargo.toml index c2a5199914..a788b0e1d8 100644 --- a/libs/traits/Cargo.toml +++ b/libs/traits/Cargo.toml @@ -1,40 +1,35 @@ [package] name = "cfg-traits" -authors = ["The Centrifugians Tribe"] -edition = "2021" -homepage = "https://centrifuge.io" -license = "LGPL-3.0" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Interfaces implemented by pallets" version = "0.1.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -cfg-primitives = { path = "../primitives", default-features = false } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -impl-trait-for-tuples = "0.2.1" -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -sp-arithmetic = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -strum = { workspace = true, default-features = false } +cfg-primitives = { workspace = true } +frame-support = { workspace = true } +impl-trait-for-tuples = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-arithmetic = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } +strum = { workspace = true } [dev-dependencies] -cfg-mocks = { path = "../mocks" } -cfg-types = { path = "../types" } -mock-builder = { workspace = true } +cfg-mocks = { workspace = true, default_features = true } +cfg-types = { workspace = true, default_features = true } +mock-builder = { workspace = true, default_features = true } [features] default = ["std"] -runtime-benchmarks = [ - "cfg-primitives/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", - "cfg-mocks/runtime-benchmarks", - "cfg-types/runtime-benchmarks", -] std = [ "parity-scale-codec/std", "frame-support/std", @@ -45,6 +40,13 @@ std = [ "scale-info/std", "strum/std", ] +runtime-benchmarks = [ + "cfg-primitives/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "cfg-mocks/runtime-benchmarks", + "cfg-types/runtime-benchmarks", +] try-runtime = [ "frame-support/try-runtime", "cfg-primitives/try-runtime", diff --git a/libs/types/Cargo.toml b/libs/types/Cargo.toml index 02a4720f41..e7cb35523f 100644 --- a/libs/types/Cargo.toml +++ b/libs/types/Cargo.toml @@ -1,51 +1,45 @@ [package] -authors = ["Centrifuge "] -description = "Common types for Centrifuge runtime" -edition = "2021" -license = "LGPL-3.0" name = "cfg-types" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Common types for Centrifuge runtime" version = "2.0.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -bitflags = { version = "1.3", default-features = false } -hex-literal = { version = "0.3.4", default-features = false } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } +bitflags = { workspace = true } +hex-literal = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } serde = { workspace = true } # substrate dependencies -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-arithmetic = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +sp-arithmetic = { workspace = true } +sp-core = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } -orml-asset-registry = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.43" } -xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.43" } +orml-asset-registry = { workspace = true } +xcm = { workspace = true } # local dependencies -cfg-primitives = { path = "../primitives", default-features = false } -cfg-traits = { path = "../traits", default-features = false } -cfg-utils = { path = "../utils", default-features = false } +cfg-primitives = { workspace = true } +cfg-traits = { workspace = true } +cfg-utils = { workspace = true } [dev-dependencies] -frame-support = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -hex = { version = "0.4.3", default_features = false } +frame-support = { workspace = true, default-features = true } +hex = { workspace = true, default-features = true } [features] default = ["std"] -runtime-benchmarks = [ - "cfg-primitives/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "cfg-utils/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "orml-asset-registry/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", -] std = [ "cfg-primitives/std", "cfg-traits/std", @@ -62,6 +56,14 @@ std = [ "sp-std/std", "xcm/std", ] +runtime-benchmarks = [ + "cfg-primitives/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "cfg-utils/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "orml-asset-registry/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", +] try-runtime = [ "cfg-primitives/try-runtime", "cfg-traits/try-runtime", diff --git a/libs/utils/Cargo.toml b/libs/utils/Cargo.toml index 90a7e41d6b..6c5c92c8c7 100644 --- a/libs/utils/Cargo.toml +++ b/libs/utils/Cargo.toml @@ -1,26 +1,28 @@ [package] -authors = ["Centrifuge "] -description = "Utility functions for Centrifuge" -edition = "2021" -license = "LGPL-3.0" name = "cfg-utils" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Utility functions for Centrifuge" version = "2.0.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -hex = { version = "0.4.3", default_features = false } -pallet-aura = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.0", default-features = false, features = ["derive"] } -sp-consensus-aura = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } +hex = { workspace = true } +pallet-aura = { workspace = true } +pallet-timestamp = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-consensus-aura = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } [features] default = ["std"] @@ -36,14 +38,12 @@ std = [ "sp-consensus-aura/std", "hex/std", ] - runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "sp-runtime/runtime-benchmarks", ] - try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", diff --git a/pallets/anchors/Cargo.toml b/pallets/anchors/Cargo.toml index 05a17be643..3d39c1e5e7 100644 --- a/pallets/anchors/Cargo.toml +++ b/pallets/anchors/Cargo.toml @@ -1,44 +1,63 @@ [package] name = "pallet-anchors" -authors = ["Centrifuge "] description = "Anchors pallet for runtime" -edition = "2021" -license = "LGPL-3.0" -repository = "https://github.com/centrifuge/centrifuge-chain" version = "2.0.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -serde = { version = "1.0.119" } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +serde = { workspace = true } -cfg-traits = { path = "../../libs/traits", default-features = false } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-arithmetic = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +cfg-traits = { workspace = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-balances = { workspace = true } +pallet-timestamp = { workspace = true } +sp-arithmetic = { workspace = true } +sp-core = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # optional dependencies for benchmarking -cfg-utils = { path = "../../libs/utils", default-features = false, optional = true } -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -pallet-aura = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +cfg-utils = { workspace = true, optional = true } +frame-benchmarking = { workspace = true, optional = true } +pallet-aura = { workspace = true } [dev-dependencies] -pallet-authorship = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-consensus-aura = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } +pallet-authorship = { workspace = true, default-features = true } +sp-consensus-aura = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } -cfg-mocks = { path = "../../libs/mocks" } +cfg-mocks = { workspace = true, default-features = true } [features] default = ["std"] +std = [ + "cfg-traits/std", + "cfg-utils/std", + "parity-scale-codec/std", + "frame-benchmarking/std", + "frame-support/std", + "frame-system/std", + "pallet-aura/std", + "pallet-timestamp/std", + "pallet-balances/std", + "scale-info/std", + "serde/std", + "sp-arithmetic/std", + "sp-core/std", + "sp-runtime/std", + "sp-std/std", +] runtime-benchmarks = [ "cfg-mocks/runtime-benchmarks", "cfg-traits/runtime-benchmarks", @@ -62,20 +81,3 @@ try-runtime = [ "pallet-timestamp/try-runtime", "sp-runtime/try-runtime", ] -std = [ - "cfg-traits/std", - "cfg-utils/std", - "parity-scale-codec/std", - "frame-benchmarking/std", - "frame-support/std", - "frame-system/std", - "pallet-aura/std", - "pallet-timestamp/std", - "pallet-balances/std", - "scale-info/std", - "serde/std", - "sp-arithmetic/std", - "sp-core/std", - "sp-runtime/std", - "sp-std/std", -] diff --git a/pallets/block-rewards/Cargo.toml b/pallets/block-rewards/Cargo.toml index 785c341db6..ed6c1be7f3 100644 --- a/pallets/block-rewards/Cargo.toml +++ b/pallets/block-rewards/Cargo.toml @@ -1,67 +1,47 @@ [package] name = "pallet-block-rewards" -version = "0.1.0" -authors = ["Centrifuge "] description = "Block Rewards pallet" -edition = "2021" -homepage = "https://centrifuge.io" -license = "LGPL-3.0" -repository = "https://github.com/centrifuge/centrifuge-chain" +version = "0.1.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -cfg-primitives = { path = "../../libs/primitives", default-features = false } -cfg-traits = { path = "../../libs/traits", default-features = false } -cfg-types = { path = "../../libs/types", default-features = false } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -log = { version = "0.4.17", default-features = false } -num-traits = { version = "0.2", default-features = false } -pallet-collator-selection = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.43" } -pallet-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-staking = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +cfg-primitives = { workspace = true } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +log = { workspace = true } +num-traits = { workspace = true } +pallet-collator-selection = { workspace = true } +pallet-session = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-runtime = { workspace = true } +sp-staking = { workspace = true } +sp-std = { workspace = true } # optional dependencies for benchmarking -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } [dev-dependencies] -orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", branch = "polkadot-v0.9.43" } -orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", branch = "polkadot-v0.9.43" } -pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -pallet-restricted-tokens = { path = "../restricted-tokens", default-features = false } -pallet-rewards = { path = "../rewards", default-features = false } -sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } +orml-tokens = { workspace = true, default-features = true } +orml-traits = { workspace = true, default-features = true } +pallet-balances = { workspace = true, default-features = true } +pallet-restricted-tokens = { workspace = true, default-features = true } +pallet-rewards = { workspace = true, default-features = true } +sp-core = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } [features] default = ["std"] -try-runtime = [ - "cfg-primitives/try-runtime", - "cfg-traits/try-runtime", - "frame-support/try-runtime", - "cfg-types/try-runtime", - "frame-system/try-runtime", - "pallet-collator-selection/try-runtime", - "pallet-session/try-runtime", - "sp-runtime/try-runtime", -] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "cfg-types/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "pallet-collator-selection/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", - "sp-staking/runtime-benchmarks", - "cfg-primitives/runtime-benchmarks", -] std = [ "frame-benchmarking/std", "num-traits/std", @@ -80,3 +60,24 @@ std = [ "sp-staking/std", "sp-std/std", ] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "cfg-types/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-collator-selection/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "sp-staking/runtime-benchmarks", + "cfg-primitives/runtime-benchmarks", +] +try-runtime = [ + "cfg-primitives/try-runtime", + "cfg-traits/try-runtime", + "frame-support/try-runtime", + "cfg-types/try-runtime", + "frame-system/try-runtime", + "pallet-collator-selection/try-runtime", + "pallet-session/try-runtime", + "sp-runtime/try-runtime", +] diff --git a/pallets/bridge/Cargo.toml b/pallets/bridge/Cargo.toml index f464b19162..281b53522c 100644 --- a/pallets/bridge/Cargo.toml +++ b/pallets/bridge/Cargo.toml @@ -1,50 +1,40 @@ [package] name = "pallet-bridge" description = "Bridge pallet" -authors = ["The Centrifugians Tribe"] -edition = "2021" -homepage = "https://centrifuge.io" -license = "LGPL-3.0" -repository = "https://github.com/centrifuge/centrifuge-chain" version = "2.0.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-core = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } -cfg-traits = { path = "../../libs/traits", default-features = false } -chainbridge = { git = "https://github.com/centrifuge/chainbridge-substrate.git", default-features = false, branch = "polkadot-v0.9.43" } +cfg-traits = { workspace = true } +chainbridge = { workspace = true } [dev-dependencies] -cfg-primitives = { path = "../../libs/primitives" } -cfg-types = { path = "../../libs/types" } -pallet-authorship = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -pallet-fees = { path = "../fees" } -pallet-timestamp = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } +cfg-primitives = { workspace = true, default-features = true } +cfg-types = { workspace = true, default-features = true } +pallet-authorship = { workspace = true, default-features = true } +pallet-balances = { workspace = true, default-features = true } +pallet-fees = { workspace = true, default-features = true } +pallet-timestamp = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } [features] default = ["std"] -runtime-benchmarks = [ - "chainbridge/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "cfg-types/runtime-benchmarks", - "cfg-primitives/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "pallet-balances/runtime-benchmarks", -] std = [ "parity-scale-codec/std", "scale-info/std", @@ -56,6 +46,15 @@ std = [ "chainbridge/std", "cfg-traits/std", ] +runtime-benchmarks = [ + "chainbridge/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "cfg-types/runtime-benchmarks", + "cfg-primitives/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", +] try-runtime = [ "cfg-traits/try-runtime", "frame-support/try-runtime", diff --git a/pallets/collator-allowlist/Cargo.toml b/pallets/collator-allowlist/Cargo.toml index 884aa618e6..eddb4e5baa 100644 --- a/pallets/collator-allowlist/Cargo.toml +++ b/pallets/collator-allowlist/Cargo.toml @@ -1,39 +1,35 @@ [package] -authors = ["Centrifuge "] -description = "Collator allowlist pallet" -edition = "2021" -license = "LGPL-3.0" name = "pallet-collator-allowlist" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Collator allowlist pallet" version = "2.0.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # optional dependencies for benchmarking -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } [dev-dependencies] -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } +pallet-balances = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } [features] default = ["std"] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", -] std = [ "parity-scale-codec/std", "scale-info/std", @@ -43,6 +39,12 @@ std = [ "sp-runtime/std", "frame-benchmarking/std", ] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", +] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", diff --git a/pallets/crowdloan-claim/Cargo.toml b/pallets/crowdloan-claim/Cargo.toml index e5ca9e0387..17ef52cdb6 100644 --- a/pallets/crowdloan-claim/Cargo.toml +++ b/pallets/crowdloan-claim/Cargo.toml @@ -1,56 +1,48 @@ [package] name = "pallet-crowdloan-claim" description = "Module for processing crowdloan claim rewards." -authors = ["The Centrifugians Tribe"] -edition = "2021" -homepage = "https://centrifuge.io" -license = "LGPL-3.0" -repository = "https://github.com/centrifuge/centrifuge-chain" version = "0.1.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] # General dependencies -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } # Substrate dependencies -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-balances = { workspace = true } +sp-core = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # optional dependencies for benchmarking -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } # Local dependencies -cfg-traits = { path = "../../libs/traits", default_features = false } -cfg-types = { path = "../../libs/types", default-features = false } -proofs = { path = "../../libs/proofs", default_features = false } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } +proofs = { workspace = true } [dev-dependencies] -hex = { version = "0.4.3", default_features = true } -pallet-crowdloan-reward = { path = "../crowdloan-reward", default_features = true } -pallet-vesting = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-keyring = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-trie = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } +hex = { workspace = true } +pallet-crowdloan-reward = { workspace = true } +pallet-vesting = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } +sp-keyring = { workspace = true, default-features = true } +sp-trie = { workspace = true, default-features = true } [features] default = ["std"] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "cfg-types/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "pallet-balances/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", -] std = [ "parity-scale-codec/std", "frame-support/std", @@ -65,6 +57,15 @@ std = [ "sp-core/std", "sp-runtime/std", ] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "cfg-types/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", +] try-runtime = [ "cfg-traits/try-runtime", "frame-support/try-runtime", diff --git a/pallets/crowdloan-reward/Cargo.toml b/pallets/crowdloan-reward/Cargo.toml index 884b7f2f13..6dc42472e9 100644 --- a/pallets/crowdloan-reward/Cargo.toml +++ b/pallets/crowdloan-reward/Cargo.toml @@ -1,51 +1,43 @@ [package] name = "pallet-crowdloan-reward" description = "Module for processing crowdloan claim rewards." -authors = ["The Centrifugians Tribe"] -edition = "2021" -homepage = "https://centrifuge.io" -license = "LGPL-3.0" -repository = "https://github.com/centrifuge/centrifuge-chain" version = "0.1.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] # General dependencies -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } # Substrae dependencies -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -pallet-vesting = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-balances = { workspace = true } +pallet-vesting = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Local dependencies -cfg-traits = { path = "../../libs/traits", default_features = false } +cfg-traits = { workspace = true } [dev-dependencies] -cfg-types = { path = "../../libs/types" } -pallet-vesting = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -serde = { version = "1.0.119" } -sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } +cfg-types = { workspace = true, default_features = true } +pallet-vesting = { workspace = true, default_features = true } +serde = { workspace = true } +sp-core = { workspace = true, default_features = true } +sp-io = { workspace = true, default_features = true } [features] default = ["std"] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "pallet-balances/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", - "cfg-types/runtime-benchmarks", -] std = [ "parity-scale-codec/std", "scale-info/std", @@ -58,6 +50,15 @@ std = [ "frame-benchmarking/std", "sp-runtime/std", ] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "cfg-types/runtime-benchmarks", +] try-runtime = [ "cfg-types/try-runtime", "cfg-traits/try-runtime", diff --git a/pallets/ethereum-transaction/Cargo.toml b/pallets/ethereum-transaction/Cargo.toml index 1985f2fb4f..4bf63ca27d 100644 --- a/pallets/ethereum-transaction/Cargo.toml +++ b/pallets/ethereum-transaction/Cargo.toml @@ -1,46 +1,48 @@ [package] -authors = ["Centrifuge "] -description = "Centrifuge Ethereum Transaction Pallet" -edition = "2021" -license = "LGPL-3.0" name = "pallet-ethereum-transaction" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Centrifuge Ethereum Transaction Pallet" version = "0.0.1" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Benchmarking -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } # Substrate crates -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +sp-core = { workspace = true } # Ethereum -ethereum = { version = "0.14.0", default-features = false } -fp-evm = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v0.9.43" } -pallet-ethereum = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v0.9.43" } -pallet-evm = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v0.9.43" } +ethereum = { workspace = true } +fp-evm = { workspace = true } +pallet-ethereum = { workspace = true } +pallet-evm = { workspace = true } # Our custom traits -cfg-primitives = { path = "../../libs/primitives", default-features = false } -cfg-traits = { path = "../../libs/traits", default-features = false } +cfg-primitives = { workspace = true } +cfg-traits = { workspace = true } [dev-dependencies] -sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } +sp-core = { workspace = true } +sp-io = { workspace = true } -pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -pallet-evm-precompile-simple = { git = "https://github.com/moonbeam-foundation/frontier", branch = "moonbeam-polkadot-v0.9.43" } -pallet-timestamp = { git = "https://github.com/moonbeam-foundation/substrate", branch = "moonbeam-polkadot-v0.9.43" } +pallet-balances = { workspace = true } +pallet-evm-precompile-simple = { workspace = true, default-features = true } +pallet-timestamp = { workspace = true, default-features = true } [features] default = ["std"] @@ -60,15 +62,6 @@ std = [ "ethereum/std", "cfg-primitives/std", ] -try-runtime = [ - "frame-support/try-runtime", - "frame-system/try-runtime", - "cfg-traits/try-runtime", - "pallet-ethereum/try-runtime", - "pallet-evm/try-runtime", - "sp-runtime/try-runtime", - "cfg-primitives/try-runtime", -] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", @@ -79,3 +72,12 @@ runtime-benchmarks = [ "pallet-evm/runtime-benchmarks", "cfg-primitives/runtime-benchmarks", ] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "cfg-traits/try-runtime", + "pallet-ethereum/try-runtime", + "pallet-evm/try-runtime", + "sp-runtime/try-runtime", + "cfg-primitives/try-runtime", +] diff --git a/pallets/fees/Cargo.toml b/pallets/fees/Cargo.toml index 80689e5f6c..f9f13b6801 100644 --- a/pallets/fees/Cargo.toml +++ b/pallets/fees/Cargo.toml @@ -1,46 +1,41 @@ [package] -authors = ["Centrifuge "] -description = "Fees pallet for runtime" -edition = "2021" -license = "LGPL-3.0" name = "pallet-fees" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Fees pallet for runtime" version = "2.0.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } -cfg-traits = { path = "../../libs/traits", default-features = false } +cfg-traits = { workspace = true } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -pallet-authorship = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-authorship = { workspace = true } +pallet-balances = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # optional dependencies for benchmarking -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } [dev-dependencies] -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -pallet-treasury = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } +pallet-balances = { workspace = true, default-features = true } +pallet-treasury = { workspace = true, default-features = true } +sp-core = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } [features] default = ["std"] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", -] std = [ "parity-scale-codec/std", "scale-info/std", @@ -53,6 +48,13 @@ std = [ "pallet-treasury/std", "frame-benchmarking/std", ] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", +] try-runtime = [ "cfg-traits/try-runtime", "frame-support/try-runtime", diff --git a/pallets/foreign-investments/Cargo.toml b/pallets/foreign-investments/Cargo.toml index 58c5d6b567..b50dfe24cf 100644 --- a/pallets/foreign-investments/Cargo.toml +++ b/pallets/foreign-investments/Cargo.toml @@ -1,35 +1,37 @@ [package] -authors = ["Centrifuge "] -description = "Pallet to enable investments and redemptions via a foreign interface" -edition = "2021" -license = "LGPL-3.0" name = "pallet-foreign-investments" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Pallet to enable investments and redemptions via a foreign interface" version = "1.0.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } -cfg-traits = { path = "../../libs/traits", default-features = false } -cfg-types = { path = "../../libs/types", default-features = false } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Benchmarking dependencies - optional -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } [dev-dependencies] -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +sp-core = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } -cfg-mocks = { path = "../../libs/mocks" } +cfg-mocks = { workspace = true, default-features = true } [features] default = ["std"] diff --git a/pallets/interest-accrual/Cargo.toml b/pallets/interest-accrual/Cargo.toml index 974e0ebe7a..deca59e00f 100644 --- a/pallets/interest-accrual/Cargo.toml +++ b/pallets/interest-accrual/Cargo.toml @@ -1,49 +1,40 @@ [package] -authors = ["Centrifuge "] -description = "Interest Accrual pallet" -edition = "2021" -license = "LGPL-3.0" name = "pallet-interest-accrual" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Interest Accrual pallet" version = "0.1.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -log = { version = "0.4.0", default-features = false } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-arithmetic = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-timestamp = { workspace = true } +sp-arithmetic = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } -cfg-primitives = { path = "../../libs/primitives", default-features = false } -cfg-traits = { path = "../../libs/traits", default-features = false } -cfg-types = { path = "../../libs/types", default-features = false } +cfg-primitives = { workspace = true } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } [dev-dependencies] -bitflags = "1.3" +bitflags = { workspace = true } [features] default = ["std"] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "cfg-primitives/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "cfg-types/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "pallet-timestamp/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", -] std = [ "parity-scale-codec/std", "scale-info/std", @@ -59,7 +50,16 @@ std = [ "cfg-traits/std", "cfg-types/std", "cfg-primitives/std", - "log/std", +] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "cfg-primitives/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "cfg-types/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "cfg-primitives/try-runtime", diff --git a/pallets/investments/Cargo.toml b/pallets/investments/Cargo.toml index cb058e0cda..187a37bb8d 100644 --- a/pallets/investments/Cargo.toml +++ b/pallets/investments/Cargo.toml @@ -1,55 +1,45 @@ [package] -authors = ["Centrifuge "] -description = "Provides orders for assests and allows user to collect these orders" -edition = "2021" -license = "LGPL-3.0" name = "pallet-investments" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Provides orders for assests and allows user to collect these orders" version = "1.0.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -serde = { version = "1.0.119" } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +serde = { workspace = true } -cfg-primitives = { path = "../../libs/primitives", default-features = false } -cfg-traits = { path = "../../libs/traits", default-features = false } -cfg-types = { path = "../../libs/types", default-features = false } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +cfg-primitives = { workspace = true } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } -# Benchmarking dependencies - optional -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } [dev-dependencies] cfg-mocks = { workspace = true, default-features = true } -cfg-types = { path = "../../libs/types" } -orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", branch = "polkadot-v0.9.43" } -orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", branch = "polkadot-v0.9.43" } -pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -pallet-restricted-tokens = { path = "../../pallets/restricted-tokens" } -sp-arithmetic = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } +cfg-types = { workspace = true, default-features = true } +orml-tokens = { workspace = true, default-features = true } +orml-traits = { workspace = true, default-features = true } +pallet-balances = { workspace = true, default-features = true } +pallet-restricted-tokens = { workspace = true, default-features = true } +sp-arithmetic = { workspace = true, default-features = true } +sp-core = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } [features] default = ["std"] -runtime-benchmarks = [ - "cfg-primitives/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "cfg-types/runtime-benchmarks", - "cfg-mocks/runtime-benchmarks", - "frame-benchmarking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "pallet-balances/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", -] std = [ "cfg-primitives/std", "cfg-traits/std", @@ -63,6 +53,17 @@ std = [ "sp-runtime/std", "sp-std/std", ] +runtime-benchmarks = [ + "cfg-primitives/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "cfg-types/runtime-benchmarks", + "cfg-mocks/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", +] try-runtime = [ "cfg-primitives/try-runtime", "cfg-traits/try-runtime", diff --git a/pallets/keystore/Cargo.toml b/pallets/keystore/Cargo.toml index 6cd5e43daf..66c7dbf1b2 100644 --- a/pallets/keystore/Cargo.toml +++ b/pallets/keystore/Cargo.toml @@ -1,38 +1,34 @@ [package] name = "pallet-keystore" -authors = ["Centrifuge "] description = "Keystore pallet for runtime" -edition = "2021" -license = "LGPL-3.0" -repository = "https://github.com/centrifuge/centrifuge-chain" version = "1.0.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } [dev-dependencies] -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } +pallet-balances = { workspace = true, default-features = true } +sp-core = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } [features] default = ["std"] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", -] std = [ "parity-scale-codec/std", "scale-info/std", @@ -42,6 +38,12 @@ std = [ "sp-std/std", "frame-benchmarking/std", ] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", +] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", diff --git a/pallets/liquidity-pools-gateway/Cargo.toml b/pallets/liquidity-pools-gateway/Cargo.toml index c9748fd239..7c56b872cb 100644 --- a/pallets/liquidity-pools-gateway/Cargo.toml +++ b/pallets/liquidity-pools-gateway/Cargo.toml @@ -1,44 +1,43 @@ [package] -authors = ["Centrifuge "] -description = "Centrifuge Liquidity Pools Gateway Pallet" -edition = "2021" -license = "LGPL-3.0" name = "pallet-liquidity-pools-gateway" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Centrifuge Liquidity Pools Gateway Pallet" version = "0.0.1" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -hex = { version = "0.4.3", default-features = false } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } +hex = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-core = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Benchmarking -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } - -# Substrate crates -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } # Our custom pallets -cfg-traits = { path = "../../libs/traits", default-features = false } -cfg-types = { path = "../../libs/types", default-features = false } -cfg-utils = { path = "../../libs/utils", default-features = false } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } +cfg-utils = { workspace = true } [dev-dependencies] -cfg-mocks = { path = "../../libs/mocks", features = ["std"] } -cfg-primitives = { path = "../../libs/primitives" } -hex-literal = "0.4.1" -sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } +cfg-mocks = { workspace = true, default-features = true } +cfg-primitives = { workspace = true, default-features = true } +hex-literal = { workspace = true } +sp-io = { workspace = true, default-features = true } -pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -rand = "0.8.5" +pallet-balances = { workspace = true } +rand = { workspace = true, default-features = true } [features] default = ["std"] diff --git a/pallets/liquidity-pools-gateway/axelar-gateway-precompile/Cargo.toml b/pallets/liquidity-pools-gateway/axelar-gateway-precompile/Cargo.toml index a2e7fce890..44e2ca797e 100644 --- a/pallets/liquidity-pools-gateway/axelar-gateway-precompile/Cargo.toml +++ b/pallets/liquidity-pools-gateway/axelar-gateway-precompile/Cargo.toml @@ -3,30 +3,28 @@ name = "axelar-gateway-precompile" version = "0.1.0" edition = "2021" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -hex = { version = "0.4.3", default-features = false } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } +hex = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } -ethabi = { version = "18.0.0", default-features = false } -fp-evm = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v0.9.43" } -pallet-evm = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v0.9.43" } -precompile-utils = { git = "https://github.com/moonbeam-foundation/moonbeam", default-features = false, rev = "96ac7576f93bb6828415bf3edeef9e8c4b5b4adf" } +ethabi = { workspace = true } +fp-evm = { workspace = true } +pallet-evm = { workspace = true } +precompile-utils = { workspace = true } -cfg-traits = { path = "../../../libs/traits", default-features = false } -cfg-types = { path = "../../../libs/types", default-features = false } -cfg-utils = { path = "../../../libs/utils", default-features = false } -pallet-liquidity-pools-gateway = { path = "../../liquidity-pools-gateway", default-features = false } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } +cfg-utils = { workspace = true } +pallet-liquidity-pools-gateway = { workspace = true } [features] default = ["std"] diff --git a/pallets/liquidity-pools-gateway/routers/Cargo.toml b/pallets/liquidity-pools-gateway/routers/Cargo.toml index 42579a14b9..eebdccd96b 100644 --- a/pallets/liquidity-pools-gateway/routers/Cargo.toml +++ b/pallets/liquidity-pools-gateway/routers/Cargo.toml @@ -11,26 +11,26 @@ version = "0.0.1" targets = ["x86_64-unknown-linux-gnu"] [dependencies] -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } hex = { version = "0.4.3", default-features = false } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-std = { workspace = true } # Substrate -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +sp-core = { workspace = true } +sp-runtime = { workspace = true } # XCM -pallet-xcm-transactor = { git = "https://github.com/moonbeam-foundation/moonbeam", default-features = false, rev = "96ac7576f93bb6828415bf3edeef9e8c4b5b4adf" } -xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.43" } -xcm-primitives = { git = "https://github.com/moonbeam-foundation/moonbeam", default-features = false, rev = "96ac7576f93bb6828415bf3edeef9e8c4b5b4adf" } +pallet-xcm-transactor = { workspace = true } +xcm = { workspace = true } +xcm-primitives = { workspace = true } # EVM ethabi = { version = "16.0", default-features = false } -pallet-ethereum = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v0.9.43" } -pallet-evm = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v0.9.43" } +pallet-ethereum = { workspace = true } +pallet-evm = { workspace = true } # Custom crates cfg-traits = { path = "../../../libs/traits", default-features = false } @@ -43,23 +43,24 @@ pallet-liquidity-pools-gateway = { path = "../.", default-features = false } [dev-dependencies] lazy_static = "1.4.0" -cumulus-primitives-core = { git = "https://github.com/moonbeam-foundation/cumulus", default-features = false, branch = "moonbeam-polkadot-v0.9.43" } +cumulus-primitives-core = { workspace = true } -xcm-builder = { git = "https://github.com/moonbeam-foundation/polkadot", default-features = false, branch = "moonbeam-polkadot-v0.9.43" } -xcm-executor = { git = "https://github.com/moonbeam-foundation/polkadot", default-features = false, branch = "moonbeam-polkadot-v0.9.43" } +xcm-builder = { workspace = true } +xcm-executor = { workspace = true } -pallet-evm-chain-id = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v0.9.43" } -pallet-evm-precompile-simple = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v0.9.43" } -pallet-timestamp = { git = "https://github.com/moonbeam-foundation/substrate", branch = "moonbeam-polkadot-v0.9.43" } +pallet-evm-chain-id = { workspace = true } +pallet-evm-precompile-simple = { workspace = true } +pallet-timestamp = { workspace = true, default-features = true } -sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } +sp-core = { workspace = true } +sp-io = { workspace = true } -orml-traits = { git = "https://github.com/moonbeam-foundation/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.43", default-features = false } +# TODO(william): Used to be "https://github.com/moonbeam-foundation/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.43" +orml-traits = { workspace = true } cfg-mocks = { path = "../../../libs/mocks" } cfg-primitives = { path = "../../../libs/primitives" } -pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } +pallet-balances = { workspace = true } [features] default = ["std"] diff --git a/pallets/liquidity-pools/Cargo.toml b/pallets/liquidity-pools/Cargo.toml index fbf91be7c5..84b44f3854 100644 --- a/pallets/liquidity-pools/Cargo.toml +++ b/pallets/liquidity-pools/Cargo.toml @@ -1,79 +1,63 @@ [package] -authors = ["Centrifuge "] -description = "Centrifuge Liquidity Pools Pallet" -edition = "2021" -license = "LGPL-3.0" name = "pallet-liquidity-pools" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Centrifuge Liquidity Pools Pallet" version = "0.0.1" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -ethabi = { version = "16.0", default-features = false } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -hex = { version = "0.4.3", default_features = false } -orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.43" } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +ethabi = { workspace = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +hex = { workspace = true } +orml-traits = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Substrate crates -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +sp-core = { workspace = true } # Optional dependencies for benchmarking -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -pallet-uniques = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } +orml-tokens = { workspace = true, optional = true } +pallet-balances = { workspace = true, optional = true } +pallet-uniques = { workspace = true, optional = true } # Our custom pallets -cfg-primitives = { path = "../../libs/primitives", default-features = false } -cfg-traits = { path = "../../libs/traits", default-features = false } -cfg-types = { path = "../../libs/types", default-features = false } -cfg-utils = { path = "../../libs/utils", default-features = false } +cfg-primitives = { workspace = true } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } +cfg-utils = { workspace = true } # Polkadot -xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.43" } +xcm = { workspace = true } -fp-self-contained = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v0.9.43" } -pallet-ethereum = { git = "https://github.com/moonbeam-foundation/frontier", default-features = false, branch = "moonbeam-polkadot-v0.9.43" } -xcm-primitives = { git = "https://github.com/moonbeam-foundation/moonbeam", default-features = false, rev = "96ac7576f93bb6828415bf3edeef9e8c4b5b4adf" } +fp-self-contained = { workspace = true } +pallet-ethereum = { workspace = true } +xcm-primitives = { workspace = true } [dev-dependencies] -hex = "0.4.3" -serde = { version = "1.0.102" } +hex = { workspace = true, default-features = true } +serde = { workspace = true } # Substrate crates & pallets -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -pallet-uniques = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } - -# Orml crates -orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = true, branch = "polkadot-v0.9.43" } -orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = true, branch = "polkadot-v0.9.43" } +pallet-balances = { workspace = true } +pallet-timestamp = { workspace = true } +pallet-uniques = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } [features] default = ["std"] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "pallet-balances/runtime-benchmarks", - "orml-tokens/runtime-benchmarks", - "cfg-primitives/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "cfg-types/runtime-benchmarks", - "cfg-utils/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "pallet-ethereum/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", - "xcm-primitives/runtime-benchmarks", -] std = [ "parity-scale-codec/std", "cfg-types/std", @@ -96,6 +80,20 @@ std = [ "scale-info/std", "fp-self-contained/std", ] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "orml-tokens/runtime-benchmarks", + "cfg-primitives/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "cfg-types/runtime-benchmarks", + "cfg-utils/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-ethereum/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "xcm-primitives/runtime-benchmarks", +] try-runtime = [ "cfg-primitives/try-runtime", "cfg-traits/try-runtime", diff --git a/pallets/liquidity-rewards/Cargo.toml b/pallets/liquidity-rewards/Cargo.toml index 02cb82dac3..dc614ecace 100644 --- a/pallets/liquidity-rewards/Cargo.toml +++ b/pallets/liquidity-rewards/Cargo.toml @@ -1,51 +1,38 @@ [package] name = "pallet-liquidity-rewards" -version = "0.1.0" -authors = ["Centrifuge "] description = "Liquidity Rewards pallet" -edition = "2021" -homepage = "https://centrifuge.io" -license = "LGPL-3.0" -repository = "https://github.com/centrifuge/centrifuge-chain" +version = "0.1.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -cfg-traits = { path = "../../libs/traits", default-features = false } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -num-traits = { version = "0.2", default-features = false } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +cfg-traits = { workspace = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +num-traits = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # optional dependencies for benchmarking -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } [dev-dependencies] -sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } +sp-core = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } -cfg-mocks = { path = "../../libs/mocks" } +cfg-mocks = { workspace = true, default-features = true } [features] default = ["std"] -try-runtime = [ - "cfg-traits/try-runtime", - "frame-support/try-runtime", - "frame-system/try-runtime", - "sp-runtime/try-runtime", -] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", - "cfg-mocks/runtime-benchmarks", -] std = [ "parity-scale-codec/std", "frame-support/std", @@ -57,3 +44,17 @@ std = [ "num-traits/std", "scale-info/std", ] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "cfg-mocks/runtime-benchmarks", +] +try-runtime = [ + "cfg-traits/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime", +] diff --git a/pallets/loans/Cargo.toml b/pallets/loans/Cargo.toml index de9d8bcf98..34f59d8fef 100644 --- a/pallets/loans/Cargo.toml +++ b/pallets/loans/Cargo.toml @@ -1,45 +1,47 @@ [package] -authors = ["Centrifuge "] -description = "Pallet to handle loans from borrowers" -edition = "2021" -license = "LGPL-3.0" name = "pallet-loans" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Pallet to handle loans from borrowers" version = "1.0.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-arithmetic = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } +sp-arithmetic = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } -cfg-primitives = { path = "../../libs/primitives", default-features = false } -cfg-traits = { path = "../../libs/traits", default-features = false } -cfg-types = { path = "../../libs/types", default-features = false } -orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.43" } +cfg-primitives = { workspace = true } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } +orml-traits = { workspace = true } strum = { workspace = true } # Optionals for benchmarking -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } [dev-dependencies] -sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } +sp-core = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } -pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -pallet-interest-accrual = { path = "../interest-accrual" } -pallet-timestamp = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -pallet-uniques = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } +pallet-balances = { workspace = true, default-features = true } +pallet-interest-accrual = { workspace = true, default-features = true } +pallet-timestamp = { workspace = true, default-features = true } +pallet-uniques = { workspace = true, default-features = true } -cfg-mocks = { path = "../../libs/mocks" } +cfg-mocks = { workspace = true, default-features = true } [features] default = ["std"] diff --git a/pallets/migration/Cargo.toml b/pallets/migration/Cargo.toml index 159adc9658..1d17fcd05a 100644 --- a/pallets/migration/Cargo.toml +++ b/pallets/migration/Cargo.toml @@ -1,45 +1,38 @@ [package] -authors = ["Centrifuge "] -description = "Migration pallet for the runtime" -edition = "2021" -license = "LGPL-3.0" name = "pallet-migration-manager" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Migration pallet for the runtime" version = "0.1.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -pallet-proxy = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -pallet-vesting = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-balances = { workspace = true } +pallet-proxy = { workspace = true } +pallet-vesting = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } [dev-dependencies] -hex = "0.4.3" -rand = "0.8.5" +hex = { workspace = true, default-features = true } +rand = { workspace = true, default-features = true } [features] default = ["std"] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "pallet-balances/runtime-benchmarks", - "pallet-proxy/runtime-benchmarks", - "pallet-vesting/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", -] std = [ "parity-scale-codec/std", "frame-support/std", @@ -54,6 +47,15 @@ std = [ "sp-runtime/std", "sp-std/std", ] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-proxy/runtime-benchmarks", + "pallet-vesting/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", +] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", diff --git a/pallets/nft-sales/Cargo.toml b/pallets/nft-sales/Cargo.toml index 6df2d373ca..a0b838280e 100644 --- a/pallets/nft-sales/Cargo.toml +++ b/pallets/nft-sales/Cargo.toml @@ -1,49 +1,62 @@ [package] -authors = ["Centrifuge "] -description = "NFT Sales pallet" -edition = "2021" -license = "LGPL-3.0" name = "pallet-nft-sales" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "NFT Sales pallet" version = "2.0.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Optional dependencies for benchmarking -cfg-primitives = { path = "../../libs/primitives", default-features = false, optional = true } -cfg-types = { path = "../../libs/types", default-features = false, optional = true } -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -pallet-uniques = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } +cfg-primitives = { workspace = true, optional = true } +cfg-types = { workspace = true, optional = true } +frame-benchmarking = { workspace = true, optional = true } +orml-tokens = { workspace = true, optional = true } +orml-traits = { workspace = true, optional = true } +pallet-balances = { workspace = true, optional = true } +pallet-uniques = { workspace = true, optional = true } [dev-dependencies] -# Substrate crates & pallets -pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -pallet-uniques = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } - -# Orml crates -orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", branch = "polkadot-v0.9.43" } -orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", branch = "polkadot-v0.9.43" } +cfg-primitives = { workspace = true, default-features = true } +cfg-types = { workspace = true, default-features = true } +orml-tokens = { workspace = true, default-features = true } +orml-traits = { workspace = true, default-features = true } +pallet-balances = { workspace = true, default-features = true } +pallet-uniques = { workspace = true, default-features = true } -# Local crates -cfg-primitives = { path = "../../libs/primitives" } -cfg-types = { path = "../../libs/types" } +sp-core = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } [features] default = ["std"] +std = [ + "parity-scale-codec/std", + "scale-info/std", + "frame-support/std", + "frame-system/std", + "sp-runtime/std", + "sp-std/std", + "orml-tokens?/std", + "orml-traits?/std", + "cfg-types?/std", + "cfg-primitives?/std", + "frame-benchmarking?/std", + "pallet-uniques?/std", + "pallet-balances?/std", +] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "pallet-balances/runtime-benchmarks", @@ -55,22 +68,6 @@ runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "pallet-balances/runtime-benchmarks", -] -std = [ - "parity-scale-codec/std", - "cfg-types/std", - "frame-support/std", - "frame-system/std", - "sp-std/std", - "sp-runtime/std", - "orml-tokens/std", - "orml-traits/std", - "pallet-balances/std", - "cfg-primitives/std", - "frame-benchmarking/std", - "scale-info/std", - "pallet-uniques?/std", ] try-runtime = [ "cfg-primitives/try-runtime", diff --git a/pallets/nft/Cargo.toml b/pallets/nft/Cargo.toml index f429c0dedc..2d314e582b 100644 --- a/pallets/nft/Cargo.toml +++ b/pallets/nft/Cargo.toml @@ -1,65 +1,46 @@ [package] name = "pallet-nft" description = "Pallet for non-fungible token (NFT) processing" -authors = ["The Centrifugians Tribe"] -edition = "2021" -homepage = "https://centrifuge.io" -license = "LGPL-3.0" -repository = "https://github.com/centrifuge/centrifuge-chain" version = "2.0.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] # Substrate dependencies -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-benchmarking = { workspace = true, optional = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-balances = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Centrifuge Chain dependencies -cfg-primitives = { path = "../../libs/primitives", default-features = false } -cfg-traits = { path = "../../libs/traits", default-features = false } -cfg-types = { path = "../../libs/types", default-features = false } -chainbridge = { git = "https://github.com/centrifuge/chainbridge-substrate.git", default-features = false, branch = "polkadot-v0.9.43" } -pallet-anchors = { path = "../anchors", default-features = false } -proofs = { path = "../../libs/proofs", default-features = false } +cfg-primitives = { workspace = true } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } +chainbridge = { workspace = true } +pallet-anchors = { workspace = true } +proofs = { workspace = true } [dev-dependencies] -# Testing and mocking dependencies -pallet-anchors = { path = "../anchors", default-features = true } -pallet-authorship = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -proofs = { path = "../../libs/proofs", default-features = true } +pallet-authorship = { workspace = true, default-features = true } +pallet-timestamp = { workspace = true, default-features = true } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } - -cfg-mocks = { path = "../../libs/mocks" } +cfg-mocks = { workspace = true, default-features = true } [features] default = ["std"] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "chainbridge/runtime-benchmarks", - "cfg-primitives/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "cfg-types/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "pallet-balances/runtime-benchmarks", - "cfg-mocks/runtime-benchmarks", - "pallet-anchors/runtime-benchmarks", - "pallet-timestamp/runtime-benchmarks", -] std = [ "parity-scale-codec/std", "scale-info/std", @@ -79,6 +60,19 @@ std = [ "cfg-types/std", "frame-benchmarking/std", ] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "chainbridge/runtime-benchmarks", + "cfg-primitives/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "cfg-types/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "cfg-mocks/runtime-benchmarks", + "pallet-anchors/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", +] try-runtime = [ "cfg-primitives/try-runtime", "cfg-traits/try-runtime", diff --git a/pallets/order-book/Cargo.toml b/pallets/order-book/Cargo.toml index ffaedfabe7..5e0424f135 100644 --- a/pallets/order-book/Cargo.toml +++ b/pallets/order-book/Cargo.toml @@ -1,49 +1,47 @@ [package] name = "pallet-order-book" -description = "Pallet to add order book for currency exchanges. Initially based off Zeitgeist orderbook found here: https://github.com/zeitgeistpm/zeitgeist/tree/main/zrml/orderbook-v1" +description = "Pallet to add order book for currency exchanges" version = "0.1.0" -authors = ["Centrifuge "] -homepage = "https://centrifuge.io" -license = "LGPL-3.0" -repository = "https://github.com/centrifuge/centrifuge-chain" -edition = "2021" +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +homepage.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -serde = { version = "1.0.119" } -sp-arithmetic = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +serde = { workspace = true } +sp-arithmetic = { workspace = true } +sp-core = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } -cfg-primitives = { path = "../../libs/primitives", default-features = false } -cfg-traits = { path = "../../libs/traits", default-features = false } -cfg-types = { path = "../../libs/types", default-features = false } +cfg-primitives = { workspace = true } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } -# Benchmark dependencies -## Orml crates -orml-asset-registry = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.43" } +orml-traits = { workspace = true } -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } +# Benchmark dependencies +frame-benchmarking = { workspace = true, optional = true } [dev-dependencies] -cfg-mocks = { path = "../../libs/mocks" } -cfg-test-utils = { path = "../../libs/test-utils", default-features = true } -pallet-restricted-tokens = { path = "../restricted-tokens", default-features = false } -# Orml crates -orml-asset-registry = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.43" } -orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = true, branch = "polkadot-v0.9.43" } -# Parity crates -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.43" } +cfg-mocks = { workspace = true, default-features = true } +cfg-test-utils = { workspace = true, default-features = true } +orml-tokens = { workspace = true, default-features = true } +pallet-balances = { workspace = true, default-features = true } +pallet-restricted-tokens = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } + +# Used by impl_mock_registry macro internally +xcm = { workspace = true, default-features = true } [features] default = ["std"] @@ -72,7 +70,6 @@ runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "orml-asset-registry/runtime-benchmarks", "sp-runtime/runtime-benchmarks", ] try-runtime = [ diff --git a/pallets/order-book/src/benchmarking.rs b/pallets/order-book/src/benchmarking.rs index 0ad31d92fb..ec9e63cfe8 100644 --- a/pallets/order-book/src/benchmarking.rs +++ b/pallets/order-book/src/benchmarking.rs @@ -11,7 +11,7 @@ // GNU General Public License for more details. use cfg_traits::{ConversionToAssetBalance, ValueProvider}; -use cfg_types::tokens::CustomMetadata; +use cfg_types::tokens::{AssetMetadata, CustomMetadata}; use frame_benchmarking::{account, v2::*}; use frame_support::traits::{fungibles::Mutate as _, Get}; use frame_system::RawOrigin; @@ -45,7 +45,7 @@ where pub fn setup_currencies() { T::AssetRegistry::register_asset( Some(CURRENCY_IN.into()), - orml_asset_registry::AssetMetadata { + AssetMetadata { decimals: 6, name: "CURRENCY IN".as_bytes().to_vec(), symbol: "IN".as_bytes().to_vec(), @@ -58,7 +58,7 @@ where T::AssetRegistry::register_asset( Some(CURRENCY_OUT.into()), - orml_asset_registry::AssetMetadata { + AssetMetadata { decimals: 3, name: "CURRENCY OUT".as_bytes().to_vec(), symbol: "OUT".as_bytes().to_vec(), diff --git a/pallets/permissions/Cargo.toml b/pallets/permissions/Cargo.toml index d81207d386..e030fac729 100644 --- a/pallets/permissions/Cargo.toml +++ b/pallets/permissions/Cargo.toml @@ -1,44 +1,36 @@ [package] name = "pallet-permissions" description = "Pallet for storing and retrieving permissions of accounts." -authors = ["Centrifuge "] -edition = "2021" -homepage = "https://centrifuge.io" -license = "LGPL-3.0" -repository = "https://github.com/centrifuge/centrifuge-chain" version = "0.1.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +homepage.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } -cfg-traits = { path = "../../libs/traits", default-features = false } -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +cfg-traits = { workspace = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # benchmarking -cfg-types = { path = "../../libs/types", default-features = false, optional = true } +cfg-types = { workspace = true, optional = true } +frame-benchmarking = { workspace = true, optional = true } [dev-dependencies] -bitflags = "1.3" +bitflags = { workspace = true } [features] default = ["std"] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "cfg-types/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", -] - std = [ "parity-scale-codec/std", "scale-info/std", @@ -50,6 +42,14 @@ std = [ "cfg-traits/std", "cfg-types/std", ] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "cfg-types/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", +] try-runtime = [ "cfg-traits/try-runtime", "frame-support/try-runtime", diff --git a/pallets/pool-fees/Cargo.toml b/pallets/pool-fees/Cargo.toml index 9d8abdee39..d8a3ba54d3 100644 --- a/pallets/pool-fees/Cargo.toml +++ b/pallets/pool-fees/Cargo.toml @@ -1,30 +1,20 @@ [package] +name = "pallet-pool-fees" +description = "Pool Fees Pallet" +version = "0.0.1" authors.workspace = true edition.workspace = true license.workspace = true repository.workspace = true homepage.workspace = true documentation.workspace = true -name = "pallet-pool-fees" -description = "Pool Fees Pallet" -version = "0.0.1" [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] -[dev-dependencies] -cfg-mocks = { workspace = true, default-features = true } -cfg-test-utils = { path = "../../libs/test-utils", default-features = true } -orml-tokens = { workspace = true, default-features = true } -orml-traits = { workspace = true, default-features = true } -pallet-balances = { workspace = true, default-features = true } -pallet-timestamp = { workspace = true, default-features = true } -rand = "0.8.5" - [dependencies] -log = { workspace = true } parity-scale-codec = { workspace = true } -scale-info = { workspace = true, features = ["derive"] } +scale-info = { workspace = true } strum = { workspace = true } frame-benchmarking.workspace = true @@ -40,18 +30,17 @@ cfg-primitives.workspace = true cfg-traits.workspace = true cfg-types.workspace = true +[dev-dependencies] +cfg-mocks = { workspace = true, default-features = true } +cfg-test-utils = { workspace = true, default-features = true } +orml-tokens = { workspace = true, default-features = true } +orml-traits = { workspace = true, default-features = true } +pallet-balances = { workspace = true, default-features = true } +pallet-timestamp = { workspace = true, default-features = true } +rand = { workspace = true, default-features = true } + [features] default = ["std"] -runtime-benchmarks = [ - "cfg-primitives/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "cfg-types/runtime-benchmarks", - "frame-benchmarking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "pallet-timestamp/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", -] std = [ "cfg-mocks/std", "cfg-primitives/std", @@ -61,7 +50,6 @@ std = [ "frame-support/std", "frame-system/std", "frame-benchmarking/std", - "log/std", "orml-tokens/std", "orml-traits/std", "pallet-balances/std", @@ -73,6 +61,16 @@ std = [ "sp-std/std", "strum/std", ] +runtime-benchmarks = [ + "cfg-primitives/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "cfg-types/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", +] try-runtime = [ "cfg-primitives/try-runtime", "cfg-traits/try-runtime", diff --git a/pallets/pool-registry/Cargo.toml b/pallets/pool-registry/Cargo.toml index 3e22130f6b..9c2043ae99 100644 --- a/pallets/pool-registry/Cargo.toml +++ b/pallets/pool-registry/Cargo.toml @@ -1,70 +1,56 @@ [package] -authors = ["Centrifuge "] -description = "Pools Registration for runtime" -edition = "2021" -license = "LGPL-3.0" name = "pallet-pool-registry" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Pools Registration for runtime" version = "1.0.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +frame-support = { workspace = true } +frame-system = { workspace = true } -orml-asset-registry = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.43" } -orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.43" } +orml-asset-registry = { workspace = true } +orml-traits = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } +xcm = { workspace = true } -# Benchmarking dependencies - optional -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -pallet-investments = { path = "../investments", default-features = false, optional = true } -pallet-pool-fees = { workspace = true, default-features = false, optional = true } -pallet-pool-system = { path = "../pool-system", default-features = false, optional = true } -pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } +cfg-primitives = { workspace = true } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } -cfg-primitives = { path = "../../libs/primitives", default-features = false } -cfg-traits = { path = "../../libs/traits", default-features = false } -cfg-types = { path = "../../libs/types", default-features = false } +# Benchmarking dependencies - optional +frame-benchmarking = { workspace = true, optional = true } +pallet-investments = { workspace = true, optional = true } +pallet-pool-fees = { workspace = true, optional = true } +pallet-pool-system = { workspace = true, optional = true } +pallet-timestamp = { workspace = true, optional = true } [dev-dependencies] -cfg-mocks = { path = "../../libs/mocks" } -cfg-test-utils = { path = "../../libs/test-utils", default-features = true } -orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = true, branch = "polkadot-v0.9.43" } -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -pallet-permissions = { path = "../../pallets/permissions", default-features = true } -pallet-pool-system = { path = "../pool-system" } -pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -parachain-info = { git = "https://github.com/paritytech/cumulus", default-features = true, branch = "polkadot-v0.9.43" } -serde = { version = "1.0.102" } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } +cfg-mocks = { workspace = true, default-features = true } +cfg-test-utils = { workspace = true, default-features = true } +orml-tokens = { workspace = true, default-features = true } +pallet-balances = { workspace = true, default-features = true } +pallet-permissions = { workspace = true, default-features = true } +pallet-pool-system = { workspace = true } +pallet-timestamp = { workspace = true, default-features = true } +parachain-info = { workspace = true, default-features = true } +serde = { workspace = true } +sp-core = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } [features] default = ["std"] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "pallet-investments/runtime-benchmarks", - "cfg-primitives/runtime-benchmarks", - "cfg-test-utils/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "cfg-types/runtime-benchmarks", - "cfg-mocks/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "orml-asset-registry/runtime-benchmarks", - "pallet-pool-fees/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", - "pallet-timestamp/runtime-benchmarks", - "pallet-pool-system/runtime-benchmarks", -] std = [ "parity-scale-codec/std", "frame-support/std", @@ -83,6 +69,22 @@ std = [ "pallet-pool-fees/std", "pallet-pool-system/std", ] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "pallet-investments/runtime-benchmarks", + "cfg-primitives/runtime-benchmarks", + "cfg-test-utils/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "cfg-types/runtime-benchmarks", + "cfg-mocks/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "orml-asset-registry/runtime-benchmarks", + "pallet-pool-fees/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "pallet-pool-system/runtime-benchmarks", +] try-runtime = [ "cfg-primitives/try-runtime", "cfg-traits/try-runtime", diff --git a/pallets/pool-system/Cargo.toml b/pallets/pool-system/Cargo.toml index 741ded9b09..cd84763160 100644 --- a/pallets/pool-system/Cargo.toml +++ b/pallets/pool-system/Cargo.toml @@ -1,75 +1,60 @@ [package] -authors = ["Centrifuge "] -description = "Centrifuge Pool System pallet" -edition = "2021" -license = "LGPL-3.0" name = "pallet-pool-system" -repository = "https://github.com/centrifuge/centrifuge-chain" +description = "Centrifuge Pool System pallet" version = "3.0.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -lazy_static = { version = "1.4.0", optional = true, default-features = false } -log = { version = "0.4.0", default-features = false } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -rev_slice = { version = "0.1.5", default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -serde = { version = "1.0.119" } +parity-scale-codec = { workspace = true } +rev_slice = { workspace = true } +scale-info = { workspace = true } +serde = { workspace = true } strum = { workspace = true } -cfg-primitives = { path = "../../libs/primitives", default-features = false } -cfg-traits = { path = "../../libs/traits", default-features = false } -cfg-types = { path = "../../libs/types", default-features = false } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.43" } -pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-arithmetic = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +cfg-primitives = { workspace = true } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } + +frame-support = { workspace = true } +frame-system = { workspace = true } +orml-traits = { workspace = true } +pallet-timestamp = { workspace = true } +sp-arithmetic = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } -pallet-permissions = { path = "../../pallets/permissions", default-features = false } +pallet-permissions = { workspace = true } # Benchmarking dependencies - optional -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -orml-asset-registry = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -pallet-investments = { path = "../../pallets/investments", default-features = false, optional = true } -pallet-pool-fees = { workspace = true, default-features = false, optional = true } +frame-benchmarking = { workspace = true, optional = true } +orml-asset-registry = { workspace = true, optional = true } +pallet-investments = { workspace = true, optional = true } +pallet-pool-fees = { workspace = true, optional = true } [dev-dependencies] cfg-mocks = { workspace = true, default-features = true } -cfg-test-utils = { path = "../../libs/test-utils", default-features = true } -orml-asset-registry = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.43" } -orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = true, branch = "polkadot-v0.9.43" } -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -pallet-investments = { path = "../../pallets/investments", default-features = true } -pallet-restricted-tokens = { path = "../../pallets/restricted-tokens", default-features = true } -parachain-info = { git = "https://github.com/paritytech/cumulus", default-features = true, branch = "polkadot-v0.9.43" } -rand = "0.8.5" -sp-core = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.43" } +cfg-test-utils = { workspace = true, default-features = true } +orml-asset-registry = { workspace = true, default-features = true } +orml-tokens = { workspace = true, default-features = true } +pallet-balances = { workspace = true, default-features = true } +pallet-investments = { workspace = true, default-features = true } +pallet-restricted-tokens = { workspace = true, default-features = true } +parachain-info = { workspace = true, default-features = true } +rand = { workspace = true, default-features = true } +sp-core = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } +xcm = { workspace = true, default-features = true } [features] default = ["std"] -runtime-benchmarks = [ - "cfg-mocks/runtime-benchmarks", - "cfg-primitives/runtime-benchmarks", - "cfg-test-utils/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "cfg-types/runtime-benchmarks", - "frame-benchmarking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "orml-asset-registry/runtime-benchmarks", - "pallet-investments/runtime-benchmarks", - "pallet-permissions/runtime-benchmarks", - "pallet-pool-fees/runtime-benchmarks", - "pallet-timestamp/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", -] std = [ "cfg-primitives/std", "cfg-traits/std", @@ -78,7 +63,6 @@ std = [ "frame-benchmarking/std", "frame-support/std", "frame-system/std", - "log/std", "orml-traits/std", "pallet-permissions/std", "pallet-pool-fees/std", @@ -91,6 +75,22 @@ std = [ "sp-std/std", "strum/std", ] +runtime-benchmarks = [ + "cfg-mocks/runtime-benchmarks", + "cfg-primitives/runtime-benchmarks", + "cfg-test-utils/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "cfg-types/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "orml-asset-registry/runtime-benchmarks", + "pallet-investments/runtime-benchmarks", + "pallet-permissions/runtime-benchmarks", + "pallet-pool-fees/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", +] try-runtime = [ "cfg-mocks/try-runtime", "cfg-primitives/try-runtime", @@ -98,7 +98,6 @@ try-runtime = [ "cfg-types/try-runtime", "frame-support/try-runtime", "frame-system/try-runtime", - "lazy_static/spin_no_std", "pallet-permissions/try-runtime", "pallet-pool-fees/try-runtime", "pallet-timestamp/try-runtime", diff --git a/pallets/restricted-tokens/Cargo.toml b/pallets/restricted-tokens/Cargo.toml index 124e03f432..720e047365 100644 --- a/pallets/restricted-tokens/Cargo.toml +++ b/pallets/restricted-tokens/Cargo.toml @@ -1,58 +1,46 @@ [package] name = "pallet-restricted-tokens" description = "Pallet for handling token-transfers. Allows to restrict specific token usage to some users." -authors = ["Centrifuge "] -edition = "2021" -homepage = "https://centrifuge.io" -license = "LGPL-3.0" -repository = "https://github.com/centrifuge/centrifuge-chain" version = "0.1.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -serde = { version = "1.0.119" } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +serde = { workspace = true } -cfg-primitives = { path = "../../libs/primitives", default-features = false } -cfg-traits = { path = "../../libs/traits", default-features = false } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +cfg-primitives = { workspace = true } +cfg-traits = { workspace = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } ## Benchmarking dependencies -cfg-types = { path = "../../libs/types", default-features = false, optional = true } -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -pallet-permissions = { path = "../permissions", default-features = false, optional = true } +cfg-types = { workspace = true, optional = true } +frame-benchmarking = { workspace = true, optional = true } +orml-tokens = { workspace = true, optional = true } +orml-traits = { workspace = true, optional = true } +pallet-balances = { workspace = true, optional = true } +pallet-permissions = { workspace = true, optional = true } [dev-dependencies] -cfg-types = { path = "../../libs/types" } -orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", branch = "polkadot-v0.9.43" } -orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", branch = "polkadot-v0.9.43" } -pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } +cfg-types = { workspace = true, default_features = true } +orml-tokens = { workspace = true, default_features = true } +orml-traits = { workspace = true, default_features = true } +pallet-balances = { workspace = true, default_features = true } +sp-io = { workspace = true, default_features = true } [features] default = ["std"] -runtime-benchmarks = [ - "cfg-primitives/runtime-benchmarks", - "cfg-traits/runtime-benchmarks", - "cfg-types/runtime-benchmarks", - "frame-benchmarking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "orml-tokens/runtime-benchmarks", - "orml-traits", - "pallet-balances/runtime-benchmarks", - "pallet-permissions/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", -] std = [ "cfg-primitives/std", "cfg-traits/std", @@ -67,6 +55,19 @@ std = [ "sp-runtime/std", "sp-std/std", ] +runtime-benchmarks = [ + "cfg-primitives/runtime-benchmarks", + "cfg-traits/runtime-benchmarks", + "cfg-types/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "orml-tokens/runtime-benchmarks", + "orml-traits", + "pallet-balances/runtime-benchmarks", + "pallet-permissions/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", +] try-runtime = [ "cfg-primitives/try-runtime", "cfg-traits/try-runtime", diff --git a/pallets/restricted-xtokens/Cargo.toml b/pallets/restricted-xtokens/Cargo.toml index 11048e5245..0620386c4b 100644 --- a/pallets/restricted-xtokens/Cargo.toml +++ b/pallets/restricted-xtokens/Cargo.toml @@ -1,16 +1,17 @@ [package] name = "pallet-restricted-xtokens" -authors.workspace = true description = "A wrapper pallet around orml-xtokens to allow restricting transfers" +version = "0.0.1" +authors.workspace = true edition.workspace = true license.workspace = true +homepage.workspace = true repository.workspace = true -version = "0.0.1" +documentation.workspace = true [dependencies] -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } +parity-scale-codec = { workspace = true } scale-info = { workspace = true } -serde = { workspace = true, optional = true } # substrate frame-support = { workspace = true } @@ -30,7 +31,6 @@ cfg-traits = { workspace = true } [features] default = ["std"] std = [ - "serde", "parity-scale-codec/std", "sp-std/std", "cfg-traits/std", @@ -41,7 +41,6 @@ std = [ "orml-traits/std", "xcm/std", ] - runtime-benchmarks = [ "cfg-traits/runtime-benchmarks", "frame-support/runtime-benchmarks", diff --git a/pallets/rewards/Cargo.toml b/pallets/rewards/Cargo.toml index 6707fa8d9a..76e4f214aa 100644 --- a/pallets/rewards/Cargo.toml +++ b/pallets/rewards/Cargo.toml @@ -1,45 +1,39 @@ [package] name = "pallet-rewards" -version = "0.1.0" -authors = ["Centrifuge "] description = "Rewards pallet" -edition = "2021" -homepage = "https://centrifuge.io" -license = "LGPL-3.0" -repository = "https://github.com/centrifuge/centrifuge-chain" +version = "0.1.0" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -cfg-traits = { path = "../../libs/traits", default-features = false } -cfg-types = { path = "../../libs/types", default-features = false } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -log = { version = "0.4.17", default-features = false } -num-traits = { version = "0.2", default-features = false } -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +log = { workspace = true } +num-traits = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } [dev-dependencies] -lazy_static = "1.4" -orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", branch = "polkadot-v0.9.43" } -orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", branch = "polkadot-v0.9.43" } -serde = "1.0" -sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" } +lazy_static = { workspace = true } +orml-tokens = { workspace = true, default-features = true } +orml-traits = { workspace = true, default-features = true } +serde = { workspace = true } +sp-core = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } [features] default = ["std"] -try-runtime = [ - "cfg-traits/try-runtime", - "frame-support/try-runtime", - "frame-system/try-runtime", - "cfg-types/try-runtime", - "sp-runtime/try-runtime", -] std = [ "parity-scale-codec/std", "frame-support/std", @@ -52,6 +46,13 @@ std = [ "cfg-types/std", "scale-info/std", ] +try-runtime = [ + "cfg-traits/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "cfg-types/try-runtime", + "sp-runtime/try-runtime", +] runtime-benchmarks = [ "cfg-traits/runtime-benchmarks", "frame-support/runtime-benchmarks", diff --git a/pallets/transfer-allowlist/Cargo.toml b/pallets/transfer-allowlist/Cargo.toml index 4b0d8a6566..95a5304404 100644 --- a/pallets/transfer-allowlist/Cargo.toml +++ b/pallets/transfer-allowlist/Cargo.toml @@ -2,47 +2,37 @@ name = "pallet-transfer-allowlist" description = "Pallet for determining whether a transfer should be allowed based of sender, receiver, and currency." version = "0.1.0" -authors = ["Centrifuge "] -homepage = 'https://centrifuge.io' -license = "LGPL-3.0" -repository = 'https://github.com/centrifuge/centrifuge-chain' -edition = "2021" +authors.workspace = true +edition.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +documentation.workspace = true [package.metadata.docs.rs] targets = ['x86_64-unknown-linux-gnu'] [dependencies] -parity-scale-codec = { version = "3.0.0", features = ["derive"], default-features = false } -scale-info = { version = "2.3.0", default-features = false, features = ["derive"] } -serde = { version = "1.0.119" } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +serde = { workspace = true } -cfg-traits = { path = "../../libs/traits", default-features = false } +frame-benchmarking = { workspace = true, optional = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +sp-core = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } -cfg-types = { path = "../../libs/types", default-features = false } - -frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" } +cfg-traits = { workspace = true } +cfg-types = { workspace = true } [dev-dependencies] -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" } +pallet-balances = { workspace = true, default-features = true } +sp-io = { workspace = true } [features] default = ['std'] -runtime-benchmarks = [ - 'cfg-traits/runtime-benchmarks', - 'cfg-types/runtime-benchmarks', - 'frame-benchmarking/runtime-benchmarks', - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - 'pallet-balances/runtime-benchmarks', - 'sp-runtime/runtime-benchmarks', -] std = [ 'cfg-traits/std', 'cfg-types/std', @@ -56,6 +46,15 @@ std = [ 'sp-runtime/std', 'sp-std/std', ] +runtime-benchmarks = [ + 'cfg-traits/runtime-benchmarks', + 'cfg-types/runtime-benchmarks', + 'frame-benchmarking/runtime-benchmarks', + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + 'pallet-balances/runtime-benchmarks', + 'sp-runtime/runtime-benchmarks', +] try-runtime = [ 'cfg-traits/try-runtime', 'cfg-types/try-runtime',