A new group can be created with the MsgCreateGroupRequest
, which has an admin address, a list of members and some optional metadata bytes.
It's expecting to fail if metadata length is greater than some MaxMetadataLength
.
Group members can be updated with the UpdateGroupMembersRequest
.
In the list of MemberUpdates
, an existing member can be removed by setting its weight to 0.
It's expecting to fail if the signer is not the admin of the group.
The UpdateGroupAdminRequest
can be used to update a group admin.
It's expecting to fail if the signer is not the admin of the group.
The UpdateGroupMetadataRequest
can be used to update a group metadata.
It's expecting to fail if:
- new metadata length is greater than some
MaxMetadataLength
. - the signer is not the admin of the group.
A new group account can be created with the MsgCreateGroupAccountRequest
, which has an admin address, a group id, a decision policy and some optional metadata bytes.
It's expecting to fail if metadata length is greater than some MaxMetadataLength
.
The UpdateGroupAccountAdminRequest
can be used to update a group account admin.
It's expecting to fail if the signer is not the admin of the group account.
The UpdateGroupAccountMetadataRequest
can be used to update a group account metadata.
It's expecting to fail if:
- new metadata length is greater than some
MaxMetadataLength
. - the signer is not the admin of the group.