@graphprotocol/graph-cli 0.67.3-alpha-20240124142956-af00244 → 0.67.3
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 +4 -4
- package/dist/command-helpers/abi.js +8 -0
- package/dist/commands/init.js +12 -18
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# @graphprotocol/graph-cli
|
|
2
2
|
|
|
3
|
-
## 0.67.3
|
|
3
|
+
## 0.67.3
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- [#
|
|
8
|
-
[`
|
|
9
|
-
Thanks [@saihaj](https://github.com/saihaj)! -
|
|
7
|
+
- [#1579](https://github.com/graphprotocol/graph-tooling/pull/1579)
|
|
8
|
+
[`bc61adb`](https://github.com/graphprotocol/graph-tooling/commit/bc61adb8ae4f6ba8b467e98ed390a96029b702d8)
|
|
9
|
+
Thanks [@saihaj](https://github.com/saihaj)! - fix line and linea-goerli API URLs
|
|
10
10
|
|
|
11
11
|
## 0.67.2
|
|
12
12
|
|
|
@@ -178,6 +178,10 @@ const getEtherscanLikeAPIUrl = (network) => {
|
|
|
178
178
|
return `https://api-sepolia.scrollscan.dev/api`;
|
|
179
179
|
case 'scroll':
|
|
180
180
|
return `https://blockscout.scroll.io/api`;
|
|
181
|
+
case 'linea':
|
|
182
|
+
return `https://api.lineascan.build/api`;
|
|
183
|
+
case 'linea-goerli':
|
|
184
|
+
return `https://api.linea-goerli.build/api`;
|
|
181
185
|
default:
|
|
182
186
|
return `https://api-${network}.etherscan.io/api`;
|
|
183
187
|
}
|
|
@@ -260,6 +264,10 @@ const getPublicRPCEndpoint = (network) => {
|
|
|
260
264
|
return 'https://rpc.ankr.com/scroll_sepolia_testnet';
|
|
261
265
|
case 'scroll':
|
|
262
266
|
return 'https://rpc.ankr.com/scroll';
|
|
267
|
+
case 'linea':
|
|
268
|
+
return 'https://linea-mainnet.public.blastapi.io';
|
|
269
|
+
case 'linea-goerli':
|
|
270
|
+
return 'https://linea-goerli.public.blastapi.io';
|
|
263
271
|
default:
|
|
264
272
|
throw new Error(`Unknown network: ${network}`);
|
|
265
273
|
}
|
package/dist/commands/init.js
CHANGED
|
@@ -743,26 +743,20 @@ const initRepository = async (directory) => await (0, spinner_1.withSpinner)(`In
|
|
|
743
743
|
if (gluegun_1.filesystem.exists(gitDir)) {
|
|
744
744
|
gluegun_1.filesystem.remove(gitDir);
|
|
745
745
|
}
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
});
|
|
752
|
-
}
|
|
753
|
-
else {
|
|
754
|
-
await gluegun_1.system.run('git init', { cwd: directory });
|
|
755
|
-
await gluegun_1.system.run('git add --all', { cwd: directory });
|
|
756
|
-
await gluegun_1.system.run('git commit -m "Initial commit"', {
|
|
757
|
-
cwd: directory,
|
|
758
|
-
});
|
|
759
|
-
}
|
|
760
|
-
return true;
|
|
746
|
+
if (await isInRepo()) {
|
|
747
|
+
await gluegun_1.system.run('git add --all', { cwd: directory });
|
|
748
|
+
await gluegun_1.system.run('git commit -m "Initialize subgraph"', {
|
|
749
|
+
cwd: directory,
|
|
750
|
+
});
|
|
761
751
|
}
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
752
|
+
else {
|
|
753
|
+
await gluegun_1.system.run('git init', { cwd: directory });
|
|
754
|
+
await gluegun_1.system.run('git add --all', { cwd: directory });
|
|
755
|
+
await gluegun_1.system.run('git commit -m "Initial commit"', {
|
|
756
|
+
cwd: directory,
|
|
757
|
+
});
|
|
765
758
|
}
|
|
759
|
+
return true;
|
|
766
760
|
});
|
|
767
761
|
const installDependencies = async (directory, commands) => await (0, spinner_1.withSpinner)(`Install dependencies with ${commands.install}`, `Failed to install dependencies`, `Warnings while installing dependencies`, async () => {
|
|
768
762
|
if (process.env.GRAPH_CLI_TESTS) {
|
package/oclif.manifest.json
CHANGED