@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 CHANGED
@@ -1,12 +1,23 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
- ## 0.52.0-alpha-20230628121316-48231a7
3
+ ## 0.52.0
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - [#1392](https://github.com/graphprotocol/graph-tooling/pull/1392)
8
- [`48231a7`](https://github.com/graphprotocol/graph-tooling/commit/48231a7952f34e930397489e69cfb9a86a30ff61)
9
- Thanks [@incrypto32](https://github.com/incrypto32)! - Add support for polling block handlers
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;
@@ -23,6 +23,7 @@ exports.allowedStudioNetworks = [
23
23
  'theta-testnet-001',
24
24
  'osmo-test-4',
25
25
  'base-testnet',
26
+ 'base',
26
27
  'celo',
27
28
  'arbitrum-one',
28
29
  'avalanche',
@@ -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,
@@ -62,7 +62,6 @@ type BlockHandler {
62
62
 
63
63
  type BlockFilter {
64
64
  kind: String!
65
- every: BigInt
66
65
  }
67
66
 
68
67
  type CallHandler {
@@ -119,6 +119,7 @@ class Protocol {
119
119
  'aurora',
120
120
  'aurora-testnet',
121
121
  'base-testnet',
122
+ 'base',
122
123
  'zksync-era',
123
124
  'sepolia',
124
125
  'polygon-zkevm-testnet',
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.52.0-alpha-20230628121316-48231a7",
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.52.0-alpha-20230628121316-48231a7",
3
+ "version": "0.52.0",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {