Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ECO-2669] Fix the aliased path resolution issues in the TypeScript SDK #511

Merged
merged 15 commits into from
Feb 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/typescript/frontend/src/app/home/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import { parseJSON, stringifyJSON } from "utils";
import { type DatabaseModels, toPriceFeed } from "@sdk/indexer-v2/types";
import { type DatabaseJsonType } from "@sdk/indexer-v2/types/json-types";
import { SortMarketsBy } from "@sdk/indexer-v2/types/common";
import { ORDER_BY } from "@sdk/queries";
import { getAptPrice } from "lib/queries/get-apt-price";
import { AptPriceContextProvider } from "context/AptPrice";
import { ORDER_BY } from "@sdk/indexer-v2/const";

export const revalidate = 2;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fetchMarkets } from "@/queries/home";
import { fetchUserLiquidityPools } from "@/queries/pools";
import type { SortMarketsBy } from "@sdk/indexer-v2/types/common";
import { toOrderBy } from "@sdk/queries";
import { toOrderBy } from "@sdk/indexer-v2/const";
import { MARKETS_PER_PAGE } from "lib/queries/sorting/const";
import { stringifyJSON } from "utils";

Expand Down
2 changes: 1 addition & 1 deletion src/typescript/frontend/src/app/stats/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { fetchMarkets, fetchPriceFeedWithMarketState } from "@/queries/home";
import { toPriceFeed } from "@sdk/indexer-v2/types";
import { SortMarketsBy } from "@sdk/indexer-v2/types/common";
import { ORDER_BY } from "@sdk/queries";
import StatsPageComponent from "./StatsPage";
import { compareNumber, getAptosClient } from "@sdk/utils";
import { RegistryView } from "@/contract-apis";
import { toRegistryView } from "@sdk-types";
import { ORDER_BY } from "@sdk/indexer-v2/const";

export const revalidate = 60;
export const dynamic = "force-static";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { HEADERS, MOBILE_HEADERS } from "./constants";

import { getEmptyListTr } from "utils";
import type { SortByPageQueryParams } from "lib/queries/sorting/types";
import type { OrderByStrings } from "@sdk/queries/const";
import type { OrderByStrings } from "@sdk/indexer-v2/const";
import useElementDimensions from "@hooks/use-element-dimensions";
import { type PoolsData } from "../../ClientPoolsPage";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type OrderByStrings } from "@sdk/queries/const";
import { type OrderByStrings } from "@sdk/indexer-v2/const";
import { toMarketDataSortByHomePage, type SortByPageQueryParams } from "./types";
import { safeParsePageWithDefault } from "lib/routes/home-page-params";
import { DEFAULT_SORT_BY, type SortMarketsBy } from "@sdk/indexer-v2/types/common";
Expand Down
2 changes: 1 addition & 1 deletion src/typescript/frontend/src/lib/routes/home-page-params.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { toOrderBy } from "@sdk/queries/const";
import { toOrderBy } from "@sdk/indexer-v2/const";
import { type HomePageSearchParams } from "lib/queries/sorting/query-params";
import { toMarketDataSortByHomePage } from "lib/queries/sorting/types";

Expand Down
2 changes: 1 addition & 1 deletion src/typescript/frontend/src/types/server-only.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare module "server-only";
declare module "server-only" {}
Loading
Loading