Skip to content

Commit

Permalink
[ECO-2669] Fix the aliased path resolution issues in the TypeScript S…
Browse files Browse the repository at this point in the history
…DK (#511)
  • Loading branch information
xbtmatt authored and alnoki committed Feb 4, 2025
1 parent bd93c2f commit 4e2012b
Show file tree
Hide file tree
Showing 30 changed files with 800 additions and 35 deletions.
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

0 comments on commit 4e2012b

Please sign in to comment.