saddle-finance / saddle-frontend

An open source UI for saddle.finance 🤠
https://saddle.exchange
54 stars 58 forks source link

Address Registry Provider #1267

Closed nguyenaiden closed 2 years ago

nguyenaiden commented 2 years ago

Description: The Address Registry Provider is responsible for calling the MasterRegistry and resolve addresses that are used often. This is also the start of moving away from accessing contracts as hooks to instantiating Contract objects whenever they're needed.

The first contract address is ChildGaugeFactory. Only available on non-mainnet/hardhat chainIds.

codecov[bot] commented 2 years ago

Codecov Report

Merging #1267 (f8db1b6) into master (a64b1ad) will decrease coverage by 0.02%. The diff coverage is 7.14%.

@@            Coverage Diff             @@
##           master    #1267      +/-   ##
==========================================
- Coverage   10.24%   10.22%   -0.03%     
==========================================
  Files         162      163       +1     
  Lines        6120     6144      +24     
  Branches     2019     2021       +2     
==========================================
+ Hits          627      628       +1     
- Misses       5491     5514      +23     
  Partials        2        2              
Impacted Files Coverage Δ
src/pages/App.tsx 0.00% <0.00%> (ø)
src/providers/RegistryAddressProvider.tsx 0.00% <0.00%> (ø)
src/hooks/useContract.ts 4.65% <100.00%> (+0.55%) :arrow_up:

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

nguyenaiden commented 2 years ago

Closing per https://github.com/saddle-finance/saddle-frontend/pull/1268/files