-
Notifications
You must be signed in to change notification settings - Fork 114
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
Distribution feature for the storage pallet. #2552
Distribution feature for the storage pallet. #2552
Conversation
# Conflicts: # runtime-modules/storage/src/lib.rs # runtime-modules/storage/src/tests/mod.rs
# Conflicts: # runtime-modules/storage/src/lib.rs # runtime/src/lib.rs
- delete_distribution_bucket_family # Conflicts: # runtime-modules/storage/src/lib.rs
- add ‘create_distribution_bucket’ extrinsic - add MaxDistributionBucketNumberPerFamily constant # Conflicts: # runtime-modules/storage/src/tests/fixtures.rs
- add `update_distribution_bucket_status` extrinsic # Conflicts: # runtime-modules/storage/src/lib.rs
- add `delete_distribution_bucket` extrinsic
- add `update_distribution_buckets_for_bag` - add `DistributionBucketsPerBagValueConstraint` constant # Conflicts: # runtime-modules/storage/src/bag_manager.rs # runtime-modules/storage/src/tests/mod.rs
Fix `update_storage_buckets_for_bag` extrinsic. Change bucket limit comparison. # Conflicts: # runtime-modules/storage/src/lib.rs # runtime-modules/storage/src/tests/mod.rs
- add `distribution_buckets_per_bag_limit` # Conflicts: # runtime-modules/storage/src/tests/mod.rs
- add `update_distribution_bucket_mode` extrinsic # Conflicts: # runtime-modules/storage/src/lib.rs
- add `update_families_in_dynamic_bag_creation_policy ` extrinsic
# Conflicts: # runtime-modules/storage/src/lib.rs # runtime-modules/storage/src/tests/mod.rs
- add `invite_distribution_bucket_operator` # Conflicts: # runtime-modules/storage/src/lib.rs
- add `cancel_distribution_bucket_operator_invite`
- add `accept_distribution_bucket_invitation`
- add `set_distribution_operator_metadata`
- add `MaxNumberOfPendingInvitationsPerDistributionBucket`
- add `remove_distribution_bucket_operator`
- add ‘assigned_bags’ number - change ‘delete_distribution_bucket’ and ‘delete_distribution_bucket’ extrinsics (add bag assignment checks)
- rename and remove mutable variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome job, just one minor point.
runtime-modules/storage/src/lib.rs
Outdated
/// Distribution bucket family. | ||
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] | ||
#[derive(Encode, Decode, Default, Clone, PartialEq, Eq, Debug)] | ||
pub struct DistributionBucketFamilyObject<DistributionBucketId: Ord, WorkerId: Ord> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you introducing the Object
post-fix for the bucket family and bucket? The reason DataObject
has the this is because it explicitly is supposed to be represent the idea of an object or blob, this does not apply to these other types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed here: dca15ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Supersedes this draft PR.
Initial specification.
Changes
New extrinsics
Constants
New types
New storage entries