Skip to content

Commit 75568ed

Browse files
authored
Integrate schema-accounts with registries & entries (#516)
* Integrates the account based schema-management pallet schema-accounts into registries & entries. * Updates the runtime spec to 9400 or cord package to 0.9.4. Signed-off-by: Shreevatsa N <vatsa@dhiway.com>
1 parent 8ab2380 commit 75568ed

File tree

13 files changed

+298
-98
lines changed

13 files changed

+298
-98
lines changed

Cargo.lock

Lines changed: 37 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
[workspace.package]
3-
version = "0.9.3-1"
3+
version = "0.9.4"
44
authors = ['Dhiway Networks <info@dhiway.com>']
55
edition = "2021"
66
homepage = "https://cord.network"

pallets/entries/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ serde_json = { workspace = true }
3434

3535
frame-benchmarking = { optional = true, workspace = true }
3636
pallet-registries = { workspace = true }
37+
pallet-schema-accounts = { workspace = true }
3738

3839
[dev-dependencies]
3940
sp-core = { workspace = true }
4041
cord-utilities = { workspace = true }
4142
sp-keystore = { workspace = true }
4243
serde_json = { workspace = true }
4344
pallet-registries = { workspace = true }
45+
pallet-schema-accounts = { workspace = true }
4446

4547
cord-primitives = { workspace = true }
4648
identifier = { workspace = true }
@@ -65,6 +67,7 @@ std = [
6567
"identifier/std",
6668
"cord-utilities/std",
6769
"pallet-registries/std",
70+
"pallet-schema-accounts/std",
6871
]
6972
runtime-benchmarks = [
7073
"frame-benchmarking/runtime-benchmarks",
@@ -73,6 +76,7 @@ runtime-benchmarks = [
7376
"sp-runtime/runtime-benchmarks",
7477
"cord-utilities/runtime-benchmarks",
7578
"pallet-registries/runtime-benchmarks",
79+
"pallet-schema-accounts/runtime-benchmarks",
7680
]
7781
try-runtime = [
7882
"frame-support/try-runtime",

pallets/entries/src/mock.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ frame_support::construct_runtime!(
3737
System: frame_system,
3838
Identifier: identifier,
3939
MockOrigin: mock_origin,
40+
SchemaAccounts: pallet_schema_accounts,
4041
Registries: pallet_registries,
4142
Entries: pallet_entries,
4243
}
@@ -62,6 +63,16 @@ impl mock_origin::Config for Test {
6263
type SubjectId = SubjectId;
6364
}
6465

66+
parameter_types! {
67+
pub const MaxEncodedSchemaLength: u32 = 15_360;
68+
}
69+
70+
impl pallet_schema_accounts::Config for Test {
71+
type RuntimeEvent = RuntimeEvent;
72+
type MaxEncodedSchemaLength = MaxEncodedSchemaLength;
73+
type WeightInfo = ();
74+
}
75+
6576
parameter_types! {
6677
pub const MaxRegistryBlobSize: u32 = 4 * 1024;
6778
pub const MaxRegistryDelegates: u32 = 5;

0 commit comments

Comments
 (0)