@graphprotocol/graph-cli 0.52.0-alpha-20230628121316-48231a7 → 0.52.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 +15 -4
- package/dist/command-helpers/abi.js +4 -0
- package/dist/command-helpers/studio.d.ts +1 -1
- package/dist/command-helpers/studio.js +1 -0
- package/dist/commands/init.js +3 -1
- package/dist/protocols/ethereum/manifest.graphql +0 -1
- package/dist/protocols/index.js +1 -0
- package/oclif.manifest.json +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
# @graphprotocol/graph-cli
|
|
2
2
|
|
|
3
|
-
## 0.52.0
|
|
3
|
+
## 0.52.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
- [#
|
|
8
|
-
[`
|
|
9
|
-
Thanks [@
|
|
7
|
+
- [#1398](https://github.com/graphprotocol/graph-tooling/pull/1398)
|
|
8
|
+
[`3e71375`](https://github.com/graphprotocol/graph-tooling/commit/3e713756dbe71185cdc5f9e222a6892d20f977ed)
|
|
9
|
+
Thanks [@pranavdaa](https://github.com/pranavdaa)! - Adding base mainnet to staging
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#1393](https://github.com/graphprotocol/graph-tooling/pull/1393)
|
|
14
|
+
[`609954d`](https://github.com/graphprotocol/graph-tooling/commit/609954dc57114a42add6ef6d5db006b22d5e98bb)
|
|
15
|
+
Thanks [@saihaj](https://github.com/saihaj)! - ensure we use studio when loading from example
|
|
16
|
+
|
|
17
|
+
- [#1393](https://github.com/graphprotocol/graph-tooling/pull/1393)
|
|
18
|
+
[`609954d`](https://github.com/graphprotocol/graph-tooling/commit/609954dc57114a42add6ef6d5db006b22d5e98bb)
|
|
19
|
+
Thanks [@saihaj](https://github.com/saihaj)! - skip validation for subgraph name when creating an
|
|
20
|
+
example
|
|
10
21
|
|
|
11
22
|
## 0.51.2
|
|
12
23
|
|
|
@@ -112,6 +112,8 @@ const getEtherscanLikeAPIUrl = (network) => {
|
|
|
112
112
|
return `https://api.bscscan.com/api`;
|
|
113
113
|
case 'base-testnet':
|
|
114
114
|
return `https://api-goerli.basescan.org/api`;
|
|
115
|
+
case 'base':
|
|
116
|
+
return `https://api.basescan.org/api`;
|
|
115
117
|
case 'chapel':
|
|
116
118
|
return `https://api-testnet.bscscan.com/api`;
|
|
117
119
|
case 'matic':
|
|
@@ -172,6 +174,8 @@ const getPublicRPCEndpoint = (network) => {
|
|
|
172
174
|
return 'https://api.avax.network/ext/bc/C/rpc';
|
|
173
175
|
case 'base-testnet':
|
|
174
176
|
return 'https://goerli.base.org';
|
|
177
|
+
case 'base':
|
|
178
|
+
return 'https://rpc.base.org';
|
|
175
179
|
case 'bsc':
|
|
176
180
|
return 'https://bsc-dataseed.binance.org';
|
|
177
181
|
case 'celo':
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const allowedStudioNetworks: readonly ["mainnet", "rinkeby", "goerli", "gnosis", "chapel", "optimism-goerli", "clover", "fantom", "matic", "fantom-testnet", "arbitrum-goerli", "fuji", "celo-alfajores", "mumbai", "aurora-testnet", "near-testnet", "optimism", "optimism-goerli", "theta-testnet-001", "osmo-test-4", "base-testnet", "celo", "arbitrum-one", "avalanche", "zksync-era", "sepolia", "polygon-zkevm-testnet", "polygon-zkevm"];
|
|
1
|
+
export declare const allowedStudioNetworks: readonly ["mainnet", "rinkeby", "goerli", "gnosis", "chapel", "optimism-goerli", "clover", "fantom", "matic", "fantom-testnet", "arbitrum-goerli", "fuji", "celo-alfajores", "mumbai", "aurora-testnet", "near-testnet", "optimism", "optimism-goerli", "theta-testnet-001", "osmo-test-4", "base-testnet", "base", "celo", "arbitrum-one", "avalanche", "zksync-era", "sepolia", "polygon-zkevm-testnet", "polygon-zkevm"];
|
|
2
2
|
export declare const validateStudioNetwork: ({ studio, product, network, }: {
|
|
3
3
|
studio?: string | boolean | undefined;
|
|
4
4
|
product?: string | undefined;
|
package/dist/commands/init.js
CHANGED
|
@@ -27,7 +27,8 @@ class InitCommand extends core_1.Command {
|
|
|
27
27
|
const { args: { subgraphName, directory }, flags: { protocol, product, studio, node: nodeFlag, 'allow-simple-name': allowSimpleNameFlag, 'from-contract': fromContract, 'contract-name': contractName, 'from-example': fromExample, 'index-events': indexEvents, network, abi: abiPath, 'start-block': startBlock, spkg: spkgPath, }, } = await this.parse(InitCommand);
|
|
28
28
|
let { node, allowSimpleName } = (0, node_1.chooseNodeUrl)({
|
|
29
29
|
product,
|
|
30
|
-
studio
|
|
30
|
+
// if we are loading example, we want to ensure we are using studio
|
|
31
|
+
studio: studio || fromExample !== undefined,
|
|
31
32
|
node: nodeFlag,
|
|
32
33
|
allowSimpleName: allowSimpleNameFlag,
|
|
33
34
|
});
|
|
@@ -133,6 +134,7 @@ class InitCommand extends core_1.Command {
|
|
|
133
134
|
return;
|
|
134
135
|
}
|
|
135
136
|
await initSubgraphFromExample.bind(this)({
|
|
137
|
+
allowSimpleName,
|
|
136
138
|
fromExample,
|
|
137
139
|
subgraphName: answers.subgraphName,
|
|
138
140
|
directory: answers.directory,
|
package/dist/protocols/index.js
CHANGED
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.52.0
|
|
2
|
+
"version": "0.52.0",
|
|
3
3
|
"commands": {
|
|
4
4
|
"add": {
|
|
5
5
|
"id": "add",
|
|
@@ -620,6 +620,7 @@
|
|
|
620
620
|
"aurora",
|
|
621
621
|
"aurora-testnet",
|
|
622
622
|
"base-testnet",
|
|
623
|
+
"base",
|
|
623
624
|
"zksync-era",
|
|
624
625
|
"sepolia",
|
|
625
626
|
"polygon-zkevm-testnet",
|