mirror of
https://github.com/status-im/status-go.git
synced 2025-02-24 12:48:46 +00:00
chore: Added TokenMaster permission token type (#3848)
This commit is contained in:
parent
078f71a235
commit
3bd972dec4
File diff suppressed because it is too large
Load Diff
@ -836,11 +836,25 @@ func (o *Community) RemoveUserFromOrg(pk *ecdsa.PublicKey) (*protobuf.CommunityD
|
||||
func (o *Community) AddCommunityTokensMetadata(token *protobuf.CommunityTokenMetadata) (*protobuf.CommunityDescription, error) {
|
||||
o.mutex.Lock()
|
||||
defer o.mutex.Unlock()
|
||||
if !o.IsControlNode() {
|
||||
return nil, ErrNotControlNode
|
||||
|
||||
isControlNode := o.IsControlNode()
|
||||
allowedToSendTokenEvents := o.IsOwnerWithoutCommunityKey() || o.IsTokenMaster()
|
||||
if !isControlNode && !allowedToSendTokenEvents {
|
||||
return nil, ErrInvalidManageTokensPermission
|
||||
}
|
||||
|
||||
if allowedToSendTokenEvents {
|
||||
err := o.addNewCommunityEvent(o.ToAddTokenMetadataCommunityEvent(token))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
o.config.CommunityDescription.CommunityTokensMetadata = append(o.config.CommunityDescription.CommunityTokensMetadata, token)
|
||||
o.increaseClock()
|
||||
|
||||
if isControlNode {
|
||||
o.increaseClock()
|
||||
}
|
||||
|
||||
return o.config.CommunityDescription, nil
|
||||
}
|
||||
@ -1151,6 +1165,10 @@ func (o *Community) IsOwnerWithoutCommunityKey() bool {
|
||||
return o.config.PrivateKey == nil && o.IsMemberOwner(o.config.MemberIdentity)
|
||||
}
|
||||
|
||||
func (o *Community) IsTokenMaster() bool {
|
||||
return o.IsMemberTokenMaster(o.config.MemberIdentity)
|
||||
}
|
||||
|
||||
func (o *Community) GetPrivilegedMembers() []*ecdsa.PublicKey {
|
||||
privilegedMembers := make([]*ecdsa.PublicKey, 0)
|
||||
members := o.GetMemberPubkeys()
|
||||
|
@ -173,6 +173,14 @@ func (o *Community) ToCommunityRequestToJoinRejectCommunityEvent(changes *Commun
|
||||
}
|
||||
}
|
||||
|
||||
func (o *Community) ToAddTokenMetadataCommunityEvent(tokenMetadata *protobuf.CommunityTokenMetadata) *CommunityEvent {
|
||||
return &CommunityEvent{
|
||||
CommunityEventClock: o.NewCommunityEventClock(),
|
||||
Type: protobuf.CommunityEvent_COMMUNITY_TOKEN_ADD,
|
||||
TokenMetadata: tokenMetadata,
|
||||
}
|
||||
}
|
||||
|
||||
func (o *Community) UpdateCommunityByEvents(communityEventMessage *CommunityEventsMessage) (*CommunityChanges, error) {
|
||||
o.mutex.Lock()
|
||||
defer o.mutex.Unlock()
|
||||
@ -364,6 +372,9 @@ func (o *Community) updateCommunityDescriptionByCommunityEvent(communityEvent Co
|
||||
return err
|
||||
}
|
||||
o.unbanUserFromCommunity(pk)
|
||||
|
||||
case protobuf.CommunityEvent_COMMUNITY_TOKEN_ADD:
|
||||
o.config.CommunityDescription.CommunityTokensMetadata = append(o.config.CommunityDescription.CommunityTokensMetadata, communityEvent.TokenMetadata)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
@ -22,6 +22,7 @@ type CommunityEvent struct {
|
||||
MembersAdded map[string]*protobuf.CommunityMember `json:"membersAdded,omitempty"`
|
||||
RejectedRequestsToJoin map[string]*protobuf.CommunityRequestToJoin `json:"rejectedRequestsToJoin,omitempty"`
|
||||
AcceptedRequestsToJoin map[string]*protobuf.CommunityRequestToJoin `json:"acceptedRequestsToJoin,omitempty"`
|
||||
TokenMetadata *protobuf.CommunityTokenMetadata `json:"tokenMetadata,omitempty"`
|
||||
RawPayload []byte `json:"rawPayload"`
|
||||
}
|
||||
|
||||
@ -37,6 +38,7 @@ func (e *CommunityEvent) ToProtobuf() *protobuf.CommunityEvent {
|
||||
MembersAdded: e.MembersAdded,
|
||||
RejectedRequestsToJoin: e.RejectedRequestsToJoin,
|
||||
AcceptedRequestsToJoin: e.AcceptedRequestsToJoin,
|
||||
TokenMetadata: e.TokenMetadata,
|
||||
}
|
||||
}
|
||||
|
||||
@ -59,6 +61,7 @@ func CommunityEventFromProtobuf(raw []byte) (*CommunityEvent, error) {
|
||||
MembersAdded: decodedEvent.MembersAdded,
|
||||
RejectedRequestsToJoin: decodedEvent.RejectedRequestsToJoin,
|
||||
AcceptedRequestsToJoin: decodedEvent.AcceptedRequestsToJoin,
|
||||
TokenMetadata: decodedEvent.TokenMetadata,
|
||||
RawPayload: encodedEvent,
|
||||
}, nil
|
||||
}
|
||||
@ -212,6 +215,11 @@ func validateCommunityEvent(communityEvent *CommunityEvent) error {
|
||||
if len(communityEvent.MemberToAction) == 0 {
|
||||
return errors.New("invalid community member unban event")
|
||||
}
|
||||
|
||||
case protobuf.CommunityEvent_COMMUNITY_TOKEN_ADD:
|
||||
if communityEvent.TokenMetadata == nil || len(communityEvent.TokenMetadata.ContractAddresses) == 0 {
|
||||
return errors.New("invalid add community token event")
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
@ -40,3 +40,4 @@ var ErrMemberWalletNotFound = errors.New("member wallet not found")
|
||||
var ErrNotEnoughPermissions = errors.New("not enough permissions for this community")
|
||||
var ErrCannotRemoveOwnerOrAdmin = errors.New("not allowed to remove admin or owner")
|
||||
var ErrCannotBanOwnerOrAdmin = errors.New("not allowed to ban admin or owner")
|
||||
var ErrInvalidManageTokensPermission = errors.New("no privileges to manage tokens")
|
||||
|
@ -620,12 +620,12 @@ func (m *Manager) EditCommunityTokenPermission(request *requests.EditCommunityTo
|
||||
return community, changes, nil
|
||||
}
|
||||
|
||||
func (m *Manager) ReevaluateMembers(community *Community, removeAdmins bool) error {
|
||||
func (m *Manager) ReevaluateMembers(community *Community) error {
|
||||
becomeMemberPermissions := community.TokenPermissionsByType(protobuf.CommunityTokenPermission_BECOME_MEMBER)
|
||||
becomeAdminPermissions := community.TokenPermissionsByType(protobuf.CommunityTokenPermission_BECOME_ADMIN)
|
||||
becomeTokenMasterPermissions := community.TokenPermissionsByType(protobuf.CommunityTokenPermission_BECOME_TOKEN_MASTER)
|
||||
|
||||
hasMemberPermissions := len(becomeMemberPermissions) > 0
|
||||
hasAdminPermissions := len(becomeAdminPermissions) > 0
|
||||
|
||||
for memberKey, member := range community.Members() {
|
||||
memberPubKey, err := common.HexToPubkey(memberKey)
|
||||
@ -637,12 +637,13 @@ func (m *Manager) ReevaluateMembers(community *Community, removeAdmins bool) err
|
||||
continue
|
||||
}
|
||||
|
||||
isTokenMaster := community.IsMemberTokenMaster(memberPubKey)
|
||||
isAdmin := community.IsMemberAdmin(memberPubKey)
|
||||
memberHasWallet := len(member.RevealedAccounts) > 0
|
||||
|
||||
// Check if user was not treated as an admin without wallet in open community
|
||||
// Check if user has privilege role without sharing the account to controlNode
|
||||
// or user treated as a member without wallet in closed community
|
||||
if !memberHasWallet && (hasMemberPermissions || isAdmin) {
|
||||
if !memberHasWallet && (hasMemberPermissions || isAdmin || isTokenMaster) {
|
||||
_, err = community.RemoveUserFromOrg(memberPubKey)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -652,49 +653,32 @@ func (m *Manager) ReevaluateMembers(community *Community, removeAdmins bool) err
|
||||
|
||||
accountsAndChainIDs := revealedAccountsToAccountsAndChainIDsCombination(member.RevealedAccounts)
|
||||
|
||||
// Check if user is still an admin or can become an admin and do update of member role
|
||||
removeAdminRole := false
|
||||
if hasAdminPermissions {
|
||||
permissionResponse, err := m.checkPermissionToJoin(becomeAdminPermissions, accountsAndChainIDs, true)
|
||||
if err != nil {
|
||||
return err
|
||||
} else if permissionResponse.Satisfied && !isAdmin {
|
||||
_, err = community.AddRoleToMember(memberPubKey, protobuf.CommunityMember_ROLE_ADMIN)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
isAdmin = true
|
||||
} else if !permissionResponse.Satisfied && isAdmin {
|
||||
removeAdminRole = true
|
||||
isAdmin = false
|
||||
}
|
||||
isTokenMaster, err = m.ReevaluatePrivelegedMember(community, becomeTokenMasterPermissions, accountsAndChainIDs, memberPubKey,
|
||||
protobuf.CommunityMember_ROLE_TOKEN_MASTER, isTokenMaster)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Remove admin role if user does not pass admin permissions or we do not have admin permissions but have an admin role
|
||||
if removeAdminRole || isAdmin && removeAdmins {
|
||||
_, err = community.RemoveRoleFromMember(memberPubKey, protobuf.CommunityMember_ROLE_ADMIN)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
isAdmin = false
|
||||
if isTokenMaster {
|
||||
// Skip further validation if user has TokenMaster permissions
|
||||
continue
|
||||
}
|
||||
|
||||
isAdmin, err = m.ReevaluatePrivelegedMember(community, becomeAdminPermissions, accountsAndChainIDs, memberPubKey,
|
||||
protobuf.CommunityMember_ROLE_ADMIN, isAdmin)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if isAdmin {
|
||||
// Make sure admin is added to every channel
|
||||
for channelID := range community.Chats() {
|
||||
if !community.IsMemberInChat(memberPubKey, channelID) {
|
||||
_, err = community.AddMemberToChat(channelID, memberPubKey, []protobuf.CommunityMember_Roles{protobuf.CommunityMember_ROLE_ADMIN})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
// Skip further validation if user has admin permissions
|
||||
// Skip further validation if user has Admin permissions
|
||||
continue
|
||||
}
|
||||
|
||||
if hasMemberPermissions {
|
||||
permissionResponse, err := m.checkPermissionToJoin(becomeMemberPermissions, accountsAndChainIDs, true)
|
||||
permissionResponse, err := m.checkPermissions(becomeMemberPermissions, accountsAndChainIDs, true)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@ -776,7 +760,7 @@ func (m *Manager) ReevaluateMembersPeriodically(communityID types.HexBytes) {
|
||||
m.periodicMembersReevaluationTasks.Delete(communityID.String())
|
||||
}
|
||||
|
||||
err = m.ReevaluateMembers(community, true)
|
||||
err = m.ReevaluateMembers(community)
|
||||
if err != nil {
|
||||
m.logger.Debug("failed to check member permissions", zap.Error(err))
|
||||
}
|
||||
@ -1525,8 +1509,10 @@ func (m *Manager) CheckPermissionToJoin(id []byte, addresses []gethcommon.Addres
|
||||
|
||||
becomeAdminPermissions := community.TokenPermissionsByType(protobuf.CommunityTokenPermission_BECOME_ADMIN)
|
||||
becomeMemberPermissions := community.TokenPermissionsByType(protobuf.CommunityTokenPermission_BECOME_MEMBER)
|
||||
becomeTokenMasterPermissions := community.TokenPermissionsByType(protobuf.CommunityTokenPermission_BECOME_TOKEN_MASTER)
|
||||
|
||||
permissionsToJoin := append(becomeAdminPermissions, becomeMemberPermissions...)
|
||||
permissionsToJoin = append(permissionsToJoin, becomeTokenMasterPermissions...)
|
||||
|
||||
allChainIDs, err := m.tokenManager.GetAllChainIDs()
|
||||
if err != nil {
|
||||
@ -1545,28 +1531,32 @@ func (m *Manager) CheckPermissionToJoin(id []byte, addresses []gethcommon.Addres
|
||||
}
|
||||
return response, nil
|
||||
}
|
||||
return m.checkPermissionToJoin(permissionsToJoin, accountsAndChainIDs, false)
|
||||
return m.checkPermissions(permissionsToJoin, accountsAndChainIDs, false)
|
||||
}
|
||||
|
||||
func (m *Manager) accountsSatisfyPermissionsToJoin(community *Community, accounts []*protobuf.RevealedAccount) (satisfy bool, isAdmin bool, err error) {
|
||||
func (m *Manager) accountsSatisfyPermissionsToJoin(community *Community, accounts []*protobuf.RevealedAccount) (bool, protobuf.CommunityMember_Roles, error) {
|
||||
accountsAndChainIDs := revealedAccountsToAccountsAndChainIDsCombination(accounts)
|
||||
becomeAdminPermissions := community.TokenPermissionsByType(protobuf.CommunityTokenPermission_BECOME_ADMIN)
|
||||
becomeMemberPermissions := community.TokenPermissionsByType(protobuf.CommunityTokenPermission_BECOME_MEMBER)
|
||||
becomeTokenMasterPermissions := community.TokenPermissionsByType(protobuf.CommunityTokenPermission_BECOME_TOKEN_MASTER)
|
||||
|
||||
if len(becomeAdminPermissions) > 0 && m.accountsHasAdminPermission(becomeAdminPermissions, accountsAndChainIDs) {
|
||||
return true, true, nil
|
||||
if m.accountsHasPrivilegedPermission(becomeTokenMasterPermissions, accountsAndChainIDs) {
|
||||
return true, protobuf.CommunityMember_ROLE_TOKEN_MASTER, nil
|
||||
}
|
||||
if m.accountsHasPrivilegedPermission(becomeAdminPermissions, accountsAndChainIDs) {
|
||||
return true, protobuf.CommunityMember_ROLE_ADMIN, nil
|
||||
}
|
||||
|
||||
if len(becomeMemberPermissions) > 0 {
|
||||
permissionResponse, err := m.checkPermissionToJoin(becomeMemberPermissions, accountsAndChainIDs, true)
|
||||
permissionResponse, err := m.checkPermissions(becomeMemberPermissions, accountsAndChainIDs, true)
|
||||
if err != nil {
|
||||
return false, false, err
|
||||
return false, protobuf.CommunityMember_ROLE_NONE, err
|
||||
}
|
||||
|
||||
return permissionResponse.Satisfied, false, nil
|
||||
return permissionResponse.Satisfied, protobuf.CommunityMember_ROLE_NONE, nil
|
||||
}
|
||||
|
||||
return true, false, nil
|
||||
return true, protobuf.CommunityMember_ROLE_NONE, nil
|
||||
}
|
||||
|
||||
func (m *Manager) accountsSatisfyPermissionsToJoinChannels(community *Community, accounts []*protobuf.RevealedAccount) (map[string]*protobuf.CommunityChat, error) {
|
||||
@ -1611,7 +1601,7 @@ func (m *Manager) AcceptRequestToJoin(request *requests.AcceptRequestToJoinCommu
|
||||
return nil, err
|
||||
}
|
||||
|
||||
permissionsSatisfied, isAdmin, err := m.accountsSatisfyPermissionsToJoin(community, revealedAccounts)
|
||||
permissionsSatisfied, role, err := m.accountsSatisfyPermissionsToJoin(community, revealedAccounts)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1621,8 +1611,8 @@ func (m *Manager) AcceptRequestToJoin(request *requests.AcceptRequestToJoinCommu
|
||||
}
|
||||
|
||||
memberRoles := []protobuf.CommunityMember_Roles{}
|
||||
if isAdmin {
|
||||
memberRoles = []protobuf.CommunityMember_Roles{protobuf.CommunityMember_ROLE_ADMIN}
|
||||
if role != protobuf.CommunityMember_ROLE_NONE {
|
||||
memberRoles = []protobuf.CommunityMember_Roles{role}
|
||||
}
|
||||
|
||||
pk, err := common.HexToPubkey(dbRequest.PublicKey)
|
||||
@ -1906,7 +1896,7 @@ type AccountChainIDsCombination struct {
|
||||
ChainIDs []uint64 `json:"chainIds"`
|
||||
}
|
||||
|
||||
func (c *CheckPermissionToJoinResponse) calculateSatisfied() {
|
||||
func (c *CheckPermissionsResponse) calculateSatisfied() {
|
||||
if len(c.Permissions) == 0 {
|
||||
c.Satisfied = true
|
||||
return
|
||||
@ -1945,10 +1935,6 @@ func calculateChainIDsSet(accountsAndChainIDs []*AccountChainIDsCombination, req
|
||||
return revealedAccountsChainIDs
|
||||
}
|
||||
|
||||
func (m *Manager) checkPermissionToJoin(permissions []*protobuf.CommunityTokenPermission, accountsAndChainIDs []*AccountChainIDsCombination, shortcircuit bool) (*CheckPermissionToJoinResponse, error) {
|
||||
return m.checkPermissions(permissions, accountsAndChainIDs, shortcircuit)
|
||||
}
|
||||
|
||||
// checkPermissions will retrieve balances and check whether the user has
|
||||
// permission to join the community, if shortcircuit is true, it will stop as soon
|
||||
// as we know the answer
|
||||
@ -4065,11 +4051,11 @@ func revealedAccountsToAccountsAndChainIDsCombination(revealedAccounts []*protob
|
||||
return accountsAndChainIDs
|
||||
}
|
||||
|
||||
func (m *Manager) accountsHasAdminPermission(becomeAdminPermissions []*protobuf.CommunityTokenPermission, accounts []*AccountChainIDsCombination) bool {
|
||||
if len(becomeAdminPermissions) > 0 {
|
||||
permissionResponse, err := m.checkPermissionToJoin(becomeAdminPermissions, accounts, true)
|
||||
func (m *Manager) accountsHasPrivilegedPermission(privilegedPermissions []*protobuf.CommunityTokenPermission, accounts []*AccountChainIDsCombination) bool {
|
||||
if len(privilegedPermissions) > 0 {
|
||||
permissionResponse, err := m.checkPermissions(privilegedPermissions, accounts, true)
|
||||
if err != nil {
|
||||
m.logger.Warn("check admin permission failed: %v", zap.Error(err))
|
||||
m.logger.Warn("check privileged permission failed: %v", zap.Error(err))
|
||||
return false
|
||||
}
|
||||
return permissionResponse.Satisfied
|
||||
@ -4129,3 +4115,51 @@ func (m *Manager) fixupChannelMembers() error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Manager) ReevaluatePrivelegedMember(community *Community, tokenPermissions []*protobuf.CommunityTokenPermission,
|
||||
accountsAndChainIDs []*AccountChainIDsCombination, memberPubKey *ecdsa.PublicKey,
|
||||
privilegedRole protobuf.CommunityMember_Roles, alreadyHasPrivilegedRole bool) (bool, error) {
|
||||
|
||||
hasPrivilegedRolePermissions := len(tokenPermissions) > 0
|
||||
removeCurrentRole := false
|
||||
|
||||
if hasPrivilegedRolePermissions {
|
||||
permissionResponse, err := m.checkPermissions(tokenPermissions, accountsAndChainIDs, true)
|
||||
if err != nil {
|
||||
return alreadyHasPrivilegedRole, err
|
||||
} else if permissionResponse.Satisfied && !alreadyHasPrivilegedRole {
|
||||
_, err = community.AddRoleToMember(memberPubKey, privilegedRole)
|
||||
if err != nil {
|
||||
return alreadyHasPrivilegedRole, err
|
||||
}
|
||||
alreadyHasPrivilegedRole = true
|
||||
} else if !permissionResponse.Satisfied && alreadyHasPrivilegedRole {
|
||||
removeCurrentRole = true
|
||||
alreadyHasPrivilegedRole = false
|
||||
}
|
||||
}
|
||||
|
||||
// Remove privileged role if user does not pass role permissions check or
|
||||
// Community does not have permissions but user has a role
|
||||
if removeCurrentRole || (!hasPrivilegedRolePermissions && alreadyHasPrivilegedRole) {
|
||||
_, err := community.RemoveRoleFromMember(memberPubKey, privilegedRole)
|
||||
if err != nil {
|
||||
return alreadyHasPrivilegedRole, err
|
||||
}
|
||||
alreadyHasPrivilegedRole = false
|
||||
}
|
||||
|
||||
if alreadyHasPrivilegedRole {
|
||||
// Make sure privileged user is added to every channel
|
||||
for channelID := range community.Chats() {
|
||||
if !community.IsMemberInChat(memberPubKey, channelID) {
|
||||
_, err := community.AddMemberToChat(channelID, memberPubKey, []protobuf.CommunityMember_Roles{privilegedRole})
|
||||
if err != nil {
|
||||
return alreadyHasPrivilegedRole, err
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return alreadyHasPrivilegedRole, nil
|
||||
}
|
||||
|
@ -200,14 +200,14 @@ func (s *ManagerSuite) TestRetrieveTokens() {
|
||||
}
|
||||
// Set response to exactly the right one
|
||||
tm.setResponse(chainID, accountChainIDsCombination[0].Address, gethcommon.HexToAddress(contractAddresses[chainID]), int64(1*math.Pow(10, float64(decimals))))
|
||||
resp, err := m.checkPermissionToJoin(permissions, accountChainIDsCombination, false)
|
||||
resp, err := m.checkPermissions(permissions, accountChainIDsCombination, false)
|
||||
s.Require().NoError(err)
|
||||
s.Require().NotNil(resp)
|
||||
s.Require().True(resp.Satisfied)
|
||||
|
||||
// Set response to 0
|
||||
tm.setResponse(chainID, accountChainIDsCombination[0].Address, gethcommon.HexToAddress(contractAddresses[chainID]), 0)
|
||||
resp, err = m.checkPermissionToJoin(permissions, accountChainIDsCombination, false)
|
||||
resp, err = m.checkPermissions(permissions, accountChainIDsCombination, false)
|
||||
s.Require().NoError(err)
|
||||
s.Require().NotNil(resp)
|
||||
s.Require().False(resp.Satisfied)
|
||||
@ -249,7 +249,7 @@ func (s *ManagerSuite) TestRetrieveCollectibles() {
|
||||
// Set response to exactly the right one
|
||||
tokenBalances = []thirdparty.TokenBalance{tokenBalance(tokenID, 1)}
|
||||
cm.setResponse(chainID, accountChainIDsCombination[0].Address, gethcommon.HexToAddress(contractAddresses[chainID]), tokenBalances)
|
||||
resp, err := m.checkPermissionToJoin(permissions, accountChainIDsCombination, false)
|
||||
resp, err := m.checkPermissions(permissions, accountChainIDsCombination, false)
|
||||
s.Require().NoError(err)
|
||||
s.Require().NotNil(resp)
|
||||
s.Require().True(resp.Satisfied)
|
||||
@ -257,7 +257,7 @@ func (s *ManagerSuite) TestRetrieveCollectibles() {
|
||||
// Set balances to 0
|
||||
tokenBalances = []thirdparty.TokenBalance{}
|
||||
cm.setResponse(chainID, accountChainIDsCombination[0].Address, gethcommon.HexToAddress(contractAddresses[chainID]), tokenBalances)
|
||||
resp, err = m.checkPermissionToJoin(permissions, accountChainIDsCombination, false)
|
||||
resp, err = m.checkPermissions(permissions, accountChainIDsCombination, false)
|
||||
s.Require().NoError(err)
|
||||
s.Require().NotNil(resp)
|
||||
s.Require().False(resp.Satisfied)
|
||||
|
@ -264,14 +264,9 @@ func (s *OwnerWithoutCommunityKeyCommunityEventsSuite) TestOwnerPinMessage() {
|
||||
testEventSenderPinMessage(s, community)
|
||||
}
|
||||
|
||||
func (s *OwnerWithoutCommunityKeyCommunityEventsSuite) TestOwnerMintToken() {
|
||||
setUpCommunityAndRoles(s, protobuf.CommunityMember_ROLE_OWNER)
|
||||
// TODO owner test: Mint Tokens (rescticted)
|
||||
}
|
||||
|
||||
func (s *OwnerWithoutCommunityKeyCommunityEventsSuite) TestOwnerAirdropTokens() {
|
||||
setUpCommunityAndRoles(s, protobuf.CommunityMember_ROLE_OWNER)
|
||||
// TODO owner test: Airdrop Tokens (restricted)
|
||||
func (s *OwnerWithoutCommunityKeyCommunityEventsSuite) TestOwnerAddCommunityToken() {
|
||||
community := setUpCommunityAndRoles(s, protobuf.CommunityMember_ROLE_OWNER)
|
||||
testEventSenderAddedCommunityToken(s, community)
|
||||
}
|
||||
|
||||
func (s *OwnerWithoutCommunityKeyCommunityEventsSuite) TestMemberReceiveOwnerEventsWhenControlNodeOffline() {
|
||||
|
@ -188,14 +188,9 @@ func (s *TokenMasterCommunityEventsSuite) TestTokenMasterPinMessage() {
|
||||
testEventSenderPinMessage(s, community)
|
||||
}
|
||||
|
||||
func (s *TokenMasterCommunityEventsSuite) TestTokenMasterMintToken() {
|
||||
setUpCommunityAndRoles(s, protobuf.CommunityMember_ROLE_TOKEN_MASTER)
|
||||
// TODO TokenMaster test: Mint Tokens
|
||||
}
|
||||
|
||||
func (s *TokenMasterCommunityEventsSuite) TestTokenMasterAirdropTokens() {
|
||||
setUpCommunityAndRoles(s, protobuf.CommunityMember_ROLE_TOKEN_MASTER)
|
||||
// TODO TokenMaster test: Airdrop Tokens
|
||||
func (s *TokenMasterCommunityEventsSuite) TestTokenMasterAddCommunityToken() {
|
||||
community := setUpCommunityAndRoles(s, protobuf.CommunityMember_ROLE_TOKEN_MASTER)
|
||||
testEventSenderAddedCommunityToken(s, community)
|
||||
}
|
||||
|
||||
func (s *TokenMasterCommunityEventsSuite) TestMemberReceiveTokenMasterEventsWhenControlNodeOffline() {
|
||||
|
@ -3,6 +3,7 @@ package protocol
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"math/big"
|
||||
|
||||
"github.com/stretchr/testify/suite"
|
||||
|
||||
@ -11,6 +12,7 @@ import (
|
||||
"github.com/status-im/status-go/protocol/communities"
|
||||
"github.com/status-im/status-go/protocol/protobuf"
|
||||
"github.com/status-im/status-go/protocol/requests"
|
||||
"github.com/status-im/status-go/services/wallet/bigint"
|
||||
)
|
||||
|
||||
type CommunityEventsTestsInterface interface {
|
||||
@ -1229,3 +1231,46 @@ func testEventSenderCannotEditBecomeAdminPermission(base CommunityEventsTestsInt
|
||||
s.Require().Error(err)
|
||||
s.Require().Nil(response)
|
||||
}
|
||||
|
||||
func testEventSenderAddedCommunityToken(base CommunityEventsTestsInterface, community *communities.Community) {
|
||||
tokenERC721 := &communities.CommunityToken{
|
||||
CommunityID: community.IDString(),
|
||||
TokenType: protobuf.CommunityTokenType_ERC721,
|
||||
Address: "0x123",
|
||||
Name: "StatusToken",
|
||||
Symbol: "STT",
|
||||
Description: "desc",
|
||||
Supply: &bigint.BigInt{Int: big.NewInt(123)},
|
||||
InfiniteSupply: false,
|
||||
Transferable: true,
|
||||
RemoteSelfDestruct: true,
|
||||
ChainID: 1,
|
||||
DeployState: communities.Deployed,
|
||||
Base64Image: "ABCD",
|
||||
}
|
||||
|
||||
s := base.GetSuite()
|
||||
|
||||
_, err := base.GetEventSender().SaveCommunityToken(tokenERC721, nil)
|
||||
s.Require().NoError(err)
|
||||
|
||||
err = base.GetEventSender().AddCommunityToken(tokenERC721.CommunityID, tokenERC721.ChainID, tokenERC721.Address)
|
||||
s.Require().NoError(err)
|
||||
|
||||
checkTokenAdded := func(response *MessengerResponse) error {
|
||||
modifiedCommmunity, err := getModifiedCommunity(response, community.IDString())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for _, tokenMetadata := range modifiedCommmunity.CommunityTokensMetadata() {
|
||||
if tokenMetadata.Name == tokenERC721.Name {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return errors.New("Token was not found")
|
||||
}
|
||||
|
||||
checkClientsReceivedAdminEvent(base, WaitCommunityCondition, checkTokenAdded)
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ package protocol
|
||||
|
||||
import (
|
||||
"crypto/ecdsa"
|
||||
"math/big"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/suite"
|
||||
@ -11,8 +12,10 @@ import (
|
||||
"github.com/status-im/status-go/eth-node/crypto"
|
||||
"github.com/status-im/status-go/eth-node/types"
|
||||
"github.com/status-im/status-go/protocol/common"
|
||||
"github.com/status-im/status-go/protocol/communities"
|
||||
"github.com/status-im/status-go/protocol/protobuf"
|
||||
"github.com/status-im/status-go/protocol/tt"
|
||||
"github.com/status-im/status-go/services/wallet/bigint"
|
||||
"github.com/status-im/status-go/waku"
|
||||
)
|
||||
|
||||
@ -191,14 +194,30 @@ func (s *AdminCommunityEventsSuite) TestAdminPinMessage() {
|
||||
testEventSenderPinMessage(s, community)
|
||||
}
|
||||
|
||||
func (s *AdminCommunityEventsSuite) TestAdminMintToken() {
|
||||
setUpCommunityAndRoles(s, protobuf.CommunityMember_ROLE_ADMIN)
|
||||
// TODO admin test: Mint Tokens (rescticted)
|
||||
}
|
||||
func (s *AdminCommunityEventsSuite) TestAdminAddCommunityToken() {
|
||||
community := setUpCommunityAndRoles(s, protobuf.CommunityMember_ROLE_ADMIN)
|
||||
|
||||
func (s *AdminCommunityEventsSuite) TestAdminAirdropTokens() {
|
||||
setUpCommunityAndRoles(s, protobuf.CommunityMember_ROLE_ADMIN)
|
||||
// TODO admin test: Airdrop Tokens (restricted)
|
||||
tokenERC721 := &communities.CommunityToken{
|
||||
CommunityID: community.IDString(),
|
||||
TokenType: protobuf.CommunityTokenType_ERC721,
|
||||
Address: "0x123",
|
||||
Name: "StatusToken",
|
||||
Symbol: "STT",
|
||||
Description: "desc",
|
||||
Supply: &bigint.BigInt{Int: big.NewInt(123)},
|
||||
InfiniteSupply: false,
|
||||
Transferable: true,
|
||||
RemoteSelfDestruct: true,
|
||||
ChainID: 1,
|
||||
DeployState: communities.Deployed,
|
||||
Base64Image: "ABCD",
|
||||
}
|
||||
|
||||
_, err := s.admin.SaveCommunityToken(tokenERC721, nil)
|
||||
s.Require().NoError(err)
|
||||
|
||||
err = s.admin.AddCommunityToken(tokenERC721.CommunityID, tokenERC721.ChainID, tokenERC721.Address)
|
||||
s.Require().Error(err)
|
||||
}
|
||||
|
||||
func (s *AdminCommunityEventsSuite) TestMemberReceiveAdminEventsWhenOwnerOffline() {
|
||||
|
@ -3,6 +3,7 @@ package protocol
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"crypto/ecdsa"
|
||||
"errors"
|
||||
"math/big"
|
||||
"sync"
|
||||
@ -898,7 +899,7 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) TestViewChannelPermissions()
|
||||
// in production it will happen automatically, by periodic check
|
||||
community, err = s.owner.communitiesManager.GetByID(community.ID())
|
||||
s.Require().NoError(err)
|
||||
err = s.owner.communitiesManager.ReevaluateMembers(community, true)
|
||||
err = s.owner.communitiesManager.ReevaluateMembers(community)
|
||||
s.Require().NoError(err)
|
||||
|
||||
err = <-waitOnChannelKeyToBeDistributedToBob
|
||||
@ -936,3 +937,246 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) TestViewChannelPermissions()
|
||||
s.Require().Len(response.Messages(), 1)
|
||||
s.Require().Equal(msg.Text, response.Messages()[0].Text)
|
||||
}
|
||||
|
||||
func (s *MessengerCommunitiesTokenPermissionsSuite) testReevaluateMemberPrivilegedRoleInOpenCommunity(permissionType protobuf.CommunityTokenPermission_Type) {
|
||||
community, _ := s.createCommunity()
|
||||
|
||||
createTokenPermission := &requests.CreateCommunityTokenPermission{
|
||||
CommunityID: community.ID(),
|
||||
Type: permissionType,
|
||||
TokenCriteria: []*protobuf.TokenCriteria{
|
||||
&protobuf.TokenCriteria{
|
||||
Type: protobuf.CommunityTokenType_ERC20,
|
||||
ContractAddresses: map[uint64]string{testChainID1: "0x123"},
|
||||
Symbol: "TEST",
|
||||
Amount: "100",
|
||||
Decimals: uint64(18),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
response, err := s.owner.CreateCommunityTokenPermission(createTokenPermission)
|
||||
s.Require().NoError(err)
|
||||
s.Require().NotNil(response)
|
||||
s.Require().Len(response.Communities(), 1)
|
||||
s.Require().True(response.Communities()[0].HasTokenPermissions())
|
||||
|
||||
waitOnCommunityPermissionCreated := s.waitOnCommunitiesEvent(s.owner, func(sub *communities.Subscription) bool {
|
||||
return sub.Community.HasTokenPermissions()
|
||||
})
|
||||
|
||||
err = <-waitOnCommunityPermissionCreated
|
||||
s.Require().NoError(err)
|
||||
|
||||
community, err = s.owner.communitiesManager.GetByID(community.ID())
|
||||
s.Require().NoError(err)
|
||||
s.Require().True(community.HasTokenPermissions())
|
||||
|
||||
s.advertiseCommunityTo(community, s.alice)
|
||||
|
||||
var tokenPermission *protobuf.CommunityTokenPermission
|
||||
for _, tokenPermission = range community.TokenPermissions() {
|
||||
break
|
||||
}
|
||||
|
||||
s.makeAddressSatisfyTheCriteria(testChainID1, aliceAddress1, tokenPermission.TokenCriteria[0])
|
||||
|
||||
// join community as a privileged user
|
||||
s.joinCommunity(community, s.alice, alicePassword, []string{aliceAddress1})
|
||||
|
||||
community, err = s.owner.communitiesManager.GetByID(community.ID())
|
||||
s.Require().NoError(err)
|
||||
s.Require().True(checkRoleBasedOnThePermissionType(permissionType, &s.alice.identity.PublicKey, community))
|
||||
|
||||
// the control node re-evaluates the roles of the participants, checking that the privileged user has not lost his role
|
||||
err = s.owner.communitiesManager.ReevaluateMembers(community)
|
||||
s.Require().NoError(err)
|
||||
community, err = s.owner.communitiesManager.GetByID(community.ID())
|
||||
s.Require().NoError(err)
|
||||
s.Require().True(checkRoleBasedOnThePermissionType(permissionType, &s.alice.identity.PublicKey, community))
|
||||
|
||||
// remove privileged token permission and reevaluate member permissions
|
||||
deleteTokenPermission := &requests.DeleteCommunityTokenPermission{
|
||||
CommunityID: community.ID(),
|
||||
PermissionID: tokenPermission.Id,
|
||||
}
|
||||
|
||||
response, err = s.owner.DeleteCommunityTokenPermission(deleteTokenPermission)
|
||||
s.Require().NoError(err)
|
||||
s.Require().NotNil(response)
|
||||
s.Require().Len(response.Communities(), 1)
|
||||
s.Require().False(response.Communities()[0].HasTokenPermissions())
|
||||
|
||||
community, err = s.owner.communitiesManager.GetByID(community.ID())
|
||||
s.Require().NoError(err)
|
||||
s.Require().False(community.HasTokenPermissions())
|
||||
|
||||
err = s.owner.communitiesManager.ReevaluateMembers(community)
|
||||
s.Require().NoError(err)
|
||||
|
||||
community, err = s.owner.communitiesManager.GetByID(community.ID())
|
||||
s.Require().NoError(err)
|
||||
s.Require().True(community.HasMember(&s.alice.identity.PublicKey))
|
||||
s.Require().False(checkRoleBasedOnThePermissionType(permissionType, &s.alice.identity.PublicKey, community))
|
||||
}
|
||||
|
||||
func (s *MessengerCommunitiesTokenPermissionsSuite) TestReevaluateMemberAdminRoleInOpenCommunity() {
|
||||
s.testReevaluateMemberPrivilegedRoleInOpenCommunity(protobuf.CommunityTokenPermission_BECOME_ADMIN)
|
||||
}
|
||||
|
||||
func (s *MessengerCommunitiesTokenPermissionsSuite) TestReevaluateMemberTokenMasterRoleInOpenCommunity() {
|
||||
s.testReevaluateMemberPrivilegedRoleInOpenCommunity(protobuf.CommunityTokenPermission_BECOME_TOKEN_MASTER)
|
||||
}
|
||||
|
||||
func (s *MessengerCommunitiesTokenPermissionsSuite) testReevaluateMemberPrivilegedRoleInClosedCommunity(permissionType protobuf.CommunityTokenPermission_Type) {
|
||||
community, _ := s.createCommunity()
|
||||
|
||||
createTokenPermission := &requests.CreateCommunityTokenPermission{
|
||||
CommunityID: community.ID(),
|
||||
Type: permissionType,
|
||||
TokenCriteria: []*protobuf.TokenCriteria{
|
||||
&protobuf.TokenCriteria{
|
||||
Type: protobuf.CommunityTokenType_ERC20,
|
||||
ContractAddresses: map[uint64]string{testChainID1: "0x123"},
|
||||
Symbol: "TEST",
|
||||
Amount: "100",
|
||||
Decimals: uint64(18),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
response, err := s.owner.CreateCommunityTokenPermission(createTokenPermission)
|
||||
s.Require().NoError(err)
|
||||
s.Require().NotNil(response)
|
||||
s.Require().Len(response.Communities(), 1)
|
||||
s.Require().True(response.Communities()[0].HasTokenPermissions())
|
||||
|
||||
createTokenMemberPermission := &requests.CreateCommunityTokenPermission{
|
||||
CommunityID: community.ID(),
|
||||
Type: protobuf.CommunityTokenPermission_BECOME_MEMBER,
|
||||
TokenCriteria: []*protobuf.TokenCriteria{
|
||||
&protobuf.TokenCriteria{
|
||||
Type: protobuf.CommunityTokenType_ERC20,
|
||||
ContractAddresses: map[uint64]string{testChainID1: "0x124"},
|
||||
Symbol: "TEST2",
|
||||
Amount: "100",
|
||||
Decimals: uint64(18),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
response, err = s.owner.CreateCommunityTokenPermission(createTokenMemberPermission)
|
||||
s.Require().NoError(err)
|
||||
s.Require().NotNil(response)
|
||||
s.Require().Len(response.Communities(), 1)
|
||||
s.Require().True(response.Communities()[0].HasTokenPermissions())
|
||||
|
||||
waitOnCommunityPermissionCreated := s.waitOnCommunitiesEvent(s.owner, func(sub *communities.Subscription) bool {
|
||||
return len(sub.Community.TokenPermissions()) == 2
|
||||
})
|
||||
|
||||
err = <-waitOnCommunityPermissionCreated
|
||||
s.Require().NoError(err)
|
||||
|
||||
community, err = s.owner.communitiesManager.GetByID(community.ID())
|
||||
s.Require().NoError(err)
|
||||
s.Require().Len(community.TokenPermissions(), 2)
|
||||
|
||||
s.advertiseCommunityTo(community, s.alice)
|
||||
|
||||
var tokenPermission *protobuf.CommunityTokenPermission
|
||||
var tokenMemberPermission *protobuf.CommunityTokenPermission
|
||||
for _, permission := range community.TokenPermissions() {
|
||||
if permission.Type == protobuf.CommunityTokenPermission_BECOME_MEMBER {
|
||||
tokenMemberPermission = permission
|
||||
} else {
|
||||
tokenPermission = permission
|
||||
}
|
||||
}
|
||||
|
||||
s.makeAddressSatisfyTheCriteria(testChainID1, aliceAddress1, tokenPermission.TokenCriteria[0])
|
||||
s.makeAddressSatisfyTheCriteria(testChainID1, aliceAddress1, tokenMemberPermission.TokenCriteria[0])
|
||||
|
||||
// join community as a privileged user
|
||||
s.joinCommunity(community, s.alice, alicePassword, []string{aliceAddress1})
|
||||
|
||||
community, err = s.owner.communitiesManager.GetByID(community.ID())
|
||||
s.Require().NoError(err)
|
||||
s.Require().True(checkRoleBasedOnThePermissionType(permissionType, &s.alice.identity.PublicKey, community))
|
||||
|
||||
// the control node reevaluates the roles of the participants, checking that the privileged user has not lost his role
|
||||
err = s.owner.communitiesManager.ReevaluateMembers(community)
|
||||
s.Require().NoError(err)
|
||||
|
||||
community, err = s.owner.communitiesManager.GetByID(community.ID())
|
||||
s.Require().NoError(err)
|
||||
s.Require().True(checkRoleBasedOnThePermissionType(permissionType, &s.alice.identity.PublicKey, community))
|
||||
|
||||
deleteTokenPermission := &requests.DeleteCommunityTokenPermission{
|
||||
CommunityID: community.ID(),
|
||||
PermissionID: tokenPermission.Id,
|
||||
}
|
||||
|
||||
// remove privileged token permission and reevaluate member permissions
|
||||
response, err = s.owner.DeleteCommunityTokenPermission(deleteTokenPermission)
|
||||
s.Require().NoError(err)
|
||||
s.Require().NotNil(response)
|
||||
s.Require().Len(response.Communities(), 1)
|
||||
s.Require().Len(response.Communities()[0].TokenPermissions(), 1)
|
||||
|
||||
community, err = s.owner.communitiesManager.GetByID(community.ID())
|
||||
s.Require().NoError(err)
|
||||
s.Require().Len(response.Communities()[0].TokenPermissions(), 1)
|
||||
|
||||
err = s.owner.communitiesManager.ReevaluateMembers(community)
|
||||
s.Require().NoError(err)
|
||||
|
||||
community, err = s.owner.communitiesManager.GetByID(community.ID())
|
||||
s.Require().NoError(err)
|
||||
s.Require().True(community.HasMember(&s.alice.identity.PublicKey))
|
||||
s.Require().False(checkRoleBasedOnThePermissionType(permissionType, &s.alice.identity.PublicKey, community))
|
||||
|
||||
// delete member permissions and reevaluate user permissions
|
||||
deleteMemberTokenPermission := &requests.DeleteCommunityTokenPermission{
|
||||
CommunityID: community.ID(),
|
||||
PermissionID: tokenMemberPermission.Id,
|
||||
}
|
||||
|
||||
response, err = s.owner.DeleteCommunityTokenPermission(deleteMemberTokenPermission)
|
||||
s.Require().NoError(err)
|
||||
s.Require().NotNil(response)
|
||||
s.Require().Len(response.Communities(), 1)
|
||||
s.Require().Len(response.Communities()[0].TokenPermissions(), 0)
|
||||
|
||||
community, err = s.owner.communitiesManager.GetByID(community.ID())
|
||||
s.Require().NoError(err)
|
||||
s.Require().Len(response.Communities()[0].TokenPermissions(), 0)
|
||||
|
||||
err = s.owner.communitiesManager.ReevaluateMembers(community)
|
||||
s.Require().NoError(err)
|
||||
|
||||
community, err = s.owner.communitiesManager.GetByID(community.ID())
|
||||
s.Require().NoError(err)
|
||||
s.Require().True(community.HasMember(&s.alice.identity.PublicKey))
|
||||
|
||||
s.Require().False(checkRoleBasedOnThePermissionType(permissionType, &s.alice.identity.PublicKey, community))
|
||||
}
|
||||
|
||||
func (s *MessengerCommunitiesTokenPermissionsSuite) TestReevaluateMemberAdminRoleInClosedCommunity() {
|
||||
s.testReevaluateMemberPrivilegedRoleInClosedCommunity(protobuf.CommunityTokenPermission_BECOME_ADMIN)
|
||||
}
|
||||
|
||||
func (s *MessengerCommunitiesTokenPermissionsSuite) TestReevaluateMemberTokenMasterRoleInClosedCommunity() {
|
||||
s.testReevaluateMemberPrivilegedRoleInClosedCommunity(protobuf.CommunityTokenPermission_BECOME_TOKEN_MASTER)
|
||||
}
|
||||
|
||||
func checkRoleBasedOnThePermissionType(permissionType protobuf.CommunityTokenPermission_Type, member *ecdsa.PublicKey, community *communities.Community) bool {
|
||||
switch permissionType {
|
||||
case protobuf.CommunityTokenPermission_BECOME_ADMIN:
|
||||
return community.IsMemberAdmin(member)
|
||||
case protobuf.CommunityTokenPermission_BECOME_TOKEN_MASTER:
|
||||
return community.IsMemberTokenMaster(member)
|
||||
default:
|
||||
panic("Unknown permission, please, update the test")
|
||||
}
|
||||
}
|
||||
|
@ -1708,7 +1708,7 @@ func (m *Messenger) CreateCommunityTokenPermission(request *requests.CreateCommu
|
||||
if community.IsControlNode() {
|
||||
// check existing member permission once, then check periodically
|
||||
go func() {
|
||||
err := m.communitiesManager.ReevaluateMembers(community, true)
|
||||
err := m.communitiesManager.ReevaluateMembers(community)
|
||||
if err != nil {
|
||||
m.logger.Debug("failed to check member permissions", zap.Error(err))
|
||||
}
|
||||
@ -1740,7 +1740,7 @@ func (m *Messenger) EditCommunityTokenPermission(request *requests.EditCommunity
|
||||
// We do this in a separate routine to not block this function
|
||||
if community.IsControlNode() {
|
||||
go func() {
|
||||
err := m.communitiesManager.ReevaluateMembers(community, true)
|
||||
err := m.communitiesManager.ReevaluateMembers(community)
|
||||
if err != nil {
|
||||
m.logger.Debug("failed to check member permissions", zap.Error(err))
|
||||
}
|
||||
@ -1768,10 +1768,7 @@ func (m *Messenger) DeleteCommunityTokenPermission(request *requests.DeleteCommu
|
||||
// We do this in a separate routine to not block this function
|
||||
if community.IsControlNode() {
|
||||
go func() {
|
||||
becomeAdminPermissions := community.TokenPermissionsByType(protobuf.CommunityTokenPermission_BECOME_ADMIN)
|
||||
|
||||
// Make sure that we remove admins roles if we remove admin permissions
|
||||
err = m.communitiesManager.ReevaluateMembers(community, len(becomeAdminPermissions) == 0)
|
||||
err = m.communitiesManager.ReevaluateMembers(community)
|
||||
if err != nil {
|
||||
m.logger.Debug("failed to check member permissions", zap.Error(err))
|
||||
}
|
||||
|
@ -96,6 +96,7 @@ const (
|
||||
CommunityTokenPermission_BECOME_MEMBER CommunityTokenPermission_Type = 2
|
||||
CommunityTokenPermission_CAN_VIEW_CHANNEL CommunityTokenPermission_Type = 3
|
||||
CommunityTokenPermission_CAN_VIEW_AND_POST_CHANNEL CommunityTokenPermission_Type = 4
|
||||
CommunityTokenPermission_BECOME_TOKEN_MASTER CommunityTokenPermission_Type = 5
|
||||
)
|
||||
|
||||
var CommunityTokenPermission_Type_name = map[int32]string{
|
||||
@ -104,6 +105,7 @@ var CommunityTokenPermission_Type_name = map[int32]string{
|
||||
2: "BECOME_MEMBER",
|
||||
3: "CAN_VIEW_CHANNEL",
|
||||
4: "CAN_VIEW_AND_POST_CHANNEL",
|
||||
5: "BECOME_TOKEN_MASTER",
|
||||
}
|
||||
|
||||
var CommunityTokenPermission_Type_value = map[string]int32{
|
||||
@ -112,6 +114,7 @@ var CommunityTokenPermission_Type_value = map[string]int32{
|
||||
"BECOME_MEMBER": 2,
|
||||
"CAN_VIEW_CHANNEL": 3,
|
||||
"CAN_VIEW_AND_POST_CHANNEL": 4,
|
||||
"BECOME_TOKEN_MASTER": 5,
|
||||
}
|
||||
|
||||
func (x CommunityTokenPermission_Type) String() string {
|
||||
@ -1734,136 +1737,136 @@ func init() {
|
||||
}
|
||||
|
||||
var fileDescriptor_f937943d74c1cd8b = []byte{
|
||||
// 2086 bytes of a gzipped FileDescriptorProto
|
||||
// 2096 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x4f, 0x73, 0x23, 0x47,
|
||||
0x15, 0xcf, 0xe8, 0x8f, 0x2d, 0x3d, 0x49, 0xb6, 0xdc, 0xd9, 0xb5, 0xc7, 0xde, 0x75, 0x56, 0x19,
|
||||
0xa0, 0x70, 0x42, 0xa1, 0x4d, 0x0c, 0x14, 0x5b, 0x09,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0x36, 0x1e, 0x36, 0x0b, 0x68, 0x1f, 0x6e, 0x6b, 0xf6, 0xe0, 0xc4, 0xc6, 0x9d,
|
||||
0x91, 0xed, 0x76, 0x07, 0xce, 0xc8, 0x76, 0x46, 0xcd, 0x62, 0xaa, 0xa1, 0x73, 0xd2, 0xef, 0x39,
|
||||
0xcd, 0x52, 0xaa, 0x61, 0x34, 0x78, 0x6c, 0x3b, 0x6e, 0xbf, 0x33, 0x1c, 0xd9, 0xb8, 0x59, 0xb6,
|
||||
0x7e, 0x55, 0x84, 0xdd, 0xd4, 0x2b, 0xa3, 0xf0, 0x19, 0x0d, 0xfa, 0x54, 0x10, 0x9f, 0x08, 0x82,
|
||||
0x2e, 0x00, 0x79, 0x61, 0x20, 0x22, 0xe2, 0x09, 0x97, 0xf8, 0x7e, 0x44, 0x39, 0x8f, 0x7d, 0x5a,
|
||||
0x3b, 0xfe, 0xf6, 0x0a, 0x9f, 0xe6, 0x76, 0xb7, 0xbb, 0xf1, 0xd6, 0x4e, 0xb2, 0xd3, 0x0e, 0x44,
|
||||
0x34, 0xc7, 0x3b, 0xde, 0x32, 0x1f, 0xb5, 0xa0, 0xe6, 0x53, 0xee, 0x45, 0x6c, 0x2a, 0x58, 0x18,
|
||||
0x28, 0x40, 0x54, 0x71, 0x96, 0x25, 0x43, 0xcf, 0x26, 0xe4, 0x92, 0xc6, 0x88, 0xd0, 0x04, 0x7a,
|
||||
0x0f, 0xaa, 0x42, 0x1e, 0x39, 0x9a, 0x4f, 0xa9, 0x02, 0xc5, 0xd6, 0xf1, 0xdd, 0x75, 0x66, 0x49,
|
||||
0x19, 0xbc, 0x10, 0x47, 0xbb, 0xb0, 0xc1, 0xe7, 0x93, 0xf3, 0x70, 0x6c, 0x96, 0x35, 0xc8, 0x34,
|
||||
0x85, 0x10, 0x94, 0x02, 0x32, 0xa1, 0xe6, 0x86, 0xe2, 0xaa, 0x6f, 0x74, 0x00, 0x15, 0x9f, 0x7a,
|
||||
0x6c, 0x42, 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
|
||||
0x6a, 0x16, 0xad, 0x5f, 0x17, 0xa1, 0xa1, 0x22, 0xd1, 0x8d, 0x98, 0xa0, 0x11, 0x23, 0xe8, 0xc7,
|
||||
0xcf, 0x81, 0x57, 0x7b, 0x61, 0x72, 0x6e, 0xd3, 0x2b, 0xa0, 0xea, 0x1d, 0x28, 0x09, 0x09, 0x8c,
|
||||
0xc2, 0x4b, 0x00, 0x43, 0x49, 0x66, 0x30, 0x51, 0x5c, 0x89, 0x89, 0x52, 0x06, 0x13, 0xbb, 0xb0,
|
||||
0x41, 0x26, 0x32, 0xdd, 0x13, 0xfc, 0x68, 0x4a, 0x96, 0x36, 0x05, 0x32, 0x97, 0xf9, 0xdc, 0xdc,
|
||||
0x68, 0x15, 0x8f, 0x4a, 0xb8, 0xa2, 0x18, 0x3d, 0x9f, 0xa3, 0x7b, 0x50, 0x93, 0xd1, 0x9c, 0x12,
|
||||
0x21, 0x68, 0x14, 0x28, 0x2c, 0x55, 0x31, 0xd0, 0x80, 0x9f, 0x6a, 0x4e, 0x0e, 0x69, 0x15, 0x05,
|
||||
0x9c, 0xff, 0x36, 0xd2, 0xfe, 0x5e, 0x00, 0x33, 0xef, 0x80, 0x05, 0x12, 0xd0, 0x16, 0x14, 0xe2,
|
||||
0x82, 0x5d, 0xc5, 0x05, 0xe6, 0xa3, 0xf7, 0x73, 0x2e, 0xfc, 0xea, 0x3a, 0x17, 0x2e, 0x34, 0xb4,
|
||||
0x33, 0xde, 0xfc, 0x00, 0xb6, 0xb4, 0x27, 0xbc, 0x38, 0x76, 0x66, 0x51, 0x85, 0x76, 0x6f, 0x4d,
|
||||
0x68, 0x71, 0x43, 0xe4, 0xe0, 0xb1, 0x0f, 0x95, 0xf8, 0x1d, 0xe0, 0x66, 0xa9, 0x55, 0x3c, 0xaa,
|
||||
0xe2, 0x4d, 0xfd, 0x10, 0x70, 0x74, 0x08, 0xc0, 0xb8, 0x9b, 0xa0, 0xbf, 0xac, 0xd0, 0x5f, 0x65,
|
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 0xc6, 0x85, 0xb9,
|
||||
0xa9, 0xc3, 0x7c, 0x4e, 0x82, 0x27, 0x8c, 0x0b, 0xe4, 0x00, 0x78, 0x44, 0xd0, 0xcb, 0x30, 0x62,
|
||||
0x54, 0xe6, 0xc3, 0x52, 0x61, 0x58, 0x7d, 0x40, 0xba, 0x41, 0x9f, 0x92, 0xd1, 0x80, 0x1e, 0x80,
|
||||
0x49, 0x22, 0xef, 0x8a, 0x5d, 0x53, 0x77, 0x42, 0x2e, 0x03, 0x2a, 0xc6, 0x2c, 0x78, 0x16, 0x3f,
|
||||
0xcf, 0x55, 0x15, 0x91, 0xdd, 0x78, 0xbd, 0x9f, 0x2e, 0xab, 0x57, 0x1a, 0x3d, 0x82, 0x2d, 0xe2,
|
||||
0x4f, 0x58, 0xe0, 0x72, 0x2a, 0x04, 0x0b, 0x2e, 0xb9, 0x09, 0xca, 0x3f, 0xad, 0x15, 0xd6, 0x74,
|
||||
0xa4, 0xe0, 0x30, 0x96, 0xc3, 0x0d, 0x92, 0x25, 0xd1, 0x97, 0xa0, 0xc1, 0x02, 0x11, 0x85, 0xee,
|
||||
0x84, 0x72, 0x2e, 0x1f, 0xb4, 0x9a, 0x4a, 0xb6, 0xba, 0x62, 0xf6, 0x35, 0x4f, 0x0a, 0x85, 0xb3,
|
||||
0xac, 0x50, 0x5d, 0x0b, 0x29, 0x66, 0x22, 0x74, 0x17, 0xaa, 0x34, 0xf0, 0xa2, 0xf9, 0x54, 0x50,
|
||||
0xdf, 0x6c, 0xe8, 0x14, 0x48, 0x19, 0xb2, 0x64, 0x09, 0x72, 0xc9, 0xcd, 0x2d, 0xe5, 0x51, 0xf5,
|
||||
0x8d, 0x08, 0xec, 0xe8, 0x84, 0xcc, 0xc2, 0x64, 0x5b, 0x79, 0xf5, 0x9b, 0x2f, 0xf0, 0xea, 0x52,
|
||||
0x9a, 0xc7, 0xbe, 0x6d, 0x8a, 0x25, 0x36, 0xfa, 0x11, 0xec, 0x2f, 0x7a, 0x3f, 0xb5, 0xca, 0xdd,
|
||||
0x49, 0xdc, 0x10, 0x98, 0x4d, 0x75, 0x54, 0xeb, 0x45, 0x8d, 0x03, 0xde, 0xf3, 0x72, 0x7c, 0x9e,
|
||||
0xf6, 0x23, 0xef, 0xc0, 0x2d, 0xe2, 0x09, 0x15, 0x3e, 0x8d, 0x79, 0x57, 0x35, 0x5c, 0xe6, 0x8e,
|
||||
0x8a, 0x1d, 0xd2, 0x6b, 0x71, 0x72, 0x74, 0xe5, 0xca, 0xc1, 0x19, 0xd4, 0xb3, 0xc9, 0x92, 0xad,
|
||||
0x94, 0x55, 0x5d, 0x29, 0xef, 0x67, 0x2b, 0x65, 0xae, 0xcf, 0x5b, 0x6a, 0x15, 0x33, 0x45, 0xf4,
|
||||
0xe0, 0x13, 0x80, 0x05, 0x90, 0x57, 0x28, 0xfd, 0x7a, 0x5e, 0xe9, 0xde, 0x0a, 0xa5, 0x72, 0x7f,
|
||||
0x56, 0xe5, 0x67, 0xb0, 0xbd, 0x04, 0xdd, 0x15, 0x7a, 0xdf, 0xcd, 0xeb, 0xbd, 0xb3, 0x4a, 0xaf,
|
||||
0x56, 0x32, 0xcf, 0xea, 0xbe, 0x84, 0xdb, 0x2b, 0x03, 0xb8, 0xe2, 0x84, 0x07, 0xf9, 0x13, 0xac,
|
||||
0x17, 0x97, 0xfc, 0xec, 0xe3, 0xf2, 0x93, 0x4c, 0x2b, 0x99, 0x4b, 0x03, 0x74, 0x02, 0xf7, 0xa6,
|
||||
0x2c, 0x48, 0x00, 0xed, 0x92, 0xf1, 0x38, 0x8d, 0x21, 0x0d, 0xc8, 0xf9, 0x98, 0xfa, 0x71, 0x7b,
|
||||
0x73, 0x67, 0xca, 0x82, 0x18, 0xe2, 0x9d, 0xf1, 0x38, 0x0d, 0x9e, 0x12, 0xb1, 0xfe, 0x5a, 0x80,
|
||||
0x46, 0xce, 0x83, 0xe8, 0x83, 0x45, 0xed, 0xd4, 0x8d, 0xc3, 0x97, 0xd7, 0x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||
0xb8, 0x73, 0xe7, 0xc6, 0x91, 0x23, 0x27, 0x2e, 0x5c, 0xa8, 0xfe, 0x33, 0xa3, 0x19, 0x59, 0xda,
|
||||
0x3f, 0x04, 0xaa, 0x38, 0x69, 0xde, 0xeb, 0xd7, 0xaf, 0x5f, 0xbf, 0xf7, 0x7b, 0xaf, 0xdf, 0x13,
|
||||
0x6c, 0x05, 0xf1, 0x68, 0x34, 0x89, 0x98, 0x60, 0x94, 0x1f, 0x8d, 0x93, 0x58, 0xc4, 0xa8, 0xaa,
|
||||
0x7e, 0xce, 0x27, 0x17, 0x7b, 0xb7, 0x82, 0x2b, 0x22, 0x7c, 0x16, 0xd2, 0x48, 0x30, 0x31, 0xd5,
|
||||
0xcb, 0x7b, 0x75, 0x1a, 0x4d, 0x46, 0x46, 0xd6, 0xb9, 0x86, 0x95, 0x47, 0x09, 0x89, 0x04, 0x7a,
|
||||
0x03, 0xd6, 0x53, 0x4d, 0x53, 0x9f, 0x85, 0xb6, 0x75, 0x60, 0x1d, 0xae, 0xe3, 0x7a, 0xc6, 0xeb,
|
||||
0x84, 0xe8, 0x2e, 0xd4, 0x46, 0x74, 0x74, 0x4e, 0x13, 0xb9, 0x5e, 0x52, 0xeb, 0x55, 0xcd, 0xe8,
|
||||
0x84, 0x68, 0x07, 0xd6, 0xcc, 0x61, 0x76, 0xf9, 0xc0, 0x3a, 0xac, 0xe1, 0x55, 0x49, 0x76, 0x42,
|
||||
0x74, 0x1b, 0x56, 0x82, 0x61, 0x1c, 0x3c, 0xb3, 0x2b, 0x07, 0xd6, 0x61, 0x05, 0x6b, 0xc2, 0xf9,
|
||||
0x63, 0x09, 0x36, 0xdb, 0xa9, 0xee, 0xae, 0x52, 0x82, 0xbe, 0x01, 0x2b, 0x49, 0x3c, 0xa4, 0xdc,
|
||||
0xb6, 0x0e, 0xca, 0x87, 0x1b, 0xc7, 0xf7, 0x8f, 0xd2, 0x7b, 0x1c, 0xcd, 0x49, 0x1e, 0x61, 0x29,
|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xac, 0xde, 0x6f, 0xf4, 0x08, 0x36, 0x48, 0x38, 0x62, 0x91, 0xcf, 0xa9, 0x10,
|
||||
0x2c, 0xba, 0xe4, 0x36, 0x28, 0xff, 0x1c, 0x2c, 0xb0, 0xa6, 0x25, 0x05, 0xfb, 0x46, 0x0e, 0x37,
|
||||
0x48, 0x9e, 0x44, 0x5f, 0x80, 0x06, 0x8b, 0x44, 0x12, 0xfb, 0x23, 0xca, 0xb9, 0x7c, 0xea, 0xea,
|
||||
0x2a, 0x0d, 0xd7, 0x15, 0xb3, 0xab, 0x79, 0x52, 0x28, 0x9e, 0xe4, 0x85, 0xd6, 0xb5, 0x90, 0x62,
|
||||
0xa6, 0x42, 0xf7, 0xa0, 0x46, 0xa3, 0x20, 0x99, 0x8e, 0x05, 0x0d, 0xed, 0x86, 0x4e, 0x8e, 0x8c,
|
||||
0x21, 0x8b, 0x99, 0x20, 0x97, 0xdc, 0xde, 0x50, 0x1e, 0x55, 0xdf, 0x88, 0xc0, 0x96, 0x4e, 0xd5,
|
||||
0x3c, 0x4c, 0x36, 0x95, 0x57, 0xbf, 0xfe, 0x02, 0xaf, 0xce, 0x15, 0x00, 0xe3, 0xdb, 0xa6, 0x98,
|
||||
0x63, 0xa3, 0x1f, 0xc0, 0xee, 0xac, 0x2b, 0x54, 0xab, 0xdc, 0x1f, 0x99, 0x56, 0xc1, 0x6e, 0xaa,
|
||||
0xa3, 0x0e, 0x5e, 0xd4, 0x52, 0xe0, 0x9d, 0xa0, 0xc0, 0xe7, 0x59, 0xa7, 0xf2, 0x0e, 0xdc, 0x26,
|
||||
0x81, 0x50, 0xe1, 0xd3, 0x98, 0xf7, 0x55, 0x2b, 0x66, 0x6f, 0xa9, 0xd8, 0x21, 0xbd, 0x66, 0x92,
|
||||
0xa3, 0x2d, 0x57, 0xf6, 0xce, 0x60, 0x3d, 0x9f, 0x2c, 0xf9, 0x1a, 0x5a, 0xd3, 0x35, 0xf4, 0xed,
|
||||
0x7c, 0x0d, 0x2d, 0x74, 0x80, 0x73, 0x4d, 0x64, 0xae, 0xbc, 0xee, 0x7d, 0x02, 0x30, 0x03, 0xf2,
|
||||
0x02, 0xa5, 0x5f, 0x2d, 0x2a, 0xdd, 0x59, 0xa0, 0x54, 0xee, 0xcf, 0xab, 0xfc, 0x0c, 0x36, 0xe7,
|
||||
0xa0, 0xbb, 0x40, 0xef, 0xbb, 0x45, 0xbd, 0x77, 0x17, 0xe9, 0xd5, 0x4a, 0xa6, 0x79, 0xdd, 0x97,
|
||||
0x70, 0x67, 0x61, 0x00, 0x17, 0x9c, 0xf0, 0xa0, 0x78, 0x82, 0xf3, 0xe2, 0xc7, 0x20, 0xff, 0xec,
|
||||
0xfc, 0x28, 0xd7, 0x64, 0x16, 0xd2, 0x00, 0x9d, 0xc0, 0xfd, 0x31, 0x8b, 0x52, 0x40, 0xfb, 0x64,
|
||||
0x38, 0xcc, 0x62, 0x48, 0x23, 0x72, 0x3e, 0xa4, 0xa1, 0x69, 0x7c, 0xee, 0x8e, 0x59, 0x64, 0x20,
|
||||
0xde, 0x1a, 0x0e, 0xb3, 0xe0, 0x29, 0x11, 0xe7, 0xaf, 0x25, 0x68, 0x14, 0x3c, 0x88, 0x3e, 0x98,
|
||||
0xd5, 0x4e, 0xdd, 0x52, 0x7c, 0x71, 0x89, 0xaf, 0x5f, 0xae, 0x68, 0x96, 0x3e, 0x5f, 0xd1, 0x2c,
|
||||
0xbf, 0x64, 0xd1, 0xbc, 0x0f, 0x75, 0x53, 0x96, 0xd4, 0xec, 0xa4, 0x3b, 0x8e, 0xb4, 0x52, 0xc9,
|
||||
0xd1, 0x69, 0x0f, 0xaa, 0xe3, 0x98, 0x33, 0xd5, 0x28, 0xcb, 0x4a, 0xbc, 0x82, 0x33, 0xfa, 0x7f,
|
||||
0x84, 0x69, 0x27, 0x84, 0xad, 0x1b, 0x20, 0x9a, 0x37, 0xd4, 0xba, 0x61, 0x68, 0xda, 0x34, 0x95,
|
||||
0x8a, 0x8d, 0x74,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 0x64,
|
||||
0x34, 0x56, 0xfb, 0x2b, 0x78, 0xc6, 0x90, 0x87, 0x8a, 0x78, 0xcc, 0x02, 0xe5, 0xde, 0x75, 0xac,
|
||||
0x09, 0xf5, 0x1f, 0x02, 0x99, 0x0e, 0x63, 0x92, 0xe2, 0x25, 0x25, 0xf5, 0x4a, 0x18, 0xb2, 0xe8,
|
||||
0xd2, 0xb8, 0x36, 0x25, 0x65, 0x61, 0xbf, 0x22, 0xfc, 0x4a, 0x39, 0x74, 0x1d, 0xab, 0x6f, 0xe4,
|
||||
0xc0, 0xba, 0xb8, 0x62, 0x49, 0x78, 0x4a, 0x12, 0xe9, 0x07, 0x33, 0xd9, 0x16, 0x78, 0xce, 0xcf,
|
||||
0x61, 0x2f, 0x77, 0x81, 0xd4, 0x2d, 0x69, 0x07, 0x67, 0xc3, 0xda, 0x35, 0x4d, 0x78, 0x5a, 0xd0,
|
||||
0x1b, 0x38, 0x25, 0xe5, 0x79, 0x17, 0x49, 0x3c, 0x32, 0x57, 0x52, 0xdf, 0x72, 0x50, 0x15, 0xb1,
|
||||
0xf9, 0x4b, 0xad, 0x24, 0x62, 0x79, 0x7e, 0x10, 0x47, 0x82, 0x46, 0x62, 0xa0, 0x2e, 0x29, 0xe7,
|
||||
0xc5, 0x75, 0x5c, 0xe0, 0x39, 0xbf, 0xb3, 0x00, 0xdd, 0x34, 0xe0, 0x39, 0x07, 0x7f, 0x04, 0xd5,
|
||||
0xac, 0x43, 0xd5, 0x88, 0xce, 0xb5, 0x10, 0xcb, 0xaf, 0x82, 0xb3, 0x5d, 0xe8, 0x5d, 0xa9, 0x41,
|
||||
0xc9, 0xa4, 0xd5, 0xe3, 0xce, 0x42, 0x0d, 0x38, 0x13, 0x73, 0xfe, 0x6c, 0xc1, 0xfd, 0x9b, 0xba,
|
||||
0x3b, 0x51, 0x48, 0x7f, 0xfa, 0x12, 0xbe, 0xfa, 0xfc, 0x26, 0x6f, 0xc3, 0x6a, 0x7c, 0x71, 0xc1,
|
||||
0xa9, 0x30, 0xde, 0x35, 0x94, 0x8c, 0x02, 0x67, 0x3f, 0xa3, 0xe6, 0xbf, 0x57, 0xf5, 0x3d, 0x8f,
|
||||
0x91, 0x4a, 0x86, 0x11, 0xe7, 0x2f, 0x16, 0xec, 0x2c, 0xb9, 0x05, 0x7a, 0x0c, 0x55, 0x33, 0x4b,
|
||||
0xa5, 0x9d, 0xd9, 0xdb, 0xcf, 0xb3, 0x51, 0x6d, 0x3a, 0x32, 0x84, 0x69, 0xd2, 0x32, 0x05, 0x7b,
|
||||
0x17, 0xd0, 0x28, 0x2c, 0x2d, 0xe8, 0x79, 0x3e, 0x2c, 0xf6, 0x3c, 0x6f, 0xbe, 0xf0, 0xb0, 0xcc,
|
||||
0x2b, 0xb3, 0x1e, 0xe8, 0x61, 0xe3, 0xb3, 0xfa, 0xd1, 0xdb, 0xef, 0xa7, 0x3b, 0xcf, 0x57, 0xd5,
|
||||
0xd7, 0xd7, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x7d, 0x68, 0x3c, 0x26, 0x34, 0x17, 0x00, 0x00,
|
||||
}
|
||||
|
@ -70,6 +70,7 @@ message CommunityTokenPermission {
|
||||
BECOME_MEMBER = 2;
|
||||
CAN_VIEW_CHANNEL = 3;
|
||||
CAN_VIEW_AND_POST_CHANNEL = 4;
|
||||
BECOME_TOKEN_MASTER = 5;
|
||||
}
|
||||
|
||||
string id = 1;
|
||||
|
@ -40,6 +40,7 @@ const (
|
||||
CommunityEvent_COMMUNITY_MEMBER_KICK CommunityEvent_EventType = 14
|
||||
CommunityEvent_COMMUNITY_MEMBER_BAN CommunityEvent_EventType = 15
|
||||
CommunityEvent_COMMUNITY_MEMBER_UNBAN CommunityEvent_EventType = 16
|
||||
CommunityEvent_COMMUNITY_TOKEN_ADD CommunityEvent_EventType = 17
|
||||
)
|
||||
|
||||
var CommunityEvent_EventType_name = map[int32]string{
|
||||
@ -60,6 +61,7 @@ var CommunityEvent_EventType_name = map[int32]string{
|
||||
14: "COMMUNITY_MEMBER_KICK",
|
||||
15: "COMMUNITY_MEMBER_BAN",
|
||||
16: "COMMUNITY_MEMBER_UNBAN",
|
||||
17: "COMMUNITY_TOKEN_ADD",
|
||||
}
|
||||
|
||||
var CommunityEvent_EventType_value = map[string]int32{
|
||||
@ -80,6 +82,7 @@ var CommunityEvent_EventType_value = map[string]int32{
|
||||
"COMMUNITY_MEMBER_KICK": 14,
|
||||
"COMMUNITY_MEMBER_BAN": 15,
|
||||
"COMMUNITY_MEMBER_UNBAN": 16,
|
||||
"COMMUNITY_TOKEN_ADD": 17,
|
||||
}
|
||||
|
||||
func (x CommunityEvent_EventType) String() string {
|
||||
@ -101,6 +104,7 @@ type CommunityEvent struct {
|
||||
MembersAdded map[string]*CommunityMember `protobuf:"bytes,8,rep,name=membersAdded,proto3" json:"membersAdded,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
RejectedRequestsToJoin map[string]*CommunityRequestToJoin `protobuf:"bytes,9,rep,name=rejectedRequestsToJoin,proto3" json:"rejectedRequestsToJoin,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
AcceptedRequestsToJoin map[string]*CommunityRequestToJoin `protobuf:"bytes,10,rep,name=acceptedRequestsToJoin,proto3" json:"acceptedRequestsToJoin,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
TokenMetadata *CommunityTokenMetadata `protobuf:"bytes,11,opt,name=token_metadata,json=tokenMetadata,proto3" json:"token_metadata,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
@ -201,6 +205,13 @@ func (m *CommunityEvent) GetAcceptedRequestsToJoin() map[string]*CommunityReques
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CommunityEvent) GetTokenMetadata() *CommunityTokenMetadata {
|
||||
if m != nil {
|
||||
return m.TokenMetadata
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type CommunityConfig struct {
|
||||
Identity *ChatIdentity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
|
||||
Permissions *CommunityPermissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"`
|
||||
@ -482,66 +493,69 @@ func init() {
|
||||
}
|
||||
|
||||
var fileDescriptor_52ed23dfc73918ab = []byte{
|
||||
// 974 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x5d, 0x6f, 0xdb, 0x36,
|
||||
0x14, 0x9d, 0x63, 0xe7, 0xc3, 0x57, 0x8e, 0xa3, 0xb2, 0x8b, 0xab, 0xb8, 0x6b, 0xe6, 0x7a, 0x7b,
|
||||
0x30, 0x86, 0x21, 0xc5, 0xb2, 0xa1, 0x28, 0xd6, 0x97, 0x29, 0x32, 0x91, 0x2a, 0xa9, 0xe5, 0x8c,
|
||||
0x51, 0x30, 0xb4, 0x2f, 0x04, 0x23, 0xb1, 0x89, 0x96, 0x58, 0xf2, 0x4c, 0xba, 0x80, 0x5f, 0xf7,
|
||||
0x27, 0xf6, 0x32, 0xec, 0x27, 0xf4, 0x37, 0x0e, 0xa2, 0x24, 0x4b, 0x8a, 0x95, 0x74, 0x0f, 0x7b,
|
||||
0x49, 0xc8, 0x7b, 0xce, 0x3d, 0xe7, 0x92, 0xb8, 0xe2, 0x35, 0x74, 0xbc, 0x68, 0x32, 0x99, 0x87,
|
||||
0x81, 0x5c, 0xd0, 0xf9, 0xd4, 0x67, 0x92, 0x1f, 0x4c, 0x67, 0x91, 0x8c, 0xd0, 0x96, 0xfa, 0x77,
|
||||
0x39, 0xff, 0xd0, 0x7d, 0xec, 0x5d, 0x33, 0x49, 0x03, 0x9f, 0x87, 0x32, 0x90, 0x8b, 0x04, 0xee,
|
||||
0x3e, 0xca, 0xd2, 0x02, 0x2e, 0x92, 0x50, 0xff, 0x53, 0x0b, 0xda, 0x56, 0x26, 0x86, 0x3f, 0xf2,
|
||||
0x50, 0xa2, 0x43, 0xd8, 0xcd, 0xe5, 0x79, 0x1c, 0xa2, 0xde, 0x6d, 0xe4, 0xdd, 0x18, 0xb5, 0x5e,
|
||||
0x6d, 0xd0, 0x20, 0x8f, 0xbd, 0x12, 0xdd, 0x8a, 0x21, 0xf4, 0x12, 0x1a, 0x72, 0x31, 0xe5, 0xc6,
|
||||
0x5a, 0xaf, 0x36, 0x68, 0x1f, 0xf6, 0x0f, 0xb2, 0x3a, 0x0e, 0xca, 0xda, 0x07, 0xea, 0xaf, 0xbb,
|
||||
0x98, 0x72, 0xa2, 0xf8, 0x68, 0x08, 0x7a, 0xee, 0xe5, 0x45, 0xe1, 0x87, 0xe0, 0xca, 0xa8, 0xf7,
|
||||
0x6a, 0x03, 0xed, 0x70, 0xaf, 0x42, 0xc3, 0x52, 0x04, 0xb2, 0xe3, 0x95, 0x03, 0x68, 0x04, 0xba,
|
||||
0x8c, 0x6e, 0x78, 0x48, 0xa7, 0x7c, 0x36, 0x09, 0x84, 0x08, 0xa2, 0xd0, 0x68, 0x28, 0x95, 0xaa,
|
||||
0x4a, 0xdc, 0x98, 0x7a, 0xb6, 0x64, 0x92, 0x1d, 0x59, 0x0e, 0xa0, 0xd7, 0xb0, 0xed, 0x31, 0xc9,
|
||||
0xaf, 0xa2, 0xd9, 0x82, 0xfa, 0x4c, 0x32, 0x63, 0x5d, 0x69, 0x75, 0x0a, 0x5a, 0x29, 0x3c, 0x64,
|
||||
0x92, 0x91, 0x96, 0x57, 0xd8, 0xa1, 0x57, 0xd0, 0xf2, 0xae, 0x59, 0x18, 0xf2, 0xdb, 0x24, 0x77,
|
||||
0x43, 0xe5, 0xee, 0x16, 0x72, 0x13, 0x54, 0xa5, 0x6a, 0x5e, 0xbe, 0x41, 0x03, 0xd0, 0x27, 0x7c,
|
||||
0x72, 0xc9, 0x67, 0x54, 0x46, 0x94, 0x79, 0x32, 0x3e, 0xc5, 0x66, 0xaf, 0x36, 0x68, 0x92, 0x76,
|
||||
0x12, 0x77, 0x23, 0x53, 0x45, 0x91, 0x03, 0xad, 0x24, 0x22, 0x4c, 0xdf, 0xe7, 0xbe, 0xb1, 0xd5,
|
||||
0xab, 0x0f, 0xb4, 0xc3, 0xef, 0xee, 0xbd, 0xf5, 0x51, 0x81, 0x8c, 0x43, 0x39, 0x5b, 0x90, 0x52,
|
||||
0x3e, 0xba, 0x85, 0xce, 0x8c, 0xff, 0xce, 0x3d, 0xc9, 0x7d, 0xc2, 0xff, 0x98, 0x73, 0x21, 0x85,
|
||||
0x1b, 0x9d, 0x44, 0x41, 0x68, 0x34, 0x95, 0xf2, 0x4f, 0xf7, 0x2a, 0x93, 0xca, 0xb4, 0xc4, 0xe3,
|
||||
0x1e, 0xcd, 0xd8, 0x8d, 0x79, 0x1e, 0x9f, 0xae, 0xba, 0xc1, 0x67, 0xdc, 0xcc, 0xca, 0xb4, 0xd4,
|
||||
0xad, 0x5a, 0xb3, 0xfb, 0x1e, 0x1e, 0xad, 0x1c, 0x1f, 0xe9, 0x50, 0xbf, 0xe1, 0x0b, 0xd5, 0xd0,
|
||||
0x4d, 0x12, 0x2f, 0xd1, 0x0b, 0x58, 0xff, 0xc8, 0x6e, 0xe7, 0x49, 0x07, 0x57, 0x77, 0x5f, 0x22,
|
||||
0x43, 0x12, 0xde, 0xcf, 0x6b, 0xaf, 0x6a, 0xdd, 0x1b, 0x78, 0xfa, 0xc0, 0x05, 0x54, 0xb8, 0xbc,
|
||||
0x2c, 0xbb, 0xf4, 0x2a, 0x5c, 0x52, 0xa1, 0x44, 0xe7, 0x8e, 0xd9, 0x03, 0xe7, 0xff, 0x7f, 0xcd,
|
||||
0xfa, 0x7f, 0x35, 0xa0, 0xb9, 0xfc, 0x56, 0x91, 0x06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x63, 0x87, 0x6c, 0x7e, 0x08, 0xdb, 0x17, 0xa8, 0x0b, 0x5b, 0xd3,
|
||||
0x48, 0x04, 0x32, 0x9b, 0x7e, 0xeb, 0x64, 0xb9, 0xef, 0xff, 0x5d, 0x03, 0xad, 0x30, 0x78, 0x3e,
|
||||
0x5f, 0xc3, 0x33, 0x80, 0x6c, 0x8c, 0x05, 0x7e, 0x5a, 0x49, 0x33, 0x8d, 0xd8, 0x7e, 0xc9, 0xab,
|
||||
0x5e, 0xf6, 0x42, 0x3f, 0xc0, 0x66, 0x4a, 0x4c, 0x87, 0xf0, 0x93, 0xaa, 0x51, 0x7e, 0xcd, 0x24,
|
||||
0xc9, 0x78, 0xfd, 0x7f, 0x6a, 0xd0, 0x29, 0xbf, 0xf5, 0x22, 0xbb, 0xd2, 0xf8, 0xe0, 0xcb, 0x5f,
|
||||
0x08, 0x69, 0xa9, 0x2d, 0xa2, 0x2d, 0x63, 0xb6, 0x8f, 0x6c, 0x78, 0xae, 0x7e, 0xa6, 0x08, 0x7a,
|
||||
0xc9, 0x04, 0xa7, 0x39, 0xdd, 0xe7, 0xc2, 0x9b, 0x05, 0x53, 0x55, 0xe5, 0x9a, 0xca, 0xdb, 0x4f,
|
||||
0x88, 0x47, 0x4c, 0xf0, 0xa5, 0xdf, 0x30, 0x67, 0xa1, 0x0e, 0x6c, 0x24, 0x0c, 0x75, 0xc1, 0x2d,
|
||||
0x92, 0xee, 0x8e, 0xb6, 0xdf, 0x6b, 0x07, 0x2f, 0x5e, 0x67, 0xc7, 0xb8, 0xdc, 0x50, 0xab, 0x1f,
|
||||
0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x6c, 0xdd, 0xb4, 0xc1, 0x88, 0x09, 0x00, 0x00,
|
||||
// 1010 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x6e, 0xdb, 0x36,
|
||||
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f,
|
||||
0xb3, 0x98, 0x72, 0xa2, 0xf8, 0x68, 0x08, 0x7a, 0xe6, 0xe5, 0x86, 0xc1, 0x07, 0xff, 0xba, 0x53,
|
||||
0xed, 0x55, 0x06, 0xda, 0xd1, 0x7e, 0x89, 0x86, 0xa9, 0x08, 0x64, 0xdb, 0x2d, 0x06, 0xd0, 0x08,
|
||||
0x74, 0x19, 0xde, 0xf2, 0x80, 0x4e, 0xf9, 0x6c, 0xe2, 0x0b, 0xe1, 0x87, 0x41, 0xa7, 0xa6, 0x54,
|
||||
0xca, 0x2a, 0x71, 0x22, 0xea, 0xf9, 0x92, 0x49, 0xb6, 0x65, 0x31, 0x80, 0x5e, 0x43, 0xd3, 0x65,
|
||||
0x92, 0x5f, 0x87, 0xb3, 0x05, 0xf5, 0x98, 0x64, 0x9d, 0x75, 0xa5, 0xd5, 0xce, 0x69, 0x25, 0xf0,
|
||||
0x90, 0x49, 0x46, 0x1a, 0x6e, 0x6e, 0x84, 0x5e, 0x41, 0xc3, 0xbd, 0x61, 0x41, 0xc0, 0xef, 0xe2,
|
||||
0xdc, 0x0d, 0x95, 0xbb, 0x9b, 0xcb, 0x8d, 0x51, 0x95, 0xaa, 0xb9, 0xd9, 0x00, 0x0d, 0x40, 0x9f,
|
||||
0xf0, 0xc9, 0x15, 0x9f, 0x51, 0x19, 0x52, 0xe6, 0xca, 0x68, 0x16, 0x9b, 0xbd, 0xca, 0xa0, 0x4e,
|
||||
0x5a, 0x71, 0xdc, 0x09, 0x0d, 0x15, 0x45, 0x36, 0x34, 0xe2, 0x88, 0x30, 0x3c, 0x8f, 0x7b, 0x9d,
|
||||
0xad, 0x5e, 0x75, 0xa0, 0x1d, 0x7d, 0xb3, 0x72, 0xd5, 0x47, 0x39, 0x32, 0x0e, 0xe4, 0x6c, 0x41,
|
||||
0x0a, 0xf9, 0xe8, 0x0e, 0xda, 0x33, 0xfe, 0x2b, 0x77, 0x25, 0xf7, 0x08, 0xff, 0x6d, 0xce, 0x85,
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a4, 0x8d, 0xd2, 0xf7, 0x92, 0x4a, 0xea, 0x49,
|
||||
0xc4, 0xf2, 0x0a, 0x5e, 0xd5, 0xa2, 0x17, 0xfa, 0x0e, 0x36, 0x13, 0x62, 0xd2, 0xe6, 0xf7, 0xca,
|
||||
0x3e, 0x16, 0x6e, 0x98, 0x24, 0x29, 0xaf, 0xff, 0x57, 0x05, 0xda, 0xc5, 0x6e, 0x22, 0xd2, 0x25,
|
||||
0x8d, 0x26, 0xbe, 0xfc, 0x06, 0x49, 0x4a, 0x6d, 0x10, 0x6d, 0x19, 0xb3, 0x3c, 0x64, 0xc1, 0x73,
|
||||
0xf5, 0x21, 0x24, 0xe8, 0x15, 0x13, 0x9c, 0x66, 0x74, 0x8f, 0x0b, 0x77, 0xe6, 0x4f, 0x55, 0x95,
|
||||
0x6b, 0x2a, 0xef, 0x20, 0x26, 0x1e, 0x33, 0xc1, 0x97, 0x7e, 0xc3, 0x8c, 0x85, 0xda, 0xb0, 0x11,
|
||||
0x33, 0xd4, 0x02, 0x37, 0x48, 0x32, 0x3a, 0x6e, 0xbe, 0xd7, 0x0e, 0x5f, 0xbc, 0x4e, 0xa7, 0x71,
|
||||
0xb5, 0xa1, 0x9e, 0xbe, 0xff, 0x37, 0x00, 0x00, 0xff, 0xff, 0xe3, 0x67, 0xf7, 0x49, 0xea, 0x09,
|
||||
0x00, 0x00,
|
||||
}
|
||||
|
@ -17,6 +17,7 @@ message CommunityEvent {
|
||||
map<string,CommunityMember> membersAdded = 8;
|
||||
map<string,CommunityRequestToJoin> rejectedRequestsToJoin = 9;
|
||||
map<string,CommunityRequestToJoin> acceptedRequestsToJoin = 10;
|
||||
CommunityTokenMetadata token_metadata = 11;
|
||||
|
||||
enum EventType {
|
||||
UNKNOWN = 0;
|
||||
@ -36,6 +37,7 @@ message CommunityEvent {
|
||||
COMMUNITY_MEMBER_KICK = 14;
|
||||
COMMUNITY_MEMBER_BAN = 15;
|
||||
COMMUNITY_MEMBER_UNBAN = 16;
|
||||
COMMUNITY_TOKEN_ADD = 17;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user