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

Add 'Distribution' feature to the storage pallet. #2522

Conversation

shamil-gadelshin
Copy link
Contributor

@shamil-gadelshin shamil-gadelshin commented Jul 13, 2021

Changes

New extrinsics

  • Distribution working group leader extrinsics
    • create_distribution_bucket_family
    • delete_distribution_bucket_family
    • create_distribution_bucket
    • delete_distribution_bucket
    • update_distribution_bucket_status
    • update_distribution_buckets_for_bag
    • distribution_buckets_per_bag_limit
    • update_distribution_bucket_mode
    • update_families_in_dynamic_bag_creation_policy
    • invite_distribution_bucket_operator
    • cancel_distribution_bucket_operator_invite
  • Distribution provider extrinsics
    • accept_distribution_bucket_invitation
    • set_distribution_operator_metadata

Constants

  • Removed
    • DefaultMemberDynamicBagCreationPolicy
    • DefaultChannelDynamicBagCreationPolicy
  • Added
    • DefaultMemberDynamicBagNumberOfStorageBuckets
    • DefaultChannelDynamicBagNumberOfStorageBuckets
    • MaxDistributionBucketFamilyNumber
    • MaxDistributionBucketNumberPerFamily
    • DistributionBucketsPerBagValueConstraint
    • MaxNumberOfPendingInvitationsPerDistributionBucket

New types

  • DistributionBucket
  • DistributionBucketFamily

New storage entries

  • NextDistributionBucketFamilyId
  • DistributionBucketFamilyById
  • DistributionBucketFamilyNumber
  • NextDistributionBucketId
  • DistributionBucketsPerBagLimit

Pallet skeleton:
- crate creation
- basic types
- added events, errors, trait, storage stubs
- added signature of the upload extrinsic.
- new types
- added membership dependency
- temporary commented some types (dynamic bugs, distribution buckets)
- stubs: update_storage_buckets_for_static_bags, set_storage_operator_metadata, accept_pending_data_objects, accept_storage_bucket_invitation
- fix comments
- fix deletion_prize
- validate parameters for accepting pending data objects
- modify tests
…bags

- check for non-existing storage bucket ids
- add comments
- add dynamic bag ID and related types
- introduce bags type aliases
- introduce query and mutation abstractions.
Make it work for both static and dynamic bags.
- delete_distribution_bucket_family
- add ‘create_distribution_bucket’ extrinsic
- add MaxDistributionBucketNumberPerFamily constant
- add `update_distribution_bucket_status` extrinsic
- add `delete_distribution_bucket` extrinsic
- add `update_distribution_buckets_for_bag`
- add `DistributionBucketsPerBagValueConstraint` constant
Fix `update_storage_buckets_for_bag` extrinsic. Change bucket limit comparison.
- add `distribution_buckets_per_bag_limit`
- add `update_distribution_bucket_mode` extrinsic
- add `update_families_in_dynamic_bag_creation_policy ` extrinsic
- add `invite_distribution_bucket_operator`
- add `cancel_distribution_bucket_operator_invite`
- add `accept_distribution_bucket_invitation`
- add `set_distribution_operator_metadata`
- add `MaxNumberOfPendingInvitationsPerDistributionBucket`
@shamil-gadelshin
Copy link
Contributor Author

Superseded by this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant