Skip to content

Commit 3f99701

Browse files
committed
chore: format
1 parent f5a534e commit 3f99701

File tree

1 file changed

+19
-48
lines changed

1 file changed

+19
-48
lines changed
Lines changed: 19 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
import type { FragmentOf } from 'gql.tada';
2-
import { graphql } from '../graphql';
3-
import { ChainFragment } from './chain';
4-
import { CurrencyFragment, PercentValueFragment } from './common';
5-
import { ReserveFragment } from './reserve';
6-
7-
export const MarketUserStateFragment = graphql(
8-
`
9-
fragment MarketUserState on MarketUserState {
1+
import type { FragmentOf } from "gql.tada";
2+
import { graphql } from "../graphql";
3+
import { ChainFragment } from "./chain";
4+
import { CurrencyFragment, PercentValueFragment } from "./common";
5+
import { ReserveFragment } from "./reserve";
6+
// prettier-ignore
7+
export const MarketUserStateFragment = graphql(`fragment MarketUserState on MarketUserState {
108
__typename
119
netWorth
1210
netAPY {
@@ -30,32 +28,20 @@ export const MarketUserStateFragment = graphql(
3028
...PercentValue
3129
}
3230
isInIsolationMode
33-
}
34-
`,
35-
[PercentValueFragment],
36-
);
31+
}`, [PercentValueFragment]);
3732
export type MarketUserState = FragmentOf<typeof MarketUserStateFragment>;
38-
39-
export const EmodeMarketReserveInfoFragment = graphql(
40-
`
41-
fragment EmodeMarketReserveInfo on EmodeMarketReserveInfo {
33+
// prettier-ignore
34+
export const EmodeMarketReserveInfoFragment = graphql(`fragment EmodeMarketReserveInfo on EmodeMarketReserveInfo {
4235
__typename
4336
underlyingToken {
4437
...Currency
4538
}
4639
canBeCollateral
4740
canBeBorrowed
48-
}
49-
`,
50-
[CurrencyFragment],
51-
);
52-
export type EmodeMarketReserveInfo = FragmentOf<
53-
typeof EmodeMarketReserveInfoFragment
54-
>;
55-
56-
export const EmodeMarketCategoryFragment = graphql(
57-
`
58-
fragment EmodeMarketCategory on EmodeMarketCategory {
41+
}`, [CurrencyFragment]);
42+
export type EmodeMarketReserveInfo = FragmentOf<typeof EmodeMarketReserveInfoFragment>;
43+
// prettier-ignore
44+
export const EmodeMarketCategoryFragment = graphql(`fragment EmodeMarketCategory on EmodeMarketCategory {
5945
__typename
6046
id
6147
label
@@ -71,17 +57,10 @@ export const EmodeMarketCategoryFragment = graphql(
7157
reserves {
7258
...EmodeMarketReserveInfo
7359
}
74-
}
75-
`,
76-
[PercentValueFragment, EmodeMarketReserveInfoFragment],
77-
);
78-
export type EmodeMarketCategory = FragmentOf<
79-
typeof EmodeMarketCategoryFragment
80-
>;
81-
82-
export const MarketFragment = graphql(
83-
`
84-
fragment Market on Market {
60+
}`, [PercentValueFragment, EmodeMarketReserveInfoFragment]);
61+
export type EmodeMarketCategory = FragmentOf<typeof EmodeMarketCategoryFragment>;
62+
// prettier-ignore
63+
export const MarketFragment = graphql(`fragment Market on Market {
8564
__typename
8665
name
8766
chain {
@@ -105,13 +84,5 @@ export const MarketFragment = graphql(
10584
supplyReserves: reserves(request: { reserveType: SUPPLY, orderBy: $suppliesOrderBy }) {
10685
...Reserve
10786
}
108-
}
109-
`,
110-
[
111-
ChainFragment,
112-
EmodeMarketCategoryFragment,
113-
ReserveFragment,
114-
MarketUserStateFragment,
115-
],
116-
);
87+
}`, [ChainFragment, EmodeMarketCategoryFragment, ReserveFragment, MarketUserStateFragment]);
11788
export type Market = FragmentOf<typeof MarketFragment>;

0 commit comments

Comments
 (0)