status-go/protocol/communities
Pascal Precht 1a2ca21070 Add chainIds to revealed accounts in memberhsip requests
This commit does a few things:

- Adds a migration that adds chainids to communities_request_to_join_revealed_addresses
- Removes RevealedAddress in favor of RevealedAccount which is now a struct that contains the revealed address, as well as the signature and a list of chain IDs on which to check for user funds
- Changes the logic of sending requests to join a community, such that after creating address signatures, the user node will also check which of the addresses has funds on which networks for the community's token permissions, and add the chainds to the RevealedAccount
- Updates checkPermissionToJoin() such that only relevant chainids are used when checking user's funds. Chain IDs are retrieved from RevealedAccounts and matched against token permission criteria chain IDs
2023-06-12 10:49:29 +02:00
..
migrations Handle organisation membership requests 2020-12-23 17:20:55 +01:00
adaptors.go feat: sync `CommunitySettings` across paired devices 2022-06-16 12:45:05 +02:00
community.go Add chainIds to revealed accounts in memberhsip requests 2023-06-12 10:49:29 +02:00
community_categories.go Upgrade linter to 1.50.0 2023-01-13 17:52:03 +00:00
community_categories_test.go Validate no duplicated community chat names 2021-06-03 13:27:49 +02:00
community_test.go fix: remove ourselves from members when leaving community 2022-09-21 08:35:52 +02:00
errors.go Fix chats reseting when a Sync signal comes for communities (#3539) 2023-05-29 13:57:05 -04:00
manager.go Add chainIds to revealed accounts in memberhsip requests 2023-06-12 10:49:29 +02:00
manager_test.go Add chainIds to revealed accounts in memberhsip requests 2023-06-12 10:49:29 +02:00
persistence.go Add chainIds to revealed accounts in memberhsip requests 2023-06-12 10:49:29 +02:00
persistence_test.go feat(CommunityTokenMetadata): Keep token metadata in CommunityDescription 2023-03-07 08:40:47 +01:00
persistence_test_helpers.go feat: add `SpectateCommunity` api 2022-10-06 21:21:37 +02:00
request_to_join.go Add chainIds to revealed accounts in memberhsip requests 2023-06-12 10:49:29 +02:00
request_to_join_test.go Sync Communities (#2253) 2021-08-06 16:40:23 +01:00
request_to_leave.go feat: introduce and distribute RequestToLeave community 2022-08-26 11:25:33 +02:00
utils.go Add chainIds to revealed accounts in memberhsip requests 2023-06-12 10:49:29 +02:00
validator.go feat: community tags (#2708) 2022-06-24 09:40:12 -04:00