-
Notifications
You must be signed in to change notification settings - Fork 101
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(hooks-store): add dapp id to hook callData #4920
Conversation
… feat/hooks-iframe-app # Conflicts: # apps/cowswap-frontend/src/modules/hooksStore/hooks/usePostHooksRecipientOverride.ts # apps/cowswap-frontend/src/modules/hooksStore/hooks/useSetRecipientOverride.ts # apps/cowswap-frontend/src/modules/hooksStore/types/hooks.ts # apps/cowswap-frontend/src/modules/trade/hooks/useResetRecipient.ts
…l/cowswap into feat/hooks-iframe-app-1
…col/cowswap into feat/hooks-iframe-app-2
…col/cowswap into feat/hooks-iframe-app-3
…col/cowswap into feat/hooks-iframe-app-4
…col/cowswap into feat/hooks-iframe-app-5
…col/cowswap into feat/hooks-iframe-app-6
…col/cowswap into feat/hooks-iframe-app-7
…col/cowswap into feat/hooks-iframe-app-8
… feat/hooks-iframe-app
…l/cowswap into feat/hooks-iframe-app-1 # Conflicts: # apps/cowswap-frontend/src/modules/trade/hooks/useNotifyWidgetTrade.ts
…col/cowswap into feat/hooks-iframe-app-3
…col/cowswap into feat/hooks-iframe-app-4
…col/cowswap into feat/hooks-iframe-app-6
…col/cowswap into feat/hooks-iframe-app-8
Co-authored-by: Leandro <[email protected]>
… feat/hook-to-dapp-matching # Conflicts: # apps/cowswap-frontend/src/modules/hooksStore/containers/HookRegistryList/index.tsx # apps/cowswap-frontend/src/modules/hooksStore/hookRegistry.tsx # apps/cowswap-frontend/src/modules/hooksStore/hooks/useAddHook.ts # apps/cowswap-frontend/src/modules/hooksStore/hooks/useAllHookDapps.ts # apps/cowswap-frontend/src/modules/hooksStore/pure/AddCustomHookForm/CustomDappLoader/index.tsx # apps/cowswap-frontend/src/modules/hooksStore/pure/HookDappDetails/index.tsx # apps/cowswap-frontend/src/modules/hooksStore/state/customHookDappsAtom.ts # apps/cowswap-frontend/src/modules/hooksStore/types/hooks.ts # apps/cowswap-frontend/src/modules/hooksStore/utils.ts # apps/hook-dapp-omnibridge/public/manifest.json # libs/hook-dapp-lib/src/types.ts
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
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.
Small comments/questions
apps/cowswap-frontend/src/modules/hooksStore/hooks/useInternalHookDapps.ts
Outdated
Show resolved
Hide resolved
apps/cowswap-frontend/src/modules/hooksStore/pure/AddCustomHookForm/CustomDappLoader/index.tsx
Show resolved
Hide resolved
… feat/hook-to-dapp-matching
Report too large to display inline |
Summary
In different places we need a way to display an order hook details (at least a dapp which is created the hook).
To do that we first of all need a registry with all known hook-dapps, here is it (hookDappsRegistry.json).
I also added
id
field to each hook-dapp in order to use it for matching hooks with their dapps.In this PR the hook-dapp id is appended to the hook callData, but we decided to allocated a separate field in the hook data (PR). This will be applied in another PR on top of this.
To Test
No need to test (please test all recent changes all together when design for hook details is ready)