-
Notifications
You must be signed in to change notification settings - Fork 859
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(wallet): inject coingecko id for custom tokens #19489
Conversation
A Storybook has been deployed to preview UI for the latest push |
providesTags: (res, err, { chainId, contractAddress }) => | ||
err | ||
? ['CoingeckoId', 'UNKNOWN_ERROR'] | ||
: [{ type: 'CoingeckoId', id: `${chainId}-${contractAddress}` }] | ||
}), |
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.
Do we need providesTags sections for this endpoint?
afaik it only makes sense if there are multiple endpoints dealing with same 'entity' but we have only one
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.
We will want a tag for this so we can invalidate a coingecko id for a token
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.
iOS ++; opened https://github.com/brave/brave-ios/issues/7808 to handle Coingecko ID auto-fill on iOS.
887c94d
to
0456fc4
Compare
A Storybook has been deployed to preview UI for the latest push |
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.
wallet core lgtm
components/brave_wallet_ui/components/shared/add-custom-token-form/add-custom-token-form.tsx
Show resolved
Hide resolved
components/brave_wallet_ui/common/slices/endpoints/coingecko-endpoints.ts
Outdated
Show resolved
Hide resolved
components/brave_wallet_ui/common/slices/endpoints/coingecko-endpoints.ts
Outdated
Show resolved
Hide resolved
components/brave_wallet_ui/common/slices/endpoints/coingecko-endpoints.ts
Outdated
Show resolved
Hide resolved
components/brave_wallet_ui/common/slices/endpoints/coingecko-endpoints.ts
Show resolved
Hide resolved
A Storybook has been deployed to preview UI for the latest push |
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.
font-end approved with suggestions
components/brave_wallet_ui/components/shared/add-custom-token-form/add-custom-token-form.tsx
Outdated
Show resolved
Hide resolved
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
Resolves brave/brave-browser#31975
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Auto-fill Coingecko ID when adding custom token to Visible Assets
visible.assets.mov
Infer Coingecko ID when adding custom token through
wallet_watchAsset
Prerequisites