@graphprotocol/graph-cli 0.57.0 → 0.58.0-alpha-20230911140942-7b6cfb9
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 -0
- package/dist/command-helpers/studio.d.ts +1 -1
- package/dist/command-helpers/studio.js +1 -1
- package/dist/protocols/arweave/manifest.graphql +2 -0
- package/dist/protocols/cosmos/manifest.graphql +2 -0
- package/dist/protocols/ethereum/manifest.graphql +2 -0
- package/dist/protocols/near/manifest.graphql +2 -0
- package/dist/validation/manifest.js +14 -0
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @graphprotocol/graph-cli
|
|
2
2
|
|
|
3
|
+
## 0.58.0-alpha-20230911140942-7b6cfb9
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1434](https://github.com/graphprotocol/graph-tooling/pull/1434)
|
|
8
|
+
[`e54883b`](https://github.com/graphprotocol/graph-tooling/commit/e54883b41997eee408d66fd2bc835c67cb3c7e40)
|
|
9
|
+
Thanks [@incrypto32](https://github.com/incrypto32)! - Add data source context support in ethereum
|
|
10
|
+
manifest
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#1451](https://github.com/graphprotocol/graph-tooling/pull/1451)
|
|
15
|
+
[`7b6cfb9`](https://github.com/graphprotocol/graph-tooling/commit/7b6cfb9c318d716c1c2b86caaf6e056a9efc6ddb)
|
|
16
|
+
Thanks [@azf20](https://github.com/azf20)! - Align zksync testnet name
|
|
17
|
+
|
|
3
18
|
## 0.57.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -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", "
|
|
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", "zkSync2-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;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
scalar String
|
|
8
8
|
scalar File
|
|
9
9
|
scalar BigInt
|
|
10
|
+
scalar JSON
|
|
10
11
|
|
|
11
12
|
type SubgraphManifest {
|
|
12
13
|
specVersion: String!
|
|
@@ -25,6 +26,7 @@ type DataSource {
|
|
|
25
26
|
kind: String!
|
|
26
27
|
name: String!
|
|
27
28
|
network: String
|
|
29
|
+
context: JSON
|
|
28
30
|
source: ContractSource!
|
|
29
31
|
mapping: ContractMapping!
|
|
30
32
|
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
scalar String
|
|
8
8
|
scalar File
|
|
9
9
|
scalar BigInt
|
|
10
|
+
scalar JSON
|
|
10
11
|
|
|
11
12
|
type SubgraphManifest {
|
|
12
13
|
specVersion: String!
|
|
@@ -26,6 +27,7 @@ type DataSource {
|
|
|
26
27
|
kind: String!
|
|
27
28
|
name: String!
|
|
28
29
|
network: String
|
|
30
|
+
context: JSON
|
|
29
31
|
source: ContractSource!
|
|
30
32
|
mapping: ContractMapping!
|
|
31
33
|
}
|
|
@@ -8,6 +8,7 @@ scalar String
|
|
|
8
8
|
scalar File
|
|
9
9
|
scalar BigInt
|
|
10
10
|
scalar Boolean
|
|
11
|
+
scalar JSON
|
|
11
12
|
|
|
12
13
|
type SubgraphManifest {
|
|
13
14
|
specVersion: String!
|
|
@@ -28,6 +29,7 @@ type DataSource {
|
|
|
28
29
|
kind: String!
|
|
29
30
|
name: String!
|
|
30
31
|
network: String
|
|
32
|
+
context: JSON
|
|
31
33
|
source: ContractSource!
|
|
32
34
|
mapping: ContractMapping!
|
|
33
35
|
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
scalar String
|
|
8
8
|
scalar File
|
|
9
9
|
scalar BigInt
|
|
10
|
+
scalar JSON
|
|
10
11
|
|
|
11
12
|
type SubgraphManifest {
|
|
12
13
|
specVersion: String!
|
|
@@ -26,6 +27,7 @@ type DataSource {
|
|
|
26
27
|
kind: String!
|
|
27
28
|
name: String!
|
|
28
29
|
network: String
|
|
30
|
+
context: JSON
|
|
29
31
|
source: ContractSource!
|
|
30
32
|
mapping: ContractMapping!
|
|
31
33
|
}
|
|
@@ -154,6 +154,20 @@ const validators = immutable_1.default.fromJS({
|
|
|
154
154
|
message: `Expected filename, found ${typeName(value)}:\n${value}`,
|
|
155
155
|
},
|
|
156
156
|
]),
|
|
157
|
+
JSON: (value, ctx) => {
|
|
158
|
+
try {
|
|
159
|
+
JSON.parse(JSON.stringify(value));
|
|
160
|
+
return List();
|
|
161
|
+
}
|
|
162
|
+
catch (e) {
|
|
163
|
+
return immutable_1.default.fromJS([
|
|
164
|
+
{
|
|
165
|
+
path: ctx.get('path'),
|
|
166
|
+
message: `Invalid JSON value: ${e.message}`,
|
|
167
|
+
},
|
|
168
|
+
]);
|
|
169
|
+
}
|
|
170
|
+
},
|
|
157
171
|
Boolean: (value, ctx) => typeof value === 'boolean'
|
|
158
172
|
? List()
|
|
159
173
|
: immutable_1.default.fromJS([
|
package/oclif.manifest.json
CHANGED