From 5718abb524e2a95b8990111ab31b62e5185df275 Mon Sep 17 00:00:00 2001 From: JunJie Date: Fri, 24 Jan 2025 18:57:15 +0800 Subject: [PATCH] add algebra --- packages/dodoex-api/package.json | 2 +- packages/dodoex-api/src/chainConfig/platform.ts | 2 +- packages/dodoex-widgets/package.json | 4 ++-- .../dodoex-widgets/src/providers/queryClient/index.ts | 9 ++++++++- packages/dodoex-widgets/src/widgets/PoolWidget/index.tsx | 2 +- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/packages/dodoex-api/package.json b/packages/dodoex-api/package.json index 424383a9..3d4f2fe3 100644 --- a/packages/dodoex-api/package.json +++ b/packages/dodoex-api/package.json @@ -1,6 +1,6 @@ { "name": "@dodoex/api", - "version": "3.0.3-bartio.1", + "version": "3.0.3-bartio.2", "description": "DODO API Kit", "source": "src/index.ts", "types": "dist/types/index.d.ts", diff --git a/packages/dodoex-api/src/chainConfig/platform.ts b/packages/dodoex-api/src/chainConfig/platform.ts index a066e544..fb39a874 100644 --- a/packages/dodoex-api/src/chainConfig/platform.ts +++ b/packages/dodoex-api/src/chainConfig/platform.ts @@ -20,7 +20,7 @@ export const platformIdMap: { [ChainId.MANTLE]: 'mantle', [ChainId.SEPOLIA]: 'sepolia', [ChainId.DODO_CHAIN_TESTNET]: 'dodochain-testnet', - [ChainId.BARTIO_TESTNET]: 'barito', + [ChainId.BARTIO_TESTNET]: 'berachain-testnet', [ChainId.TAIKO]: 'taiko', [ChainId.PLUME]: 'plume', [ChainId.PLUME_TESTNET]: 'plume-testnet', diff --git a/packages/dodoex-widgets/package.json b/packages/dodoex-widgets/package.json index b5513133..6c1bbfa8 100644 --- a/packages/dodoex-widgets/package.json +++ b/packages/dodoex-widgets/package.json @@ -1,6 +1,6 @@ { "name": "@dodoex/widgets", - "version": "3.0.2-bartio.8", + "version": "3.0.2-bartio.9", "description": "DODO Widgets", "source": "src/index.tsx", "types": "dist/types/index.d.ts", @@ -58,7 +58,7 @@ }, "dependencies": { "@babel/runtime": "^7.17.0", - "@dodoex/api": "3.0.3-bartio.1", + "@dodoex/api": "3.0.3-bartio.2", "@dodoex/components": "3.0.3", "@dodoex/contract-request": "^1.3.0", "@dodoex/dodo-contract-request": "^1.9.0-alpha.9", diff --git a/packages/dodoex-widgets/src/providers/queryClient/index.ts b/packages/dodoex-widgets/src/providers/queryClient/index.ts index 6d46de59..857d0234 100644 --- a/packages/dodoex-widgets/src/providers/queryClient/index.ts +++ b/packages/dodoex-widgets/src/providers/queryClient/index.ts @@ -1,3 +1,10 @@ import { QueryClient } from '@tanstack/react-query'; -export const queryClient = new QueryClient(); +export const queryClient = new QueryClient({ + defaultOptions: { + queries: { + // When the return data is Proxy, this method will convert the lost proxy attribute + structuralSharing: false, + }, + }, +}); diff --git a/packages/dodoex-widgets/src/widgets/PoolWidget/index.tsx b/packages/dodoex-widgets/src/widgets/PoolWidget/index.tsx index f836f475..0c951e1e 100644 --- a/packages/dodoex-widgets/src/widgets/PoolWidget/index.tsx +++ b/packages/dodoex-widgets/src/widgets/PoolWidget/index.tsx @@ -46,7 +46,7 @@ export function Pool() { /> ); case PageType.createPoolAlgebra: - return ; + return ; default: return )?.params} />; }