Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(wallet-community)_: Move community minting airdrop to router #6196

Conversation

saledjenic
Copy link
Contributor

@saledjenic saledjenic commented Dec 11, 2024

This is the main PR in moving community-related transactions from communitytokens to wallet service and aligning the sending flow across the app.

Related PRs:

Changes done in this PR:

  • new file contracts/community-tokens/contracts.go added to unify contracts creation

  • the following community related path processors added:

    • CommunityBurnProcessor
    • CommunityDeployAssetsProcessor
    • CommunityDeployCollectiblesProcessor
    • CommunityDeployOwnerTokenProcessor
    • CommunityMintTokensProcessor
    • CommunityRemoteBurnProcessor
    • CommunitySetSignerPubKeyProcessor
  • SendType extended with appropriate options

  • added endpoints to duplicated communitytokens API:

    • StoreDeployedCollectibles
    • StoreDeployedOwnerToken
    • StoreDeployedAssets
  • removed endpoints from duplicated communitytokens API:

    • DeployCollectibles
    • DeployOwnerToken
    • ReTrackOwnerTokenDeploymentTransaction
    • DeployAssets
    • DeployCollectiblesEstimate
    • DeployAssetsEstimate
    • DeployOwnerTokenEstimate
    • EstimateMintTokens
    • EstimateRemoteBurn
    • EstimateBurn
    • EstimateSetSignerPubKey
    • NewOwnerTokenInstance
    • NewCommunityTokenDeployerInstance
    • NewCommunityOwnerTokenRegistryInstance
    • NewCollectiblesInstance
    • NewAssetsInstance
    • MintTokens
    • RemoteBurn
    • GetCollectiblesContractInstance
    • GetAssetContractInstance
    • Burn
    • SetSignerPubKey
  • Path type extended with new property:

    • UsedContractAddress - an address of the contract that will be used for the transaction

@status-im-auto
Copy link
Member

status-im-auto commented Dec 11, 2024

Jenkins Builds

Click to see older builds (208)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 2ab05bf #1 2024-12-11 15:03:09 ~4 min ios 📦zip
✔️ 2ab05bf #1 2024-12-11 15:03:39 ~4 min linux 📦zip
✔️ 2ab05bf #1 2024-12-11 15:04:14 ~5 min android 📦aar
✖️ 2ab05bf #1 2024-12-11 15:04:51 ~5 min tests-rpc 📄log
✔️ 2ab05bf #1 2024-12-11 15:05:16 ~5 min windows 📦zip
✔️ 2ab05bf #1 2024-12-11 15:07:31 ~8 min macos 📦zip
✔️ 2ab05bf #1 2024-12-11 15:09:08 ~9 min macos 📦zip
✖️ 2ab05bf #1 2024-12-11 15:29:55 ~30 min tests 📄log
✔️ 7bc48bf #2 2024-12-12 14:08:08 ~3 min macos 📦zip
✔️ 7bc48bf #2 2024-12-12 14:08:14 ~3 min ios 📦zip
✔️ 7bc48bf #2 2024-12-12 14:08:43 ~4 min windows 📦zip
✔️ 7bc48bf #2 2024-12-12 14:08:49 ~4 min linux 📦zip
✔️ 7bc48bf #2 2024-12-12 14:09:28 ~5 min android 📦aar
✖️ 7bc48bf #2 2024-12-12 14:10:36 ~6 min tests-rpc 📄log
✔️ 7bc48bf #2 2024-12-12 14:13:08 ~8 min macos 📦zip
✖️ 7bc48bf #2 2024-12-12 14:33:41 ~29 min tests 📄log
51fb57d #3 2024-12-18 10:36:19 ~1 min ios 📄log
51fb57d #3 2024-12-18 10:36:33 ~1 min android 📄log
51fb57d #3 2024-12-18 10:36:48 ~1 min macos 📄log
51fb57d #3 2024-12-18 10:36:59 ~2 min linux 📄log
✖️ 51fb57d #3 2024-12-18 10:37:53 ~3 min tests-rpc 📄log
✖️ 51fb57d #3 2024-12-18 10:38:00 ~3 min tests 📄log
51fb57d #3 2024-12-18 10:38:49 ~3 min windows 📄log
51fb57d #3 2024-12-18 10:40:45 ~5 min macos 📄log
✖️ 92cb35c #4 2024-12-18 12:07:19 ~2 min tests 📄log
✔️ 92cb35c #4 2024-12-18 12:08:12 ~3 min macos 📦zip
✔️ 92cb35c #4 2024-12-18 12:08:42 ~4 min ios 📦zip
✔️ 92cb35c #4 2024-12-18 12:08:54 ~4 min windows 📦zip
✔️ 92cb35c #4 2024-12-18 12:08:58 ~4 min linux 📦zip
✔️ 92cb35c #4 2024-12-18 12:09:36 ~5 min android 📦aar
✖️ 92cb35c #4 2024-12-18 12:10:21 ~5 min tests-rpc 📄log
✔️ 92cb35c #4 2024-12-18 12:19:16 ~14 min macos 📦zip
3c8af69 #5 2024-12-23 21:52:01 ~1 min ios 📄log
3c8af69 #5 2024-12-23 21:52:14 ~1 min android 📄log
3c8af69 #5 2024-12-23 21:52:37 ~2 min linux 📄log
3c8af69 #5 2024-12-23 21:52:43 ~2 min macos 📄log
✖️ 3c8af69 #5 2024-12-23 21:53:14 ~2 min tests-rpc 📄log
✖️ 3c8af69 #5 2024-12-23 21:53:30 ~3 min tests 📄log
3c8af69 #5 2024-12-23 21:54:25 ~3 min windows 📄log
3c8af69 #5 2024-12-23 21:56:16 ~5 min macos 📄log
45dd4c2 #6 2024-12-24 08:53:43 ~1 min ios 📄log
45dd4c2 #6 2024-12-24 08:53:59 ~1 min android 📄log
45dd4c2 #6 2024-12-24 08:54:17 ~2 min macos 📄log
✖️ 45dd4c2 #6 2024-12-24 08:54:26 ~2 min tests 📄log
45dd4c2 #6 2024-12-24 08:54:30 ~2 min linux 📄log
45dd4c2 #6 2024-12-24 08:54:35 ~2 min windows 📄log
✖️ 45dd4c2 #6 2024-12-24 08:54:48 ~2 min tests-rpc 📄log
45dd4c2 #6 2024-12-24 09:02:17 ~9 min macos 📄log
✖️ 00a5a5f #7 2024-12-24 09:14:36 ~3 min tests 📄log
✔️ 00a5a5f #7 2024-12-24 09:15:15 ~3 min macos 📦zip
✔️ 00a5a5f #7 2024-12-24 09:15:38 ~4 min ios 📦zip
✔️ 00a5a5f #7 2024-12-24 09:15:46 ~4 min windows 📦zip
✔️ 00a5a5f #7 2024-12-24 09:15:51 ~4 min linux 📦zip
✔️ 00a5a5f #7 2024-12-24 09:17:33 ~6 min android 📦aar
✔️ 00a5a5f #7 2024-12-24 09:18:31 ~7 min tests-rpc 📄log
✔️ 00a5a5f #7 2024-12-24 09:20:20 ~9 min macos 📦zip
✖️ ec9b57d #8 2024-12-25 20:10:04 ~2 min tests 📄log
✔️ ec9b57d #8 2024-12-25 20:11:28 ~3 min macos 📦zip
✔️ ec9b57d #8 2024-12-25 20:12:04 ~4 min windows 📦zip
✔️ ec9b57d #8 2024-12-25 20:12:10 ~4 min linux 📦zip
✔️ ec9b57d #8 2024-12-25 20:12:42 ~5 min ios 📦zip
✔️ ec9b57d #8 2024-12-25 20:12:44 ~5 min android 📦aar
✔️ ec9b57d #8 2024-12-25 20:13:19 ~5 min tests-rpc 📄log
✔️ ec9b57d #8 2024-12-25 20:14:02 ~6 min macos 📦zip
✖️ 2c5b3f4 #9 2024-12-27 10:05:49 ~2 min tests 📄log
✔️ 2c5b3f4 #9 2024-12-27 10:06:56 ~3 min macos 📦zip
✔️ 2c5b3f4 #9 2024-12-27 10:07:22 ~4 min windows 📦zip
✔️ 2c5b3f4 #9 2024-12-27 10:07:30 ~4 min ios 📦zip
✔️ 2c5b3f4 #9 2024-12-27 10:07:37 ~4 min linux 📦zip
✔️ 2c5b3f4 #9 2024-12-27 10:08:12 ~5 min android 📦aar
✔️ 2c5b3f4 #9 2024-12-27 10:08:38 ~5 min tests-rpc 📄log
✔️ 2c5b3f4 #9 2024-12-27 10:09:32 ~6 min macos 📦zip
✖️ 8e14cf3 #10 2024-12-27 10:07:56 ~2 min tests 📄log
✔️ 8e14cf3 #10 2024-12-27 10:10:38 ~3 min macos 📦zip
✔️ 8e14cf3 #10 2024-12-27 10:11:23 ~3 min windows 📦zip
✔️ 8e14cf3 #10 2024-12-27 10:11:49 ~4 min ios 📦zip
✔️ 8e14cf3 #10 2024-12-27 10:12:10 ~4 min linux 📦zip
✔️ 8e14cf3 #10 2024-12-27 10:13:22 ~5 min android 📦aar
✔️ 8e14cf3 #10 2024-12-27 10:14:31 ~5 min tests-rpc 📄log
✔️ 8e14cf3 #10 2024-12-27 10:17:15 ~7 min macos 📦zip
✖️ 851448a #11 2024-12-29 10:49:04 ~2 min tests 📄log
✔️ 851448a #11 2024-12-29 10:50:09 ~3 min macos 📦zip
✔️ 851448a #11 2024-12-29 10:50:22 ~4 min ios 📦zip
✔️ 851448a #11 2024-12-29 10:50:54 ~4 min windows 📦zip
✔️ 851448a #11 2024-12-29 10:50:55 ~4 min linux 📦zip
✔️ 851448a #11 2024-12-29 10:51:22 ~5 min android 📦aar
✔️ 851448a #11 2024-12-29 10:51:57 ~5 min tests-rpc 📄log
✔️ 851448a #11 2024-12-29 10:56:57 ~10 min macos 📦zip
5a05aa6 #12 2024-12-31 00:04:39 ~1 min ios 📄log
5a05aa6 #12 2024-12-31 00:04:53 ~1 min android 📄log
5a05aa6 #12 2024-12-31 00:05:13 ~2 min macos 📄log
✖️ 5a05aa6 #12 2024-12-31 00:05:19 ~2 min tests 📄log
5a05aa6 #12 2024-12-31 00:05:23 ~2 min linux 📄log
5a05aa6 #12 2024-12-31 00:05:30 ~2 min windows 📄log
✖️ 5a05aa6 #12 2024-12-31 00:05:44 ~2 min tests-rpc 📄log
5a05aa6 #12 2024-12-31 00:10:37 ~7 min macos 📄log
78f7468 #13 2024-12-31 09:42:17 ~1 min ios 📄log
78f7468 #13 2024-12-31 09:42:32 ~1 min android 📄log
78f7468 #13 2024-12-31 09:42:50 ~2 min macos 📄log
✖️ 78f7468 #13 2024-12-31 09:42:58 ~2 min tests 📄log
78f7468 #13 2024-12-31 09:43:04 ~2 min linux 📄log
78f7468 #13 2024-12-31 09:43:09 ~2 min windows 📄log
✖️ 78f7468 #13 2024-12-31 09:43:19 ~2 min tests-rpc 📄log
78f7468 #13 2024-12-31 09:45:02 ~4 min macos 📄log
✔️ 2757af4 #14 2024-12-31 10:44:54 ~3 min macos 📦zip
✔️ 2757af4 #14 2024-12-31 10:45:02 ~3 min ios 📦zip
✖️ 2757af4 #14 2024-12-31 10:45:28 ~4 min tests 📄log
✔️ 2757af4 #14 2024-12-31 10:45:45 ~4 min linux 📦zip
✔️ 2757af4 #14 2024-12-31 10:45:51 ~4 min windows 📦zip
✔️ 2757af4 #14 2024-12-31 10:46:31 ~5 min android 📦aar
✖️ 2757af4 #14 2024-12-31 10:47:09 ~5 min tests-rpc 📄log
✔️ 2757af4 #14 2024-12-31 10:55:05 ~13 min macos 📦zip
✖️ 06617de #15 2025-01-08 07:03:24 ~3 min tests 📄log
✔️ 06617de #15 2025-01-08 07:03:40 ~3 min macos 📦zip
✔️ 06617de #15 2025-01-08 07:04:03 ~4 min ios 📦zip
✔️ 06617de #15 2025-01-08 07:04:30 ~4 min linux 📦zip
✔️ 06617de #15 2025-01-08 07:04:55 ~5 min android 📦aar
✖️ 06617de #15 2025-01-08 07:05:33 ~5 min tests-rpc 📄log
✔️ 06617de #15 2025-01-08 07:05:51 ~5 min windows 📦zip
✔️ 06617de #15 2025-01-08 07:06:04 ~6 min macos 📦zip
✔️ 5c0877e #16 2025-01-13 13:47:50 ~4 min ios 📦zip
✔️ 5c0877e #16 2025-01-13 13:48:47 ~5 min macos 📦zip
✔️ 5c0877e #16 2025-01-13 13:49:12 ~5 min android 📦aar
✔️ 5c0877e #16 2025-01-13 13:49:19 ~5 min windows 📦zip
✖️ 5c0877e #16 2025-01-13 13:50:30 ~6 min tests-rpc 📄log
✔️ 5c0877e #16 2025-01-13 13:51:06 ~7 min macos 📦zip
✔️ 5c0877e #16 2025-01-13 13:53:03 ~9 min linux 📦zip
✖️ 5c0877e #16 2025-01-13 14:14:47 ~31 min tests 📄log
✔️ 8c002e3 #17 2025-01-14 12:15:15 ~3 min macos 📦zip
✔️ 8c002e3 #17 2025-01-14 12:15:35 ~4 min ios 📦zip
✔️ 8c002e3 #17 2025-01-14 12:15:52 ~4 min windows 📦zip
✔️ 8c002e3 #17 2025-01-14 12:16:01 ~4 min linux 📦zip
✔️ 8c002e3 #17 2025-01-14 12:16:42 ~5 min macos 📦zip
✔️ 8c002e3 #17 2025-01-14 12:17:27 ~6 min android 📦aar
✖️ 8c002e3 #17 2025-01-14 12:18:26 ~6 min tests-rpc 📄log
✖️ 8c002e3 #17 2025-01-14 12:42:43 ~31 min tests 📄log
✔️ cd83878 #18 2025-01-15 14:13:07 ~4 min macos 📦zip
✔️ cd83878 #18 2025-01-15 14:13:12 ~4 min windows 📦zip
✔️ cd83878 #18 2025-01-15 14:13:19 ~4 min ios 📦zip
✔️ cd83878 #18 2025-01-15 14:13:28 ~4 min linux 📦zip
✔️ cd83878 #18 2025-01-15 14:13:58 ~5 min macos 📦zip
✔️ cd83878 #18 2025-01-15 14:14:46 ~6 min android 📦aar
✖️ cd83878 #18 2025-01-15 14:15:31 ~6 min tests-rpc 📄log
✖️ cd83878 #18 2025-01-15 14:38:48 ~29 min tests 📄log
✔️ 559773a #19 2025-01-16 17:24:03 ~3 min macos 📦zip
✔️ 559773a #19 2025-01-16 17:25:27 ~4 min ios 📦zip
✔️ 559773a #19 2025-01-16 17:25:47 ~5 min macos 📦zip
✔️ 559773a #19 2025-01-16 17:26:00 ~5 min linux 📦zip
✔️ 559773a #19 2025-01-16 17:26:03 ~5 min windows 📦zip
✔️ 559773a #19 2025-01-16 17:26:31 ~6 min android 📦aar
✖️ 559773a #19 2025-01-16 17:26:47 ~6 min tests-rpc 📄log
✖️ 559773a #19 2025-01-16 17:51:13 ~30 min tests 📄log
✔️ 87cf27f #20 2025-01-16 17:30:30 ~3 min macos 📦zip
✔️ 87cf27f #20 2025-01-16 17:30:38 ~3 min windows 📦zip
✔️ 87cf27f #20 2025-01-16 17:31:09 ~4 min ios 📦zip
✔️ 87cf27f #20 2025-01-16 17:31:47 ~4 min linux 📦zip
✔️ 87cf27f #20 2025-01-16 17:32:16 ~5 min macos 📦zip
✔️ 87cf27f #20 2025-01-16 17:33:12 ~6 min android 📦aar
✖️ 87cf27f #20 2025-01-16 17:33:18 ~6 min tests-rpc 📄log
✔️ 87cf27f #20 2025-01-16 18:22:11 ~30 min tests 📄log
3394343 #21 2025-01-17 11:25:33 ~1 min android 📄log
3394343 #21 2025-01-17 11:25:50 ~1 min ios 📄log
3394343 #21 2025-01-17 11:25:55 ~1 min macos 📄log
3394343 #21 2025-01-17 11:26:12 ~1 min linux 📄log
✖️ 3394343 #21 2025-01-17 11:26:41 ~2 min tests-rpc 📄log
3394343 #21 2025-01-17 11:26:42 ~2 min macos 📄log
3394343 #21 2025-01-17 11:27:01 ~2 min windows 📄log
✖️ 3394343 #21 2025-01-17 11:27:01 ~2 min tests 📄log
✔️ 6dcc4bd #22 2025-01-17 11:30:39 ~4 min ios 📦zip
✔️ 6dcc4bd #22 2025-01-17 11:30:47 ~4 min macos 📦zip
✔️ 6dcc4bd #22 2025-01-17 11:31:28 ~4 min windows 📦zip
✔️ 6dcc4bd #22 2025-01-17 11:31:32 ~5 min linux 📦zip
✔️ 6dcc4bd #22 2025-01-17 11:31:46 ~6 min android 📦aar
✔️ 6dcc4bd #22 2025-01-17 11:32:00 ~5 min macos 📦zip
✖️ 6dcc4bd #22 2025-01-17 11:32:48 ~5 min tests-rpc 📄log
✔️ 6dcc4bd #22 2025-01-17 11:56:56 ~29 min tests 📄log
✔️ 6dcc4bd #23 2025-01-17 20:54:14 ~3 min macos 📦zip
✔️ 6dcc4bd #23 2025-01-17 20:54:54 ~4 min ios 📦zip
✔️ 6dcc4bd #23 2025-01-17 20:55:01 ~4 min windows 📦zip
✔️ 6dcc4bd #23 2025-01-17 20:55:43 ~5 min linux 📦zip
✔️ 6dcc4bd #23 2025-01-17 20:55:55 ~5 min macos 📦zip
✔️ 6dcc4bd #23 2025-01-17 20:56:53 ~6 min android 📦aar
✖️ 6dcc4bd #23 2025-01-17 20:57:01 ~6 min tests-rpc 📄log
✔️ 6dcc4bd #24 2025-01-17 20:57:56 ~3 min macos 📦zip
✔️ 6dcc4bd #24 2025-01-17 20:59:03 ~3 min windows 📦zip
✔️ 6dcc4bd #24 2025-01-17 20:59:36 ~4 min ios 📦zip
✔️ 6dcc4bd #24 2025-01-17 21:00:48 ~4 min linux 📦zip
✔️ 6dcc4bd #24 2025-01-17 21:01:08 ~5 min macos 📦zip
✖️ 6dcc4bd #24 2025-01-17 21:01:16 ~4 min tests-rpc 📄log
✔️ 6dcc4bd #24 2025-01-17 21:02:58 ~5 min android 📦aar
✔️ 6dcc4bd #23 2025-01-17 21:20:41 ~29 min tests 📄log
✔️ 6dcc4bd #24 2025-01-17 21:50:46 ~29 min tests 📄log
✔️ d442b09 #25 2025-01-23 18:37:35 ~15 min ios 📦zip
✔️ d442b09 #25 2025-01-23 19:04:53 ~11 min android 📦aar
✔️ d442b09 #25 2025-01-23 21:32:46 ~31 min tests 📄log
✖️ d442b09 #25 2025-01-23 23:20:53 ~6 min tests-rpc 📄log
✔️ d442b09 #25 2025-01-24 10:49:43 ~6 min linux 📦zip
✔️ d442b09 #25 2025-01-24 11:20:52 ~5 min macos 📦zip
✔️ d442b09 #25 2025-01-24 11:25:03 ~6 min macos 📦zip
✔️ d442b09 #25 2025-01-24 13:07:28 ~8 min windows 📦zip
✔️ e958ef0 #26 2025-01-27 10:31:41 ~5 min macos 📦zip
✔️ e958ef0 #26 2025-01-27 10:32:12 ~5 min linux 📦zip
✔️ e958ef0 #26 2025-01-27 10:32:36 ~5 min windows 📦zip
✔️ e958ef0 #26 2025-01-27 10:32:37 ~6 min macos 📦zip
✔️ e958ef0 #26 2025-01-27 10:33:02 ~6 min android 📦aar
✖️ e958ef0 #26 2025-01-27 10:34:34 ~7 min tests-rpc 📄log
✔️ e958ef0 #26 2025-01-27 10:34:55 ~8 min ios 📦zip
✔️ e958ef0 #26 2025-01-27 10:59:19 ~32 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 45fb56c #27 2025-01-29 10:43:04 ~4 min macos 📦zip
✔️ 45fb56c #27 2025-01-29 10:43:17 ~4 min ios 📦zip
✔️ 45fb56c #27 2025-01-29 10:43:56 ~5 min linux 📦zip
✔️ 45fb56c #27 2025-01-29 10:43:59 ~5 min macos 📦zip
✔️ 45fb56c #27 2025-01-29 10:44:34 ~5 min windows 📦zip
✔️ 45fb56c #27 2025-01-29 10:44:35 ~5 min android 📦aar
✖️ 45fb56c #27 2025-01-29 10:44:50 ~5 min tests-rpc 📄log
✔️ 45fb56c #27 2025-01-29 11:10:07 ~31 min tests 📄log
✔️ 800dece #28 2025-01-29 15:47:46 ~3 min macos 📦zip
✔️ 800dece #28 2025-01-29 15:48:18 ~3 min windows 📦zip
✔️ 800dece #28 2025-01-29 15:49:28 ~5 min macos 📦zip
✔️ 800dece #28 2025-01-29 15:49:31 ~5 min linux 📦zip
✔️ 800dece #28 2025-01-29 15:49:58 ~5 min ios 📦zip
✔️ 800dece #28 2025-01-29 15:50:30 ~6 min android 📦aar
✖️ 800dece #28 2025-01-29 15:50:40 ~6 min tests-rpc 📄log
✔️ 800dece #28 2025-01-29 16:14:15 ~29 min tests 📄log

@saledjenic
Copy link
Contributor Author

Next step is to remove the code below and related functions, that should be on the wallet service to take care of transactions.

image

@saledjenic saledjenic changed the title Move community minting airdrop to router chore(wallet-community)_: Move community minting airdrop to router Dec 11, 2024
@saledjenic saledjenic force-pushed the move-community-minting-airdrop-to-router branch 5 times, most recently from 45dd4c2 to 00a5a5f Compare December 24, 2024 09:10
@saledjenic saledjenic force-pushed the move-community-minting-airdrop-to-router branch 6 times, most recently from 78f7468 to 2757af4 Compare December 31, 2024 10:40
@saledjenic saledjenic force-pushed the move-community-minting-airdrop-to-router branch 3 times, most recently from 5c0877e to 8c002e3 Compare January 14, 2025 12:11
@saledjenic saledjenic force-pushed the move-community-minting-airdrop-to-router branch 3 times, most recently from 559773a to 87cf27f Compare January 16, 2025 17:26
@saledjenic saledjenic requested review from a team January 16, 2025 18:47
@saledjenic saledjenic requested review from a team, iurimatias and jrainville and removed request for a team January 16, 2025 18:47
@saledjenic saledjenic marked this pull request as ready for review January 16, 2025 18:47
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 21.73489% with 803 lines in your changes missing coverage. Please review.

Project coverage is 61.86%. Comparing base (587ca54) to head (800dece).

Files with missing lines Patch % Lines
...s/wallet/requests/router_input_community_params.go 0.00% 134 Missing ⚠️
...t/router/pathprocessor/processor_community_burn.go 6.10% 123 Missing ⚠️
...rocessor/processor_community_deploy_owner_token.go 8.08% 91 Missing ⚠️
...r/pathprocessor/processor_community_mint_tokens.go 10.81% 66 Missing ⚠️
services/wallet/router/router.go 57.03% 42 Missing and 16 partials ⚠️
...pathprocessor/processor_community_deploy_assets.go 14.28% 48 Missing ⚠️
...ocessor/processor_community_deploy_collectibles.go 14.28% 48 Missing ⚠️
...r/pathprocessor/processor_community_remote_burn.go 15.09% 45 Missing ⚠️
services/communitytokens/service.go 21.42% 43 Missing and 1 partial ⚠️
...rocessor/processor_community_set_signer_pub_key.go 16.00% 42 Missing ⚠️
... and 13 more

❌ Your patch status has failed because the patch coverage (21.73%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@                                   Coverage Diff                                    @@
##           move-community-minting-airdrop-to-router-pre-step-2    #6196       +/-   ##
========================================================================================
+ Coverage                                                     0   61.86%   +61.86%     
========================================================================================
  Files                                                        0      849      +849     
  Lines                                                        0   111406   +111406     
========================================================================================
+ Hits                                                         0    68918    +68918     
- Misses                                                       0    34514    +34514     
- Partials                                                     0     7974     +7974     
Flag Coverage Δ
functional 21.68% <19.59%> (?)
unit 60.28% <15.78%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
node/get_status_node.go 51.46% <ø> (ø)
node/status_node_services.go 71.19% <100.00%> (ø)
protocol/communities/manager.go 66.06% <ø> (ø)
services/ext/service.go 28.19% <100.00%> (ø)
services/wallet/activity/activity_v2.go 74.01% <100.00%> (ø)
services/wallet/router/pathprocessor/errors.go 100.00% <ø> (ø)
services/wallet/service.go 89.59% <100.00%> (ø)
api/geth_backend.go 54.32% <75.00%> (ø)
services/wallet/responses/router_transactions.go 75.60% <0.00%> (ø)
services/wallet/routeexecution/manager.go 68.93% <60.00%> (ø)
... and 20 more

... and 819 files with indirect coverage changes

@jrainville
Copy link
Member

Could you change the base to be on top of #6261, that way we don't have to review that commit twice. Thanks

@saledjenic saledjenic changed the base branch from develop to move-community-minting-airdrop-to-router-pre-step-1 January 17, 2025 20:50
@saledjenic saledjenic changed the base branch from move-community-minting-airdrop-to-router-pre-step-1 to move-community-minting-airdrop-to-router-pre-step-2 January 17, 2025 20:50
@saledjenic saledjenic force-pushed the move-community-minting-airdrop-to-router-pre-step-2 branch from 3394343 to 37aeb40 Compare January 23, 2025 14:36
@saledjenic saledjenic force-pushed the move-community-minting-airdrop-to-router branch from 6dcc4bd to d442b09 Compare January 23, 2025 14:41
@saledjenic saledjenic force-pushed the move-community-minting-airdrop-to-router-pre-step-2 branch from 37aeb40 to 68b2bae Compare January 27, 2025 10:25
@saledjenic saledjenic force-pushed the move-community-minting-airdrop-to-router branch from d442b09 to e958ef0 Compare January 27, 2025 10:26
Copy link
Collaborator

@igor-sirotin igor-sirotin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am sorry @saledjenic. I'm approving, but I didn't really read the code.
I've never seen this community tokens code before, neither I know the wallet code. Investigating huge changes in the code that's new to me makes no sense. I will spend too much time and doubt I'll find a single bug (I tried though).


func NewCommunityTokensContractMakerMaker(client rpc.ClientInterface) (*CommunityTokensContractMaker, error) {
if client == nil {
return nil, errors.New("could not initialize CommunityTokensContractMaker with an rpc client")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return nil, errors.New("could not initialize CommunityTokensContractMaker with an rpc client")
return nil, errors.New("rpc client is required")

@@ -142,7 +142,7 @@ func (s *Service) handleWalletEvent(event walletevent.Event) {
errorStr = tokenErr.Error()
}

signal.SendCommunityTokenTransactionStatusSignal(string(pendingTransaction.Type), p.Status == transactions.Success, pendingTransaction.Hash,
signal.SendCommunityTokenTransactionStatusSignal(0, p.Status == transactions.Success, pendingTransaction.Hash,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is 0? Can we please define this as constant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, that's most likely due to selecting lines that will go to this PR. You can see that it looks differently in the follow-up PR, here https://github.com/status-im/status-go/pull/6263/files#diff-e86ab0fc741a1f8cf5d8ac362ce33a75e1eaff3fc2bf142671291cccc5da087cR142

Comment on lines 195 to 203
var toAddress common.Address
if tx.To() != nil {
toAddress = *tx.To()
} else {
toAddr := crypto.CreateAddress(types.Address(from), tx.Nonce())
toAddress = common.Address(toAddr)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a comment to the code why we do this?
Maybe it's because I'm not from the wallet world, but I don't get the logic.

@saledjenic saledjenic force-pushed the move-community-minting-airdrop-to-router-pre-step-2 branch from 68b2bae to 587ca54 Compare January 29, 2025 10:22
…outer

- new file `contracts/community-tokens/contracts.go` added to unify contracts creation

- the following community related path processors added:
- `CommunityBurnProcessor`
- `CommunityDeployAssetsProcessor`
- `CommunityDeployCollectiblesProcessor`
- `CommunityDeployOwnerTokenProcessor`
- `CommunityMintTokensProcessor`
- `CommunityRemoteBurnProcessor`
- `CommunitySetSignerPubKeyProcessor`

- `SendType` extended with appropriate options

- added endpoints to duplicated `communitytokens` api:
- `StoreDeployedCollectibles`
- `StoreDeployedOwnerToken`
- `StoreDeployedAssets`

- removed endpoints from duplicated `communitytokens` api:
- `DeployCollectibles`
- `DeployOwnerToken`
- `ReTrackOwnerTokenDeploymentTransaction`
- `DeployAssets`
- `DeployCollectiblesEstimate`
- `DeployAssetsEstimate`
- `DeployOwnerTokenEstimate`
- `EstimateMintTokens`
- `EstimateRemoteBurn`
- `EstimateBurn`
- `EstimateSetSignerPubKey`
- `NewOwnerTokenInstance`
- `NewCommunityTokenDeployerInstance`
- `NewCommunityOwnerTokenRegistryInstance`
- `NewCollectiblesInstance`
- `NewAssetsInstance`
- `MintTokens`
- `RemoteBurn`
- `GetCollectiblesContractInstance`
- `GetAssetContractInstance`
- `Burn`
- `SetSignerPubKey`

- `Path` type extended with new property:
- `UsedContractAddress` - an address of the contract that will be used for the transaction
@saledjenic saledjenic force-pushed the move-community-minting-airdrop-to-router branch from e958ef0 to 45fb56c Compare January 29, 2025 10:38
@@ -483,13 +121,9 @@ func (api *API) SafeGetOwnerTokenAddress(ctx context.Context, chainID uint64, co
return api.s.SafeGetOwnerTokenAddress(ctx, chainID, communityID)
}

func (api *API) SetSignerPubKey(ctx context.Context, chainID uint64, contractAddress string, txArgs wallettypes.SendTxArgs, password string, newSignerPubKey string) (string, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see this disappeared, was it not used in the client?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dlipicar correct, it's not used as an explicit API endpoint but goes over the router now.

This is a breaking change which removes `communitytokens` package.

This commit removes old `communitytokens` package, cause previously added `communitytokensv2` package,
which is in use now, will be renamed to `communitytokens` in next commit.
This is a breaking change which renames `communitytokensv2` package to `communitytokens`.
@saledjenic saledjenic merged commit 805e77f into move-community-minting-airdrop-to-router-pre-step-2 Jan 29, 2025
2 of 10 checks passed
Copy link

Looks like you have BREAKING CHANGES in your PR.
Please make sure to follow 💔How to introduce breaking changes guide:

Check-list

@saledjenic saledjenic deleted the move-community-minting-airdrop-to-router branch January 29, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants