Skip to content

Commit 69dbb3a

Browse files
committed
fix: fragment dependency
1 parent b4340f1 commit 69dbb3a

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

packages/env/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ export const staging: EnvironmentConfig = new Proxy<EnvironmentConfig>(
3737
*/
3838
export const local: EnvironmentConfig = {
3939
name: 'local',
40-
backend: 'http://localhost:3000/graphql',
40+
backend: 'http://localhost:3011/graphql',
4141
};

packages/graphql/src/fragments/market.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,6 @@ import { ChainFragment } from './chain';
44
import { CurrencyFragment, DecimalValueFragment } from './common';
55
import { ReserveFragment } from './reserve';
66

7-
export const MarketInfoFragment = graphql(
8-
`fragment MarketInfo on MarketInfo {
9-
__typename
10-
name
11-
chain {
12-
...Chain
13-
}
14-
icon
15-
}`,
16-
[ChainFragment],
17-
);
18-
export type MarketInfo = FragmentOf<typeof MarketInfoFragment>;
19-
207
export const MarketUserStatsFragment = graphql(
218
`fragment MarketUserStats on MarketUserStats {
229
__typename

packages/graphql/src/fragments/reserve.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
import type { FragmentOf } from 'gql.tada';
22
import { graphql } from '../graphql';
3+
import { ChainFragment } from './chain';
34
import {
45
CurrencyFragment,
56
DecimalValueFragment,
67
NativeCurrencyFragment,
78
TokenAmountFragment,
89
} from './common';
9-
import { MarketInfoFragment } from './market';
10+
11+
export const MarketInfoFragment = graphql(
12+
`fragment MarketInfo on MarketInfo {
13+
__typename
14+
name
15+
chain {
16+
...Chain
17+
}
18+
icon
19+
}`,
20+
[ChainFragment],
21+
);
22+
export type MarketInfo = FragmentOf<typeof MarketInfoFragment>;
1023

1124
export const EmodeReserveInfoFragment = graphql(
1225
`fragment EmodeReserveInfo on EmodeReserveInfo {

0 commit comments

Comments
 (0)