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

feat: ADR-012: Subspaces sections #866

Merged
merged 51 commits into from
Jun 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
0e636aa
started implementing the subspace sections
RiccardoM May 16, 2022
d7ac1c8
started fixing some tests
RiccardoM May 16, 2022
1472715
fixed tests
RiccardoM May 17, 2022
eba7f9e
fixing keeper tests
RiccardoM May 17, 2022
85c693e
fixed unit tests
RiccardoM May 18, 2022
b407788
added missing decoder cases and tests
RiccardoM May 18, 2022
4ab4b07
fixed sim genesis generation
RiccardoM May 18, 2022
b98ddf8
updated Swagger config to use subspaces v2
RiccardoM May 18, 2022
272b89b
Merge branch 'master' of github.com:desmos-labs/desmos into riccardo/…
RiccardoM May 18, 2022
923b838
Updated Swagger definition
RiccardoM May 18, 2022
97e783e
updated swagger definition
RiccardoM May 18, 2022
f50c74c
Merge remote-tracking branch 'origin/riccardo/subspaces-sections-impl…
RiccardoM May 18, 2022
ff639cc
added sections simulation tests
RiccardoM May 18, 2022
94c2f90
added changeset entry
RiccardoM May 18, 2022
f0770d1
fixed unit test
RiccardoM May 18, 2022
0898cfe
Update x/subspaces/keeper/alias_functions.go
RiccardoM May 19, 2022
ed64682
Update x/subspaces/keeper/sections_test.go
RiccardoM May 19, 2022
37192e9
added RootSectionID definition
RiccardoM May 19, 2022
5ae167d
Merge remote-tracking branch 'origin/riccardo/subspaces-sections-impl…
RiccardoM May 19, 2022
ab12957
added missing SplitUserAddressPermissionKey tests
RiccardoM May 19, 2022
254813e
Update x/subspaces/keeper/alias_functions.go
RiccardoM May 19, 2022
b29c5dc
added missing CLI commands and tests
RiccardoM May 20, 2022
90656e9
Merge remote-tracking branch 'origin/riccardo/subspaces-sections-impl…
RiccardoM May 20, 2022
d5c9382
Merge branch 'master' of github.com:desmos-labs/desmos into riccardo/…
RiccardoM May 27, 2022
e94e5bd
added sections to x/posts
RiccardoM May 27, 2022
9913e17
Updated Swagger definition
RiccardoM May 27, 2022
dc593d9
added the migration code
RiccardoM May 27, 2022
de0bae6
Merge remote-tracking branch 'origin/riccardo/subspaces-sections-impl…
RiccardoM May 27, 2022
df23e31
fixed suggestions
RiccardoM May 30, 2022
0e4d540
Merge branch 'master' of github.com:desmos-labs/desmos into riccardo/…
RiccardoM May 30, 2022
ea356fd
replaced lenSectionID with lenGroupID where necessary
RiccardoM May 30, 2022
9d59fb7
fixed suggestions
RiccardoM May 30, 2022
1c3b4b3
fixed suggestion
RiccardoM May 30, 2022
2d4f5ef
added invalid name test for MsgEditSection
RiccardoM May 30, 2022
9351fbf
added missing section parent id checks and fixed tests
RiccardoM May 30, 2022
de93746
renamed GetUsersWithPermission to GetUsersWithRootPermission
RiccardoM May 30, 2022
02e66a2
added section path validation when moving a section
RiccardoM May 31, 2022
fa71e24
improved test name
RiccardoM May 31, 2022
7b860b6
Merge branch 'master' of github.com:desmos-labs/desmos into riccardo/…
RiccardoM May 31, 2022
33ad9ae
fixed lint
RiccardoM May 31, 2022
1709cb2
added missing test check
RiccardoM May 31, 2022
67a88d0
fixed simulation tests
RiccardoM May 31, 2022
f564878
Update x/subspaces/types/msgs.go
RiccardoM May 31, 2022
30769cc
Update x/subspaces/simulation/operations_sections.go
RiccardoM May 31, 2022
3405b36
Update x/subspaces/types/msgs.go
RiccardoM May 31, 2022
97460cf
Update x/subspaces/simulation/operations_sections.go
RiccardoM May 31, 2022
39125ab
added missing check inside MoveUserGroup msg handler
RiccardoM May 31, 2022
a65a7d2
Update x/subspaces/keeper/msg_server.go
RiccardoM May 31, 2022
986bad3
updated permissions checks inside MsgMoveUserGroup message handler
RiccardoM May 31, 2022
32ef4ff
Merge branch 'master' of github.com:desmos-labs/desmos into riccardo/…
RiccardoM Jun 1, 2022
c6e4946
fixed conflicts
RiccardoM Jun 1, 2022
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: feat
module: x/subspaces
pull_request: 866
description: Added support for subspaces sections
backward_compatible: false
date: 2022-05-18T09:05:33.838945166Z
5 changes: 5 additions & 0 deletions app/params/weights.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ const (
DefaultWeightMsgCreateSubspace int = 80
DefaultWeightMsgEditSubspace int = 30
DefaultWeightMsgDeleteSubspace int = 5
DefaultWeightMsgCreateSection int = 20
DefaultWeightMsgEditSection int = 12
DefaultWeightMsgMoveSection int = 10
DefaultWeightMsgDeleteSection int = 5
DefaultWeightMsgCreateUserGroup int = 10
DefaultWeightMsgEditUserGroup int = 30
DefaultWeightMsgMoveUserGroup int = 30
DefaultWeightMsgSetUserGroupPermissions int = 50
DefaultWeightMsgDeleteUserGroup int = 5
DefaultWeightMsgAddUserToUserGroup int = 7
Expand Down
2 changes: 1 addition & 1 deletion client/docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"url": "./tmp-swagger-gen/desmos/relationships/v1/query.swagger.json"
},
{
"url": "./tmp-swagger-gen/desmos/subspaces/v1/query.swagger.json"
"url": "./tmp-swagger-gen/desmos/subspaces/v2/query.swagger.json"
},
{
"url": "./tmp-swagger-gen/desmos/posts/v1/query.swagger.json",
Expand Down
Loading