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

refactor(bridge-ui): storage services as modules #13598

Merged
merged 31 commits into from
Apr 23, 2023
Merged

Conversation

jscriptcoder
Copy link
Contributor

@jscriptcoder jscriptcoder commented Apr 14, 2023

Storage and Token services have been turned into modules. There is no need to add them into stores nor initialize them in the App.svelte component. As soon as they're imported, they're instantiated.

What are we gaining here?, cleaner code and less initialization in the App.svelte. Unnecessary use of svelte stores.

TODO: we can do the same with the RelayerAPI service

@jscriptcoder jscriptcoder changed the base branch from main to storage_custom-token April 14, 2023 07:51
@codecov
Copy link

codecov bot commented Apr 14, 2023

Codecov Report

Merging #13598 (7faa652) into main (4812950) will decrease coverage by 2.20%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main   #13598      +/-   ##
==========================================
- Coverage   39.47%   37.28%   -2.20%     
==========================================
  Files         135      128       -7     
  Lines        4043     3841     -202     
  Branches      506      506              
==========================================
- Hits         1596     1432     -164     
+ Misses       2343     2317      -26     
+ Partials      104       92      -12     
Flag Coverage Δ *Carryforward flag
bridge-ui 95.80% <ø> (-0.01%) ⬇️
eventindexer ∅ <ø> (∅) Carriedforward from 23bdf4b
protocol 0.00% <ø> (ø) Carriedforward from 23bdf4b
relayer 62.53% <ø> (ø) Carriedforward from 23bdf4b
ui 100.00% <ø> (ø) Carriedforward from 23bdf4b

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
packages/bridge-ui/src/store/transactions.ts 100.00% <ø> (ø)

... and 7 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jscriptcoder jscriptcoder marked this pull request as draft April 15, 2023 10:54
@jscriptcoder jscriptcoder changed the title refactor(bridge-ui): storage services as singletons refactor(bridge-ui): storage services as modules Apr 18, 2023
Base automatically changed from storage_custom-token to main April 22, 2023 07:41
@jscriptcoder jscriptcoder marked this pull request as ready for review April 22, 2023 20:23
@dantaik
Copy link
Contributor

dantaik commented Apr 23, 2023

Ready for review?

@jscriptcoder jscriptcoder enabled auto-merge April 23, 2023 18:45
@jscriptcoder jscriptcoder added this pull request to the merge queue Apr 23, 2023
Merged via the queue into main with commit 7646e28 Apr 23, 2023
@jscriptcoder jscriptcoder deleted the storage_as_singleton branch April 23, 2023 19:53
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.

4 participants