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

Release/26-09-2024 #4916

Merged
merged 17 commits into from
Sep 30, 2024
Merged

Release/26-09-2024 #4916

merged 17 commits into from
Sep 30, 2024

Conversation

shoom3301 and others added 12 commits September 18, 2024 18:20
* feat(hooks-store): add order params and signer to hook dapp context

* feat(hooks-store): setup blank app for iframe hook

* chore: remove boilerplate

* refactor(events): generalise SimpleCowEventEmitter for reusing porposes (#4886)

* refactor: generalise CowEventEmitter in order to reuse it in hook dapps

* feat: library iframe-transport to communicate between app and iframe (#4887)

* feat: iframe transport library

* chore: specify key

* feat(widget): integrate iframe-transport lib in widget (#4888)

* feat: use iframe-transport lib for widget

* feat(hooks-store): library for building external hook-dapps (#4889)

* feat: hook-dapp-lib for hook-dapps in iframe

* docs: doc @cowprotocol/hook-dapp-lib

* Update libs/hook-dapp-lib/README.md

Co-authored-by: Leandro <[email protected]>

* chore: fix package json

* feat(hooks-store): integrate an iframe hook-dapp for example (#4890)

* feat(hooks-store): add omnibridge hook-dapp via iframe

* chore: revert ff

* refactor: simplify hooks store state

* chore: fix build

* chore: fix build

* chore: remove wrong permit check

* feat: add isSmartContract to hook dapp context

* refactor: fix WidgetEthereumProvider deps

* chore: pull develop

* chore: hook dapp lib deps

* chore: fix permit hook adding

* feat(hooks-store): callbacks to changes sell buy tokens

* chore: fix lint
* fix: increase precision for small amounts

* feat: add tiny and tiniest precisions

* chore: fix unittests
* feat: add Airdrop PreHook on Sepolia Network

* fix: change name platform -> airdrop

* fix: review issues

* Jean/cow 351 add preview of claim tokens on airdrop hook (#4)

* fix: aidropHookApp -> move UI components to a separate folder

* feat: hook to get user claimable tokens

* feat: add COW database url in airdrop hook constants

Co-authored-by: Pedro Yves Fracari <[email protected]>

* fix: switch name 'link' to 'dataBaseUrl'

* feat: (wip) add test function for findIntervalKey

* docs: comment findIntervalKeys function in Airdrop hook

* fix: typescript issues

* feat: add message to the user about claimable tokens status

* wip: call isClaimed verification on contract

* wip: use preview token output and add airdrop contract hook

* feat: add preview of claimable tokens in Airdrop hook

* style: add empty line in the end of component files

* fix: change token formatting to cow standard

* refactor: move dropdownMenu from  AidropHookApp/index to components

* fix: no more claimable tokens messages when user connects without airdrop selected

* wip: review

* refactor: add claimed call on the usePreviewTokens

* chore: remove duplicated virtual token abi

* refactor: transform test script in ts test

* refactor: rename preview tokens error variable

---------

Co-authored-by: Pedro Yves Fracari <[email protected]>
Co-authored-by: Pedro Yves Fracari <[email protected]>

* refactor: pass dropdow states to dropdown component

* chore: add cow-sdk from bleu repo

* Add airdrop claim hook encoding (#5)

* wip: hook encoding

* chore: add airdrop claim hook

* wip: add cowshed hooks

* refactor: rename components folder to styles

* refactor: simplife hooks and fix cow shed init code

* refactor: components hook messages and hooks

* chore: replace airdrop contract for uniswap interface

* fix: airdrop conctract merkle proof

---------

Co-authored-by: Jean Neiverth <[email protected]>

* Fix airdrop hook contract address (#6)

* wip: fixing airdrop address

* chore: add airdrop abi

* fix: use new airdrop contract on useClaimData

* chore: remove todo comment

---------

Co-authored-by: Jean Neiverth <[email protected]>

* feat: add basic info and structure of new Aidrop Hook UI

* style: match Airdrop PreHook UI with figma

* fix: mobile bad rendering

* refactor: add styled label for 'Select Airdrop' text

* fix: label 'Select Airdrop'

* docs: update comment in airdrop hook constants

Co-authored-by: Pedro Yves Fracari <[email protected]>

* fix: now filtering airdrops by chain in airdrop hook selector

* fix: remove files unused for airdrop hook

* fix: remove yarn.lock changes

* refactor: use TokenWithLogo.fromToken in airdrop hook constants

* feat: include airdrop hook as a post hook

* refactor: send styles to single file in airdrop hook app

* refactor: add useSWR to useGasLimitHooks

* refactor: move useGasLimitHooks to cowprotocol/common-hooks

* fix: fetchPreviewClaimableTokens is now a useCallback

* fix: remove airdrop selector

* fix: build issue involving import @cowprotocol/wallet-provider in useGasLimitHooks

* refactor: change claim airdrop hook UI based on feedbacks

* refactor: change contract address to new with more addresses to claim

* fix: cow airdrop full description - change 'right before swap' to 'before or after'

* fix: use airdrop hook image with transparent background

---------

Co-authored-by: Pedro Yves Fracari <[email protected]>
Co-authored-by: Pedro Yves Fracari <[email protected]>
Co-authored-by: José Ribeiro <[email protected]>
* feat: release drag drop styling

* feat: release drag drop styling + replace lib

* feat: release drag drop styling + replace lib

* feat: fix lint

* feat: fix lint

* feat: remove unused package

* feat: hooks store styling

* feat: mobile responsive updates

* chore: merge develop

* chore: fix build

* chore: fix styles

* chore: fix styles

* chore: fix styles

* chore: fix build

* Update hook.tsx

Co-authored-by: Leandro <[email protected]>

---------

Co-authored-by: Alexandr Kazachenko <[email protected]>
Co-authored-by: Leandro <[email protected]>
* fix(token-list): increase token symbol validation length

* chore: fix regex
* feat: lazy load cms images /learn/ pages

* feat: lazy load cms images /learn/ pages

* feat: update sitemap logic and lighthouse optimisations

* feat: lazy load svgs and update meta title/descriptions

* feat: fix meta descriptions for /learn/ pages

* feat: address comment uzeLazyload

* feat: optimize learn page code

* feat: lazy load cms images /learn/ pages

* feat: cleanup meta description token function

* feat: add conditional load of GTM

* feat: address comments

* fix: navitems list style css

* feat: conslidate CategoryLinks component

* feat: change import path

* fix: mobile menu list type
* feat(hooks-store): add order params and signer to hook dapp context

* feat(hooks-store): setup blank app for iframe hook

* refactor: generalise CowEventEmitter in order to reuse it in hook dapps

* feat: iframe transport library

* feat: use iframe-transport lib for widget

* feat: hook-dapp-lib for hook-dapps in iframe

* feat(hooks-store): add omnibridge hook-dapp via iframe

* chore: specify key

* docs: doc @cowprotocol/hook-dapp-lib

* chore: revert ff

* refactor: simplify hooks store state

* chore: fix build

* chore: fix build

* chore: remove boilerplate

* Update libs/hook-dapp-lib/README.md

Co-authored-by: Leandro <[email protected]>

* chore: fix package json

* chore: remove wrong permit check

* feat: add isSmartContract to hook dapp context

* refactor: fix WidgetEthereumProvider deps

* chore: pull develop

* chore: hook dapp lib deps

* chore: fix permit hook adding

* feat(hooks-store): callbacks to changes sell buy tokens

* feat(hooks-store): import external hook-dapps

* fix: rpc bridge duplication

* chore: make conditions optional

* chore: polish UI

* chore: fix lint

* refactor(events): generalise SimpleCowEventEmitter for reusing porposes (#4886)

* refactor: generalise CowEventEmitter in order to reuse it in hook dapps

* feat: library iframe-transport to communicate between app and iframe (#4887)

* feat: iframe transport library

* chore: specify key

* feat(widget): integrate iframe-transport lib in widget (#4888)

* feat: use iframe-transport lib for widget

* feat(hooks-store): library for building external hook-dapps (#4889)

* feat: hook-dapp-lib for hook-dapps in iframe

* docs: doc @cowprotocol/hook-dapp-lib

* Update libs/hook-dapp-lib/README.md

Co-authored-by: Leandro <[email protected]>

* chore: fix package json

* feat(hooks-store): integrate an iframe hook-dapp for example (#4890)

* feat(hooks-store): add omnibridge hook-dapp via iframe

* chore: revert ff

* refactor: simplify hooks store state

* chore: fix build

* chore: fix build

* chore: remove wrong permit check

* feat: add isSmartContract to hook dapp context

* refactor: fix WidgetEthereumProvider deps

* chore: pull develop

* chore: hook dapp lib deps

* chore: fix permit hook adding

* feat(hooks-store): callbacks to changes sell buy tokens

* chore: fix lint

* chore: fix merge

* chore: up version

* chore: remove unused hook

* chore: fix build

* fix(hooks-store): use recipient override only in hooks page

* chore: trim hook url

* chore: fix build

* feat(hooks-store): style custom hook-dapps (#4912)

* feat: styling tabs + counter

* feat: styling tabs + counter

* feat: add inline search

* chore: fix build

* feat: style inline search and custom hooks add

* feat: add simulatin styling

* feat: merge conflic fixes

* feat: handle walletcompat undefined

* fix: missing property

* refactor: simlify hooks-store code

* refactor: rename externalHooks to customHooks

* refactor: separate pre/post custom hooks

* chore: fix UI

* chore: fix tenderly simulation

* chore: fix styles

* chore: fix styles

* chore: fix recipient resetting

* chore: fix hooks-store ui issues

* feat(hook-dapp-lib): add isDarkMode parameter to context

* fix(hooks-store): always display SwapWidget to keep updaters active

* chore: fix style

* chore: fix style

---------

Co-authored-by: Alexandr Kazachenko <[email protected]>

---------

Co-authored-by: Leandro <[email protected]>
Co-authored-by: fairlight <[email protected]>
@shoom3301 shoom3301 added the RELEASE Included in the release that is being closed label Sep 26, 2024
@shoom3301 shoom3301 requested review from a team September 26, 2024 07:33
@shoom3301 shoom3301 self-assigned this Sep 26, 2024
Copy link

vercel bot commented Sep 26, 2024

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

Name Status Preview Updated (UTC)
cosmos ✅ Ready (Inspect) Visit Preview Sep 30, 2024 5:49am
cowfi ✅ Ready (Inspect) Visit Preview Sep 30, 2024 5:49am
explorer-dev ✅ Ready (Inspect) Visit Preview Sep 30, 2024 5:49am
swap-dev ✅ Ready (Inspect) Visit Preview Sep 30, 2024 5:49am
widget-configurator ✅ Ready (Inspect) Visit Preview Sep 30, 2024 5:49am

Copy link

socket-security bot commented Sep 26, 2024

No dependency changes detected. Learn more about Socket for GitHub ↗︎

👍 No dependency changes detected in pull request

bout3fiddy and others added 2 commits September 26, 2024 15:22
* Update tokensList.json

Add curve tokenlists for ethereum, arbitrum and gnosis

* Update tokensList.json

on request, removed 'enabledByDefault'

* Update tokensList.json

Add curve tokenlists for ethereum, arbitrum and gnosis

* Update tokensList.json

on request, removed 'enabledByDefault'

---------

Co-authored-by: Alexandr Kazachenko <[email protected]>
Copy link
Contributor

CLA Assistant Lite bot:
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


5 out of 6 committers have signed the CLA.
@shoom3301
@yvesfracari
@alfetopito
@JeanNeiverth
@fairlighteth
@bout3fiddy
You can retrigger this bot by commenting recheck in this Pull Request

@elena-zh
Copy link

elena-zh commented Sep 26, 2024

Hey @shoom3301 , changes mostly look good to me!

Pro proceed, it would be great to

  1. merge fix: fix import list warning styles #4917 into here
  2. Fix this theme switch UI (might have been broken in feat: lazy load cms images /learn/ pages #4906):
    image
    Compare with Prod version: no arrow, no light background:
    image

Some more issues to mention (not blocking the release):

  1. There are some UI issues related to a price precision change ([1.84] UI issues related to price precision change #4919):
    decimals
    image
  2. It would be great to add a validation when a user tries to add a custom hook to a not supported chain:
    image

Thanks!

@shoom3301
Copy link
Collaborator Author

@elena-zh

  1. Merged
  2. I'm not sure is it an issue or not. @fairlighteth please take a look

* fix: styles for settings menu

* fix: styles for settings menu
@shoom3301 shoom3301 merged commit 4278fae into main Sep 30, 2024
10 of 12 checks passed
@shoom3301 shoom3301 deleted the release/26-09-2024 branch September 30, 2024 09:46
@github-actions github-actions bot locked and limited conversation to collaborators Sep 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
RELEASE Included in the release that is being closed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants