Skip to content

Commit

Permalink
Namespace: Add pallet to have namespace feature (#560)
Browse files Browse the repository at this point in the history
Signed-off-by: Shreevatsa N <vatsa@dhiway.com>
  • Loading branch information
vatsa287 authored Jan 9, 2025
1 parent accb726 commit cd868be
Show file tree
Hide file tree
Showing 13 changed files with 1,575 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ members = [
"node/testing",
"pallets/asset",
"pallets/chain-space",
"pallets/namespace",
"pallets/did",
"pallets/did-name",
"pallets/identity",
Expand Down Expand Up @@ -155,6 +156,7 @@ pallet-transaction-weight-runtime-api = { path = "runtimes/common/api/weight", d
pallet-registries = { path = "pallets/registries", default-features = false }
pallet-entries = { path = "pallets/entries", default-features = false }
pallet-schema-accounts = { path = "pallets/schema-accounts", default-features = false }
pallet-namespace = { path = 'pallets/namespace', default-features = false }


# substrate dependencies
Expand Down
73 changes: 73 additions & 0 deletions pallets/namespace/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
[package]
name = 'pallet-namespace'
description = 'Manage Name-Spaces.'
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true

[lints]
workspace = true

[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']

[dev-dependencies]
sp-core = { features = ["std"], workspace = true }
sp-keystore = { features = ["std"], workspace = true }
cord-utilities = { features = ["mock"], workspace = true }

[dependencies]
codec = { features = ["derive"], workspace = true }
scale-info = { features = ["derive"], workspace = true }
bitflags = { workspace = true }

# Internal dependencies
cord-primitives = { workspace = true }
cord-utilities = { workspace = true }
identifier = { workspace = true }

# Substrate dependencies
frame-benchmarking = { optional = true, workspace = true }
frame-support = { workspace = true }
frame-system = { workspace = true }
sp-core = { optional = true, workspace = true }
sp-io = { optional = true, workspace = true }
sp-keystore = { optional = true, workspace = true }
sp-runtime = { workspace = true }
sp-std = { workspace = true }


[features]
default = ['std']
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"cord-utilities/runtime-benchmarks",
]
std = [
"codec/std",
"identifier/std",
"frame-benchmarking/std",
"frame-support/std",
"frame-system/std",
"cord-primitives/std",
"cord-utilities/std",
"scale-info/std",
"sp-core/std",
"sp-io/std",
"sp-keystore/std",
"sp-runtime/std",
"sp-std/std",
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"identifier/try-runtime",
"cord-utilities/try-runtime",
"sp-runtime/try-runtime"
]
Loading

0 comments on commit cd868be

Please sign in to comment.