Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate schema-accounts with registries & entries #516

Merged
merged 3 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 37 additions & 35 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

[workspace.package]
version = "0.9.3-1"
version = "0.9.4"
authors = ['Dhiway Networks <[email protected]>']
edition = "2021"
homepage = "https://cord.network"
Expand Down
4 changes: 4 additions & 0 deletions pallets/entries/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ serde_json = { workspace = true }

frame-benchmarking = { optional = true, workspace = true }
pallet-registries = { workspace = true }
pallet-schema-accounts = { workspace = true }

[dev-dependencies]
sp-core = { workspace = true }
cord-utilities = { workspace = true }
sp-keystore = { workspace = true }
serde_json = { workspace = true }
pallet-registries = { workspace = true }
pallet-schema-accounts = { workspace = true }

cord-primitives = { workspace = true }
identifier = { workspace = true }
Expand All @@ -65,6 +67,7 @@ std = [
"identifier/std",
"cord-utilities/std",
"pallet-registries/std",
"pallet-schema-accounts/std",
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
Expand All @@ -73,6 +76,7 @@ runtime-benchmarks = [
"sp-runtime/runtime-benchmarks",
"cord-utilities/runtime-benchmarks",
"pallet-registries/runtime-benchmarks",
"pallet-schema-accounts/runtime-benchmarks",
]
try-runtime = [
"frame-support/try-runtime",
Expand Down
11 changes: 11 additions & 0 deletions pallets/entries/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ frame_support::construct_runtime!(
System: frame_system,
Identifier: identifier,
MockOrigin: mock_origin,
SchemaAccounts: pallet_schema_accounts,
Registries: pallet_registries,
Entries: pallet_entries,
}
Expand All @@ -62,6 +63,16 @@ impl mock_origin::Config for Test {
type SubjectId = SubjectId;
}

parameter_types! {
pub const MaxEncodedSchemaLength: u32 = 15_360;
}

impl pallet_schema_accounts::Config for Test {
type RuntimeEvent = RuntimeEvent;
type MaxEncodedSchemaLength = MaxEncodedSchemaLength;
type WeightInfo = ();
}

parameter_types! {
pub const MaxRegistryBlobSize: u32 = 4 * 1024;
pub const MaxRegistryDelegates: u32 = 5;
Expand Down
Loading