-
Notifications
You must be signed in to change notification settings - Fork 985
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
feat: add ability to send collectibles from wallet #18473
Conversation
Jenkins BuildsClick to see older builds (19)
|
eb19ad5
to
9077ae9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! @briansztamfater 🚀
@@ -40,25 +40,35 @@ | |||
(update-in [:wallet :ui :send] dissoc :route) | |||
(update-in [:wallet :ui :send] dissoc :loading-suggested-routes?))})) | |||
|
|||
(rf/reg-event-fx :wallet/select-send-account-address | |||
(fn [{:keys [db]} [{:keys [address stack-id]}]] | |||
(rf/reg-event-fx :wallet/clean-send-address |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much simpler 🙌
src/status_im/contexts/wallet/send/transaction_confirmation/view.cljs
Outdated
Show resolved
Hide resolved
52b5e99
to
9f59f1b
Compare
(when (pos? ethereum) | ||
(when (and ethereum (pos? (:amount ethereum))) | ||
[network-amount | ||
{:network :ethereum | ||
:amount (str ethereum " ETH") | ||
:amount (str (:amount ethereum) " " (or (:token-symbol ethereum) "ETH")) | ||
:divider? (or show-arbitrum? show-optimism?) | ||
:theme theme}]) | ||
(when show-optimism? | ||
[network-amount | ||
{:network :optimism | ||
:amount (str optimism " OPT") | ||
:amount (str (:amount optimism) " " (or (:token-symbol optimism) "OPT")) | ||
:divider? show-arbitrum? | ||
:theme theme}]) | ||
(when show-arbitrum? | ||
[network-amount | ||
{:network :arbitrum | ||
:amount (str arbitrum " ARB") | ||
:amount (str (:amount arbitrum) " " (or (:token-symbol arbitrum) "ARB")) | ||
:theme theme}])])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be unnecessary duplication here. I think this can be a loop that includes the networks and which ones needs to be shown
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I totally agree @OmarBasem, we can definitely improve this component, but I think that is beyond the scope of this PR so I'll create an issue to keep track of this improvement!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep let's track this in a separate issue 👍
0ca7668
to
5d8c349
Compare
0efe7c4
to
eb3905e
Compare
58% of end-end tests have passed
Failed tests (18)Click to expandClass TestCommunityMultipleDeviceMergedTwo:
Class TestActivityMultipleDevicePRTwo:
Class TestCommunityMultipleDeviceMerged:
Expected to fail tests (2)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Passed tests (28)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestDeepLinksOneDevice:
Class TestActivityMultipleDevicePR:
Class TestActivityCenterContactRequestMultipleDevicePR:
|
(rf/dispatch [:wallet/clean-scanned-address]) | ||
(rf/dispatch [:wallet/clean-local-suggestions]) | ||
(rf/dispatch [:wallet/clean-send-address]) | ||
(rf/dispatch [:wallet/select-address-tab nil]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can create a single event and use the :fx
key
Hey @briansztamfater , I still haven't received the Goerli collectibles in my account. Since we don't have a reliable way to get collectibles on the Goerli testnet for now, I suggest merging both PRs: PR #18481 and PR #18473. We can retest the collectibles after implementing Issue #18510 or Issue #18507, where the collectibles use a more stable network to be send/received. Thank you for your work! |
Signed-off-by: Brian Sztamfater <brian@status.im>
d655588
to
4cc796a
Compare
fixes #16979 #18260
Summary
This PR adds basic events and UI to send a collectible from our wallet
Platforms
Areas that maybe impacted
Functional
Steps to test
status: ready