@graphprotocol/graph-cli 0.41.0 → 0.42.0-alpha-20230221143549-b7158c7

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,5 +1,22 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
+ ## 0.42.0-alpha-20230221143549-b7158c7
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1079](https://github.com/graphprotocol/graph-tooling/pull/1079)
8
+ [`b7158c7`](https://github.com/graphprotocol/graph-tooling/commit/b7158c7b6154ea7b14fe6df98a38c3c794e51e6b)
9
+ Thanks [@incrypto32](https://github.com/incrypto32)! - Remove optimism-kovan, Add optimism-goerli
10
+
11
+ ## 0.41.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#1077](https://github.com/graphprotocol/graph-tooling/pull/1077)
16
+ [`7efc38b`](https://github.com/graphprotocol/graph-tooling/commit/7efc38ba68dad1e7b09934f9b6b4e5566c298bc1)
17
+ Thanks [@enisdenjo](https://github.com/enisdenjo)! - Ask for product if missing when using deploy
18
+ command
19
+
3
20
  ## 0.41.0
4
21
 
5
22
  ### Minor Changes
@@ -120,8 +120,8 @@ const getEtherscanLikeAPIUrl = (network) => {
120
120
  return `https://api.aurorascan.dev/api`;
121
121
  case 'aurora-testnet':
122
122
  return `https://api-testnet.aurorascan.dev/api`;
123
- case 'optimism-kovan':
124
- return `https://api-kovan-optimistic.etherscan.io/api`;
123
+ case 'optimism-goerli':
124
+ return `https://api-goerli-optimistic.etherscan.io/api`;
125
125
  case 'optimism':
126
126
  return `https://api-optimistic.etherscan.io/api`;
127
127
  case 'moonbeam':
@@ -196,8 +196,8 @@ const getPublicRPCEndpoint = (network) => {
196
196
  return 'https://moonriver.public.blastapi.io';
197
197
  case 'optimism':
198
198
  return 'https://mainnet.optimism.io';
199
- case 'optimism-kovan':
200
- return 'https://kovan.optimism.io';
199
+ case 'optimism-goerli':
200
+ return 'https://goerli.optimism.io';
201
201
  case 'poa-core':
202
202
  return 'https://core.poa.network';
203
203
  case 'poa-sokol':
@@ -48,7 +48,13 @@ const headersFlag = core_1.Flags.custom({
48
48
  });
49
49
  class DeployCommand extends core_1.Command {
50
50
  async run() {
51
- const { args: { 'subgraph-name': subgraphName, 'subgraph-manifest': manifest }, flags: { product, studio, 'deploy-key': deployKeyFlag, 'access-token': accessToken, 'version-label': versionLabelFlag, ipfs, headers, node: nodeFlag, 'output-dir': outputDir, 'skip-migrations': skipMigrations, watch, 'debug-fork': debugFork, network, 'network-file': networkFile, }, } = await this.parse(DeployCommand);
51
+ const { args: { 'subgraph-name': subgraphName, 'subgraph-manifest': manifest }, flags: { product: productFlag, studio, 'deploy-key': deployKeyFlag, 'access-token': accessToken, 'version-label': versionLabelFlag, ipfs, headers, node: nodeFlag, 'output-dir': outputDir, 'skip-migrations': skipMigrations, watch, 'debug-fork': debugFork, network, 'network-file': networkFile, }, } = await this.parse(DeployCommand);
52
+ const product = studio
53
+ ? 'subgraph-studio'
54
+ : productFlag ||
55
+ (await core_1.ux.prompt('Which product to deploy for?', {
56
+ required: true,
57
+ }));
52
58
  try {
53
59
  const dataSourcesAndTemplates = await DataSourcesExtractor.fromFilePath(manifest);
54
60
  for (const { network } of dataSourcesAndTemplates) {
@@ -61,10 +67,7 @@ class DeployCommand extends core_1.Command {
61
67
  const { node } = (0, node_1.chooseNodeUrl)({
62
68
  product,
63
69
  studio,
64
- node: nodeFlag ||
65
- (await core_1.ux.prompt('Which product to deploy for?', {
66
- required: true,
67
- })),
70
+ node: nodeFlag,
68
71
  });
69
72
  if (!node) {
70
73
  // shouldn't happen, but we do the check to satisfy TS
@@ -115,7 +115,7 @@ class Protocol {
115
115
  'arbitrum-one',
116
116
  'arbitrum-goerli',
117
117
  'optimism',
118
- 'optimism-kovan',
118
+ 'optimism-goerli',
119
119
  'aurora',
120
120
  'aurora-testnet',
121
121
  'base-testnet',
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.41.0",
2
+ "version": "0.42.0-alpha-20230221143549-b7158c7",
3
3
  "commands": {
4
4
  "add": {
5
5
  "id": "add",
@@ -566,7 +566,7 @@
566
566
  "arbitrum-one",
567
567
  "arbitrum-goerli",
568
568
  "optimism",
569
- "optimism-kovan",
569
+ "optimism-goerli",
570
570
  "aurora",
571
571
  "aurora-testnet",
572
572
  "base-testnet",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.41.0",
3
+ "version": "0.42.0-alpha-20230221143549-b7158c7",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {