@graphprotocol/graph-cli 0.55.0 → 0.56.0-alpha-20230821065913-187d39a

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,18 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
+ ## 0.56.0-alpha-20230821065913-187d39a
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1421](https://github.com/graphprotocol/graph-tooling/pull/1421)
8
+ [`d4d5c90`](https://github.com/graphprotocol/graph-tooling/commit/d4d5c904bdec451001f058598527895dee0a5b4c)
9
+ Thanks [@pranavdaa](https://github.com/pranavdaa)! - Add Scroll testnet to graph-cli
10
+
11
+ - [#1392](https://github.com/graphprotocol/graph-tooling/pull/1392)
12
+ [`187d39a`](https://github.com/graphprotocol/graph-tooling/commit/187d39a6e42bbff694fcbc62058236de8b2f2159)
13
+ Thanks [@incrypto32](https://github.com/incrypto32)! - Add support for polling block handlers in
14
+ the manifest for ethereum
15
+
3
16
  ## 0.55.0
4
17
 
5
18
  ### Minor Changes
@@ -158,6 +158,8 @@ const getEtherscanLikeAPIUrl = (network) => {
158
158
  return `https://zkevm.polygonscan.com/api`;
159
159
  case 'sepolia':
160
160
  return `https://api-sepolia.etherscan.io/api`;
161
+ case 'scroll-sepolia':
162
+ return `https://sepolia-blockscout.scroll.io/api`;
161
163
  default:
162
164
  return `https://api-${network}.etherscan.io/api`;
163
165
  }
@@ -232,6 +234,8 @@ const getPublicRPCEndpoint = (network) => {
232
234
  return 'https://testnet.era.zksync.dev';
233
235
  case 'sepolia':
234
236
  return 'https://rpc.ankr.com/eth_sepolia';
237
+ case 'scroll-sepolia':
238
+ return 'https://rpc.ankr.com/scroll_sepolia_testnet';
235
239
  default:
236
240
  throw new Error(`Unknown network: ${network}`);
237
241
  }
@@ -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", "base", "celo", "arbitrum-one", "avalanche", "zksync-era", "zksync-era-testnet", "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", "zksync-era-testnet", "sepolia", "polygon-zkevm-testnet", "polygon-zkevm", "scroll-sepolia"];
2
2
  export declare const validateStudioNetwork: ({ studio, product, network, }: {
3
3
  studio?: string | boolean | undefined;
4
4
  product?: string | undefined;
@@ -32,6 +32,7 @@ exports.allowedStudioNetworks = [
32
32
  'sepolia',
33
33
  'polygon-zkevm-testnet',
34
34
  'polygon-zkevm',
35
+ 'scroll-sepolia',
35
36
  ];
36
37
  const validateStudioNetwork = ({ studio, product, network, }) => {
37
38
  const isStudio = studio || product === 'subgraph-studio';
@@ -55,13 +55,26 @@ type ContractAbi {
55
55
  file: File!
56
56
  }
57
57
 
58
- type BlockHandler {
59
- handler: String!
60
- filter: BlockFilter
58
+ enum BlockFilterKind {
59
+ polling
60
+ once
61
+ call
61
62
  }
62
63
 
63
64
  type BlockFilter {
64
- kind: String!
65
+ kind: BlockFilterKind!
66
+ }
67
+
68
+ type PollingBlockFilter {
69
+ kind: BlockFilterKind!
70
+ every: BigInt!
71
+ }
72
+
73
+ union BlockFilterType = BlockFilter | PollingBlockFilter
74
+
75
+ type BlockHandler {
76
+ handler: String!
77
+ filter: BlockFilterType
65
78
  }
66
79
 
67
80
  type CallHandler {
@@ -125,6 +125,7 @@ class Protocol {
125
125
  'sepolia',
126
126
  'polygon-zkevm-testnet',
127
127
  'polygon-zkevm',
128
+ 'scroll-sepolia',
128
129
  ],
129
130
  near: ['near-mainnet', 'near-testnet'],
130
131
  cosmos: [
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.55.0",
2
+ "version": "0.56.0-alpha-20230821065913-187d39a",
3
3
  "commands": {
4
4
  "add": {
5
5
  "id": "add",
@@ -638,6 +638,7 @@
638
638
  "sepolia",
639
639
  "polygon-zkevm-testnet",
640
640
  "polygon-zkevm",
641
+ "scroll-sepolia",
641
642
  "near-mainnet",
642
643
  "near-testnet",
643
644
  "cosmoshub-4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.55.0",
3
+ "version": "0.56.0-alpha-20230821065913-187d39a",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {