dhiway / cord

CORD - Enterprise Blockchain Framework
https://cord.network
GNU General Public License v3.0
161 stars 112 forks source link

[draft] - to test #509

Open amarts opened 2 months ago

amarts commented 2 months ago

@vatsa287 can you check, this has @smohan-dw's PR #500 rebased on your pr #504

Let me know what are the addition to runtime you need.

(Can be new runtime too).

vatsa287 commented 2 months ago

@amarts Mostly good, cargo.toml changes in braid-base & braid-plus were required. Here is the patch,

diff --git a/braid/runtimes/base/Cargo.toml b/braid/runtimes/base/Cargo.toml
index 3b40081..4586157 100644
--- a/braid/runtimes/base/Cargo.toml
+++ b/braid/runtimes/base/Cargo.toml
@@ -49,6 +49,8 @@ pallet-cord-offences = { workspace = true }
 pallet-node-authorization = { workspace = true }
 pallet-network-score = { workspace = true }
 pallet-session-benchmarking = { workspace = true }
+pallet-registries = { workspace = true }
+pallet-entries = { workspace = true }

 # Internal runtime API (with default disabled)
 pallet-did-runtime-api = { workspace = true }
@@ -160,6 +162,8 @@ std = [
     "pallet-did-name/std",
     "pallet-schema/std",
     "pallet-chain-space/std",
+    "pallet-registries/std",
+    "pallet-entries/std",
     "pallet-did-token/std",
     "pallet-network-score/std",
     "pallet-runtime-upgrade/std",
@@ -210,6 +214,8 @@ runtime-benchmarks = [
     "pallet-schema/runtime-benchmarks",
     "pallet-did-token/runtime-benchmarks",
     "pallet-chain-space/runtime-benchmarks",
+    "pallet-registries/runtime-benchmarks",
+    "pallet-entries/runtime-benchmarks",
     "hex-literal",
     "pallet-sudo/runtime-benchmarks",
     "pallet-network-score/runtime-benchmarks",
@@ -247,6 +253,8 @@ try-runtime = [
     "pallet-babe/try-runtime",
     "pallet-schema/try-runtime",
     "pallet-chain-space/try-runtime",
+    "pallet-registries/try-runtime",
+    "pallet-entries/try-runtime",
     "pallet-did-token/try-runtime",
     "pallet-did/try-runtime",
     "pallet-did-name/try-runtime",
diff --git a/braid/runtimes/plus/Cargo.toml b/braid/runtimes/plus/Cargo.toml
index af43896..9bd3795 100644
--- a/braid/runtimes/plus/Cargo.toml
+++ b/braid/runtimes/plus/Cargo.toml
@@ -50,6 +50,8 @@ pallet-cord-offences = { workspace = true }
 pallet-node-authorization = { workspace = true }
 pallet-network-score = { workspace = true }
 pallet-session-benchmarking = { workspace = true }
+pallet-registries = { workspace = true }
+pallet-entries = { workspace = true }

 # Internal runtime API (with default disabled)
 pallet-did-runtime-api = { workspace = true }
@@ -169,6 +171,8 @@ std = [
    "pallet-did-name/std",
    "pallet-schema/std",
    "pallet-chain-space/std",
+   "pallet-registries/std",
+   "pallet-entries/std",
    "pallet-did-token/std",
    "pallet-network-score/std",
    "pallet-runtime-upgrade/std",
@@ -223,6 +227,8 @@ runtime-benchmarks = [
    "pallet-schema/runtime-benchmarks",
    "pallet-did-token/runtime-benchmarks",
    "pallet-chain-space/runtime-benchmarks",
+   "pallet-registries/runtime-benchmarks",
+   "pallet-entries/runtime-benchmarks",
    "hex-literal",
    "pallet-sudo/runtime-benchmarks",
    "pallet-network-score/runtime-benchmarks",
@@ -266,6 +272,8 @@ try-runtime = [
    "pallet-babe/try-runtime",
    "pallet-schema/try-runtime",
    "pallet-chain-space/try-runtime",
+   "pallet-registries/try-runtime",
+   "pallet-entries/try-runtime",
    "pallet-did-token/try-runtime",
    "pallet-did/try-runtime",
    "pallet-did-name/try-runtime",