@graphprotocol/graph-cli 0.40.0 → 0.40.1-alpha-20230216174117-760a195
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/bin.js +31 -3
- package/dist/command-helpers/network.js +16 -13
- package/dist/command-helpers/network.test.js +2 -2
- package/dist/command-helpers/spinner.js +4 -27
- package/dist/commands/add.js +48 -67
- package/dist/commands/auth.js +40 -102
- package/dist/commands/build.js +51 -68
- package/dist/commands/codegen.js +39 -61
- package/dist/commands/create.js +31 -55
- package/dist/commands/deploy.js +112 -174
- package/dist/commands/init.js +519 -512
- package/dist/commands/local.js +93 -103
- package/dist/commands/remove.js +32 -56
- package/dist/commands/test.js +81 -88
- package/dist/index.js +5 -0
- package/oclif.manifest.json +724 -0
- package/package.json +10 -3
- package/dist/cli.js +0 -26
- package/dist/command-helpers/gluegun.js +0 -48
|
@@ -0,0 +1,724 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.40.1-alpha-20230216174117-760a195",
|
|
3
|
+
"commands": {
|
|
4
|
+
"add": {
|
|
5
|
+
"id": "add",
|
|
6
|
+
"description": "Adds a new datasource to a subgraph.",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"pluginName": "@graphprotocol/graph-cli",
|
|
9
|
+
"pluginAlias": "@graphprotocol/graph-cli",
|
|
10
|
+
"pluginType": "core",
|
|
11
|
+
"aliases": [],
|
|
12
|
+
"flags": {
|
|
13
|
+
"abi": {
|
|
14
|
+
"name": "abi",
|
|
15
|
+
"type": "option",
|
|
16
|
+
"summary": "Path to the contract ABI.",
|
|
17
|
+
"multiple": false,
|
|
18
|
+
"default": "*Download from Etherscan*"
|
|
19
|
+
},
|
|
20
|
+
"contract-name": {
|
|
21
|
+
"name": "contract-name",
|
|
22
|
+
"type": "option",
|
|
23
|
+
"summary": "Name of the contract.",
|
|
24
|
+
"multiple": false,
|
|
25
|
+
"default": "Contract"
|
|
26
|
+
},
|
|
27
|
+
"merge-entities": {
|
|
28
|
+
"name": "merge-entities",
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"summary": "Whether to merge entities with the same name.",
|
|
31
|
+
"allowNo": false
|
|
32
|
+
},
|
|
33
|
+
"network-file": {
|
|
34
|
+
"name": "network-file",
|
|
35
|
+
"type": "option",
|
|
36
|
+
"summary": "Networks config file path.",
|
|
37
|
+
"multiple": false,
|
|
38
|
+
"default": "networks.json"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"args": {
|
|
42
|
+
"address": {
|
|
43
|
+
"name": "address",
|
|
44
|
+
"description": "The contract address",
|
|
45
|
+
"required": true
|
|
46
|
+
},
|
|
47
|
+
"subgraph-manifest": {
|
|
48
|
+
"name": "subgraph-manifest",
|
|
49
|
+
"default": "subgraph.yaml"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"auth": {
|
|
54
|
+
"id": "auth",
|
|
55
|
+
"description": "Sets the deploy key to use when deploying to a Graph node.",
|
|
56
|
+
"strict": true,
|
|
57
|
+
"pluginName": "@graphprotocol/graph-cli",
|
|
58
|
+
"pluginAlias": "@graphprotocol/graph-cli",
|
|
59
|
+
"pluginType": "core",
|
|
60
|
+
"aliases": [],
|
|
61
|
+
"flags": {
|
|
62
|
+
"product": {
|
|
63
|
+
"name": "product",
|
|
64
|
+
"type": "option",
|
|
65
|
+
"summary": "Select a product for which to authenticate.",
|
|
66
|
+
"multiple": false,
|
|
67
|
+
"options": [
|
|
68
|
+
"subgraph-studio",
|
|
69
|
+
"hosted-service"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"studio": {
|
|
73
|
+
"name": "studio",
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"summary": "Shortcut for \"--product subgraph-studio\".",
|
|
76
|
+
"allowNo": false,
|
|
77
|
+
"exclusive": [
|
|
78
|
+
"product"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"args": {
|
|
83
|
+
"node": {
|
|
84
|
+
"name": "node"
|
|
85
|
+
},
|
|
86
|
+
"deploy-key": {
|
|
87
|
+
"name": "deploy-key"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"build": {
|
|
92
|
+
"id": "build",
|
|
93
|
+
"description": "Builds a subgraph and (optionally) uploads it to IPFS.",
|
|
94
|
+
"strict": true,
|
|
95
|
+
"pluginName": "@graphprotocol/graph-cli",
|
|
96
|
+
"pluginAlias": "@graphprotocol/graph-cli",
|
|
97
|
+
"pluginType": "core",
|
|
98
|
+
"aliases": [],
|
|
99
|
+
"flags": {
|
|
100
|
+
"ipfs": {
|
|
101
|
+
"name": "ipfs",
|
|
102
|
+
"type": "option",
|
|
103
|
+
"char": "i",
|
|
104
|
+
"summary": "Upload build results to an IPFS node.",
|
|
105
|
+
"multiple": false
|
|
106
|
+
},
|
|
107
|
+
"output-dir": {
|
|
108
|
+
"name": "output-dir",
|
|
109
|
+
"type": "option",
|
|
110
|
+
"char": "o",
|
|
111
|
+
"summary": "Output directory for build results.",
|
|
112
|
+
"multiple": false,
|
|
113
|
+
"default": "build/"
|
|
114
|
+
},
|
|
115
|
+
"output-format": {
|
|
116
|
+
"name": "output-format",
|
|
117
|
+
"type": "option",
|
|
118
|
+
"char": "t",
|
|
119
|
+
"summary": "Output format for mappings.",
|
|
120
|
+
"multiple": false,
|
|
121
|
+
"options": [
|
|
122
|
+
"wasm",
|
|
123
|
+
"wast"
|
|
124
|
+
],
|
|
125
|
+
"default": "wasm"
|
|
126
|
+
},
|
|
127
|
+
"skip-migrations": {
|
|
128
|
+
"name": "skip-migrations",
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"summary": "Skip subgraph migrations.",
|
|
131
|
+
"allowNo": false
|
|
132
|
+
},
|
|
133
|
+
"watch": {
|
|
134
|
+
"name": "watch",
|
|
135
|
+
"type": "boolean",
|
|
136
|
+
"char": "w",
|
|
137
|
+
"summary": "Regenerate types when subgraph files change.",
|
|
138
|
+
"allowNo": false
|
|
139
|
+
},
|
|
140
|
+
"network": {
|
|
141
|
+
"name": "network",
|
|
142
|
+
"type": "option",
|
|
143
|
+
"summary": "Network configuration to use from the networks config file.",
|
|
144
|
+
"multiple": false
|
|
145
|
+
},
|
|
146
|
+
"network-file": {
|
|
147
|
+
"name": "network-file",
|
|
148
|
+
"type": "option",
|
|
149
|
+
"summary": "Networks config file path.",
|
|
150
|
+
"multiple": false,
|
|
151
|
+
"default": "networks.json"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"args": {
|
|
155
|
+
"subgraph-manifest": {
|
|
156
|
+
"name": "subgraph-manifest",
|
|
157
|
+
"default": "subgraph.yaml"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"codegen": {
|
|
162
|
+
"id": "codegen",
|
|
163
|
+
"description": "Generates AssemblyScript types for a subgraph.",
|
|
164
|
+
"strict": true,
|
|
165
|
+
"pluginName": "@graphprotocol/graph-cli",
|
|
166
|
+
"pluginAlias": "@graphprotocol/graph-cli",
|
|
167
|
+
"pluginType": "core",
|
|
168
|
+
"aliases": [],
|
|
169
|
+
"flags": {
|
|
170
|
+
"output-dir": {
|
|
171
|
+
"name": "output-dir",
|
|
172
|
+
"type": "option",
|
|
173
|
+
"char": "o",
|
|
174
|
+
"summary": "Output directory for generated types.",
|
|
175
|
+
"multiple": false,
|
|
176
|
+
"default": "generated/"
|
|
177
|
+
},
|
|
178
|
+
"skip-migrations": {
|
|
179
|
+
"name": "skip-migrations",
|
|
180
|
+
"type": "boolean",
|
|
181
|
+
"summary": "Skip subgraph migrations.",
|
|
182
|
+
"allowNo": false
|
|
183
|
+
},
|
|
184
|
+
"watch": {
|
|
185
|
+
"name": "watch",
|
|
186
|
+
"type": "boolean",
|
|
187
|
+
"char": "w",
|
|
188
|
+
"summary": "Regenerate types when subgraph files change.",
|
|
189
|
+
"allowNo": false
|
|
190
|
+
},
|
|
191
|
+
"uncrashable": {
|
|
192
|
+
"name": "uncrashable",
|
|
193
|
+
"type": "boolean",
|
|
194
|
+
"char": "u",
|
|
195
|
+
"summary": "Generate Float Subgraph Uncrashable helper file.",
|
|
196
|
+
"allowNo": false
|
|
197
|
+
},
|
|
198
|
+
"uncrashable-config": {
|
|
199
|
+
"name": "uncrashable-config",
|
|
200
|
+
"type": "option",
|
|
201
|
+
"summary": "Directory for uncrashable config.",
|
|
202
|
+
"multiple": false,
|
|
203
|
+
"dependsOn": [
|
|
204
|
+
"uncrashable"
|
|
205
|
+
],
|
|
206
|
+
"aliases": [
|
|
207
|
+
"uc"
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"args": {
|
|
212
|
+
"subgraph-manifest": {
|
|
213
|
+
"name": "subgraph-manifest",
|
|
214
|
+
"default": "subgraph.yaml"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"create": {
|
|
219
|
+
"id": "create",
|
|
220
|
+
"description": "Registers a subgraph name",
|
|
221
|
+
"strict": true,
|
|
222
|
+
"pluginName": "@graphprotocol/graph-cli",
|
|
223
|
+
"pluginAlias": "@graphprotocol/graph-cli",
|
|
224
|
+
"pluginType": "core",
|
|
225
|
+
"aliases": [],
|
|
226
|
+
"flags": {
|
|
227
|
+
"node": {
|
|
228
|
+
"name": "node",
|
|
229
|
+
"type": "option",
|
|
230
|
+
"char": "g",
|
|
231
|
+
"summary": "Graph node to create the subgraph in.",
|
|
232
|
+
"required": true,
|
|
233
|
+
"multiple": false
|
|
234
|
+
},
|
|
235
|
+
"access-token": {
|
|
236
|
+
"name": "access-token",
|
|
237
|
+
"type": "option",
|
|
238
|
+
"summary": "Graph access token.",
|
|
239
|
+
"multiple": false
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"args": {
|
|
243
|
+
"subgraph-name": {
|
|
244
|
+
"name": "subgraph-name",
|
|
245
|
+
"required": true
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"deploy": {
|
|
250
|
+
"id": "deploy",
|
|
251
|
+
"description": "Deploys a subgraph to a Graph node.",
|
|
252
|
+
"strict": true,
|
|
253
|
+
"pluginName": "@graphprotocol/graph-cli",
|
|
254
|
+
"pluginAlias": "@graphprotocol/graph-cli",
|
|
255
|
+
"pluginType": "core",
|
|
256
|
+
"aliases": [],
|
|
257
|
+
"flags": {
|
|
258
|
+
"product": {
|
|
259
|
+
"name": "product",
|
|
260
|
+
"type": "option",
|
|
261
|
+
"summary": "Select a product for which to authenticate.",
|
|
262
|
+
"multiple": false,
|
|
263
|
+
"options": [
|
|
264
|
+
"subgraph-studio",
|
|
265
|
+
"hosted-service"
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
"studio": {
|
|
269
|
+
"name": "studio",
|
|
270
|
+
"type": "boolean",
|
|
271
|
+
"summary": "Shortcut for \"--product subgraph-studio\".",
|
|
272
|
+
"allowNo": false,
|
|
273
|
+
"exclusive": [
|
|
274
|
+
"product"
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
"node": {
|
|
278
|
+
"name": "node",
|
|
279
|
+
"type": "option",
|
|
280
|
+
"char": "g",
|
|
281
|
+
"summary": "Graph node for which to initialize.",
|
|
282
|
+
"multiple": false
|
|
283
|
+
},
|
|
284
|
+
"deploy-key": {
|
|
285
|
+
"name": "deploy-key",
|
|
286
|
+
"type": "option",
|
|
287
|
+
"summary": "User deploy key.",
|
|
288
|
+
"required": true,
|
|
289
|
+
"multiple": false,
|
|
290
|
+
"exclusive": [
|
|
291
|
+
"access-token"
|
|
292
|
+
]
|
|
293
|
+
},
|
|
294
|
+
"access-token": {
|
|
295
|
+
"name": "access-token",
|
|
296
|
+
"type": "option",
|
|
297
|
+
"summary": "Graph access key. DEPRECATED: Use \"--deploy-key\" instead.",
|
|
298
|
+
"multiple": false,
|
|
299
|
+
"exclusive": [
|
|
300
|
+
"deploy-key"
|
|
301
|
+
],
|
|
302
|
+
"deprecated": true
|
|
303
|
+
},
|
|
304
|
+
"version-label": {
|
|
305
|
+
"name": "version-label",
|
|
306
|
+
"type": "option",
|
|
307
|
+
"char": "l",
|
|
308
|
+
"summary": "Version label used for the deployment.",
|
|
309
|
+
"multiple": false
|
|
310
|
+
},
|
|
311
|
+
"ipfs": {
|
|
312
|
+
"name": "ipfs",
|
|
313
|
+
"type": "option",
|
|
314
|
+
"char": "i",
|
|
315
|
+
"summary": "Upload build results to an IPFS node.",
|
|
316
|
+
"multiple": false,
|
|
317
|
+
"default": "https://api.thegraph.com/ipfs/"
|
|
318
|
+
},
|
|
319
|
+
"headers": {
|
|
320
|
+
"name": "headers",
|
|
321
|
+
"type": "option",
|
|
322
|
+
"summary": "Add custom headers that will be used by the IPFS HTTP client.",
|
|
323
|
+
"multiple": false,
|
|
324
|
+
"default": {},
|
|
325
|
+
"aliases": [
|
|
326
|
+
"hdr"
|
|
327
|
+
]
|
|
328
|
+
},
|
|
329
|
+
"debug-fork": {
|
|
330
|
+
"name": "debug-fork",
|
|
331
|
+
"type": "option",
|
|
332
|
+
"summary": "ID of a remote subgraph whose store will be GraphQL queried.",
|
|
333
|
+
"multiple": false
|
|
334
|
+
},
|
|
335
|
+
"output-dir": {
|
|
336
|
+
"name": "output-dir",
|
|
337
|
+
"type": "option",
|
|
338
|
+
"char": "o",
|
|
339
|
+
"summary": "Output directory for build results.",
|
|
340
|
+
"multiple": false,
|
|
341
|
+
"default": "build/"
|
|
342
|
+
},
|
|
343
|
+
"skip-migrations": {
|
|
344
|
+
"name": "skip-migrations",
|
|
345
|
+
"type": "boolean",
|
|
346
|
+
"summary": "Skip subgraph migrations.",
|
|
347
|
+
"allowNo": false
|
|
348
|
+
},
|
|
349
|
+
"watch": {
|
|
350
|
+
"name": "watch",
|
|
351
|
+
"type": "boolean",
|
|
352
|
+
"char": "w",
|
|
353
|
+
"summary": "Regenerate types when subgraph files change.",
|
|
354
|
+
"allowNo": false
|
|
355
|
+
},
|
|
356
|
+
"network": {
|
|
357
|
+
"name": "network",
|
|
358
|
+
"type": "option",
|
|
359
|
+
"summary": "Network configuration to use from the networks config file.",
|
|
360
|
+
"multiple": false
|
|
361
|
+
},
|
|
362
|
+
"network-file": {
|
|
363
|
+
"name": "network-file",
|
|
364
|
+
"type": "option",
|
|
365
|
+
"summary": "Networks config file path.",
|
|
366
|
+
"multiple": false,
|
|
367
|
+
"default": "networks.json"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"args": {
|
|
371
|
+
"subgraph-name": {
|
|
372
|
+
"name": "subgraph-name",
|
|
373
|
+
"required": true
|
|
374
|
+
},
|
|
375
|
+
"subgraph-manifest": {
|
|
376
|
+
"name": "subgraph-manifest",
|
|
377
|
+
"default": "subgraph.yaml"
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"init": {
|
|
382
|
+
"id": "init",
|
|
383
|
+
"description": "Creates a new subgraph with basic scaffolding.",
|
|
384
|
+
"strict": true,
|
|
385
|
+
"pluginName": "@graphprotocol/graph-cli",
|
|
386
|
+
"pluginAlias": "@graphprotocol/graph-cli",
|
|
387
|
+
"pluginType": "core",
|
|
388
|
+
"aliases": [],
|
|
389
|
+
"flags": {
|
|
390
|
+
"protocol": {
|
|
391
|
+
"name": "protocol",
|
|
392
|
+
"type": "option",
|
|
393
|
+
"required": true,
|
|
394
|
+
"multiple": false,
|
|
395
|
+
"options": [
|
|
396
|
+
"arweave",
|
|
397
|
+
"ethereum",
|
|
398
|
+
"near",
|
|
399
|
+
"cosmos",
|
|
400
|
+
"substreams"
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
"product": {
|
|
404
|
+
"name": "product",
|
|
405
|
+
"type": "option",
|
|
406
|
+
"summary": "Selects the product for which to initialize.",
|
|
407
|
+
"multiple": false,
|
|
408
|
+
"options": [
|
|
409
|
+
"subgraph-studio",
|
|
410
|
+
"hosted-service"
|
|
411
|
+
]
|
|
412
|
+
},
|
|
413
|
+
"studio": {
|
|
414
|
+
"name": "studio",
|
|
415
|
+
"type": "boolean",
|
|
416
|
+
"summary": "Shortcut for \"--product subgraph-studio\".",
|
|
417
|
+
"allowNo": false,
|
|
418
|
+
"exclusive": [
|
|
419
|
+
"product"
|
|
420
|
+
]
|
|
421
|
+
},
|
|
422
|
+
"node": {
|
|
423
|
+
"name": "node",
|
|
424
|
+
"type": "option",
|
|
425
|
+
"char": "g",
|
|
426
|
+
"summary": "Graph node for which to initialize.",
|
|
427
|
+
"multiple": false
|
|
428
|
+
},
|
|
429
|
+
"allow-simple-name": {
|
|
430
|
+
"name": "allow-simple-name",
|
|
431
|
+
"type": "boolean",
|
|
432
|
+
"description": "Use a subgraph name without a prefix.",
|
|
433
|
+
"allowNo": false
|
|
434
|
+
},
|
|
435
|
+
"from-contract": {
|
|
436
|
+
"name": "from-contract",
|
|
437
|
+
"type": "option",
|
|
438
|
+
"description": "Creates a scaffold based on an existing contract.",
|
|
439
|
+
"multiple": false,
|
|
440
|
+
"exclusive": [
|
|
441
|
+
"from-example"
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
"from-example": {
|
|
445
|
+
"name": "from-example",
|
|
446
|
+
"type": "option",
|
|
447
|
+
"description": "Creates a scaffold based on an example subgraph.",
|
|
448
|
+
"multiple": false,
|
|
449
|
+
"exclusive": [
|
|
450
|
+
"from-contract"
|
|
451
|
+
]
|
|
452
|
+
},
|
|
453
|
+
"contract-name": {
|
|
454
|
+
"name": "contract-name",
|
|
455
|
+
"type": "option",
|
|
456
|
+
"description": "Name of the contract.",
|
|
457
|
+
"helpGroup": "Scaffold from contract",
|
|
458
|
+
"multiple": false,
|
|
459
|
+
"dependsOn": [
|
|
460
|
+
"from-contract"
|
|
461
|
+
]
|
|
462
|
+
},
|
|
463
|
+
"index-events": {
|
|
464
|
+
"name": "index-events",
|
|
465
|
+
"type": "boolean",
|
|
466
|
+
"description": "Index contract events as entities.",
|
|
467
|
+
"helpGroup": "Scaffold from contract",
|
|
468
|
+
"allowNo": false,
|
|
469
|
+
"dependsOn": [
|
|
470
|
+
"from-contract"
|
|
471
|
+
]
|
|
472
|
+
},
|
|
473
|
+
"start-block": {
|
|
474
|
+
"name": "start-block",
|
|
475
|
+
"type": "option",
|
|
476
|
+
"description": "Block number to start indexing from.",
|
|
477
|
+
"helpGroup": "Scaffold from contract",
|
|
478
|
+
"multiple": false,
|
|
479
|
+
"dependsOn": [
|
|
480
|
+
"from-contract"
|
|
481
|
+
]
|
|
482
|
+
},
|
|
483
|
+
"abi": {
|
|
484
|
+
"name": "abi",
|
|
485
|
+
"type": "option",
|
|
486
|
+
"summary": "Path to the contract ABI",
|
|
487
|
+
"multiple": false,
|
|
488
|
+
"dependsOn": [
|
|
489
|
+
"from-contract"
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
"network": {
|
|
493
|
+
"name": "network",
|
|
494
|
+
"type": "option",
|
|
495
|
+
"summary": "Network the contract is deployed to.",
|
|
496
|
+
"multiple": false,
|
|
497
|
+
"options": [
|
|
498
|
+
"mainnet",
|
|
499
|
+
"rinkeby",
|
|
500
|
+
"goerli",
|
|
501
|
+
"poa-core",
|
|
502
|
+
"poa-sokol",
|
|
503
|
+
"gnosis",
|
|
504
|
+
"matic",
|
|
505
|
+
"mumbai",
|
|
506
|
+
"fantom",
|
|
507
|
+
"fantom-testnet",
|
|
508
|
+
"bsc",
|
|
509
|
+
"chapel",
|
|
510
|
+
"clover",
|
|
511
|
+
"avalanche",
|
|
512
|
+
"fuji",
|
|
513
|
+
"celo",
|
|
514
|
+
"celo-alfajores",
|
|
515
|
+
"fuse",
|
|
516
|
+
"moonbeam",
|
|
517
|
+
"moonriver",
|
|
518
|
+
"mbase",
|
|
519
|
+
"arbitrum-one",
|
|
520
|
+
"arbitrum-goerli",
|
|
521
|
+
"optimism",
|
|
522
|
+
"optimism-kovan",
|
|
523
|
+
"aurora",
|
|
524
|
+
"aurora-testnet",
|
|
525
|
+
"near-mainnet",
|
|
526
|
+
"near-testnet",
|
|
527
|
+
"cosmoshub-4",
|
|
528
|
+
"theta-testnet-001",
|
|
529
|
+
"osmosis-1",
|
|
530
|
+
"osmo-test-4",
|
|
531
|
+
"juno-1",
|
|
532
|
+
"uni-3"
|
|
533
|
+
],
|
|
534
|
+
"dependsOn": [
|
|
535
|
+
"from-contract"
|
|
536
|
+
]
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
"args": {
|
|
540
|
+
"subgraphName": {
|
|
541
|
+
"name": "subgraphName",
|
|
542
|
+
"required": true
|
|
543
|
+
},
|
|
544
|
+
"directory": {
|
|
545
|
+
"name": "directory",
|
|
546
|
+
"required": true
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
"local": {
|
|
551
|
+
"id": "local",
|
|
552
|
+
"description": "Runs local tests against a Graph Node environment (using Ganache by default).",
|
|
553
|
+
"strict": true,
|
|
554
|
+
"pluginName": "@graphprotocol/graph-cli",
|
|
555
|
+
"pluginAlias": "@graphprotocol/graph-cli",
|
|
556
|
+
"pluginType": "core",
|
|
557
|
+
"aliases": [],
|
|
558
|
+
"flags": {
|
|
559
|
+
"node-logs": {
|
|
560
|
+
"name": "node-logs",
|
|
561
|
+
"type": "boolean",
|
|
562
|
+
"summary": "Print the Graph Node logs.",
|
|
563
|
+
"allowNo": false
|
|
564
|
+
},
|
|
565
|
+
"ethereum-logs": {
|
|
566
|
+
"name": "ethereum-logs",
|
|
567
|
+
"type": "boolean",
|
|
568
|
+
"summary": "Print the Ethereum logs.",
|
|
569
|
+
"allowNo": false
|
|
570
|
+
},
|
|
571
|
+
"compose-file": {
|
|
572
|
+
"name": "compose-file",
|
|
573
|
+
"type": "option",
|
|
574
|
+
"summary": "Custom Docker Compose file for additional services.",
|
|
575
|
+
"multiple": false
|
|
576
|
+
},
|
|
577
|
+
"node-image": {
|
|
578
|
+
"name": "node-image",
|
|
579
|
+
"type": "option",
|
|
580
|
+
"summary": "Custom Graph Node image to test against.",
|
|
581
|
+
"multiple": false,
|
|
582
|
+
"default": "graphprotocol/graph-node:latest"
|
|
583
|
+
},
|
|
584
|
+
"standalone-node": {
|
|
585
|
+
"name": "standalone-node",
|
|
586
|
+
"type": "option",
|
|
587
|
+
"summary": "Use a standalone Graph Node outside Docker Compose.",
|
|
588
|
+
"multiple": false
|
|
589
|
+
},
|
|
590
|
+
"standalone-node-args": {
|
|
591
|
+
"name": "standalone-node-args",
|
|
592
|
+
"type": "option",
|
|
593
|
+
"summary": "Custom arguments to be passed to the standalone Graph Node.",
|
|
594
|
+
"multiple": false,
|
|
595
|
+
"dependsOn": [
|
|
596
|
+
"standalone-node"
|
|
597
|
+
]
|
|
598
|
+
},
|
|
599
|
+
"skip-wait-for-ipfs": {
|
|
600
|
+
"name": "skip-wait-for-ipfs",
|
|
601
|
+
"type": "boolean",
|
|
602
|
+
"summary": "Don't wait for IPFS to be up at localhost:15001",
|
|
603
|
+
"allowNo": false
|
|
604
|
+
},
|
|
605
|
+
"skip-wait-for-etherium": {
|
|
606
|
+
"name": "skip-wait-for-etherium",
|
|
607
|
+
"type": "boolean",
|
|
608
|
+
"summary": "Don't wait for Ethereum to be up at localhost:18545",
|
|
609
|
+
"allowNo": false
|
|
610
|
+
},
|
|
611
|
+
"skip-wait-for-postgres": {
|
|
612
|
+
"name": "skip-wait-for-postgres",
|
|
613
|
+
"type": "boolean",
|
|
614
|
+
"summary": "Don't wait for Postgres to be up at localhost:15432",
|
|
615
|
+
"allowNo": false
|
|
616
|
+
},
|
|
617
|
+
"timeout": {
|
|
618
|
+
"name": "timeout",
|
|
619
|
+
"type": "option",
|
|
620
|
+
"summary": "Time to wait for service containers in milliseconds.",
|
|
621
|
+
"multiple": false,
|
|
622
|
+
"default": 120000
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
"args": {
|
|
626
|
+
"local-command": {
|
|
627
|
+
"name": "local-command",
|
|
628
|
+
"required": true
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
"remove": {
|
|
633
|
+
"id": "remove",
|
|
634
|
+
"description": "Unregisters a subgraph name",
|
|
635
|
+
"strict": true,
|
|
636
|
+
"pluginName": "@graphprotocol/graph-cli",
|
|
637
|
+
"pluginAlias": "@graphprotocol/graph-cli",
|
|
638
|
+
"pluginType": "core",
|
|
639
|
+
"aliases": [],
|
|
640
|
+
"flags": {
|
|
641
|
+
"node": {
|
|
642
|
+
"name": "node",
|
|
643
|
+
"type": "option",
|
|
644
|
+
"char": "g",
|
|
645
|
+
"summary": "Graph node to delete the subgraph from.",
|
|
646
|
+
"required": true,
|
|
647
|
+
"multiple": false
|
|
648
|
+
},
|
|
649
|
+
"access-token": {
|
|
650
|
+
"name": "access-token",
|
|
651
|
+
"type": "option",
|
|
652
|
+
"summary": "Graph access token.",
|
|
653
|
+
"multiple": false
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
"args": {
|
|
657
|
+
"subgraph-name": {
|
|
658
|
+
"name": "subgraph-name",
|
|
659
|
+
"required": true
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
"test": {
|
|
664
|
+
"id": "test",
|
|
665
|
+
"description": "Runs rust binary for subgraph testing.",
|
|
666
|
+
"strict": true,
|
|
667
|
+
"pluginName": "@graphprotocol/graph-cli",
|
|
668
|
+
"pluginAlias": "@graphprotocol/graph-cli",
|
|
669
|
+
"pluginType": "core",
|
|
670
|
+
"aliases": [],
|
|
671
|
+
"flags": {
|
|
672
|
+
"coverage": {
|
|
673
|
+
"name": "coverage",
|
|
674
|
+
"type": "boolean",
|
|
675
|
+
"char": "c",
|
|
676
|
+
"summary": "Run the tests in coverage mode.",
|
|
677
|
+
"allowNo": false
|
|
678
|
+
},
|
|
679
|
+
"docker": {
|
|
680
|
+
"name": "docker",
|
|
681
|
+
"type": "boolean",
|
|
682
|
+
"char": "d",
|
|
683
|
+
"summary": "Run the tests in a docker container (Note: Please execute from the root folder of the subgraph).",
|
|
684
|
+
"allowNo": false
|
|
685
|
+
},
|
|
686
|
+
"force": {
|
|
687
|
+
"name": "force",
|
|
688
|
+
"type": "boolean",
|
|
689
|
+
"char": "f",
|
|
690
|
+
"summary": "Binary - overwrites folder + file when downloading. Docker - rebuilds the docker image.",
|
|
691
|
+
"allowNo": false
|
|
692
|
+
},
|
|
693
|
+
"logs": {
|
|
694
|
+
"name": "logs",
|
|
695
|
+
"type": "boolean",
|
|
696
|
+
"char": "l",
|
|
697
|
+
"summary": "Logs to the console information about the OS, CPU model and download url (debugging purposes).",
|
|
698
|
+
"allowNo": false
|
|
699
|
+
},
|
|
700
|
+
"recompile": {
|
|
701
|
+
"name": "recompile",
|
|
702
|
+
"type": "boolean",
|
|
703
|
+
"char": "r",
|
|
704
|
+
"summary": "Force-recompile tests.",
|
|
705
|
+
"allowNo": false
|
|
706
|
+
},
|
|
707
|
+
"version": {
|
|
708
|
+
"name": "version",
|
|
709
|
+
"type": "option",
|
|
710
|
+
"char": "v",
|
|
711
|
+
"summary": "Choose the version of the rust binary that you want to be downloaded/used.",
|
|
712
|
+
"required": true,
|
|
713
|
+
"multiple": false
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
"args": {
|
|
717
|
+
"datasource": {
|
|
718
|
+
"name": "datasource",
|
|
719
|
+
"required": true
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|