status-go/services
Pascal Precht e8bac916ec !refactor: introduce `SaveCommunityToken()` and change `AddCommunityToken()`
**This is a breaking change!**

Prior to this commit we had `AddCommunityToken(token *communities,
croppedImage CroppedImage)` that we used to

1. add a `CommunityToken` to the user's database and
2. to create a `CommunityTokenMetadata` from it which is then added to
   the community's `CommunityDescription` and published to its members

However, I've then discovered that we need to separate these two things,
such that we can deploy a community token, then add it to the database
only for tracking purposes, **then** add it to the community description
(and propagate to members) once we know that the deploy tx indeed went
through.

To implement this, this commit introduces a new API
`SaveCommunityToken(token *communities.CommunityToken, croppedImage
CroppedImage)` which adds the token to the database only and doesn't
touch the community description.

The `AddCommunityToken` API is then changed that it's exclusively used
for adding an already saved `CommunityToken` to the community
description so it can be published to members. Hence, the signature is
now `AddCommunityToken(communityID string, chainID int, address
string)`, which makes this a breaking change.

Clients that used `AddCommunityToken()` before now need to ensure that
they first call `SaveCommunityToken()` as `AddCommunityToken()` will
fail otherwise.
2023-07-26 14:45:02 +02:00
..
accounts fix: function name change 2023-07-26 08:23:55 +02: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: store check channel permission responses 2023-06-27 12:13:59 +02:00
collectibles fix(Collectibles): Trigger transaction event when creating transaction 2023-07-18 16:21:20 +02:00
ens feat(wallet): Move pending transactions to `transactions` module. 2023-07-11 16:07:42 +02:00
ext !refactor: introduce `SaveCommunityToken()` and change `AddCommunityToken()` 2023-07-26 14:45:02 +02: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) extract json blobs and add custom migration support 2023-06-08 13:54:40 +02: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 feat(wallet): Move pending transactions to `transactions` module. 2023-07-11 16:07:42 +02: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 fix: review comments applied 2023-07-25 18:11:05 +02: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 Allow setting up wallet with new config 2023-05-19 13:23:21 +01:00
wakuv2ext feat: fetch curated communities from smart contract on optimism (#2685) 2022-06-02 08:17:52 -04:00
wallet feat(wallet) chain id multi-transaction filtering 2023-07-26 13:54:55 +02:00
web3provider feat(wallet): Move pending transactions to `transactions` module. 2023-07-11 16:07:42 +02:00