You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
Following the documentation, I tried to import getPositionDetailV3 like this:
import { getPositionDetailV3 } from '@flowx-pkg/ts-sdk';
However, I encountered the following error:
Module '"@flowx-pkg/ts-sdk"' has no exported member 'getPositionDetailV3'.ts(2305)
To work around this, I used:
import * as allGetPositionDetailV3 from "@flowx-pkg/ts-sdk/src/liquidity/v3/getPositionDetailV3.js";
...
await allGetPositionDetailV3.default.getPositionDetailV3(positionObjectId);
But then I received another error:
TypeError: Cannot set properties of undefined (setting 'cache')
at client (/Users/toanho/Personal/flowx/node_modules/@flowx-pkg/ts-sdk/src/constants.ts:2:2692)
at getTickClmm (/Users/toanho/Personal/flowx/node_modules/@flowx-pkg/ts-sdk/src/liquidity/v3/queries/getTickClmm.ts:12:89)
at getDataTicks (/Users/toanho/Personal/flowx/node_modules/@flowx-pkg/ts-sdk/src/liquidity/v3/getPositionDetailV3.ts:2:1949)
at Object.getPositionDetailV3 (/Users/toanho/Personal/flowx/node_modules/@flowx-pkg/ts-sdk/src/liquidity/v3/getPositionDetailV3.ts:2:8875)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SuiPositionManager.getPositionById (file:///Users/toanho/Personal/flowx/src/bot/services/sui/position-manager.ts:1:2856)
at async main (file:///Users/toanho/Personal/flowx/src/bot/services/sui/position-manager.test.ts:1:1010)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version: 0.0.16
Hi team,
Following the documentation, I tried to import
getPositionDetailV3
like this:However, I encountered the following error:
To work around this, I used:
But then I received another error:
The text was updated successfully, but these errors were encountered: