status-go/protocol/protobuf
Pascal Precht 2cbced95c5 Check token funds when handling community requests to join
This adds checks to `HandleCommunityRequestToJoin` and
`AcceptRequestToJoinCommunity` that ensure a given user's revealed
wallet addresses own the token funds required by a community.

When community has token permissions of type `BECOME_MEMBER`, the
following happens when the owner receives a request:

1. Upon verifying provided wallet addresses by the requester, the owner
   node accumulates all token funds related to the given wallets that
   match the token criteria in the configured permissions
2. If the requester does not meet the necessary requirements, the
   request to join will be declined. If the requester does have the
   funds, he'll either be automatically accepted to the community, or
   enters the next stage where an owner needs to manually accept the
   request.
3. The the community does not automatically accept users, then the funds
   check will happen again, when the owner tries to manually accept the
   request. If the necessary funds do not exist at this stage, the
   request will be declined
4. Upon accepting, whether automatically or manually, the owner adds the
   requester's wallet addresses to the `CommunityDescription`, such that
   they can be retrieved later when doing periodic checks or when
   permissions have changed.
2023-03-23 08:40:31 +01:00
..
anon_metrics.pb.go Add collapsed community categories 2023-03-14 17:13:21 +00:00
anon_metrics.proto rename status-react to status-mobile 2022-07-17 15:37:14 +02:00
application_metadata_message.pb.go feat(keycard): keycard details are being synced among devices 2023-02-27 16:03:02 +01:00
application_metadata_message.proto feat(keycard): keycard details are being synced among devices 2023-02-27 16:03:02 +01:00
chat_identity.pb.go feat: add and distribute `chatIdentity.FirstMessageTimestamp` 2022-09-09 08:59:39 +02:00
chat_identity.proto feat: add and distribute `chatIdentity.FirstMessageTimestamp` 2022-09-09 08:59:39 +02:00
chat_message.pb.go Add collapsed community categories 2023-03-14 17:13:21 +00:00
chat_message.proto Handle a few edge cases in contact requests 2023-02-08 17:48:09 +00:00
command.pb.go Implement wallet connect session CRUD API 2022-08-19 12:32:00 +01:00
command.proto Sync Communities (#2253) 2021-08-06 16:40:23 +01:00
communities.pb.go Check token funds when handling community requests to join 2023-03-23 08:40:31 +01:00
communities.proto Check token funds when handling community requests to join 2023-03-23 08:40:31 +01:00
contact.pb.go Handle a few edge cases in contact requests 2023-02-08 17:48:09 +00:00
contact.proto Handle a few edge cases in contact requests 2023-02-08 17:48:09 +00:00
contact_verification.pb.go feat(ActivityCenter): Add missing AC notifications for verification requests (#3029) 2022-12-26 08:35:46 +04:00
contact_verification.proto feat(ActivityCenter): Add missing AC notifications for verification requests (#3029) 2022-12-26 08:35:46 +04:00
emoji_reaction.pb.go Implement wallet connect session CRUD API 2022-08-19 12:32:00 +01:00
emoji_reaction.proto Sync Communities (#2253) 2021-08-06 16:40:23 +01:00
enums.pb.go feat(protobuf): introduce `CommunityTokenType` enum 2023-03-03 08:20:51 +01:00
enums.proto feat(protobuf): introduce `CommunityTokenType` enum 2023-03-03 08:20:51 +01:00
group_chat_invitation.pb.go Implement wallet connect session CRUD API 2022-08-19 12:32:00 +01:00
group_chat_invitation.proto Sync Communities (#2253) 2021-08-06 16:40:23 +01:00
membership_update_message.pb.go Add collapsed community categories 2023-03-14 17:13:21 +00:00
membership_update_message.proto feat: Handle image in group chat 2022-09-01 12:19:01 +02:00
pairing.pb.go feat: add verified wallet accounts to community requests 2023-03-22 13:50:25 +01:00
pairing.proto feat: add verified wallet accounts to community requests 2023-03-22 13:50:25 +01:00
pin_message.pb.go Implement wallet connect session CRUD API 2022-08-19 12:32:00 +01:00
pin_message.proto Sync Communities (#2253) 2021-08-06 16:40:23 +01:00
pubkey.go Use goimports instead of gofmt 2020-01-06 10:17:23 +01:00
push_notifications.pb.go Implement wallet connect session CRUD API 2022-08-19 12:32:00 +01:00
push_notifications.proto Sync Communities (#2253) 2021-08-06 16:40:23 +01:00
service.go feat: contact verification request (#2586) 2022-07-05 15:49:44 -04:00
status_update.pb.go Add collapsed community categories 2023-03-14 17:13:21 +00:00
status_update.proto Online Status Indicator (#2408) 2021-10-28 20:51:28 +05:30
sync_settings.pb.go Add collapsed community categories 2023-03-14 17:13:21 +00:00
sync_settings.proto feat: backup profile data to waku and sync them from waku 2022-12-23 15:07:14 +01:00