@graphprotocol/graph-cli 0.79.1 → 0.80.0-alpha-20240801095233-6ef5596

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.80.0-alpha-20240801095233-6ef5596
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1710](https://github.com/graphprotocol/graph-tooling/pull/1710)
8
+ [`6ef5596`](https://github.com/graphprotocol/graph-tooling/commit/6ef559628596faba2ea02989a535e0301608beee)
9
+ Thanks [@yash251](https://github.com/yash251)! - add iotex testnet rpc and api url
10
+
11
+ ## 0.79.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [#1698](https://github.com/graphprotocol/graph-tooling/pull/1698)
16
+ [`c8ec890`](https://github.com/graphprotocol/graph-tooling/commit/c8ec890cb13bb109bb97387e4819c948d97a079a)
17
+ Thanks [@soilking](https://github.com/soilking)! - Fix build files being placed outside the build
18
+ directory
19
+
3
20
  ## 0.79.1
4
21
 
5
22
  ### Patch Changes
@@ -249,6 +249,8 @@ const getEtherscanLikeAPIUrl = (network) => {
249
249
  return 'https://explorer-sepolia.gravity.xyz/api';
250
250
  case 'etherlink-mainnet':
251
251
  return 'https://explorer.etherlink.com/api';
252
+ case 'iotex-testnet':
253
+ return 'https://testnet.index.iotexscan.io/api';
252
254
  default:
253
255
  return `https://api-${network}.etherscan.io/api`;
254
256
  }
@@ -373,6 +375,8 @@ const getPublicRPCEndpoint = (network) => {
373
375
  return 'https://rpc-sepolia.gravity.xyz';
374
376
  case 'etherlink-mainnet':
375
377
  return 'https://node.mainnet.etherlink.com';
378
+ case 'iotex-testnet':
379
+ return 'https://babel-api.testnet.iotex.io';
376
380
  default:
377
381
  throw new Error(`Unknown network: ${network}`);
378
382
  }
@@ -186,8 +186,8 @@ class Compiler {
186
186
  }
187
187
  _writeSubgraphFile(maybeRelativeFile, data, sourceDir, targetDir, spinner) {
188
188
  const absoluteSourceFile = path_1.default.resolve(sourceDir, maybeRelativeFile);
189
- const relativeSourceFile = path_1.default.relative(sourceDir, absoluteSourceFile);
190
- const targetFile = path_1.default.join(targetDir, relativeSourceFile);
189
+ const baseName = path_1.default.basename(absoluteSourceFile);
190
+ const targetFile = path_1.default.join(targetDir, baseName);
191
191
  (0, spinner_1.step)(spinner, 'Write subgraph file', this.displayPath(targetFile));
192
192
  fs_extra_1.default.mkdirsSync(path_1.default.dirname(targetFile));
193
193
  fs_extra_1.default.writeFileSync(targetFile, data);
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.79.1",
2
+ "version": "0.80.0-alpha-20240801095233-6ef5596",
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.79.1",
3
+ "version": "0.80.0-alpha-20240801095233-6ef5596",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {