Skip to content

Commit

Permalink
build: bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Jan 26, 2024
1 parent c587b12 commit 1e9e031
Show file tree
Hide file tree
Showing 5 changed files with 337 additions and 262 deletions.
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yearn-finance/web-lib",
"version": "3.0.126",
"version": "3.0.130",
"main": "./dist/index.js",
"types": "./dist/index.d.js",
"files": [
Expand All @@ -25,69 +25,69 @@
"export": "tsc && next build && next export -o ipfs"
},
"dependencies": {
"@builtbymom/web3": "^0.0.15",
"@builtbymom/web3": "^0.0.20",
"@headlessui/react": "^1.7.18",
"@rainbow-me/rainbowkit": "^1.3.0",
"@rainbow-me/rainbowkit": "^1.3.3",
"@react-hookz/web": "^24.0.2",
"@tailwindcss/forms": "^0.5.7",
"@total-typescript/ts-reset": "^0.5.1",
"@wagmi/chains": "1.8.0",
"@wagmi/core": "^1.4.7",
"bun-types": "^1.0.22",
"bun-types": "^1.0.25",
"dayjs": "^1.11.10",
"ethers": "5.7.2",
"eventemitter3": "^5.0.1",
"graphql": "^16.8.1",
"lint-staged": "^15.2.0",
"next": "^14.0.4",
"next-seo": "^6.4.0",
"prettier": "2.8.8",
"prettier": "^3.2.4",
"react-hot-toast": "2.4.1",
"react-paginate": "^8.2.0",
"sass": "^1.69.7",
"stylelint": "^16.1.0",
"sass": "^1.70.0",
"stylelint": "^16.2.0",
"swr": "^2.2.4",
"tailwindcss": "^3.4.1",
"viem": "^1.19.9",
"wagmi": "^1.4.7",
"zod": "^3.22.4"
},
"devDependencies": {
"@babel/core": "^7.23.7",
"@commitlint/cli": "^18.4.4",
"@commitlint/config-conventional": "^18.4.4",
"@babel/core": "^7.23.9",
"@commitlint/cli": "^18.6.0",
"@commitlint/config-conventional": "^18.6.0",
"@tailwindcss/typography": "^0.5.10",
"@types/jest": "^29.5.11",
"@types/node": "^20.11.0",
"@types/node": "^20.11.7",
"@types/nprogress": "^0.2.3",
"@types/react": "^18.2.47",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"autoprefixer": "^10.4.16",
"axios": "^1.6.5",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"autoprefixer": "^10.4.17",
"axios": "^1.6.7",
"bump": "^0.2.5",
"eslint": "^8.56.0",
"eslint-config-next": "^14.0.4",
"eslint-config-next": "^14.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-brackets": ">= 0.1.3",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-tailwindcss": "^3.13.1",
"eslint-plugin-tailwindcss": "^3.14.0",
"eslint-plugin-unused-imports": "^3.0.0",
"graphql-request": "^6.1.0",
"husky": "^8.0.3",
"husky": "^9.0.6",
"jest": "^29.7.0",
"nprogress": "^0.2.0",
"postcss-nesting": "^12.0.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"sharp": "^0.33.2",
"stylelint-config-standard": "^36.0.0",
"ts-jest": "^29.1.1",
"ts-jest": "^29.1.2",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
Expand Down
15 changes: 3 additions & 12 deletions src/contexts/useYearnWallet.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {createContext, memo, useCallback, useContext, useEffect, useMemo, useState} from 'react';
import {createContext, memo, useCallback, useContext, useMemo, useState} from 'react';
import {useBalances} from '@builtbymom/web3/hooks/useBalances.multichains';
import {toAddress, toNormalizedBN} from '@builtbymom/web3/utils';
import {useDeepCompareMemo} from '@react-hookz/web';
import {onLoadDone, onLoadStart} from '@yearn-finance/web-lib/contexts/useUI';

import {
CRV_TOKEN_ADDRESS,
CVXCRV_TOKEN_ADDRESS,
Expand All @@ -13,8 +13,7 @@ import {
YCRV_TOKEN_ADDRESS,
YVBOOST_TOKEN_ADDRESS,
YVECRV_TOKEN_ADDRESS
} from '@yearn-finance/web-lib/utils/constants';

} from '../utils/constants';
import {useYearn} from './useYearn';

import type {ReactElement} from 'react';
Expand Down Expand Up @@ -194,14 +193,6 @@ function useYearnBalances({shouldUseForknetBalances}: {shouldUseForknetBalances:
[onUpdate, onUpdateSome]
);

useEffect((): void => {
if (isLoading) {
onLoadStart();
} else {
onLoadDone();
}
}, [isLoading]);

return {tokens, isLoading, onRefresh};
}

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useFetchYearnEarnedForUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function useFetchYearnEarnedForUser(): TYDaemonEarned {
endpoint: address
? `${yDaemonBaseUriWithoutChain}/earned/${address}?${new URLSearchParams({
chainIDs: [1, 10].join(',')
})}`
})}`
: null,
schema: yDaemonEarnedSchema
});
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useYDaemonStatus.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import useSWR from 'swr';
import {baseFetcher} from '@yearn-finance/web-lib/utils/fetchers';
import {baseFetcher} from '@builtbymom/web3/utils';

import {useYDaemonBaseURI} from './useYDaemonBaseURI';

Expand Down
Loading

0 comments on commit 1e9e031

Please sign in to comment.