@graphprotocol/graph-cli 0.45.0-alpha-20230403191326-3e5cd85 → 0.45.0-alpha-20230403191605-33e321b

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,6 +1,6 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
- ## 0.45.0-alpha-20230403191326-3e5cd85
3
+ ## 0.45.0-alpha-20230403191605-33e321b
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -102,6 +102,7 @@ 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;
105
106
  AddCommand.description = 'Adds a new datasource to a subgraph.';
106
107
  AddCommand.args = {
107
108
  address: core_1.Args.string({
@@ -136,7 +137,6 @@ AddCommand.flags = {
136
137
  default: 'networks.json',
137
138
  }),
138
139
  };
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());
@@ -42,6 +42,7 @@ class AuthCommand extends core_1.Command {
42
42
  }
43
43
  }
44
44
  }
45
+ exports.default = AuthCommand;
45
46
  AuthCommand.description = 'Sets the deploy key to use when deploying to a Graph node.';
46
47
  AuthCommand.args = {
47
48
  node: core_1.Args.string(),
@@ -60,4 +61,3 @@ AuthCommand.flags = {
60
61
  exclusive: ['product'],
61
62
  }),
62
63
  };
63
- exports.default = AuthCommand;
@@ -78,6 +78,7 @@ class BuildCommand extends core_1.Command {
78
78
  }
79
79
  }
80
80
  }
81
+ exports.default = BuildCommand;
81
82
  BuildCommand.description = 'Builds a subgraph and (optionally) uploads it to IPFS.';
82
83
  BuildCommand.args = {
83
84
  'subgraph-manifest': core_1.Args.string({
@@ -119,4 +120,3 @@ BuildCommand.flags = {
119
120
  default: 'networks.json',
120
121
  }),
121
122
  };
122
- exports.default = BuildCommand;
@@ -72,6 +72,7 @@ class CodegenCommand extends core_1.Command {
72
72
  }
73
73
  }
74
74
  }
75
+ exports.default = CodegenCommand;
75
76
  CodegenCommand.description = 'Generates AssemblyScript types for a subgraph.';
76
77
  CodegenCommand.args = {
77
78
  'subgraph-manifest': core_1.Args.string({
@@ -106,4 +107,3 @@ CodegenCommand.flags = {
106
107
  dependsOn: ['uncrashable'],
107
108
  }),
108
109
  };
109
- exports.default = CodegenCommand;
@@ -52,6 +52,7 @@ class CreateCommand extends core_1.Command {
52
52
  });
53
53
  }
54
54
  }
55
+ exports.default = CreateCommand;
55
56
  CreateCommand.description = 'Registers a subgraph name';
56
57
  CreateCommand.args = {
57
58
  'subgraph-name': core_1.Args.string({
@@ -71,4 +72,3 @@ CreateCommand.flags = {
71
72
  summary: 'Graph access token.',
72
73
  }),
73
74
  };
74
- exports.default = CreateCommand;
@@ -214,6 +214,7 @@ $ graph create --node ${node} ${subgraphName}`;
214
214
  }
215
215
  }
216
216
  }
217
+ exports.default = DeployCommand;
217
218
  DeployCommand.description = 'Deploys a subgraph to a Graph node.';
218
219
  DeployCommand.args = {
219
220
  'subgraph-name': core_1.Args.string({
@@ -282,4 +283,3 @@ DeployCommand.flags = {
282
283
  default: 'networks.json',
283
284
  }),
284
285
  };
285
- exports.default = DeployCommand;
@@ -193,6 +193,7 @@ class InitCommand extends core_1.Command {
193
193
  }
194
194
  }
195
195
  }
196
+ exports.default = InitCommand;
196
197
  InitCommand.description = 'Creates a new subgraph with basic scaffolding.';
197
198
  InitCommand.args = {
198
199
  subgraphName: core_1.Args.string(),
@@ -264,7 +265,6 @@ InitCommand.flags = {
264
265
  ],
265
266
  }),
266
267
  };
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;
@@ -137,6 +137,7 @@ class LocalCommand extends core_1.Command {
137
137
  this.exit(result.exitCode);
138
138
  }
139
139
  }
140
+ exports.default = LocalCommand;
140
141
  LocalCommand.description = 'Runs local tests against a Graph Node environment (using Ganache by default).';
141
142
  LocalCommand.args = {
142
143
  'local-command': core_1.Args.string({
@@ -181,7 +182,6 @@ LocalCommand.flags = {
181
182
  default: 120000,
182
183
  }),
183
184
  };
184
- exports.default = LocalCommand;
185
185
  /**
186
186
  * Indents all lines of a string
187
187
  */
@@ -53,6 +53,7 @@ class RemoveCommand extends core_1.Command {
53
53
  });
54
54
  }
55
55
  }
56
+ exports.default = RemoveCommand;
56
57
  RemoveCommand.description = 'Unregisters a subgraph name';
57
58
  RemoveCommand.args = {
58
59
  'subgraph-name': core_1.Args.string({
@@ -72,4 +73,3 @@ RemoveCommand.flags = {
72
73
  summary: 'Graph access token.',
73
74
  }),
74
75
  };
75
- exports.default = RemoveCommand;
@@ -66,6 +66,7 @@ class TestCommand extends core_1.Command {
66
66
  }
67
67
  }
68
68
  }
69
+ exports.default = TestCommand;
69
70
  TestCommand.description = 'Runs rust binary for subgraph testing.';
70
71
  TestCommand.args = {
71
72
  datasource: core_1.Args.string(),
@@ -99,7 +100,6 @@ TestCommand.flags = {
99
100
  char: 'v',
100
101
  }),
101
102
  };
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');
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.45.0-alpha-20230403191326-3e5cd85",
2
+ "version": "0.45.0-alpha-20230403191605-33e321b",
3
3
  "commands": {
4
4
  "add": {
5
5
  "id": "add",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.45.0-alpha-20230403191326-3e5cd85",
3
+ "version": "0.45.0-alpha-20230403191605-33e321b",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {
@@ -47,17 +47,17 @@
47
47
  "devDependencies": {
48
48
  "@types/debug": "^4.1.7",
49
49
  "@types/fs-extra": "^9.0.13",
50
- "@types/jest": "^26.0.24",
50
+ "@types/jest": "^29.0.0",
51
51
  "@types/js-yaml": "^3.12.7",
52
52
  "@types/semver": "^7.3.13",
53
53
  "@types/which": "^2.0.1",
54
54
  "copyfiles": "^2.4.1",
55
- "jest": "26.6.3",
55
+ "jest": "29.5.0",
56
56
  "oclif": "3.7.3",
57
57
  "spawn-command": "0.0.2-1",
58
58
  "strip-ansi": "6.0.1",
59
59
  "tern": "0.24.3",
60
- "typescript": "^5.0.0"
60
+ "typescript": "^4.9.4"
61
61
  },
62
62
  "publishConfig": {
63
63
  "access": "public"