-
Notifications
You must be signed in to change notification settings - Fork 10
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
[Communities] Initial implementation of the pallet #291
Conversation
cf966be
to
b5af173
Compare
d80a61c
to
debacd2
Compare
* change(runtime/kreivo): add pallet-communities as dep * change(pallets/communities): set sp-runtime as dep to support StaticLookup * feat(pallet/communities): checks for community state * feat(pallets/communities): check for permissioned calls * feat(pallets/communities): implement add_member * change(pallets/communities): use try_mutate_exists on do_insert_member * chore(community:tests): remove redundant submod * feat(pallets/communities): implement remove_member * change(pallets/communities): update documentation * change(communities:Cargo): update package metadata * fix(pallets/communities): apply clippy suggestions * change(pallet/communities): update docs * fix(communities:remove_member): make sure that origin is being checked on first * chore(pallets/communities): explicit naming for functions that ensure origin
* change(runtime/kreivo): add pallet-communities as dep * change(pallets/communities): set sp-runtime as dep to support StaticLookup * feat(pallet/communities): checks for community state * feat(pallets/communities): check for permissioned calls * feat(pallets/communities): implement add_member * change(pallets/communities): use try_mutate_exists on do_insert_member * chore(community:tests): remove redundant submod * feat(pallets/communities): implement remove_member * change(pallets/communities): update documentation * change(communities:Cargo): update package metadata * fix(pallets/communities): apply clippy suggestions * change(pallet/communities): update docs * fix(communities:remove_member): make sure that origin is being checked on first * chore(pallets/communities): explicit naming for functions that ensure origin
* chore(communities:tests): remove qualified references to sp_runtime::DispatchError * refactor(communities:functions): simplify qualified references to types and traits * feat(pallets/communities): implement assets_transfer * feat(pallets/communities): implement balance_transfer * chore(pallets/communities): update docs * fix(communities:functions/tokens): apply fmt * refactor(communities:functions/tokens): rename mod to treasury * refactor(communities:functions): move do_create_community_account to treasury module * chore(communities:functions/registration): rename as registry * m:change(communities:registry): directly override value on do_set_metadata
* refactor(pallets/communities): resolve ambiguity between CommunityMetadata storage type and struct * refactor(pallets/communities): split logical modules within pallet * refactor(communities:pallet): use pallet::call(weight) option * refactor(pallet/communities): remove excessive verbosity * change(pallet/communities): update documentation regarding tokens * refactor(pallets/communities): split types into multiple files
* feat(pallets/communities): define MemberRank trait, for MembershipPassport * feat(pallets/communities): add structures and storage for handling governance * feat(pallets/communities): add governance (polls/proposals) handling functions * feat(pallets/communities): define open_proposal/execute_call * change(pallets/communities): explictly state call origin when creating proposal * fix(pallets/communities): lint * change(communities:functions/origin): use CheckedConversion to replace as_origin!
12f2f6b
to
14ecf35
Compare
* feat(pallets/communities): define member_rank traits * change(pallets/communities): split membership and member_rank feat(communities:functions): implement do_promote and do_demote * feat(pallet/communities): define/implement promote_member and demote_member * Use specific Rank type instead of generic --------- Co-authored-by: Daniel Olano <[email protected]>
74f8b61
to
ff53773
Compare
190f5db
to
2131547
Compare
Use dedicated origins for all extrinsics Refactor and remove unused functionalities
2131547
to
db5da4a
Compare
The last edit includes reworking the pallet origin, require extrinsics to be called from a specific origin that checks for the existence and correct state of the community, delegating the logic of managing memberships to an external system of non-fungible memberships that can be transferred and finally removing unused functionalities and flattening the pallet directory structure to match the common Rust and Substrate practices. |
Closes #125. More granular issues/PRs to come in the following days.