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

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

saledjenic
Copy link
Contributor

@saledjenic saledjenic commented Dec 11, 2024

This PR is about moving community-related txs to the wallet router and aligning the sending flow across the app.

The second commit just duplicated the current communitytokens package and all changes in this PR are done based on that duplicated package.

Once all is done, clients adapted to these changes and tested will be another PR about removing old package.

Changes done here:

  • 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 (40)
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
Commit #️⃣ Finished (UTC) Duration Platform Result
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

@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 2 times, most recently from 51fb57d to 92cb35c Compare December 18, 2024 12:04
…quests package

`DeploymentParameters` and `DeploymentDetails` types moved from `communitytokens` package
to `requests` of the wallet service.
@saledjenic saledjenic force-pushed the move-community-minting-airdrop-to-router branch 2 times, most recently from 3c8af69 to 45dd4c2 Compare December 24, 2024 08:51
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants