Rari-Capital / rari-dApp

Rari Capital's Web3 Portal.
https://app.rari.capital
GNU Affero General Public License v3.0
151 stars 69 forks source link

add ENS support for address reverse resolution and avatar #470

Closed frimoldi closed 2 years ago

frimoldi commented 2 years ago

ENS reverse resolution

By adding ENS reverse resolution, the AccountButton component now is able to display the ENS name and avatar image, instead of the Ethereum address.

image

Changes

transmissions11 commented 2 years ago

hey thanks for your contribution, but we're not comfortable merging this with such a huge package-lock diff, as you could be installing a malicious npm package somewhere in there...

if you'd like to revise this PR to have a more minimal package-lock diff that we can certify is safe, we'd be happy to merge this :)

frimoldi commented 2 years ago

hey @transmissions11 , yeah that makes total sense. All I did was to include the @ensdomains/ensjs dependency, but I'll investigate why there's such a big diff on package-lock.

transmissions11 commented 2 years ago

dw fren i trust you, but with all the frontend exploits going around recently we've gotta vet this stuff nonetheless 😅

as for why the diff is so large, i'd guess you're using an older version of NPM which uses a different package-lock format. try installing the version listed in the requirements README section.

vercel[bot] commented 2 years ago

@frimoldi is attempting to deploy a commit to the Rari Capital Team on Vercel.

A member of the Team first needs to authorize it.

frimoldi commented 2 years ago

@transmissions11 I've regenerated package-lock with the right npm version, still huge though.

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 1550235526


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/utils/shortAddress.ts 0 1 0.0%
src/utils/ens.ts 1 3 33.33%
src/components/shared/Avatar.tsx 1 5 20.0%
src/context/RariContext.tsx 1 15 6.67%
<!-- Total: 4 25 16.0% -->
Files with Coverage Reduction New Missed Lines %
src/components/shared/GlowingButton.tsx 1 25.0%
src/rari-sdk/subpools/keeperdao.js 1 50.0%
src/hooks/useNoSlippageCurrencies.ts 2 50.0%
src/rari-sdk/subpools/fuse.js 2 84.62%
src/hooks/usePoolBalance.ts 3 52.0%
src/rari-sdk/cache.js 3 63.16%
src/rari-sdk/subpools/aave.js 3 11.76%
src/utils/bigUtils.ts 3 44.44%
src/rari-sdk/subpools/dydx.js 4 50.0%
src/rari-sdk/subpools/mstable.js 4 31.71%
<!-- Total: 95 -->
Totals Coverage Status
Change from base Build 1537144180: -1.1%
Covered Lines: 973
Relevant Lines: 6947

💛 - Coveralls