@graphprotocol/graph-cli 0.39.0-alpha-20230208104126-2389079 → 0.39.0

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 CHANGED
@@ -1,13 +1,19 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
- ## 0.39.0-alpha-20230208104126-2389079
3
+ ## 0.39.0
4
4
 
5
5
  ### Minor Changes
6
6
 
7
7
  - [#1059](https://github.com/graphprotocol/graph-tooling/pull/1059)
8
- [`90666d6`](https://github.com/graphprotocol/graph-tooling/commit/90666d6dd9f9a6634a6be60c8953710c559d1e5a)
8
+ [`7ffaf0c`](https://github.com/graphprotocol/graph-tooling/commit/7ffaf0ce9532011ae458abff4cf425328aa5c40f)
9
9
  Thanks [@incrypto32](https://github.com/incrypto32)! - Auto fetch startBlock
10
10
 
11
+ ### Patch Changes
12
+
13
+ - [#968](https://github.com/graphprotocol/graph-tooling/pull/968)
14
+ [`bf4f541`](https://github.com/graphprotocol/graph-tooling/commit/bf4f5417beca4714792321b271d25fe754350fa3)
15
+ Thanks [@kosecki123](https://github.com/kosecki123)! - fix cleoscan explorer URLs
16
+
11
17
  ## 0.38.0
12
18
 
13
19
  ### Minor Changes
@@ -134,6 +134,10 @@ const getEtherscanLikeAPIUrl = (network) => {
134
134
  return `https://api.snowtrace.io/api`;
135
135
  case 'fuji':
136
136
  return `https://api-testnet.snowtrace.io/api`;
137
+ case 'celo':
138
+ return `https://api.celoscan.io/api`;
139
+ case 'celo-alfajores':
140
+ return `https://alfajores.celoscan.io/api`;
137
141
  case 'gnosis':
138
142
  return `https://api.gnosisscan.io/api`;
139
143
  case 'fantom':
@@ -382,6 +382,7 @@ exports.default = {
382
382
  return;
383
383
  }
384
384
  const commands = {
385
+ link: yarn ? 'yarn link @graphprotocol/graph-cli' : 'npm link @graphprotocol/graph-cli',
385
386
  install: yarn ? 'yarn' : 'npm install',
386
387
  codegen: yarn ? 'yarn codegen' : 'npm run codegen',
387
388
  deploy: yarn ? 'yarn deploy' : 'npm run deploy',
@@ -529,20 +530,11 @@ const initRepository = async (toolbox, directory) => await (0, spinner_1.withSpi
529
530
  });
530
531
  return true;
531
532
  });
532
- // Only used for local testing / continuous integration.
533
- //
534
- // This requires that the command `npm link` is called
535
- // on the root directory of this repository, as described here:
536
- // https://docs.npmjs.com/cli/v7/commands/npm-link.
537
- const npmLinkToLocalCli = async (toolbox, directory) => {
533
+ const installDependencies = async (toolbox, directory, commands) => await (0, spinner_1.withSpinner)(`Install dependencies with ${toolbox.print.colors.muted(commands.install)}`, `Failed to install dependencies`, `Warnings while installing dependencies`, async () => {
538
534
  if (process.env.GRAPH_CLI_TESTS) {
539
- await toolbox.system.run('npm link @graphprotocol/graph-cli', { cwd: directory });
535
+ await toolbox.system.run(commands.link, { cwd: directory });
540
536
  }
541
- };
542
- const installDependencies = async (toolbox, directory, installCommand) => await (0, spinner_1.withSpinner)(`Install dependencies with ${toolbox.print.colors.muted(installCommand)}`, `Failed to install dependencies`, `Warnings while installing dependencies`, async () => {
543
- // Links to local graph-cli if we're running the automated tests
544
- await npmLinkToLocalCli(toolbox, directory);
545
- await toolbox.system.run(installCommand, { cwd: directory });
537
+ await toolbox.system.run(commands.install, { cwd: directory });
546
538
  return true;
547
539
  });
548
540
  const runCodegen = async (toolbox, directory, codegenCommand) => await (0, spinner_1.withSpinner)(`Generate ABI and schema types with ${toolbox.print.colors.muted(codegenCommand)}`, `Failed to generate code from ABI and GraphQL schema`, `Warnings while generating code from ABI and GraphQL schema`, async () => {
@@ -660,7 +652,7 @@ const initSubgraphFromExample = async (toolbox, { fromExample, allowSimpleName,
660
652
  return;
661
653
  }
662
654
  // Install dependencies
663
- const installed = await installDependencies(toolbox, directory, commands.install);
655
+ const installed = await installDependencies(toolbox, directory, commands);
664
656
  if (installed !== true) {
665
657
  process.exitCode = 1;
666
658
  return;
@@ -741,7 +733,7 @@ const initSubgraphFromContract = async (toolbox, { protocolInstance, allowSimple
741
733
  return;
742
734
  }
743
735
  // Install dependencies
744
- const installed = await installDependencies(toolbox, directory, commands.install);
736
+ const installed = await installDependencies(toolbox, directory, commands);
745
737
  if (installed !== true) {
746
738
  process.exitCode = 1;
747
739
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.39.0-alpha-20230208104126-2389079",
3
+ "version": "0.39.0",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {