@graphprotocol/graph-cli 0.42.0-alpha-20230223151248-cfa3be2 → 0.42.0-rc-20230223150754-a2c79dc

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,17 +1,20 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
- ## 0.42.0-alpha-20230223151248-cfa3be2
3
+ ## 0.42.0-rc-20230223150754-a2c79dc
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - [#1128](https://github.com/graphprotocol/graph-tooling/pull/1128)
8
- [`cfa3be2`](https://github.com/graphprotocol/graph-tooling/commit/cfa3be2cb8f5880186ea68f0499bbd55cde63f40)
9
- Thanks [@incrypto32](https://github.com/incrypto32)! - Add base scan URL
10
-
11
7
  - [#1079](https://github.com/graphprotocol/graph-tooling/pull/1079)
12
8
  [`570eb22`](https://github.com/graphprotocol/graph-tooling/commit/570eb225fad705998cca3998879a6a1140a73143)
13
9
  Thanks [@incrypto32](https://github.com/incrypto32)! - Remove optimism-kovan, Add optimism-goerli
14
10
 
11
+ ### Patch Changes
12
+
13
+ - [#1127](https://github.com/graphprotocol/graph-tooling/pull/1127)
14
+ [`b8d2297`](https://github.com/graphprotocol/graph-tooling/commit/b8d2297bea994b852d5a61b557e4eccda283ec75)
15
+ Thanks [@saihaj](https://github.com/saihaj)! - Prioirtize node flag. If provided we do not need to
16
+ go lookup what product to deploy to
17
+
15
18
  ## 0.41.1
16
19
 
17
20
  ### Patch Changes
@@ -110,8 +110,6 @@ const getEtherscanLikeAPIUrl = (network) => {
110
110
  return `https://api-goerli.arbiscan.io/api`;
111
111
  case 'bsc':
112
112
  return `https://api.bscscan.com/api`;
113
- case 'base-testnet':
114
- return `https://api-goerli.basescan.org/api`;
115
113
  case 'chapel':
116
114
  return `https://api-testnet.bscscan.com/api`;
117
115
  case 'matic':
@@ -162,8 +160,6 @@ const getPublicRPCEndpoint = (network) => {
162
160
  return 'https://rpc.testnet.aurora.dev';
163
161
  case 'avalanche':
164
162
  return 'https://api.avax.network/ext/bc/C/rpc';
165
- case 'base-testnet':
166
- return 'https://goerli.base.org';
167
163
  case 'bsc':
168
164
  return 'https://bsc-dataseed.binance.org';
169
165
  case 'celo':
@@ -49,12 +49,15 @@ const headersFlag = core_1.Flags.custom({
49
49
  class DeployCommand extends core_1.Command {
50
50
  async run() {
51
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
+ // We are given a node URL, so we prioritize that over the product flag
53
+ const product = nodeFlag
54
+ ? productFlag
55
+ : studio
56
+ ? 'subgraph-studio'
57
+ : productFlag ||
58
+ (await core_1.ux.prompt('Which product to deploy for?', {
59
+ required: true,
60
+ }));
58
61
  try {
59
62
  const dataSourcesAndTemplates = await DataSourcesExtractor.fromFilePath(manifest);
60
63
  for (const { network } of dataSourcesAndTemplates) {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.42.0-alpha-20230223151248-cfa3be2",
2
+ "version": "0.42.0-rc-20230223150754-a2c79dc",
3
3
  "commands": {
4
4
  "add": {
5
5
  "id": "add",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.42.0-alpha-20230223151248-cfa3be2",
3
+ "version": "0.42.0-rc-20230223150754-a2c79dc",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {