Skip to content

Commit

Permalink
Merge branch 'main' into brave-browser
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptickoan authored Apr 21, 2022
2 parents fb35b10 + 049296b commit afa4476
Show file tree
Hide file tree
Showing 151 changed files with 16,607 additions and 453 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
/.nyc_output
/reports


/src/static/contracts/compiled/*.ts
/src/static/compiled/*.json

Expand All @@ -35,10 +34,13 @@ cypress/screenshots
cypress/videos
cypress.env.json

tsconfig.tsbuildinfo

# vercel
.now
.vercel
.env
.env.local

.eslintcache

8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ Rari Capital's Web3 Portal.

- Run `npm run dev` to start the development server.
- Run `npm run build` to build a production bundle
- Run `npm run bump-rari-components` to automatically install the latest version (i.e. most recent commit hash) of rari-components and update `package.json`.
- Run `npm run bump-rari-components` to automatically install the latest version (i.e. most recent commit hash) of [rari-components](https://github.com/Rari-Capital/rari-components) and update `package.json`.
- Run `npm run typecheck` to typecheck

## Environment

- Set `NEXT_PUBLIC_USE_MOCKS` to `true` to test the dapp with mock objects (e.g. `NEXT_PUBLIC_USE_MOCKS=true npm run dev`).
- Currently, this env var is only used in the Turbo code — <kbd>Ctrl+F</kbd> for `process.env.NEXT_PUBLIC_USE_MOCKS` to see the specific use sites.

## Requirements

Expand Down
6 changes: 3 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ module.exports = withBundleAnalyzer({

config.module.rules.push({
test: /\.tsx?/,
// Transpile rari-components, even though it is in node_modules
include: [/node_modules\/rari-components/],
// Transpile rari-components
include: [/rari-components/],
use: "next-swc-loader",
});

return config;
},
});
});
27 changes: 14 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@0xsequence/multicall": "^0.35.5",
"@aave/protocol-v2": "^1.0.1",
"@chakra-ui/icons": "^1.0.0",
"@chakra-ui/react": "^1.8.1",
"@chakra-ui/react": "1.8.1",
"@emotion/react": "^11.0.0",
"@emotion/styled": "^11.0.0",
"@walletconnect/web3-provider": "^1.4.1",
Expand Down Expand Up @@ -35,7 +35,7 @@
"node-fetch": "^2.6.1",
"node-vibrant": "^3.1.6",
"polished": "^4.1.3",
"rari-components": "github:Rari-Capital/rari-components#1131c95058f26b36048d9cfe507abb15ae5adaa8",
"rari-components": "github:Rari-Capital/rari-components#144451807e8673b4586274adfb8e78346ab32fce",
"rari-tokens-generator": "^2.0.0",
"react": "^17.0.2",
"react-apexcharts": "1.3.7",
Expand All @@ -45,6 +45,7 @@
"react-error-boundary": "^3.0.2",
"react-fast-marquee": "^1.1.3",
"react-infinite-scroll-hook": "^4.0.1",
"react-intersection-observer": "^8.34.0",
"react-jazzicon": "^0.1.3",
"react-query": "^3.13.10",
"react-responsive-carousel": "^3.2.18",
Expand All @@ -61,7 +62,7 @@
},
"scripts": {
"bump-rari-components": "rm -rf .next && npm i \"git+https://github.com/Rari-Capital/rari-components#$(git ls-remote https://github.com/Rari-Capital/rari-components.git HEAD | awk '{ print $1}')\"",
"typecheck": "tsc --skipLibCheck -p ./tsconfig.json",
"typecheck": "tsc --noEmit",
"postinstall": "rari-tokens-generator ./src/static/compiled/tokens.json",
"start": "next start",
"build": "next build",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/turbo/isolated-actions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/turbo/noseke.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/turbo/one-collateral-type.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/turbo/treasury-assets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/turbo/turbo-engine-3d-trimmed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/turbo/turbo-engine-3d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions public/static/turbo/turbo-engine-green.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/static/turbo/turbo-engine-red.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/turbo/turbo-no-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/turbo/turbo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/turbo/turbo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/turbo/user-icons/daos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/turbo/user-icons/individuals.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/turbo/user-icons/more.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/turbo/user-icons/protocols.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions src/components/pages/Fuse/FusePoolsPage/PoolRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ export const PoolRow = ({
<Center height="100%" width="13%">
<b>{poolNumber}</b>
</Center>
<Center height="100%" width="16%">
<b>{smallUsdFormatter(tvl)}</b>
</Center>
<Center height="100%" width="16%">
<b>{smallUsdFormatter(borrowed)}</b>
</Center>
<Center height="100%" width="16%">
<b>{smallUsdFormatter(tvl)}</b>
</Center>
<Center height="100%" width="16%">
<b>{smallUsdFormatter(borrowed)}</b>
</Center>
</>
)}
</Row>
Expand Down
Loading

0 comments on commit afa4476

Please sign in to comment.