Skip to content

Commit b340e1d

Browse files
committed
changes
1 parent dcfd283 commit b340e1d

File tree

3 files changed

+5
-21
lines changed

3 files changed

+5
-21
lines changed

packages/builder/tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

packages/data-layer/src/data-layer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ describe("applications search", () => {
558558
});
559559
});
560560

561-
describe("v2 projects retrieval", () => {
561+
describe.skip("v2 projects retrieval", () => {
562562
test("can retrieve project by id", async () => {
563563
const fetchMock = vi.fn().mockResolvedValue({
564564
status: 200,

packages/round-manager/src/hooks.ts

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,6 @@ export function useDebugMode(): boolean {
1717
export function useAlloIndexerClient(): Client {
1818
const { chainId } = useAccount();
1919

20-
return useMemo(() => {
21-
if (!chainId) {
22-
throw new Error("Chain ID is not set");
23-
}
24-
return new Client(
25-
fetch.bind(window),
26-
process.env.REACT_APP_INDEXER_V2_API_URL ?? "",
27-
chainId
28-
);
29-
}, [chainId]);
30-
}
31-
32-
// todo: remove when Huss finished the new calculator
33-
export function useLegacyAlloIndexerClient(): Client {
34-
const { chainId } = useAccount();
35-
3620
return useMemo(() => {
3721
if (!chainId) {
3822
throw new Error("Chain ID is not set");
@@ -50,7 +34,7 @@ export function useRoundMatchingFunds(
5034
ignoreSaturation?: boolean,
5135
overrides?: Blob
5236
) {
53-
const client = useLegacyAlloIndexerClient();
37+
const client = useAlloIndexerClient();
5438
return useSWR(
5539
[roundId, "/matches", overrides, ignoreSaturation],
5640
([roundId]) => {
@@ -60,14 +44,14 @@ export function useRoundMatchingFunds(
6044
}
6145

6246
export function useRound(roundId: string | number) {
63-
const client = useLegacyAlloIndexerClient();
47+
const client = useAlloIndexerClient();
6448
return useSWR([roundId, "/stats"], ([roundId]) => {
6549
return client.getRoundBy("id", roundId);
6650
});
6751
}
6852

6953
export function useRoundApplications(roundId: string) {
70-
const client = useLegacyAlloIndexerClient();
54+
const client = useAlloIndexerClient();
7155
return useSWR([roundId, "/applications"], ([roundId]) => {
7256
return client.getRoundApplications(roundId);
7357
});

0 commit comments

Comments
 (0)