@graphprotocol/graph-cli 0.45.0-alpha-20230403195400-e8bdaff → 0.45.0-alpha-20230403195957-75501f4
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 +9 -2
- package/dist/commands/add.js +1 -1
- package/dist/commands/auth.js +1 -1
- package/dist/commands/build.js +1 -1
- package/dist/commands/codegen.js +1 -1
- package/dist/commands/create.js +1 -1
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/init.js +1 -1
- package/dist/commands/local.js +1 -1
- package/dist/commands/remove.js +1 -1
- package/dist/commands/test.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @graphprotocol/graph-cli
|
|
2
2
|
|
|
3
|
-
## 0.45.0-alpha-
|
|
3
|
+
## 0.45.0-alpha-20230403195957-75501f4
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
### Patch Changes
|
|
17
17
|
|
|
18
18
|
- [#1216](https://github.com/graphprotocol/graph-tooling/pull/1216)
|
|
19
|
-
[`
|
|
19
|
+
[`47e683d`](https://github.com/graphprotocol/graph-tooling/commit/47e683da9cd19b1eb6408c84111e1eadad84304d)
|
|
20
20
|
Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
|
|
21
21
|
|
|
22
22
|
- Updated dependency [`yaml@1.10.2` ↗︎](https://www.npmjs.com/package/yaml/v/1.10.2) (from
|
|
@@ -67,6 +67,13 @@
|
|
|
67
67
|
- Updated dependency [`js-yaml@3.14.1` ↗︎](https://www.npmjs.com/package/js-yaml/v/3.14.1) (from
|
|
68
68
|
`3.13.1`, in `dependencies`)
|
|
69
69
|
|
|
70
|
+
- [#1243](https://github.com/graphprotocol/graph-tooling/pull/1243)
|
|
71
|
+
[`5682ab5`](https://github.com/graphprotocol/graph-tooling/commit/5682ab5aab38013aa68936d70458962f2927db75)
|
|
72
|
+
Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
|
|
73
|
+
|
|
74
|
+
- Updated dependency [`yaml@1.10.2` ↗︎](https://www.npmjs.com/package/yaml/v/1.10.2) (from
|
|
75
|
+
`1.9.2`, in `dependencies`)
|
|
76
|
+
|
|
70
77
|
- [#1207](https://github.com/graphprotocol/graph-tooling/pull/1207)
|
|
71
78
|
[`ad275b3`](https://github.com/graphprotocol/graph-tooling/commit/ad275b31e635dab03cfefda00617ef9f612b01c0)
|
|
72
79
|
Thanks [@saihaj](https://github.com/saihaj)! - bring back short hand for version and help
|
package/dist/commands/add.js
CHANGED
|
@@ -102,7 +102,6 @@ class AddCommand extends core_1.Command {
|
|
|
102
102
|
await (0, spinner_1.withSpinner)('Running codegen', 'Failed to run codegen', 'Warning during codegen', () => gluegun_1.system.run(yarn ? 'yarn codegen' : 'npm run codegen'));
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
exports.default = AddCommand;
|
|
106
105
|
AddCommand.description = 'Adds a new datasource to a subgraph.';
|
|
107
106
|
AddCommand.args = {
|
|
108
107
|
address: core_1.Args.string({
|
|
@@ -137,6 +136,7 @@ AddCommand.flags = {
|
|
|
137
136
|
default: 'networks.json',
|
|
138
137
|
}),
|
|
139
138
|
};
|
|
139
|
+
exports.default = AddCommand;
|
|
140
140
|
const getEntities = (manifest) => {
|
|
141
141
|
const dataSources = manifest.result.get('dataSources', immutable_1.default.List());
|
|
142
142
|
const templates = manifest.result.get('templates', immutable_1.default.List());
|
package/dist/commands/auth.js
CHANGED
|
@@ -42,7 +42,6 @@ class AuthCommand extends core_1.Command {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
exports.default = AuthCommand;
|
|
46
45
|
AuthCommand.description = 'Sets the deploy key to use when deploying to a Graph node.';
|
|
47
46
|
AuthCommand.args = {
|
|
48
47
|
node: core_1.Args.string(),
|
|
@@ -61,3 +60,4 @@ AuthCommand.flags = {
|
|
|
61
60
|
exclusive: ['product'],
|
|
62
61
|
}),
|
|
63
62
|
};
|
|
63
|
+
exports.default = AuthCommand;
|
package/dist/commands/build.js
CHANGED
|
@@ -78,7 +78,6 @@ class BuildCommand extends core_1.Command {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
exports.default = BuildCommand;
|
|
82
81
|
BuildCommand.description = 'Builds a subgraph and (optionally) uploads it to IPFS.';
|
|
83
82
|
BuildCommand.args = {
|
|
84
83
|
'subgraph-manifest': core_1.Args.string({
|
|
@@ -120,3 +119,4 @@ BuildCommand.flags = {
|
|
|
120
119
|
default: 'networks.json',
|
|
121
120
|
}),
|
|
122
121
|
};
|
|
122
|
+
exports.default = BuildCommand;
|
package/dist/commands/codegen.js
CHANGED
|
@@ -72,7 +72,6 @@ class CodegenCommand extends core_1.Command {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
exports.default = CodegenCommand;
|
|
76
75
|
CodegenCommand.description = 'Generates AssemblyScript types for a subgraph.';
|
|
77
76
|
CodegenCommand.args = {
|
|
78
77
|
'subgraph-manifest': core_1.Args.string({
|
|
@@ -107,3 +106,4 @@ CodegenCommand.flags = {
|
|
|
107
106
|
dependsOn: ['uncrashable'],
|
|
108
107
|
}),
|
|
109
108
|
};
|
|
109
|
+
exports.default = CodegenCommand;
|
package/dist/commands/create.js
CHANGED
|
@@ -52,7 +52,6 @@ class CreateCommand extends core_1.Command {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
exports.default = CreateCommand;
|
|
56
55
|
CreateCommand.description = 'Registers a subgraph name';
|
|
57
56
|
CreateCommand.args = {
|
|
58
57
|
'subgraph-name': core_1.Args.string({
|
|
@@ -72,3 +71,4 @@ CreateCommand.flags = {
|
|
|
72
71
|
summary: 'Graph access token.',
|
|
73
72
|
}),
|
|
74
73
|
};
|
|
74
|
+
exports.default = CreateCommand;
|
package/dist/commands/deploy.js
CHANGED
|
@@ -214,7 +214,6 @@ $ graph create --node ${node} ${subgraphName}`;
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
exports.default = DeployCommand;
|
|
218
217
|
DeployCommand.description = 'Deploys a subgraph to a Graph node.';
|
|
219
218
|
DeployCommand.args = {
|
|
220
219
|
'subgraph-name': core_1.Args.string({
|
|
@@ -283,3 +282,4 @@ DeployCommand.flags = {
|
|
|
283
282
|
default: 'networks.json',
|
|
284
283
|
}),
|
|
285
284
|
};
|
|
285
|
+
exports.default = DeployCommand;
|
package/dist/commands/init.js
CHANGED
|
@@ -193,7 +193,6 @@ class InitCommand extends core_1.Command {
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
exports.default = InitCommand;
|
|
197
196
|
InitCommand.description = 'Creates a new subgraph with basic scaffolding.';
|
|
198
197
|
InitCommand.args = {
|
|
199
198
|
subgraphName: core_1.Args.string(),
|
|
@@ -265,6 +264,7 @@ InitCommand.flags = {
|
|
|
265
264
|
],
|
|
266
265
|
}),
|
|
267
266
|
};
|
|
267
|
+
exports.default = InitCommand;
|
|
268
268
|
async function processInitForm({ protocol, product, studio, node, abi, allowSimpleName, directory, contract, indexEvents, fromExample, network, subgraphName, contractName, startBlock, }) {
|
|
269
269
|
let abiFromEtherscan = undefined;
|
|
270
270
|
let abiFromFile = undefined;
|
package/dist/commands/local.js
CHANGED
|
@@ -137,7 +137,6 @@ class LocalCommand extends core_1.Command {
|
|
|
137
137
|
this.exit(result.exitCode);
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
exports.default = LocalCommand;
|
|
141
140
|
LocalCommand.description = 'Runs local tests against a Graph Node environment (using Ganache by default).';
|
|
142
141
|
LocalCommand.args = {
|
|
143
142
|
'local-command': core_1.Args.string({
|
|
@@ -182,6 +181,7 @@ LocalCommand.flags = {
|
|
|
182
181
|
default: 120000,
|
|
183
182
|
}),
|
|
184
183
|
};
|
|
184
|
+
exports.default = LocalCommand;
|
|
185
185
|
/**
|
|
186
186
|
* Indents all lines of a string
|
|
187
187
|
*/
|
package/dist/commands/remove.js
CHANGED
|
@@ -53,7 +53,6 @@ class RemoveCommand extends core_1.Command {
|
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
exports.default = RemoveCommand;
|
|
57
56
|
RemoveCommand.description = 'Unregisters a subgraph name';
|
|
58
57
|
RemoveCommand.args = {
|
|
59
58
|
'subgraph-name': core_1.Args.string({
|
|
@@ -73,3 +72,4 @@ RemoveCommand.flags = {
|
|
|
73
72
|
summary: 'Graph access token.',
|
|
74
73
|
}),
|
|
75
74
|
};
|
|
75
|
+
exports.default = RemoveCommand;
|
package/dist/commands/test.js
CHANGED
|
@@ -66,7 +66,6 @@ class TestCommand extends core_1.Command {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
exports.default = TestCommand;
|
|
70
69
|
TestCommand.description = 'Runs rust binary for subgraph testing.';
|
|
71
70
|
TestCommand.args = {
|
|
72
71
|
datasource: core_1.Args.string(),
|
|
@@ -100,6 +99,7 @@ TestCommand.flags = {
|
|
|
100
99
|
char: 'v',
|
|
101
100
|
}),
|
|
102
101
|
};
|
|
102
|
+
exports.default = TestCommand;
|
|
103
103
|
function getLatestVersionFromCache(cachePath) {
|
|
104
104
|
if (gluegun_1.filesystem.exists(cachePath) == 'file') {
|
|
105
105
|
const cached = gluegun_1.filesystem.read(cachePath, 'json');
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphprotocol/graph-cli",
|
|
3
|
-
"version": "0.45.0-alpha-
|
|
3
|
+
"version": "0.45.0-alpha-20230403195957-75501f4",
|
|
4
4
|
"description": "CLI for building for and deploying to The Graph",
|
|
5
5
|
"license": "(Apache-2.0 OR MIT)",
|
|
6
6
|
"engines": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"tmp-promise": "3.0.2",
|
|
43
43
|
"web3-eth-abi": "1.7.0",
|
|
44
44
|
"which": "2.0.2",
|
|
45
|
-
"yaml": "1.
|
|
45
|
+
"yaml": "1.10.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/debug": "^4.1.7",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"spawn-command": "0.0.2-1",
|
|
58
58
|
"strip-ansi": "6.0.1",
|
|
59
59
|
"tern": "0.24.3",
|
|
60
|
-
"typescript": "^
|
|
60
|
+
"typescript": "^5.0.0"
|
|
61
61
|
},
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|