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

Bannik rebase dev #6

Open
wants to merge 443 commits into
base: dev
Choose a base branch
from
Open

Bannik rebase dev #6

wants to merge 443 commits into from

Conversation

bannik
Copy link

@bannik bannik commented Aug 10, 2023

What it solves

Resolves #

How this PR fixes it

How to test it

Analytics changes

Screenshots

chawyehsu and others added 30 commits March 20, 2023 07:58
Signed-off-by: Chawye Hsu <chawyehsu@hotmail.com>
* Fix: strip query params from Sentry events

* Allow appUrl
* Fix: sort Safe App tags

* Remember view mode

* Rm categories + add tracking

* Fix list view card height
* fix: support tokens with no decimals

* fix: decimal length validation
* feat: buttons to expand/collapse all actions

* fix: set state in `useEffect`

* fix: improve clarity of code
* fix: Delay switching networks until tx execution

* refactor: Use onboard instead of wallet to switch network

* fix: Return updated wallet when switching, reorder function params

* fix: useIsValidTransaction with patched provider, fix tests

* fix: create safe e2e test

* fix: Invert condition for patched signer

* fix: Show gasLimit error for custom gasLimits, switch from using the sdk for useIsValidExecution

* fix: Add slight timeout when switching wallet network

* fix: Failing test

* fix: Only add prevalidated signature if wallet is owner

* fix: Remove useIsWrongChain and adjust places where it was used

* fix: Remove ChainSwitcher

* fix: Address feedback

* fix: tests

* fix: don't error when switch hardware wallet chain

* fix: throw error for incorrect chain

* fix: don't throw inside promise

* fix: Safe Apps dispatcher

* fix: keep header switcher + rename function

* feat: show warning for hardware wallets

* refactor: remove `sleep`

* fix: mocks + remove log

* fix: off-chain sign switch + reconnect SC wallets

* fix: move warning to alert + reduce PR size

* fix: tests + reduce PR size

* fix: enable submit + init SDK when addresses match

* fix: Remove unused dependencies, remove useIsGranted hook, add warning to batch execute and spending limit txs

* fix: ensure styles are important

---------

Co-authored-by: iamacook <aaron@safe.global>
* feat: display Fallback Handler address

* feat: display name, adjust tooltip + test

* fix: use `logoUri`
* feat: show alert for new versions in settings

* fix: add loading skeletons

* fix: design of info box
* fix: Add licenses page

* chore: Change safe-modules-deployments package source

* chore: Remove dev dependencies, make table columns same width
* fix: Dismiss update safe notification for 90 days

* fix: Remove middleware, use hashmap to store dismissals

* fix: Revert notificationSlice changes

* fix: use useLocalStorage

* fix: Use onClose handler for notification

* fix: failing tests, remove exports, move type

* fix: Move outdated safe check after dismissNotification check for cleanup
* feat: relay transaction execution modal (safe-global#1724)

* feat: ExecutionMethod component

* add New chip

* add useRemainingRelays hook

* add better error to useRemainingRelays

* willRelay styles

* fix prop type

* move styles to css modules

* refactor hook

* change state variable type

* change prop type

* fix condition to show <ExecutionMethod>

* simplify redundant expression

* feat: relay modal adv params (safe-global#1741)

* feat: disable uneditable advanced param fields

* style: relay limit reached

* feat: relay a transaction trough the `sponsoredCall` endpoint (safe-global#1730)

* feat: ExecutionMethod component

* add New chip

* add useRemainingRelays hook

* add better error to useRemainingRelays

* willRelay styles

* fix prop type

* move styles to css modules

* refactor hook

* change state variable type

* change prop type

* fix condition to show <ExecutionMethod>

* feat: executeSponsoredCall and useSponsoredCall

* feat: sign txs before proposing and relaying

* WIP: pending status for relayed txs

* fix: resubscribe to waitForRelayTx on page load

* refactor onRelay

* fix jest tests

* move call data signatures encoding to the dispatcher

* do not pass redundant param

* set SafeGelato relay service url as env var

* get canRelay from chain features

* extract to a const the initial polling delay

* create enum for task states

* display execution method if wallet type can relay

* remove gelato-sdk dep from txMonitor. tests

* include v1 path in SAFE_GELATO_RELAY_SERVICE_URL constant

* add tests to SignOrExecuteForm

* add timeout to waitForRelayedTx

* improve unit tests

* refactor: use useAsync in useWalletCanRelay

* minor comments

* refactor: abstract hasEnoughtSignatures

---------

Co-authored-by: schmanu <manu@safe.global>

* fix: use gelato relay service url as base url

* fix: clear relay timeout timer on success / errors

* fix: pass new env variable to build action

* revert: expected relay service url

* feat: Relay dashboard widget (safe-global#1787)

* feat: add dashboard Relay widget

* conditionally display remaining transactions

* rm redundant attributes

* Update src/components/dashboard/Relaying/index.tsx

Co-authored-by: Aaron Cook <aaron@safe.global>

* styles: fix styles as per design

* style: adjust relaying icon

* test: unit test useRemainingRelays

* Update src/components/dashboard/Relaying/index.tsx

Co-authored-by: Aaron Cook <aaron@safe.global>

* style: fix chip text color

---------

Co-authored-by: Aaron Cook <aaron@safe.global>

* feat: track relaying events (safe-global#1798)

* add tracking to tx execution methods

* add tracking to the help article link

* refactor: Relay UI changes (safe-global#1800)

* feat: update dashboard widget

* add SponsoredBy component

* remove ExecutionMethod component

* fix unit tests

* style: increase space around  divider

* fix dashboard widget style

* address PR comments

* fix "status not found" error message

* remove unnecessary element

* fix: monitoring of relayed txs

* fix: SignOrExecute jest test

* feat: Relay safe creation (safe-global#1815)

* add SponsoredBy component to the create Safe review step

* wip relay create safe

* do not propose multiple times

* add relay task monitoring

* fill Validating step if taskid

* handling relay error

* add useLeastRemainingRelays hook

* refactor and tests

* rm unnecessary code

* improve review step UI

* check if chain has relaying feature before the network request

* fix wrong loading expression

* refactor txMonitor

Co-authored-by: Aaron Cook <iamacook@users.noreply.github.com>

* refactor: use safe deployments

* rm console log

* refactor: `break` from `switch` to clear

---------

Co-authored-by: schmanu <manu@safe.global>
Co-authored-by: Aaron Cook <iamacook@users.noreply.github.com>
Co-authored-by: iamacook <aaron@safe.global>

* feat: relay batch modal (safe-global#1820)

* feat: add SponsoredBy and relay condition to batched txs modal

* wip dispatch batch execution relay

* encode multisend call data

* feat: polling for batched relayed txs

* add tooltip

* test: dispatchBatchExecutionRelay

* rm redundant code

* pr comments

* add fetchRemainingRelays return type

---------

Co-authored-by: schmanu <manu@safe.global>

* refactor: split create safe callbacks (safe-global#1824)

* chore: update readme (safe-global#1826)

* fix: env-relative relay URL (safe-global#1832)

* fix: cleanup relay env. vars (safe-global#1833)

* fix: cleanup relay env. vars

* fix: add relay URLs from secrets

* fix: take `localStorage` flag into account

* test: e2e relayer (safe-global#1797)

* test relayer

* fix prettier

* allow tx queueing

* searching by labels

* moving test to smoke folder

* change goerli expression

* fix tx proposal validation

* test: update the e2e create_tx per latest relay designs

---------

Co-authored-by: Diogo Soares <diogo.lsoares@gmail.com>

---------

Co-authored-by: Diogo Soares <32431609+DiogoSoaress@users.noreply.github.com>
Co-authored-by: schmanu <manu@safe.global>
Co-authored-by: Diogo Soares <diogo.lsoares@gmail.com>
Co-authored-by: Aaron Cook <iamacook@users.noreply.github.com>
Co-authored-by: francovenica <francovenica@gmail.com>
* refactor: remove `getWeb3`

* refactor: remove unnecessary `web3` instance

* fix: update relayer
* fix: Track most searched safe apps

* fix: Increase search debounce to 2s
New component in transaction modals if approval txs were found.

Offers a way for the user to adjust the approval amount(s) before submitting the transaction.
…l#1865)

* fix: Align header actions on mobile

* fix: Connect wallet word wrap on mobile

* fix: Remove sticky from tx filter form on mobile

* fix: Address feedback
* fix: Unhandled exception in useOnboard

* fix: added logger message and added test case for error in getAddress

* Update src/hooks/wallets/useOnboard.test.ts

Co-authored-by: Aaron Cook <aaron@safe.global>

---------

Co-authored-by: Aaron Cook <aaron@safe.global>
iamacook and others added 27 commits August 7, 2023 15:36
* fix: limit `origin` length

* fix: prioritise URL

* fix: add test
* Fix: tx can have been created w/o signatures

* Reuse the same logic in ExecuteForm
* Fix: cookie prefs checked checkbox color

* Move colors to CSS

* Stop propagation on ExplorerButton in EthHashInfo
…al#2358)

* Fix: prevent an early redirect on the Safe Apps share page

* Use an effect
* fix: Use PNG instead of SVG for Redefine logo

* fix: Optimize PNG
* Refactor: fetch pending queue only in 1/N Safes

* Improve hook condition

* Fix previous nonces
@github-actions
Copy link

github-actions bot commented Aug 10, 2023

Branch preview

❌ Deploy failed!

@github-actions
Copy link

github-actions bot commented Aug 10, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

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

Successfully merging this pull request may close these issues.