status-go/services
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
..
accounts chore(accounts): `type` column from `accounts` table updated 2023-03-07 11:28:06 +01:00
appmetrics feat: make kdf iterations configurable when creating a multiaccount (#2796) 2022-09-27 16:27:20 -04:00
browsers Upgrade linter to 1.50.0 2023-01-13 17:52:03 +00:00
chat feat(CommunityTokenMetadata): Keep token metadata in CommunityDescription 2023-03-07 08:40:47 +01:00
collectibles feat(collectibles): Mint collectibles (ERC-721): 2023-02-13 12:59:55 +01:00
ens feat(collectibles): Mint collectibles (ERC-721): 2023-02-13 12:59:55 +01:00
ext Check token funds when handling community requests to join 2023-03-23 08:40:31 +01:00
gif fix(api): ensure getFavoriteGifs doesn't error when response is empty 2023-02-09 11:02:58 +01:00
local-notifications feat(wallet): keep multi-transactions relation after transaction is complete 2023-03-01 23:34:00 +04:00
mailservers fix: dropping peer in mailserver cycle 2023-01-18 09:28:08 -04:00
peer Fix hash & start moving to lifecycle 2021-07-20 10:57:38 +02:00
permissions feat: make kdf iterations configurable when creating a multiaccount (#2796) 2022-09-27 16:27:20 -04:00
personal feat: Rpc client manage multiple eth client (#2359) 2021-09-22 13:49:20 -04:00
rpcfilters synchronize display name (#2989) 2022-12-29 14:16:19 +08:00
rpcstats Move services to status-node 2021-07-20 10:57:38 +02:00
shhext Remove group members (#3011) 2022-12-10 08:26:51 +04:00
status fix(RequestCommunityInfoFromMailserver): Add useDatabase flag to read/not read community info before requesting mailserver.. 2022-11-30 11:10:13 +01:00
stickers feat(collectibles): Mint collectibles (ERC-721): 2023-02-13 12:59:55 +01:00
subscriptions feat: Rpc client manage multiple eth client (#2359) 2021-09-22 13:49:20 -04:00
typeddata fix: metamask test 2022-10-26 09:39:30 +02:00
updates feat: add service for checking if there are new versions available (#2552) 2022-06-08 08:38:26 -04:00
utils feat(collectibles): Mint collectibles (ERC-721): 2023-02-13 12:59:55 +01:00
wakuext Check token funds when handling community requests to join 2023-03-23 08:40:31 +01:00
wakuv2ext feat: fetch curated communities from smart contract on optimism (#2685) 2022-06-02 08:17:52 -04:00
wallet chore: Improve error logging for OpenSea errors / generic json unmarshalling errors (#3298) 2023-03-20 16:53:39 +01:00
web3provider replace deprecated ioutil.TempDir with os.MkdirTemp 2023-01-03 15:40:11 +01:00