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

feat(hooks-store): add dapp id to hook callData #4920

Merged
merged 95 commits into from
Oct 2, 2024

Conversation

shoom3301
Copy link
Collaborator

@shoom3301 shoom3301 commented Sep 27, 2024

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)

shoom3301 and others added 30 commits September 12, 2024 14:14
… 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

# Conflicts:
#	apps/cowswap-frontend/src/modules/trade/hooks/useNotifyWidgetTrade.ts
… 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
Copy link

vercel bot commented Sep 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
cosmos ✅ Ready (Inspect) Visit Preview Oct 2, 2024 1:34pm
cowfi ✅ Ready (Inspect) Visit Preview Oct 2, 2024 1:34pm
explorer-dev ✅ Ready (Inspect) Visit Preview Oct 2, 2024 1:34pm
swap-dev ✅ Ready (Inspect) Visit Preview Oct 2, 2024 1:34pm
widget-configurator ✅ Ready (Inspect) Visit Preview Oct 2, 2024 1:34pm

Copy link

socket-security bot commented Sep 27, 2024

👍 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.

View full report↗︎

Copy link
Collaborator

@alfetopito alfetopito left a comment

Choose a reason for hiding this comment

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

Small comments/questions

Copy link

Report too large to display inline

View full report↗︎

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants