@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 +13 -0
- 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/protocols/ethereum/manifest.graphql +17 -4
- package/dist/protocols/index.js +1 -0
- package/oclif.manifest.json +2 -1
- package/package.json +1 -1
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;
|
|
@@ -55,13 +55,26 @@ type ContractAbi {
|
|
|
55
55
|
file: File!
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
enum BlockFilterKind {
|
|
59
|
+
polling
|
|
60
|
+
once
|
|
61
|
+
call
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
type BlockFilter {
|
|
64
|
-
kind:
|
|
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 {
|
package/dist/protocols/index.js
CHANGED
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "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",
|