From be70994f33f67b4b64c03561645d8f61f378ef3c Mon Sep 17 00:00:00 2001 From: 0xMasayoshi <0xMasayoshi@protonmail.com> Date: Mon, 21 Oct 2024 00:54:28 +0900 Subject: [PATCH 1/6] feat: apechain config --- apps/storybook/package.json | 2 +- apps/web/package.json | 2 +- apps/web/src/config.ts | 2 +- packages/graph-client/package.json | 2 +- packages/hooks/package.json | 2 +- packages/notifications/package.json | 2 +- packages/steer-sdk/package.json | 2 +- packages/ui/package.json | 2 +- packages/ui/src/components/currency/Icon.tsx | 2 + .../ui/src/icons/network/circle/ApeCircle.tsx | 12 ++++ .../ui/src/icons/network/circle/index.tsx | 3 + .../ui/src/icons/network/naked/ApeNaked.tsx | 19 ++++++ packages/ui/src/icons/network/naked/index.tsx | 3 + pnpm-lock.yaml | 65 ++++++------------- 14 files changed, 67 insertions(+), 53 deletions(-) create mode 100644 packages/ui/src/icons/network/circle/ApeCircle.tsx create mode 100644 packages/ui/src/icons/network/naked/ApeNaked.tsx diff --git a/apps/storybook/package.json b/apps/storybook/package.json index f7790ff8e3..8ac8291688 100644 --- a/apps/storybook/package.json +++ b/apps/storybook/package.json @@ -19,7 +19,7 @@ "class-variance-authority": "0.7.0", "react": "18.2.0", "react-dom": "18.2.0", - "sushi": "4.0.2" + "sushi": "4.1.5" }, "devDependencies": { "@storybook/addon-a11y": "7.4.6", diff --git a/apps/web/package.json b/apps/web/package.json index 336dd23d29..6ef5a332b1 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -87,7 +87,7 @@ "react-window": "1.8.7", "sharp": "^0.33.5", "strapi-sdk-js": "2.3.3", - "sushi": "4.0.5", + "sushi": "4.1.5", "swr": "2.1.5", "tiny-invariant": "1.3.1", "tronweb": "5.3.2", diff --git a/apps/web/src/config.ts b/apps/web/src/config.ts index 8db9927458..772327048f 100644 --- a/apps/web/src/config.ts +++ b/apps/web/src/config.ts @@ -65,7 +65,7 @@ export const DISABLED_CHAIN_IDS = [ NonStandardChainId.TRON, ] as const -export const NEW_CHAIN_IDS = [] as const +export const NEW_CHAIN_IDS = [ChainId.APE] as const const PREFERRED_CHAINID_ORDER = [ ...NEW_CHAIN_IDS, diff --git a/packages/graph-client/package.json b/packages/graph-client/package.json index f91e7aca0a..fc2abaee5c 100644 --- a/packages/graph-client/package.json +++ b/packages/graph-client/package.json @@ -69,7 +69,7 @@ "graphql": "16.6.0", "graphql-request": "7.1.0", "json-bigint": "1.0.0", - "sushi": "4.0.5", + "sushi": "4.1.5", "viem": "2.21.4" }, "devDependencies": { diff --git a/packages/hooks/package.json b/packages/hooks/package.json index ff3d20496e..00a2bc59e7 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -47,7 +47,7 @@ "@types/react-dom": "18.2.6", "react": "18.2.0", "react-dom": "18.2.0", - "sushi": "4.0.5", + "sushi": "4.1.5", "tailwindcss": "3.3.2", "typescript": "5.5.4" }, diff --git a/packages/notifications/package.json b/packages/notifications/package.json index 74374e5782..532393d73a 100644 --- a/packages/notifications/package.json +++ b/packages/notifications/package.json @@ -54,7 +54,7 @@ "@tsconfig/strictest": "2.0.2", "@types/react": "18.2.14", "@types/react-dom": "18.2.6", - "sushi": "4.0.5", + "sushi": "4.1.5", "typescript": "5.5.4" }, "peerDependencies": { diff --git a/packages/steer-sdk/package.json b/packages/steer-sdk/package.json index be9dea6228..b15713bf85 100644 --- a/packages/steer-sdk/package.json +++ b/packages/steer-sdk/package.json @@ -54,7 +54,7 @@ }, "dependencies": { "@steerprotocol/contracts": "2.1.0-beta.14", - "sushi": "4.0.5", + "sushi": "4.1.5", "viem": "2.21.4" }, "devDependencies": { diff --git a/packages/ui/package.json b/packages/ui/package.json index 2779c9e505..4fe9e73b1c 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -121,7 +121,7 @@ "postcss": "8.4.23", "react": "18.2.0", "react-dom": "18.2.0", - "sushi": "4.0.5", + "sushi": "4.1.5", "tailwindcss": "3.3.2", "typescript": "5.5.4", "wagmi": "2.12.10" diff --git a/packages/ui/src/components/currency/Icon.tsx b/packages/ui/src/components/currency/Icon.tsx index 91bc9e7464..8b14eacd84 100644 --- a/packages/ui/src/components/currency/Icon.tsx +++ b/packages/ui/src/components/currency/Icon.tsx @@ -33,6 +33,7 @@ const ZetaLogo = 'zeta.svg' const CroLogo = 'cronos.svg' const BitcoinLogo = 'bitcoin.svg' const MntLogo = 'mntl.svg' +const ApeLogo = 'ape.svg' const LOGO: Record = { [ChainId.ETHEREUM]: EthereumLogo, @@ -86,6 +87,7 @@ const LOGO: Record = { [ChainId.BLAST]: EthereumLogo, [ChainId.ROOTSTOCK]: BitcoinLogo, [ChainId.MANTLE]: MntLogo, + [ChainId.APE]: ApeLogo, } // function djb2(str: string) { diff --git a/packages/ui/src/icons/network/circle/ApeCircle.tsx b/packages/ui/src/icons/network/circle/ApeCircle.tsx new file mode 100644 index 0000000000..40ae8202a0 --- /dev/null +++ b/packages/ui/src/icons/network/circle/ApeCircle.tsx @@ -0,0 +1,12 @@ +import * as React from 'react' + +import { ApeNaked } from '../naked/ApeNaked' + +import { IconComponent } from '../../../types' + +export const ApeCircle: IconComponent = (props) => ( + } + /> +) diff --git a/packages/ui/src/icons/network/circle/index.tsx b/packages/ui/src/icons/network/circle/index.tsx index d55ff2a997..d20492ba0b 100644 --- a/packages/ui/src/icons/network/circle/index.tsx +++ b/packages/ui/src/icons/network/circle/index.tsx @@ -1,6 +1,7 @@ import { ChainId } from 'sushi/chain' import { IconComponent } from '../../../types' +import { ApeCircle } from './ApeCircle' import { AptosCircle } from './AptosCircle' import { ArbitrumCircle } from './ArbitrumCircle' import { ArbitrumNovaCircle } from './ArbitrumNovaCircle' @@ -43,6 +44,7 @@ import { TronCircle } from './TronCircle' import { ZKSyncCircle } from './ZKSyncCircle' import { ZetaChainCircle } from './ZetaChainCircle' +export * from './ApeCircle' export * from './AptosCircle' export * from './ArbitrumCircle' export * from './ArbitrumNovaCircle' @@ -127,6 +129,7 @@ export const NETWORK_CIRCLE_ICON: Partial< [ChainId.ROOTSTOCK]: RootstockCircle, [ChainId.CRONOS]: CronosCircle, [ChainId.MANTLE]: MantleCircle, + [ChainId.APE]: ApeCircle, aptos: AptosCircle, tron: TronCircle, } diff --git a/packages/ui/src/icons/network/naked/ApeNaked.tsx b/packages/ui/src/icons/network/naked/ApeNaked.tsx new file mode 100644 index 0000000000..0d230a188f --- /dev/null +++ b/packages/ui/src/icons/network/naked/ApeNaked.tsx @@ -0,0 +1,19 @@ +import * as React from 'react' + +import { NakedNetworkIconComponent } from '../../../types' + +export const ApeNaked: NakedNetworkIconComponent = ({ circle, ...props }) => ( + + {circle} + + +) diff --git a/packages/ui/src/icons/network/naked/index.tsx b/packages/ui/src/icons/network/naked/index.tsx index 2495bcff19..7c6a70f4e4 100644 --- a/packages/ui/src/icons/network/naked/index.tsx +++ b/packages/ui/src/icons/network/naked/index.tsx @@ -1,6 +1,7 @@ import { ChainId } from 'sushi/chain' import { IconComponent } from '../../../types' +import { ApeNaked } from './ApeNaked' import { AptosNaked } from './AptosNaked' import { ArbitrumNaked } from './ArbitrumNaked' import { ArbitrumNovaNaked } from './ArbitrumNovaNaked' @@ -43,6 +44,7 @@ import { TronNaked } from './TronNaked' import { ZKSyncNaked } from './ZKSyncNaked' import { ZetaChainNaked } from './ZetaChainNaked' +export * from './ApeNaked' export * from './AptosNaked' export * from './ArbitrumNaked' export * from './ArbitrumNovaNaked' @@ -126,6 +128,7 @@ export const NETWORK_NAKED_ICON: Partial< [ChainId.ROOTSTOCK]: RootstockNaked, [ChainId.CRONOS]: CronosNaked, [ChainId.MANTLE]: MantleNaked, + [ChainId.APE]: ApeNaked, aptos: AptosNaked, tron: TronNaked, } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 984d4c50c2..13f582bf0b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -105,8 +105,8 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) sushi: - specifier: 4.0.2 - version: 4.0.2(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.5 + version: 4.1.5(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) devDependencies: '@storybook/addon-a11y': specifier: 7.4.6 @@ -394,8 +394,8 @@ importers: specifier: 2.3.3 version: 2.3.3 sushi: - specifier: 4.0.5 - version: 4.0.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.5 + version: 4.1.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) swr: specifier: 2.1.5 version: 2.1.5(react@18.2.0) @@ -582,8 +582,8 @@ importers: specifier: 1.0.0 version: 1.0.0 sushi: - specifier: 4.0.5 - version: 4.0.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.5 + version: 4.1.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8) viem: specifier: 2.21.4 version: 2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8) @@ -644,8 +644,8 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) sushi: - specifier: 4.0.5 - version: 4.0.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.5 + version: 4.1.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8) tailwindcss: specifier: 3.3.2 version: 3.3.2(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) @@ -690,8 +690,8 @@ importers: specifier: 18.2.6 version: 18.2.6 sushi: - specifier: 4.0.5 - version: 4.0.5(typescript@5.5.4)(viem@2.21.17(typescript@5.5.4)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.5 + version: 4.1.5(typescript@5.5.4)(viem@2.21.17(typescript@5.5.4)(zod@3.23.8))(zod@3.23.8) typescript: specifier: 5.5.4 version: 5.5.4 @@ -702,8 +702,8 @@ importers: specifier: 2.1.0-beta.14 version: 2.1.0-beta.14(bufferutil@4.0.8)(encoding@0.1.13)(squirrelly@8.0.8)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4))(typescript@5.5.4)(utf-8-validate@5.0.10) sushi: - specifier: 4.0.5 - version: 4.0.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.5 + version: 4.1.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) viem: specifier: 2.21.4 version: 2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8) @@ -946,8 +946,8 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) sushi: - specifier: 4.0.5 - version: 4.0.5(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.5 + version: 4.1.5(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) tailwindcss: specifier: 3.3.2 version: 3.3.2(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) @@ -14811,19 +14811,8 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} - sushi@4.0.2: - resolution: {integrity: sha512-yu90jzqc2Ki3Zn9gygDW2AP4RUJ/+YNEP0pfJIpE5eTxRlDcRcbd/8qoZEeknFMfGe7BWp7e2tu2vfs2E4mNuA==} - peerDependencies: - viem: '*' - zod: '*' - peerDependenciesMeta: - viem: - optional: true - zod: - optional: true - - sushi@4.0.5: - resolution: {integrity: sha512-PRk3UKD3TyoS+IkAQJVxpjuAz+lhdqu0zbaFLTGe6/spk+eaeCkBvYu10r9R/2qXamA3D89KTHLKehGDh+E3lQ==} + sushi@4.1.5: + resolution: {integrity: sha512-C6CKT4ay5c9Ras9iIUlEeBn+9u/iaisaWQaZFkg2Lj/KqNvSDOP7ceobaohvsIe1mLK3YvlSt7e8sAhvC1E26Q==} peerDependencies: typescript: 5.5.4 viem: '*' @@ -35163,21 +35152,7 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - sushi@4.0.2(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8): - dependencies: - '@uniswap/token-lists': 1.0.0-beta.33 - big.js: 6.1.1 - date-fns: 3.3.1 - decimal.js-light: 2.5.1 - seedrandom: 3.0.5 - tiny-invariant: 1.3.1 - toformat: 2.0.0 - tsx: 4.19.0 - optionalDependencies: - viem: 2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8) - zod: 3.23.8 - - sushi@4.0.5(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8): + sushi@4.1.5(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8): dependencies: '@uniswap/token-lists': 1.0.0-beta.33 big.js: 6.1.1 @@ -35191,7 +35166,7 @@ snapshots: viem: 2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8) zod: 3.23.8 - sushi@4.0.5(typescript@5.5.4)(viem@2.21.17(typescript@5.5.4)(zod@3.23.8))(zod@3.23.8): + sushi@4.1.5(typescript@5.5.4)(viem@2.21.17(typescript@5.5.4)(zod@3.23.8))(zod@3.23.8): dependencies: '@uniswap/token-lists': 1.0.0-beta.33 big.js: 6.1.1 @@ -35205,7 +35180,7 @@ snapshots: viem: 2.21.17(typescript@5.5.4)(zod@3.23.8) zod: 3.23.8 - sushi@4.0.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8): + sushi@4.1.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8): dependencies: '@uniswap/token-lists': 1.0.0-beta.33 big.js: 6.1.1 @@ -35219,7 +35194,7 @@ snapshots: viem: 2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8) zod: 3.23.8 - sushi@4.0.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8): + sushi@4.1.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8): dependencies: '@uniswap/token-lists': 1.0.0-beta.33 big.js: 6.1.1 From 3df5d178454609cbc1a1374a76fa825b22e83abf Mon Sep 17 00:00:00 2001 From: 0xMasayoshi <0xMasayoshi@protonmail.com> Date: Mon, 21 Oct 2024 22:30:35 +0900 Subject: [PATCH 2/6] fix: bump sushi pkg --- apps/storybook/package.json | 2 +- apps/web/package.json | 2 +- packages/graph-client/package.json | 2 +- packages/hooks/package.json | 2 +- packages/notifications/package.json | 2 +- packages/steer-sdk/package.json | 2 +- packages/ui/package.json | 2 +- pnpm-lock.yaml | 40 ++++++++++++++--------------- 8 files changed, 27 insertions(+), 27 deletions(-) diff --git a/apps/storybook/package.json b/apps/storybook/package.json index 8ac8291688..5583c141ed 100644 --- a/apps/storybook/package.json +++ b/apps/storybook/package.json @@ -19,7 +19,7 @@ "class-variance-authority": "0.7.0", "react": "18.2.0", "react-dom": "18.2.0", - "sushi": "4.1.5" + "sushi": "4.1.7" }, "devDependencies": { "@storybook/addon-a11y": "7.4.6", diff --git a/apps/web/package.json b/apps/web/package.json index 6ef5a332b1..690767f00e 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -87,7 +87,7 @@ "react-window": "1.8.7", "sharp": "^0.33.5", "strapi-sdk-js": "2.3.3", - "sushi": "4.1.5", + "sushi": "4.1.7", "swr": "2.1.5", "tiny-invariant": "1.3.1", "tronweb": "5.3.2", diff --git a/packages/graph-client/package.json b/packages/graph-client/package.json index fc2abaee5c..9550a870e0 100644 --- a/packages/graph-client/package.json +++ b/packages/graph-client/package.json @@ -69,7 +69,7 @@ "graphql": "16.6.0", "graphql-request": "7.1.0", "json-bigint": "1.0.0", - "sushi": "4.1.5", + "sushi": "4.1.7", "viem": "2.21.4" }, "devDependencies": { diff --git a/packages/hooks/package.json b/packages/hooks/package.json index 00a2bc59e7..a0ab45acec 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -47,7 +47,7 @@ "@types/react-dom": "18.2.6", "react": "18.2.0", "react-dom": "18.2.0", - "sushi": "4.1.5", + "sushi": "4.1.7", "tailwindcss": "3.3.2", "typescript": "5.5.4" }, diff --git a/packages/notifications/package.json b/packages/notifications/package.json index 532393d73a..76cb94eb0a 100644 --- a/packages/notifications/package.json +++ b/packages/notifications/package.json @@ -54,7 +54,7 @@ "@tsconfig/strictest": "2.0.2", "@types/react": "18.2.14", "@types/react-dom": "18.2.6", - "sushi": "4.1.5", + "sushi": "4.1.7", "typescript": "5.5.4" }, "peerDependencies": { diff --git a/packages/steer-sdk/package.json b/packages/steer-sdk/package.json index b15713bf85..3fe2de984f 100644 --- a/packages/steer-sdk/package.json +++ b/packages/steer-sdk/package.json @@ -54,7 +54,7 @@ }, "dependencies": { "@steerprotocol/contracts": "2.1.0-beta.14", - "sushi": "4.1.5", + "sushi": "4.1.7", "viem": "2.21.4" }, "devDependencies": { diff --git a/packages/ui/package.json b/packages/ui/package.json index 4fe9e73b1c..2765deb2ce 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -121,7 +121,7 @@ "postcss": "8.4.23", "react": "18.2.0", "react-dom": "18.2.0", - "sushi": "4.1.5", + "sushi": "4.1.7", "tailwindcss": "3.3.2", "typescript": "5.5.4", "wagmi": "2.12.10" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 13f582bf0b..3d3960259e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -105,8 +105,8 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) sushi: - specifier: 4.1.5 - version: 4.1.5(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.7 + version: 4.1.7(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) devDependencies: '@storybook/addon-a11y': specifier: 7.4.6 @@ -394,8 +394,8 @@ importers: specifier: 2.3.3 version: 2.3.3 sushi: - specifier: 4.1.5 - version: 4.1.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.7 + version: 4.1.7(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) swr: specifier: 2.1.5 version: 2.1.5(react@18.2.0) @@ -582,8 +582,8 @@ importers: specifier: 1.0.0 version: 1.0.0 sushi: - specifier: 4.1.5 - version: 4.1.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.7 + version: 4.1.7(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8) viem: specifier: 2.21.4 version: 2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8) @@ -644,8 +644,8 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) sushi: - specifier: 4.1.5 - version: 4.1.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.7 + version: 4.1.7(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8) tailwindcss: specifier: 3.3.2 version: 3.3.2(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) @@ -690,8 +690,8 @@ importers: specifier: 18.2.6 version: 18.2.6 sushi: - specifier: 4.1.5 - version: 4.1.5(typescript@5.5.4)(viem@2.21.17(typescript@5.5.4)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.7 + version: 4.1.7(typescript@5.5.4)(viem@2.21.17(typescript@5.5.4)(zod@3.23.8))(zod@3.23.8) typescript: specifier: 5.5.4 version: 5.5.4 @@ -702,8 +702,8 @@ importers: specifier: 2.1.0-beta.14 version: 2.1.0-beta.14(bufferutil@4.0.8)(encoding@0.1.13)(squirrelly@8.0.8)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4))(typescript@5.5.4)(utf-8-validate@5.0.10) sushi: - specifier: 4.1.5 - version: 4.1.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.7 + version: 4.1.7(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) viem: specifier: 2.21.4 version: 2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8) @@ -946,8 +946,8 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) sushi: - specifier: 4.1.5 - version: 4.1.5(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.7 + version: 4.1.7(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) tailwindcss: specifier: 3.3.2 version: 3.3.2(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) @@ -14811,8 +14811,8 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} - sushi@4.1.5: - resolution: {integrity: sha512-C6CKT4ay5c9Ras9iIUlEeBn+9u/iaisaWQaZFkg2Lj/KqNvSDOP7ceobaohvsIe1mLK3YvlSt7e8sAhvC1E26Q==} + sushi@4.1.7: + resolution: {integrity: sha512-pRpPdEDBIruR+xDZYHMN+Ycy2UHyGaQE/qLJMPYJIdaYSlRf4LURxKV47te2MCg8skyEbzXppYANXiVlv/0UlA==} peerDependencies: typescript: 5.5.4 viem: '*' @@ -35152,7 +35152,7 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - sushi@4.1.5(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8): + sushi@4.1.7(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8): dependencies: '@uniswap/token-lists': 1.0.0-beta.33 big.js: 6.1.1 @@ -35166,7 +35166,7 @@ snapshots: viem: 2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8) zod: 3.23.8 - sushi@4.1.5(typescript@5.5.4)(viem@2.21.17(typescript@5.5.4)(zod@3.23.8))(zod@3.23.8): + sushi@4.1.7(typescript@5.5.4)(viem@2.21.17(typescript@5.5.4)(zod@3.23.8))(zod@3.23.8): dependencies: '@uniswap/token-lists': 1.0.0-beta.33 big.js: 6.1.1 @@ -35180,7 +35180,7 @@ snapshots: viem: 2.21.17(typescript@5.5.4)(zod@3.23.8) zod: 3.23.8 - sushi@4.1.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8): + sushi@4.1.7(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8): dependencies: '@uniswap/token-lists': 1.0.0-beta.33 big.js: 6.1.1 @@ -35194,7 +35194,7 @@ snapshots: viem: 2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8) zod: 3.23.8 - sushi@4.1.5(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8): + sushi@4.1.7(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8): dependencies: '@uniswap/token-lists': 1.0.0-beta.33 big.js: 6.1.1 From fc8bbbebf054264fcec3a5923c72338cb8f4ca82 Mon Sep 17 00:00:00 2001 From: 0xMasayoshi <0xMasayoshi@protonmail.com> Date: Mon, 21 Oct 2024 23:00:56 +0900 Subject: [PATCH 3/6] fix: use erc20Abi_approve in useTokenRevokeApproval --- .../wagmi/hooks/approvals/hooks/useTokenRevokeApproval.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/src/lib/wagmi/hooks/approvals/hooks/useTokenRevokeApproval.ts b/apps/web/src/lib/wagmi/hooks/approvals/hooks/useTokenRevokeApproval.ts index 20b889fa50..6b4b05c517 100644 --- a/apps/web/src/lib/wagmi/hooks/approvals/hooks/useTokenRevokeApproval.ts +++ b/apps/web/src/lib/wagmi/hooks/approvals/hooks/useTokenRevokeApproval.ts @@ -2,8 +2,9 @@ import { createErrorToast, createToast } from '@sushiswap/notifications' import { useCallback, useMemo, useState } from 'react' +import { erc20Abi_approve } from 'sushi/abi' import { Token } from 'sushi/currency' -import { Address, UserRejectedRequestError, erc20Abi } from 'viem' +import { Address, UserRejectedRequestError } from 'viem' import { usePublicClient, useSimulateContract, useWriteContract } from 'wagmi' import { SendTransactionReturnType } from 'wagmi/actions' @@ -22,7 +23,7 @@ export const useTokenRevokeApproval = ({ const client = usePublicClient() const { data: simulation } = useSimulateContract({ address: token?.wrapped.address as Address, - abi: erc20Abi, + abi: erc20Abi_approve, chainId: token?.chainId, functionName: 'approve', args: [spender, 0n], From 3de3201f929452c134bd0c3b03e870bf8d2daeb8 Mon Sep 17 00:00:00 2001 From: 0xMasayoshi <0xMasayoshi@protonmail.com> Date: Tue, 22 Oct 2024 15:02:57 +0900 Subject: [PATCH 4/6] fix: ape svg warning --- packages/ui/src/icons/network/naked/ApeNaked.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/icons/network/naked/ApeNaked.tsx b/packages/ui/src/icons/network/naked/ApeNaked.tsx index 0d230a188f..1d5dddf4a7 100644 --- a/packages/ui/src/icons/network/naked/ApeNaked.tsx +++ b/packages/ui/src/icons/network/naked/ApeNaked.tsx @@ -11,7 +11,7 @@ export const ApeNaked: NakedNetworkIconComponent = ({ circle, ...props }) => ( > {circle} From c7ba8f1075f31bb75ba411fb7f2c03e4b8abea86 Mon Sep 17 00:00:00 2001 From: 0xMasayoshi <0xMasayoshi@protonmail.com> Date: Tue, 22 Oct 2024 15:03:15 +0900 Subject: [PATCH 5/6] chore: bump sushi pkg --- apps/storybook/package.json | 2 +- apps/web/package.json | 2 +- packages/graph-client/package.json | 2 +- packages/hooks/package.json | 2 +- packages/notifications/package.json | 2 +- packages/steer-sdk/package.json | 2 +- packages/ui/package.json | 2 +- pnpm-lock.yaml | 40 ++++++++++++++--------------- 8 files changed, 27 insertions(+), 27 deletions(-) diff --git a/apps/storybook/package.json b/apps/storybook/package.json index 5583c141ed..5f26ef628f 100644 --- a/apps/storybook/package.json +++ b/apps/storybook/package.json @@ -19,7 +19,7 @@ "class-variance-authority": "0.7.0", "react": "18.2.0", "react-dom": "18.2.0", - "sushi": "4.1.7" + "sushi": "4.1.9" }, "devDependencies": { "@storybook/addon-a11y": "7.4.6", diff --git a/apps/web/package.json b/apps/web/package.json index 690767f00e..032dcedd48 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -87,7 +87,7 @@ "react-window": "1.8.7", "sharp": "^0.33.5", "strapi-sdk-js": "2.3.3", - "sushi": "4.1.7", + "sushi": "4.1.9", "swr": "2.1.5", "tiny-invariant": "1.3.1", "tronweb": "5.3.2", diff --git a/packages/graph-client/package.json b/packages/graph-client/package.json index 9550a870e0..28414d60b7 100644 --- a/packages/graph-client/package.json +++ b/packages/graph-client/package.json @@ -69,7 +69,7 @@ "graphql": "16.6.0", "graphql-request": "7.1.0", "json-bigint": "1.0.0", - "sushi": "4.1.7", + "sushi": "4.1.9", "viem": "2.21.4" }, "devDependencies": { diff --git a/packages/hooks/package.json b/packages/hooks/package.json index a0ab45acec..a40515b3d6 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -47,7 +47,7 @@ "@types/react-dom": "18.2.6", "react": "18.2.0", "react-dom": "18.2.0", - "sushi": "4.1.7", + "sushi": "4.1.9", "tailwindcss": "3.3.2", "typescript": "5.5.4" }, diff --git a/packages/notifications/package.json b/packages/notifications/package.json index 76cb94eb0a..9e299783db 100644 --- a/packages/notifications/package.json +++ b/packages/notifications/package.json @@ -54,7 +54,7 @@ "@tsconfig/strictest": "2.0.2", "@types/react": "18.2.14", "@types/react-dom": "18.2.6", - "sushi": "4.1.7", + "sushi": "4.1.9", "typescript": "5.5.4" }, "peerDependencies": { diff --git a/packages/steer-sdk/package.json b/packages/steer-sdk/package.json index 3fe2de984f..8c605fc8e1 100644 --- a/packages/steer-sdk/package.json +++ b/packages/steer-sdk/package.json @@ -54,7 +54,7 @@ }, "dependencies": { "@steerprotocol/contracts": "2.1.0-beta.14", - "sushi": "4.1.7", + "sushi": "4.1.9", "viem": "2.21.4" }, "devDependencies": { diff --git a/packages/ui/package.json b/packages/ui/package.json index 2765deb2ce..3e70be6556 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -121,7 +121,7 @@ "postcss": "8.4.23", "react": "18.2.0", "react-dom": "18.2.0", - "sushi": "4.1.7", + "sushi": "4.1.9", "tailwindcss": "3.3.2", "typescript": "5.5.4", "wagmi": "2.12.10" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3d3960259e..1ab06904d3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -105,8 +105,8 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) sushi: - specifier: 4.1.7 - version: 4.1.7(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.9 + version: 4.1.9(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) devDependencies: '@storybook/addon-a11y': specifier: 7.4.6 @@ -394,8 +394,8 @@ importers: specifier: 2.3.3 version: 2.3.3 sushi: - specifier: 4.1.7 - version: 4.1.7(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.9 + version: 4.1.9(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) swr: specifier: 2.1.5 version: 2.1.5(react@18.2.0) @@ -582,8 +582,8 @@ importers: specifier: 1.0.0 version: 1.0.0 sushi: - specifier: 4.1.7 - version: 4.1.7(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.9 + version: 4.1.9(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8) viem: specifier: 2.21.4 version: 2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8) @@ -644,8 +644,8 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) sushi: - specifier: 4.1.7 - version: 4.1.7(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.9 + version: 4.1.9(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8) tailwindcss: specifier: 3.3.2 version: 3.3.2(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) @@ -690,8 +690,8 @@ importers: specifier: 18.2.6 version: 18.2.6 sushi: - specifier: 4.1.7 - version: 4.1.7(typescript@5.5.4)(viem@2.21.17(typescript@5.5.4)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.9 + version: 4.1.9(typescript@5.5.4)(viem@2.21.17(typescript@5.5.4)(zod@3.23.8))(zod@3.23.8) typescript: specifier: 5.5.4 version: 5.5.4 @@ -702,8 +702,8 @@ importers: specifier: 2.1.0-beta.14 version: 2.1.0-beta.14(bufferutil@4.0.8)(encoding@0.1.13)(squirrelly@8.0.8)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4))(typescript@5.5.4)(utf-8-validate@5.0.10) sushi: - specifier: 4.1.7 - version: 4.1.7(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.9 + version: 4.1.9(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) viem: specifier: 2.21.4 version: 2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8) @@ -946,8 +946,8 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) sushi: - specifier: 4.1.7 - version: 4.1.7(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) + specifier: 4.1.9 + version: 4.1.9(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8) tailwindcss: specifier: 3.3.2 version: 3.3.2(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) @@ -14811,8 +14811,8 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} - sushi@4.1.7: - resolution: {integrity: sha512-pRpPdEDBIruR+xDZYHMN+Ycy2UHyGaQE/qLJMPYJIdaYSlRf4LURxKV47te2MCg8skyEbzXppYANXiVlv/0UlA==} + sushi@4.1.9: + resolution: {integrity: sha512-JJA5JD8U4FIu1FMX+6RLhH+jwsSxAHfA1+2BO+29mE2PchJg5wDthyJVtrK8YTi24Zzx/ip4Uxu8yjdD+8CNNQ==} peerDependencies: typescript: 5.5.4 viem: '*' @@ -35152,7 +35152,7 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - sushi@4.1.7(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8): + sushi@4.1.9(typescript@5.5.4)(viem@2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8): dependencies: '@uniswap/token-lists': 1.0.0-beta.33 big.js: 6.1.1 @@ -35166,7 +35166,7 @@ snapshots: viem: 2.21.17(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8) zod: 3.23.8 - sushi@4.1.7(typescript@5.5.4)(viem@2.21.17(typescript@5.5.4)(zod@3.23.8))(zod@3.23.8): + sushi@4.1.9(typescript@5.5.4)(viem@2.21.17(typescript@5.5.4)(zod@3.23.8))(zod@3.23.8): dependencies: '@uniswap/token-lists': 1.0.0-beta.33 big.js: 6.1.1 @@ -35180,7 +35180,7 @@ snapshots: viem: 2.21.17(typescript@5.5.4)(zod@3.23.8) zod: 3.23.8 - sushi@4.1.7(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8): + sushi@4.1.9(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8))(zod@3.23.8): dependencies: '@uniswap/token-lists': 1.0.0-beta.33 big.js: 6.1.1 @@ -35194,7 +35194,7 @@ snapshots: viem: 2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.23.8) zod: 3.23.8 - sushi@4.1.7(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8): + sushi@4.1.9(typescript@5.5.4)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@6.0.3)(zod@3.23.8))(zod@3.23.8): dependencies: '@uniswap/token-lists': 1.0.0-beta.33 big.js: 6.1.1 From cc391d2eba670a206b148a68e3d40ef863a887af Mon Sep 17 00:00:00 2001 From: 0xMasayoshi <0xMasayoshi@protonmail.com> Date: Wed, 23 Oct 2024 20:44:12 +0900 Subject: [PATCH 6/6] chore: update graph-client types --- .../src/subgraphs/data-api/types/TokenListChainId.ts | 2 +- .../src/subgraphs/data-api/types/TrendingTokensChainId.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/graph-client/src/subgraphs/data-api/types/TokenListChainId.ts b/packages/graph-client/src/subgraphs/data-api/types/TokenListChainId.ts index f46193bfa0..ac8038cd59 100644 --- a/packages/graph-client/src/subgraphs/data-api/types/TokenListChainId.ts +++ b/packages/graph-client/src/subgraphs/data-api/types/TokenListChainId.ts @@ -1,6 +1,6 @@ // This file is auto-generated by scripts/update-data-api-types.ts import type { ChainId } from 'sushi/chain' -export const TokenListChainIds = [42161,42170,43114,8453,288,56288,56,42220,1,250,122,100,11235,1666600000,1284,1285,137,534352,2222,1088,199,314,7000,1116,108,10,59144,1101,81457,2046399126,30,11155111,25,5000,324] as const +export const TokenListChainIds = [42161,42170,43114,8453,288,56288,56,42220,1,250,122,100,11235,1666600000,1284,1285,137,534352,2222,1088,199,314,7000,1116,108,10,59144,1101,81457,2046399126,30,11155111,25,5000,324,169,34443,167000,810180,33139] as const export type TokenListChainId = typeof TokenListChainIds[number] export function isTokenListChainId(value: ChainId): value is TokenListChainId {return TokenListChainIds.includes(value as TokenListChainId)} \ No newline at end of file diff --git a/packages/graph-client/src/subgraphs/data-api/types/TrendingTokensChainId.ts b/packages/graph-client/src/subgraphs/data-api/types/TrendingTokensChainId.ts index c620b8a939..c1304839b5 100644 --- a/packages/graph-client/src/subgraphs/data-api/types/TrendingTokensChainId.ts +++ b/packages/graph-client/src/subgraphs/data-api/types/TrendingTokensChainId.ts @@ -1,6 +1,6 @@ // This file is auto-generated by scripts/update-data-api-types.ts import type { ChainId } from 'sushi/chain' -export const TrendingTokensChainIds = [42161,42170,43114,8453,288,56288,56,42220,1,250,122,100,1666600000,1284,137,534352,2222,1088,199,7000,1116,108,10,59144,1101,81457,2046399126,30,25,5000,324] as const +export const TrendingTokensChainIds = [42161,42170,43114,8453,288,56288,56,42220,1,250,122,100,1666600000,1284,137,534352,2222,1088,199,7000,1116,108,10,59144,1101,81457,2046399126,30,25,5000,324,169,34443,167000,810180,33139] as const export type TrendingTokensChainId = typeof TrendingTokensChainIds[number] export function isTrendingTokensChainId(value: ChainId): value is TrendingTokensChainId {return TrendingTokensChainIds.includes(value as TrendingTokensChainId)} \ No newline at end of file