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

[LW 10170] Store own addresses from all wallets and accounts #1033

Conversation

lucas-barros
Copy link

@lucas-barros lucas-barros commented Apr 5, 2024

Checklist


Proposed solution

Store all wallets addresses in each wallet repository metadata

Testing

Account or wallet needs to be activated at least once before making a transaction.
Make transactions between different accounts or wallets and see that receiving addresses is correctly tagged as "own".

Screenshots

Attach screenshots here if implementation involves some UI changes

@lucas-barros lucas-barros self-assigned this Apr 5, 2024
@lucas-barros lucas-barros marked this pull request as ready for review April 5, 2024 17:28
@lucas-barros lucas-barros force-pushed the feat/lw-10170-store-own-addresses-from-all-wallets-and-accounts branch from 143c19f to e2f2126 Compare April 5, 2024 18:11
Copy link

github-actions bot commented Apr 5, 2024

Allure report

allure-report-publisher generated test report!

smokeTests: ✅ test report for 1b6b1ae6

passed failed skipped flaky total result
Total 27 0 0 0 27

@lucas-barros lucas-barros force-pushed the feat/lw-10170-store-own-addresses-from-all-wallets-and-accounts branch from e2f2126 to f980550 Compare April 5, 2024 20:16
@coveralls
Copy link

coveralls commented Apr 5, 2024

Coverage Status

Changes unknown
when pulling 7a82ecc5c6c0cb7b50c2b5fc5feb2ee7471f1ebb on feat/lw-10170-store-own-addresses-from-all-wallets-and-accounts
into ** on feat/lw-10061-flag-addresses-as-own-or-foreign**.

Copy link
Contributor

@VanessaPC VanessaPC left a comment

Choose a reason for hiding this comment

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

Nice work! Left a couple of comments but it works great.

walletId: activeWallet.walletId,
metadata: {
...wallet.metadata,
addresses: [...addresses]
Copy link
Member

@DominikGuzei DominikGuzei Apr 8, 2024

Choose a reason for hiding this comment

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

Maybe addresses is a bit too generic for the metadata section of the active wallet? (i think this could easily be misinterpreted as only the active wallets addresses). What about allWalletsAddresses or something more descriptive?

Copy link
Author

Choose a reason for hiding this comment

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

Makes sense, updated here: 3d29a04

@DominikGuzei DominikGuzei force-pushed the feat/lw-10061-flag-addresses-as-own-or-foreign branch 4 times, most recently from 581cc5e to 95b43a8 Compare April 9, 2024 12:39
@lucas-barros lucas-barros force-pushed the feat/lw-10170-store-own-addresses-from-all-wallets-and-accounts branch 2 times, most recently from 25e5f76 to 29f1e84 Compare April 9, 2024 13:17
@DominikGuzei DominikGuzei force-pushed the feat/lw-10061-flag-addresses-as-own-or-foreign branch 2 times, most recently from efc5083 to 07aac21 Compare April 10, 2024 09:45
@lucas-barros lucas-barros force-pushed the feat/lw-10170-store-own-addresses-from-all-wallets-and-accounts branch 2 times, most recently from 3931828 to fb4f957 Compare April 11, 2024 11:47
@VanessaPC
Copy link
Contributor

This looks good to me @lucas-barros , great work!

});
});

it('should not save duplicated addresses', () => {
Copy link
Member

Choose a reason for hiding this comment

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

isn't this already tested in the previous case?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, you're right!

@DominikGuzei
Copy link
Member

re-approved 👍

@lucas-barros lucas-barros force-pushed the feat/lw-10170-store-own-addresses-from-all-wallets-and-accounts branch from fb4f957 to 58a32a4 Compare April 11, 2024 16:54
@DominikGuzei DominikGuzei force-pushed the feat/lw-10061-flag-addresses-as-own-or-foreign branch 2 times, most recently from 3e39c9e to b1f7f45 Compare April 19, 2024 15:36
@lucas-barros lucas-barros force-pushed the feat/lw-10170-store-own-addresses-from-all-wallets-and-accounts branch from 58a32a4 to e28823f Compare April 19, 2024 16:29
Base automatically changed from feat/lw-10061-flag-addresses-as-own-or-foreign to main April 19, 2024 16:36
@lucas-barros lucas-barros force-pushed the feat/lw-10170-store-own-addresses-from-all-wallets-and-accounts branch from e28823f to 1b6b1ae Compare April 19, 2024 16:43
Copy link

sonarcloud bot commented Apr 19, 2024

@lucas-barros lucas-barros merged commit dc5f222 into main Apr 23, 2024
11 of 12 checks passed
@lucas-barros lucas-barros deleted the feat/lw-10170-store-own-addresses-from-all-wallets-and-accounts branch April 23, 2024 14:10
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.

4 participants