Msg Service
Msg/CreateSubspace
A subspace can be created with the MsgCreateSubspace
.
loading...
It's expected to fail if:
- the provided name is either empty or blank;
- the specified treasury address (if any) is invalid;
- the specified owner address (if any) is invalid.
Msg/EditSubspace
A subspace can be edited with the MsgEditSubspace
:
loading...
It's expected to fail if:
- the subspace does not exist;
- the updated subspace is invalid;
- the signer has no permission to edit the subspace.
Msg/DeleteSubspace
A subspace can be deleted using MsgDeleteSubspace
.
loading...
It's expected to fail if:
- the subspace does not exist;
- the signer has no permission to delete the subspace.
Msg/CreateSection
A section can be created using the MsgCreateSection
.
loading...
The message is expected to fail if:
- the subspace does not exist;
- the parent section (if specified) does not exist;
- the creator has no permission to manage sections within the subspace;
- the provided section name is either empty or blank.
Msg/EditSection
A section can be edited using the MsgEditSection
.
loading...
It's expected to fail if:
- the subspace does not exist;
- the section does not exist;
- the editor has no permission to manage sections within the subspace.
Msg/MoveSection
A section can be moved to under another section using the MsgMoveSection
.
loading...
It's expected to fail if:
- the subspace does not exist;
- the section does not exist;
- the destination section does not exist;
- the signer has no permission to manage sections within the subspace;
- the new section path is invalid (this means that is not possible to reach the moved section starting from the root section, or that a circular path is detected).
Msg/DeleteSection
A section can be deleted using the MsgDeleteSection
.
loading...
It's is expected to fail if:
- the subspace does not exist;
- the section does not exist;
- the signer has no permission to manage sections within the subspace.
Msg/CreateUserGroup
A user group can be created using the MsgCreateUserGroup
.
loading...
The message is expected to fail if:
- the subspace does not exist;
- the section does not exist;
- the signer has no permissions to create a user group or set permissions within the section;
- the permissions values are not valid;
- the provided user group name is either blank or empty.
Msg/EditUserGroup
A user group can be edited using the MsgEditUserGroup
.
loading...
It's expected to fail if:
- the subspace does not exist;
- the user group does not exist;
- the signer has no permission to manage user groups within the subspace;
- the updated group is invalid.
Msg/MoveUserGroup
A user group can be moved to another section group using the MsgMoveUserGroup
.
loading...
It's expected to fail if:
- the subspace does not exist;
- the user group does not exist;
- the destination section does not exist;
- the signer has no permission to manage user groups inside the current group's section;
- the signer has no permissions to manage user groups or set permissions inside the destination section.
Msg/SetUserGroupPermissions
A user group permissions can be set using the MsgSetUserGroupPermissions
.
loading...
It's expected to fail if:
- the subspace does not exist;
- the user group does not exist;
- the signer has no permission to set permissions within the group's section;
- the permissions values are not valid;
- the signer is inside the user group and it is not the subspace owner.
Msg/DeleteUserGroup
A user group permissions can be deleted using the MsgDeleteUserGroup
.
loading...
It's expected to fail if:
- the subspace does not exist;
- the user group does not exist;
- the signer has no permission to manage sections inside the group's section.
Msg/AddUserToUserGroup
A user can be added to a user group using the MsgAddUserToUserGroup
.
loading...
It's expected to fail if:
- the subspace does not exist;
- the user group does not exist;
- the signer has no permission to set permissions inside the subspace and section where user group is;
- the user already is a member of the user group.
Msg/RemoveUserFromUserGroup
A user can be removed from a user group using the MsgRemoveUserFromUserGroup
.
loading...
It's expected to fail if:
- the subspace does not exist;
- the user group does not exist;
- the sender has no permission to set permissions inside the subspace and section where user group is;
- the user is not the member of the user group.
Msg/SetUserPermissions
A user permissions can be set using the MsgSetUserPermissions
.
loading...
It's expected to fail if:
- the subspace does not exist;
- the section does not exist;
- the signer has no permission to set permissions inside the destination section;
- the permissions values are not valid.