feat: owner and token master permissions (#3912)

This commit is contained in:
Mykhailo Prakhov 2023-08-18 17:29:44 +02:00 committed by GitHub
parent ae17ad57c3
commit d1db60918d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 235 additions and 130 deletions

View File

@ -821,6 +821,35 @@ func (m *Manager) DeleteCommunityTokenPermission(request *requests.DeleteCommuni
return community, changes, nil return community, changes, nil
} }
func (m *Manager) ReevaluateCommunityMembersPermissions(request *requests.ReevaluateCommunityMembersPermissions) (*Community, error) {
community, err := m.GetByID(request.CommunityID)
if err != nil {
return nil, err
}
if community == nil {
return nil, ErrOrgNotFound
}
// TODO: Control node needs to be notified to do a permission check if TokenMasters did airdrop
// of the token which is using in a community permissions
if !community.IsControlNode() {
return nil, ErrNotEnoughPermissions
}
err = m.ReevaluateMembers(community)
if err != nil {
return nil, err
}
err = m.saveAndPublish(community)
if err != nil {
return nil, err
}
return community, nil
}
func (m *Manager) DeleteCommunity(id types.HexBytes) error { func (m *Manager) DeleteCommunity(id types.HexBytes) error {
err := m.persistence.DeleteCommunity(id) err := m.persistence.DeleteCommunity(id)
if err != nil { if err != nil {

View File

@ -1980,6 +1980,22 @@ func (m *Messenger) DeleteCommunityTokenPermission(request *requests.DeleteCommu
return response, nil return response, nil
} }
func (m *Messenger) ReevaluateCommunityMembersPermissions(request *requests.ReevaluateCommunityMembersPermissions) (*MessengerResponse, error) {
if err := request.Validate(); err != nil {
return nil, err
}
community, err := m.communitiesManager.ReevaluateCommunityMembersPermissions(request)
if err != nil {
return nil, err
}
response := &MessengerResponse{}
response.AddCommunity(community)
return response, nil
}
func (m *Messenger) EditCommunity(request *requests.EditCommunity) (*MessengerResponse, error) { func (m *Messenger) EditCommunity(request *requests.EditCommunity) (*MessengerResponse, error) {
if err := request.Validate(); err != nil { if err := request.Validate(); err != nil {
return nil, err return nil, err
@ -4244,6 +4260,38 @@ func (m *Messenger) AddCommunityToken(communityID string, chainID int, address s
return err return err
} }
if community.IsControlNode() && (communityToken.PrivilegesLevel == token.MasterLevel || communityToken.PrivilegesLevel == token.OwnerLevel) {
permissionType := protobuf.CommunityTokenPermission_BECOME_TOKEN_OWNER
if communityToken.PrivilegesLevel == token.MasterLevel {
permissionType = protobuf.CommunityTokenPermission_BECOME_TOKEN_MASTER
}
contractAddresses := make(map[uint64]string)
contractAddresses[uint64(communityToken.ChainID)] = communityToken.Address
tokenCriteria := &protobuf.TokenCriteria{
ContractAddresses: contractAddresses,
Type: protobuf.CommunityTokenType_ERC721,
Symbol: communityToken.Symbol,
Name: communityToken.Name,
Amount: "1",
Decimals: uint64(communityToken.Decimals),
}
request := &requests.CreateCommunityTokenPermission{
CommunityID: community.ID(),
Type: permissionType,
TokenCriteria: []*protobuf.TokenCriteria{tokenCriteria},
IsPrivate: true,
ChatIds: []string{},
}
_, _, err := m.communitiesManager.CreateCommunityTokenPermission(request)
if err != nil {
return err
}
}
syncMsg := &protobuf.CommunityPrivilegedUserSyncMessage{ syncMsg := &protobuf.CommunityPrivilegedUserSyncMessage{
Type: protobuf.CommunityPrivilegedUserSyncMessage_ADD_COMMUNITY_TOKENS, Type: protobuf.CommunityPrivilegedUserSyncMessage_ADD_COMMUNITY_TOKENS,
CommunityId: community.ID(), CommunityId: community.ID(),

View File

@ -2165,7 +2165,7 @@ func _1689931300_add_community_tokens_deployer_and_priv_levelUpSql() (*asset, er
return nil, err return nil, err
} }
info := bindataFileInfo{name: "1689931300_add_community_tokens_deployer_and_priv_level.up.sql", size: 156, mode: os.FileMode(0644), modTime: time.Unix(1692045698, 0)} info := bindataFileInfo{name: "1689931300_add_community_tokens_deployer_and_priv_level.up.sql", size: 156, mode: os.FileMode(0644), modTime: time.Unix(1692220039, 0)}
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x3f, 0x24, 0xd9, 0x4d, 0xe, 0x4b, 0xe3, 0x4c, 0xd1, 0xc, 0x72, 0xd4, 0x99, 0xe4, 0xb9, 0xb8, 0xe9, 0x38, 0x9e, 0x11, 0x48, 0xea, 0xe3, 0x5d, 0xd9, 0xd0, 0xef, 0x96, 0x38, 0x5a, 0xd4, 0xa5}} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x3f, 0x24, 0xd9, 0x4d, 0xe, 0x4b, 0xe3, 0x4c, 0xd1, 0xc, 0x72, 0xd4, 0x99, 0xe4, 0xb9, 0xb8, 0xe9, 0x38, 0x9e, 0x11, 0x48, 0xea, 0xe3, 0x5d, 0xd9, 0xd0, 0xef, 0x96, 0x38, 0x5a, 0xd4, 0xa5}}
return a, nil return a, nil
} }

View File

@ -91,6 +91,7 @@ const (
CommunityTokenPermission_CAN_VIEW_CHANNEL CommunityTokenPermission_Type = 3 CommunityTokenPermission_CAN_VIEW_CHANNEL CommunityTokenPermission_Type = 3
CommunityTokenPermission_CAN_VIEW_AND_POST_CHANNEL CommunityTokenPermission_Type = 4 CommunityTokenPermission_CAN_VIEW_AND_POST_CHANNEL CommunityTokenPermission_Type = 4
CommunityTokenPermission_BECOME_TOKEN_MASTER CommunityTokenPermission_Type = 5 CommunityTokenPermission_BECOME_TOKEN_MASTER CommunityTokenPermission_Type = 5
CommunityTokenPermission_BECOME_TOKEN_OWNER CommunityTokenPermission_Type = 6
) )
var CommunityTokenPermission_Type_name = map[int32]string{ var CommunityTokenPermission_Type_name = map[int32]string{
@ -100,6 +101,7 @@ var CommunityTokenPermission_Type_name = map[int32]string{
3: "CAN_VIEW_CHANNEL", 3: "CAN_VIEW_CHANNEL",
4: "CAN_VIEW_AND_POST_CHANNEL", 4: "CAN_VIEW_AND_POST_CHANNEL",
5: "BECOME_TOKEN_MASTER", 5: "BECOME_TOKEN_MASTER",
6: "BECOME_TOKEN_OWNER",
} }
var CommunityTokenPermission_Type_value = map[string]int32{ var CommunityTokenPermission_Type_value = map[string]int32{
@ -109,6 +111,7 @@ var CommunityTokenPermission_Type_value = map[string]int32{
"CAN_VIEW_CHANNEL": 3, "CAN_VIEW_CHANNEL": 3,
"CAN_VIEW_AND_POST_CHANNEL": 4, "CAN_VIEW_AND_POST_CHANNEL": 4,
"BECOME_TOKEN_MASTER": 5, "BECOME_TOKEN_MASTER": 5,
"BECOME_TOKEN_OWNER": 6,
} }
func (x CommunityTokenPermission_Type) String() string { func (x CommunityTokenPermission_Type) String() string {
@ -1668,134 +1671,134 @@ func init() {
} }
var fileDescriptor_f937943d74c1cd8b = []byte{ var fileDescriptor_f937943d74c1cd8b = []byte{
// 2052 bytes of a gzipped FileDescriptorProto // 2059 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcf, 0x73, 0x1b, 0x49, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcf, 0x73, 0x1b, 0x49,
0xf5, 0xcf, 0xe8, 0x87, 0x2d, 0x3d, 0x49, 0xb6, 0xdc, 0x49, 0xec, 0x89, 0x93, 0x6c, 0x94, 0xf9, 0xf5, 0xcf, 0x68, 0x64, 0x5b, 0x7a, 0xb2, 0x6c, 0xb9, 0x93, 0xd8, 0x13, 0x27, 0xd9, 0x28, 0xf3,
0x7e, 0x29, 0xbc, 0xa1, 0x50, 0x76, 0x0d, 0x14, 0xa9, 0x5d, 0xd8, 0x5d, 0x45, 0x1e, 0xb2, 0xda, 0xfd, 0x52, 0x78, 0x43, 0xa1, 0xec, 0x1a, 0x28, 0x52, 0xbb, 0xb0, 0xbb, 0x8a, 0x3c, 0x64, 0xb5,
0x44, 0x23, 0x6f, 0x4b, 0xde, 0xc0, 0x16, 0x30, 0x35, 0x9e, 0x69, 0xdb, 0x5d, 0x91, 0x66, 0xc4, 0x89, 0x46, 0xde, 0x96, 0xbc, 0x81, 0x2d, 0x60, 0x6a, 0x3c, 0xd3, 0xb6, 0xbb, 0x22, 0xcd, 0x88,
0x74, 0xcb, 0x85, 0x38, 0x70, 0x00, 0xfe, 0x02, 0x2e, 0x5c, 0xa9, 0xe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 0x2d, 0x4d, 0xe8, 0xd6, 0x27, 0x53, 0xb0, 0x7f, 0x06, 0xf5, 0xc2, 0xd2,
0x6b, 0x0f, 0x4b, 0xa3, 0xb2, 0xe8, 0x2c, 0x9e, 0x36, 0x3e, 0xaf, 0xb5, 0x1f, 0xbf, 0x9f, 0xec, 0x8a, 0x4e, 0xe2, 0xc3, 0x62, 0x27, 0xf1, 0xf6, 0xb5, 0x87, 0x65, 0x51, 0x99, 0x77, 0x16, 0x4f,
0x3c, 0xdd, 0x90, 0x5f, 0xdf, 0xf8, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x4d, 0xe1, 0xbc, 0xeb, 0x9f, 0xd7, 0x5a, 0x8f, 0xdf, 0x4f, 0x77, 0x9e, 0xae, 0xcb, 0xaf, 0x6f, 0xfc, 0x2b, 0x00,
0x93, 0x16, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8c, 0xdd, 0xe9, 0x0c, 0xab, 0x16, 0x00, 0x00,
} }

View File

@ -71,6 +71,7 @@ message CommunityTokenPermission {
CAN_VIEW_CHANNEL = 3; CAN_VIEW_CHANNEL = 3;
CAN_VIEW_AND_POST_CHANNEL = 4; CAN_VIEW_AND_POST_CHANNEL = 4;
BECOME_TOKEN_MASTER = 5; BECOME_TOKEN_MASTER = 5;
BECOME_TOKEN_OWNER = 6;
} }
string id = 1; string id = 1;

View File

@ -0,0 +1,19 @@
package requests
import (
"errors"
"github.com/status-im/status-go/eth-node/types"
)
type ReevaluateCommunityMembersPermissions struct {
CommunityID types.HexBytes `json:"communityId"`
}
func (r *ReevaluateCommunityMembersPermissions) Validate() error {
if r.CommunityID == nil || len(r.CommunityID) == 0 {
return errors.New("reevaluate community members permissions does not contain communityID")
}
return nil
}

View File

@ -533,6 +533,11 @@ func (api *PublicAPI) CreateCommunityTokenPermission(request *requests.CreateCom
return api.service.messenger.CreateCommunityTokenPermission(request) return api.service.messenger.CreateCommunityTokenPermission(request)
} }
// ReevaluateCommunityMembersPermissions reevaluates community members permissions
func (api *PublicAPI) ReevaluateCommunityMembersPermissions(request *requests.ReevaluateCommunityMembersPermissions) (*protocol.MessengerResponse, error) {
return api.service.messenger.ReevaluateCommunityMembersPermissions(request)
}
func (api *PublicAPI) DeleteCommunityTokenPermission(request *requests.DeleteCommunityTokenPermission) (*protocol.MessengerResponse, error) { func (api *PublicAPI) DeleteCommunityTokenPermission(request *requests.DeleteCommunityTokenPermission) (*protocol.MessengerResponse, error) {
return api.service.messenger.DeleteCommunityTokenPermission(request) return api.service.messenger.DeleteCommunityTokenPermission(request)
} }