Skip to content

Commit ae781bf

Browse files
committed
fix lint
1 parent 92b0390 commit ae781bf

File tree

3 files changed

+26
-14
lines changed

3 files changed

+26
-14
lines changed

packages/cli/src/commands/publish.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,13 @@ export default class PublishCommand extends Command {
119119
} = await this.parse(PublishCommand);
120120

121121
if (ipfsHash) {
122-
await this.publishWithBrowser({ ipfsHash, webapp: webUiUrl, subgraphId, protocolNetwork, apiKey });
122+
await this.publishWithBrowser({
123+
ipfsHash,
124+
webapp: webUiUrl,
125+
subgraphId,
126+
protocolNetwork,
127+
apiKey,
128+
});
123129
return;
124130
}
125131

website/src/lib/graphql.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
export const NETWORK_SUBGRAPH_MAINNET = 'https://gateway.thegraph.com/api/{api-key}/subgraphs/id/DZz4kDTdmzWLWsV373w2bSmoar3umKKH9y82SUKr5qmp';
2-
export const NETWORK_SUBGRAPH_SEPOLIA = 'https://gateway.thegraph.com/api/{api-key}/subgraphs/id/3xQHhMudr1oh69ut36G2mbzpYmYxwqCeU6wwqyCDCnqV';
1+
export const NETWORK_SUBGRAPH_MAINNET =
2+
'https://gateway.thegraph.com/api/{api-key}/subgraphs/id/DZz4kDTdmzWLWsV373w2bSmoar3umKKH9y82SUKr5qmp';
3+
export const NETWORK_SUBGRAPH_SEPOLIA =
4+
'https://gateway.thegraph.com/api/{api-key}/subgraphs/id/3xQHhMudr1oh69ut36G2mbzpYmYxwqCeU6wwqyCDCnqV';
35

4-
export async function networkSubgraphExecute(
5-
query: string,
6-
endpoint: string,
7-
apiKey: string,
8-
) {
9-
const response = await fetch(endpoint.replace("{api-key}", apiKey), {
6+
export async function networkSubgraphExecute(query: string, endpoint: string, apiKey: string) {
7+
const response = await fetch(endpoint.replace('{api-key}', apiKey), {
108
method: 'POST',
119
body: JSON.stringify({
1210
query,

website/src/routes/publish.lazy.tsx

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function DeploySubgraph({
171171
deploymentId,
172172
subgraphId,
173173
network,
174-
apiKey
174+
apiKey,
175175
}: {
176176
deploymentId: string;
177177
subgraphId: string | undefined;
@@ -226,7 +226,8 @@ function DeploySubgraph({
226226
}
227227
if (!apiKey) {
228228
toast({
229-
description: "apiKey is missing in URL params. Please add it to the URL params and try again.",
229+
description:
230+
'apiKey is missing in URL params. Please add it to the URL params and try again.',
230231
variant: 'destructive',
231232
});
232233
return;
@@ -239,7 +240,7 @@ function DeploySubgraph({
239240
const data = await networkSubgraphExecute(
240241
GetSubgraphInfo(subgraphId),
241242
subgraphEndpoint,
242-
apiKey
243+
apiKey,
243244
);
244245

245246
const metadata = data.subgraph?.metadata;
@@ -292,7 +293,9 @@ function DeploySubgraph({
292293

293294
const version = form.watch('versionLabel');
294295

295-
return !subgraphInfo.subgraph?.versions.some(({ metadata }: { metadata: { label: string } }) => metadata?.label === version);
296+
return !subgraphInfo.subgraph?.versions.some(
297+
({ metadata }: { metadata: { label: string } }) => metadata?.label === version,
298+
);
296299
}
297300

298301
function isOwner() {
@@ -593,7 +596,12 @@ function Page() {
593596
<ConnectKitButton />
594597
</nav>
595598
{id ? (
596-
<DeploySubgraph deploymentId={id} subgraphId={subgraphId} network={protocolNetwork} apiKey={apiKey} />
599+
<DeploySubgraph
600+
deploymentId={id}
601+
subgraphId={subgraphId}
602+
network={protocolNetwork}
603+
apiKey={apiKey}
604+
/>
597605
) : (
598606
<div className="flex justify-center items-center min-h-screen -mt-16">
599607
Unable to find the Deployment ID. Go back to CLI

0 commit comments

Comments
 (0)