@graphprotocol/graph-cli 0.37.6-alpha-20230118200324-8f0e44a → 0.37.7-alpha-20230119221600-2d01b92

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,18 +1,31 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
- ## 0.37.6-alpha-20230118200324-8f0e44a
3
+ ## 0.37.7-alpha-20230119221600-2d01b92
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1044](https://github.com/graphprotocol/graph-tooling/pull/1044)
8
+ [`a238f85`](https://github.com/graphprotocol/graph-tooling/commit/a238f85ee0a7f828d4c47b6fddbc648f57ab1d0c)
9
+ Thanks [@saihaj](https://github.com/saihaj)! - publish readme with packages
10
+
11
+ ## 0.37.6
4
12
 
5
13
  ### Patch Changes
6
14
 
7
15
  - [#1039](https://github.com/graphprotocol/graph-cli/pull/1039)
8
- [`eff6d76`](https://github.com/graphprotocol/graph-cli/commit/eff6d76ea8bda4fd5287c22763ed6e2e646d2c77)
16
+ [`accefb6`](https://github.com/graphprotocol/graph-cli/commit/accefb637bf1c1db64f63b32a18c291574aa4974)
9
17
  Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
10
18
 
11
19
  - Removed dependency [`pkginfo@0.4.1` ↗︎](https://www.npmjs.com/package/pkginfo/v/0.4.1) (from
12
20
  `dependencies`)
13
21
 
22
+ - [#1040](https://github.com/graphprotocol/graph-cli/pull/1040)
23
+ [`5fd1e9c`](https://github.com/graphprotocol/graph-cli/commit/5fd1e9c00c85db4b0c65e37ba0c0b09ea034bb96)
24
+ Thanks [@enisdenjo](https://github.com/enisdenjo)! - Target Node 14 and specify engine in
25
+ package.json
26
+
14
27
  - [#1039](https://github.com/graphprotocol/graph-cli/pull/1039)
15
- [`2b2d603`](https://github.com/graphprotocol/graph-cli/commit/2b2d6033f3e9a62a916433cba12b2e960725ce5f)
28
+ [`accefb6`](https://github.com/graphprotocol/graph-cli/commit/accefb637bf1c1db64f63b32a18c291574aa4974)
16
29
  Thanks [@enisdenjo](https://github.com/enisdenjo)! - Use package.json to get package version
17
30
 
18
31
  ## 0.37.5
package/README.md ADDED
@@ -0,0 +1,81 @@
1
+ # The Graph CLI (graph-cli)
2
+
3
+ [![npm (scoped)](https://img.shields.io/npm/v/@graphprotocol/graph-cli.svg?color=success)](https://www.npmjs.com/package/@graphprotocol/graph-cli)
4
+ [![Tests](https://github.com/graphprotocol/graph-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/graphprotocol/graph-cli/actions/workflows/ci.yml)
5
+
6
+ ## The Graph Command Line Interface
7
+
8
+ As of today, the command line interface supports the following commands:
9
+
10
+ - `graph init` — Creates a new subgraph project from an example or an existing contract.
11
+ - `graph create` — Registers a subgraph name with a Graph Node.
12
+ - `graph remove` — Unregisters a subgraph name with a Graph Node.
13
+ - `graph codegen` — Generates AssemblyScript types for smart contract ABIs and the subgraph schema.
14
+ - `graph build` — Compiles a subgraph to WebAssembly.
15
+ - `graph deploy` — Deploys a subgraph to a
16
+ [Graph Node](https://github.com/graphprotocol/graph-node).
17
+ - `graph auth` — Stores a [Graph Node](https://github.com/graphprotocol/graph-node) access token in
18
+ the system's keychain.
19
+ - `graph local` — Runs tests against a [Graph Node](https://github.com/graphprotocol/graph-node)
20
+ test environment (using Ganache by default).
21
+ - `graph test` — Downloads and runs the [Matchstick](https://github.com/LimeChain/matchstick) rust
22
+ binary in order to test a subgraph.
23
+ - `graph add` - Adds a new datasource to the yaml file and writes the necessary changes to other
24
+ files - schema.graphql, abi and mapping.
25
+
26
+ ## How It Works
27
+
28
+ The Graph CLI takes a subgraph manifest (defaults to `subgraph.yaml`) with references to:
29
+
30
+ - A GraphQL schema,
31
+ - Smart contract ABIs, and
32
+ - Mappings written in AssemblyScript.
33
+
34
+ It compiles the mappings to WebAssembly, builds a ready-to-use version of the subgraph saved to IPFS
35
+ or a local directory for debugging, and deploys the subgraph to a
36
+ [Graph Node](https://github.com/graphprotocol/graph-node).
37
+
38
+ ## Installation
39
+
40
+ The Graph CLI can be installed with `npm` or `yarn`:
41
+
42
+ ```sh
43
+ # NPM
44
+ npm install -g @graphprotocol/graph-cli
45
+
46
+ # Yarn
47
+ yarn global add @graphprotocol/graph-cli
48
+ ```
49
+
50
+ ### On Linux
51
+
52
+ `libsecret` is used for storing access tokens, so you may need to install it before getting started.
53
+ Use one of the following commands depending on your distribution:
54
+
55
+ - Debian/Ubuntu: `sudo apt-get install libsecret-1-dev`
56
+ - Red Hat: `sudo yum install libsecret-devel`
57
+ - Arch Linux: `sudo pacman -S libsecret`
58
+
59
+ ## Getting Started
60
+
61
+ The Graph CLI can be used with a local or self-hosted
62
+ [Graph Node](https://github.com/graphprotocol/graph-node) or with the
63
+ [Hosted Service](https://thegraph.com/explorer/). To help you get going, there are
64
+ [quick start guides](https://thegraph.com/docs/en/developer/quick-start/) available for both.
65
+
66
+ If you are ready to dive into the details of building a subgraph from scratch, there is a
67
+ [detailed walkthrough](https://thegraph.com/docs/en/developer/create-subgraph-hosted/) for that as
68
+ well, along with API documentation for the
69
+ [AssemblyScript API](https://thegraph.com/docs/en/developer/assemblyscript-api/).
70
+
71
+ ## License
72
+
73
+ Copyright © 2018-2019 Graph Protocol, Inc. and contributors.
74
+
75
+ The Graph CLI is dual-licensed under the [MIT license](LICENSE-MIT) and the
76
+ [Apache License, Version 2.0](LICENSE-APACHE).
77
+
78
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
79
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or
80
+ implied. See the License for the specific language governing permissions and limitations under the
81
+ License.
@@ -30,9 +30,6 @@ const immutable_1 = __importDefault(require("immutable"));
30
30
  const typesCodegen = __importStar(require("./types"));
31
31
  const tsCodegen = __importStar(require("./typescript"));
32
32
  class IdField {
33
- static BYTES = Symbol('Bytes');
34
- static STRING = Symbol('String');
35
- kind;
36
33
  constructor(idField) {
37
34
  const typeName = idField.getIn(['type', 'type', 'name', 'value']);
38
35
  this.kind = typeName === 'Bytes' ? IdField.BYTES : IdField.STRING;
@@ -66,8 +63,9 @@ class IdField {
66
63
  return IdField.fromFields(def.get('fields'));
67
64
  }
68
65
  }
66
+ IdField.BYTES = Symbol('Bytes');
67
+ IdField.STRING = Symbol('String');
69
68
  class SchemaCodeGenerator {
70
- schema;
71
69
  constructor(schema) {
72
70
  this.schema = schema;
73
71
  this.schema = schema;
@@ -30,8 +30,6 @@ const immutable_1 = __importDefault(require("immutable"));
30
30
  const file_template_1 = __importDefault(require("../protocols/ipfs/codegen/file_template"));
31
31
  const tsCodegen = __importStar(require("./typescript"));
32
32
  class DataSourceTemplateCodeGenerator {
33
- template;
34
- protocolTemplateCodeGen;
35
33
  constructor(template, protocol) {
36
34
  this.template = template;
37
35
  this.template = template;
@@ -2,8 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.staticMethod = exports.StaticMethod = exports.param = exports.Param = exports.nullableType = exports.NullableType = exports.namedType = exports.NamedType = exports.moduleImports = exports.ModuleImports = exports.method = exports.Method = exports.klassMember = exports.klass = exports.GENERATED_FILE_NOTE = exports.ClassMember = exports.Class = exports.arrayType = exports.ArrayType = void 0;
4
4
  class Param {
5
- name;
6
- type;
7
5
  constructor(name, type) {
8
6
  this.name = name;
9
7
  this.type = type;
@@ -16,10 +14,6 @@ class Param {
16
14
  }
17
15
  exports.Param = Param;
18
16
  class Method {
19
- name;
20
- params;
21
- returnType;
22
- body;
23
17
  constructor(name, params, returnType, body) {
24
18
  this.name = name;
25
19
  this.params = params;
@@ -39,10 +33,6 @@ class Method {
39
33
  }
40
34
  exports.Method = Method;
41
35
  class StaticMethod {
42
- name;
43
- params;
44
- returnType;
45
- body;
46
36
  constructor(name, params, returnType, body) {
47
37
  this.name = name;
48
38
  this.params = params;
@@ -62,11 +52,6 @@ class StaticMethod {
62
52
  }
63
53
  exports.StaticMethod = StaticMethod;
64
54
  class Class {
65
- name;
66
- extends;
67
- methods;
68
- members;
69
- export;
70
55
  constructor(name, options) {
71
56
  this.name = name;
72
57
  this.name = name;
@@ -92,8 +77,6 @@ ${this.methods.map(method => method.toString()).join('')}
92
77
  }
93
78
  exports.Class = Class;
94
79
  class ClassMember {
95
- name;
96
- type;
97
80
  constructor(name, type) {
98
81
  this.name = name;
99
82
  this.type = type;
@@ -106,7 +89,6 @@ class ClassMember {
106
89
  }
107
90
  exports.ClassMember = ClassMember;
108
91
  class NamedType {
109
- name;
110
92
  constructor(name) {
111
93
  this.name = name;
112
94
  this.name = name;
@@ -139,8 +121,6 @@ class NamedType {
139
121
  }
140
122
  exports.NamedType = NamedType;
141
123
  class ArrayType {
142
- inner;
143
- name;
144
124
  constructor(inner) {
145
125
  this.inner = inner;
146
126
  this.inner = inner;
@@ -152,7 +132,6 @@ class ArrayType {
152
132
  }
153
133
  exports.ArrayType = ArrayType;
154
134
  class NullableType {
155
- inner;
156
135
  constructor(inner) {
157
136
  this.inner = inner;
158
137
  this.inner = inner;
@@ -163,8 +142,6 @@ class NullableType {
163
142
  }
164
143
  exports.NullableType = NullableType;
165
144
  class ModuleImports {
166
- nameOrNames;
167
- module;
168
145
  constructor(nameOrNames, module) {
169
146
  this.nameOrNames = nameOrNames;
170
147
  this.module = module;
@@ -37,10 +37,10 @@ const updateSubgraphNetwork = async (toolbox, manifest, network, networksFile, i
37
37
  });
38
38
  // All data sources shoud be on the same network,
39
39
  // so we have to update the network of all templates too.
40
- subgraph.templates &&= subgraph.templates.map((template) => ({
40
+ subgraph.templates && (subgraph.templates = subgraph.templates.map((template) => ({
41
41
  ...template,
42
42
  network,
43
- }));
43
+ })));
44
44
  const unsusedSources = networkSources.filter(x => !subgraphSources.includes(x));
45
45
  unsusedSources.forEach(source => {
46
46
  (0, spinner_1.step)(spinner, `dataSource '${source}' from '${networksFile}' not found in ${manifest}`);
@@ -39,7 +39,7 @@ const assertManifestApiVersion = async (manifestPath, minimumApiVersion) => {
39
39
  isLessThanMinimumVersion = manifest.dataSources.some((dataSource) => dataSource?.mapping?.apiVersion && lessThanMinimumVersion(dataSource.mapping.apiVersion));
40
40
  }
41
41
  if (manifest.templates && Array.isArray(manifest.templates)) {
42
- isLessThanMinimumVersion ||= manifest.templates.some((template) => template?.mapping?.apiVersion && lessThanMinimumVersion(template.mapping.apiVersion));
42
+ isLessThanMinimumVersion || (isLessThanMinimumVersion = manifest.templates.some((template) => template?.mapping?.apiVersion && lessThanMinimumVersion(template.mapping.apiVersion)));
43
43
  }
44
44
  }
45
45
  if (isLessThanMinimumVersion) {
@@ -55,7 +55,7 @@ exports.default = {
55
55
  const { print, system } = toolbox;
56
56
  // Read CLI parameters
57
57
  let { abi, contractName, h, help, mergeEntities, networkFile } = toolbox.parameters.options;
58
- contractName ||= 'Contract';
58
+ contractName || (contractName = 'Contract');
59
59
  try {
60
60
  (0, gluegun_1.fixParameters)(toolbox.parameters, {
61
61
  h,
@@ -97,7 +97,7 @@ exports.default = {
97
97
  node,
98
98
  }));
99
99
  }
100
- deployKey ||= inputs.deployKey;
100
+ deployKey || (deployKey = inputs.deployKey);
101
101
  }
102
102
  if (!deployKey) {
103
103
  print.error(`No deploy key provided`);
@@ -56,11 +56,11 @@ exports.default = {
56
56
  // Parse CLI parameters
57
57
  let { i, h, help, ipfs, o, outputDir, outputFormat, skipMigrations, t, w, watch, network, networkFile, } = toolbox.parameters.options;
58
58
  // Support both short and long option variants
59
- help ||= h;
60
- ipfs ||= i;
61
- outputDir ||= o;
62
- outputFormat ||= t;
63
- watch ||= w;
59
+ help || (help = h);
60
+ ipfs || (ipfs = i);
61
+ outputDir || (outputDir = o);
62
+ outputFormat || (outputFormat = t);
63
+ watch || (watch = w);
64
64
  let manifest;
65
65
  try {
66
66
  [manifest] = (0, gluegun_1.fixParameters)(toolbox.parameters, {
@@ -53,10 +53,10 @@ exports.default = {
53
53
  // Read CLI parameters
54
54
  let { h, help, o, outputDir, skipMigrations, w, watch, u, uncrashable, uc, uncrashableConfig } = toolbox.parameters.options;
55
55
  // Support both long and short option variants
56
- help ||= h;
57
- outputDir ||= o;
58
- watch ||= w;
59
- uncrashable ||= u;
56
+ help || (help = h);
57
+ outputDir || (outputDir = o);
58
+ watch || (watch = w);
59
+ uncrashable || (uncrashable = u);
60
60
  let uncrashable_config = uncrashableConfig || uc;
61
61
  let manifest;
62
62
  try {
@@ -26,8 +26,8 @@ exports.default = {
26
26
  let { accessToken, g, h, help, node } = toolbox.parameters.options;
27
27
  const subgraphName = toolbox.parameters.first;
28
28
  // Support both long and short option variants
29
- node ||= g;
30
- help ||= h;
29
+ node || (node = g);
30
+ help || (help = h);
31
31
  // Show help text if requested
32
32
  if (help) {
33
33
  print.info(HELP);
@@ -96,13 +96,13 @@ exports.default = {
96
96
  // Parse CLI parameters
97
97
  let { product, studio, deployKey, accessToken, versionLabel, l, g, h, i, help, ipfs, headers, hdr, node, o, outputDir, skipMigrations, w, watch, debugFork, network, networkFile, } = toolbox.parameters.options;
98
98
  // Support both long and short option variants
99
- help ||= h;
99
+ help || (help = h);
100
100
  ipfs = ipfs || i || ipfs_1.DEFAULT_IPFS_URL;
101
101
  headers = headers || hdr || '{}';
102
- node ||= g;
103
- outputDir ||= o;
104
- watch ||= w;
105
- versionLabel ||= l;
102
+ node || (node = g);
103
+ outputDir || (outputDir = o);
104
+ watch || (watch = w);
105
+ versionLabel || (versionLabel = l);
106
106
  try {
107
107
  headers = JSON.parse(headers);
108
108
  }
@@ -101,7 +101,7 @@ const processInitForm = async (toolbox, { protocol, product, studio, node, abi,
101
101
  choices: protocolChoices,
102
102
  skip: protocolChoices.includes(protocol),
103
103
  result: (value) => {
104
- protocol ||= value;
104
+ protocol || (protocol = value);
105
105
  protocolInstance = new protocols_1.default(protocol);
106
106
  return protocol;
107
107
  },
@@ -309,7 +309,7 @@ exports.default = {
309
309
  const { print, system } = toolbox;
310
310
  // Read CLI parameters
311
311
  let { protocol, product, studio, node, g, abi, allowSimpleName, fromContract, contractName, fromExample, h, help, indexEvents, network, } = toolbox.parameters.options;
312
- node ||= g;
312
+ node || (node = g);
313
313
  ({ node, allowSimpleName } = (0, node_1.chooseNodeUrl)({
314
314
  product,
315
315
  studio,
@@ -40,7 +40,7 @@ exports.default = {
40
40
  // Parse CLI parameters
41
41
  let { composeFile, ethereumLogs, h, help, nodeImage, nodeLogs, skipWaitForEthereum, skipWaitForIpfs, skipWaitForPostgres, standaloneNode, standaloneNodeArgs, timeout, } = toolbox.parameters.options;
42
42
  // Support both short and long option variants
43
- help ||= h;
43
+ help || (help = h);
44
44
  // Extract test command
45
45
  const params = (0, gluegun_1.fixParameters)(toolbox.parameters, {
46
46
  ethereumLogs,
@@ -63,7 +63,7 @@ exports.default = {
63
63
  }
64
64
  const testCommand = params[0];
65
65
  // Obtain the Docker Compose file for services that the tests run against
66
- composeFile ||= path_1.default.join(__dirname, '..', '..', 'resources', 'test', standaloneNode ? 'docker-compose-standalone-node.yml' : 'docker-compose.yml');
66
+ composeFile || (composeFile = path_1.default.join(__dirname, '..', '..', 'resources', 'test', standaloneNode ? 'docker-compose-standalone-node.yml' : 'docker-compose.yml'));
67
67
  // parse timeout. Defaults to 120 seconds
68
68
  timeout = Math.abs(parseInt(timeout)) || 120000;
69
69
  if (!filesystem.exists(composeFile)) {
@@ -26,8 +26,8 @@ exports.default = {
26
26
  let { accessToken, g, h, help, node } = toolbox.parameters.options;
27
27
  const subgraphName = toolbox.parameters.first;
28
28
  // Support both long and short option variants
29
- help ||= h;
30
- node ||= g;
29
+ help || (help = h);
30
+ node || (node = g);
31
31
  // Show help text if requested
32
32
  if (help) {
33
33
  print.info(HELP);
@@ -41,14 +41,6 @@ const watcher_1 = __importDefault(require("../watcher"));
41
41
  const asc = __importStar(require("./asc"));
42
42
  const compilerDebug = (0, debug_1.default)('graph-cli:compiler');
43
43
  class Compiler {
44
- options;
45
- ipfs;
46
- sourceDir;
47
- blockIpfsMethods;
48
- libsDirs;
49
- globalsFile;
50
- protocol;
51
- ABI;
52
44
  constructor(options) {
53
45
  this.options = options;
54
46
  this.options = options;
@@ -5,9 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const immutable_1 = __importDefault(require("immutable"));
7
7
  class ArweaveSubgraph {
8
- manifest;
9
- resolveFile;
10
- protocol;
11
8
  constructor(options) {
12
9
  this.manifest = options.manifest;
13
10
  this.resolveFile = options.resolveFile;
@@ -5,9 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const immutable_1 = __importDefault(require("immutable"));
7
7
  class CosmosSubgraph {
8
- manifest;
9
- resolveFile;
10
- protocol;
11
8
  constructor(options) {
12
9
  this.manifest = options.manifest;
13
10
  this.resolveFile = options.resolveFile;
@@ -42,9 +42,6 @@ const buildSignatureParameter = (input) => {
42
42
  return `${input.get('indexed') ? 'indexed ' : ''}${input.get('type')}`;
43
43
  };
44
44
  class ABI {
45
- name;
46
- file;
47
- data;
48
45
  constructor(name, file, data) {
49
46
  this.name = name;
50
47
  this.file = file;
@@ -36,7 +36,6 @@ const tsCodegen = __importStar(require("../../../codegen/typescript"));
36
36
  const util = __importStar(require("../../../codegen/util"));
37
37
  const doFixtureCodegen = fs_1.default.existsSync('./fixtures.yaml');
38
38
  class AbiCodeGenerator {
39
- abi;
40
39
  constructor(abi) {
41
40
  this.abi = abi;
42
41
  this.abi = abi;
@@ -25,7 +25,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  const tsCodegen = __importStar(require("../../../codegen/typescript"));
27
27
  class EthereumTemplateCodeGen {
28
- template;
29
28
  constructor(template) {
30
29
  this.template = template;
31
30
  this.template = template;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  class EthereumContract {
4
- address;
5
4
  static identifierName() {
6
5
  return 'address';
7
6
  }
@@ -30,9 +30,6 @@ const immutable_1 = __importDefault(require("immutable"));
30
30
  const DataSourcesExtractor = __importStar(require("../../command-helpers/data-sources"));
31
31
  const abi_1 = __importDefault(require("./abi"));
32
32
  class EthereumSubgraph {
33
- manifest;
34
- resolveFile;
35
- protocol;
36
33
  constructor(options) {
37
34
  this.manifest = options.manifest;
38
35
  this.resolveFile = options.resolveFile;
@@ -12,8 +12,6 @@ const fs_1 = require("../../command-helpers/fs");
12
12
  const spinner_1 = require("../../command-helpers/spinner");
13
13
  const abi_1 = __importDefault(require("./abi"));
14
14
  class EthereumTypeGenerator {
15
- sourceDir;
16
- outputDir;
17
15
  constructor(options) {
18
16
  this.sourceDir = options.sourceDir;
19
17
  this.outputDir = options.outputDir;
@@ -53,9 +53,6 @@ class Protocol {
53
53
  const firstDataSourceKind = dataSourcesAndTemplates[0].kind;
54
54
  return new Protocol(firstDataSourceKind);
55
55
  }
56
- name;
57
- // TODO: should assert non null? see the constructor switch default case comment
58
- config;
59
56
  constructor(name) {
60
57
  this.name = Protocol.normalizeName(name);
61
58
  switch (this.name) {
@@ -26,7 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
27
  const tsCodegen = __importStar(require("../../../codegen/typescript"));
28
28
  class IpfsFileTemplateCodeGen {
29
- template;
30
29
  constructor(template) {
31
30
  this.template = template;
32
31
  this.template = template;
@@ -4,7 +4,6 @@ const MINIMUM_ACCOUNT_ID_LENGTH = 2;
4
4
  const MAXIMUM_ACCOUNT_ID_LENGTH = 64;
5
5
  const RULES_URL = 'https://docs.near.org/docs/concepts/account#account-id-rules';
6
6
  class NearContract {
7
- account;
8
7
  static identifierName() {
9
8
  return 'account';
10
9
  }
@@ -5,9 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const immutable_1 = __importDefault(require("immutable"));
7
7
  class NearSubgraph {
8
- manifest;
9
- resolveFile;
10
- protocol;
11
8
  constructor(options) {
12
9
  this.manifest = options.manifest;
13
10
  this.resolveFile = options.resolveFile;
@@ -5,9 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const immutable_1 = __importDefault(require("immutable"));
7
7
  class SubstreamsSubgraph {
8
- manifest;
9
- resolveFile;
10
- protocol;
11
8
  constructor(options) {
12
9
  this.manifest = options.manifest;
13
10
  this.resolveFile = options.resolveFile;
@@ -17,14 +17,6 @@ const GRAPH_CLI_VERSION = process.env.GRAPH_CLI_TESTS
17
17
  : // For scaffolding real subgraphs
18
18
  version_1.version;
19
19
  class Scaffold {
20
- protocol;
21
- abi;
22
- indexEvents;
23
- contract;
24
- network;
25
- contractName;
26
- subgraphName;
27
- node;
28
20
  constructor(options) {
29
21
  this.protocol = options.protocol;
30
22
  this.abi = options.abi;
package/dist/schema.js CHANGED
@@ -31,9 +31,6 @@ const graphql = __importStar(require("graphql/language"));
31
31
  const immutable_1 = __importDefault(require("immutable"));
32
32
  const schema_1 = __importDefault(require("./codegen/schema"));
33
33
  class Schema {
34
- filename;
35
- document;
36
- ast;
37
34
  constructor(filename, document, ast) {
38
35
  this.filename = filename;
39
36
  this.document = document;
@@ -43,10 +43,6 @@ const schema_1 = __importDefault(require("./schema"));
43
43
  const subgraph_1 = __importDefault(require("./subgraph"));
44
44
  const watcher_1 = __importDefault(require("./watcher"));
45
45
  class TypeGenerator {
46
- sourceDir;
47
- options;
48
- protocol;
49
- protocolTypeGenerator;
50
46
  constructor(options) {
51
47
  this.options = options;
52
48
  this.sourceDir =
package/dist/watcher.js CHANGED
@@ -6,11 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const path_1 = __importDefault(require("path"));
7
7
  const chokidar_1 = __importDefault(require("chokidar"));
8
8
  class Watcher {
9
- onReady;
10
- onTrigger;
11
- onCollectFiles;
12
- onError;
13
- watcher;
14
9
  constructor(options) {
15
10
  const { onReady, onTrigger, onCollectFiles, onError } = options;
16
11
  this.onReady = onReady;
package/package.json CHANGED
@@ -1,13 +1,17 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.37.6-alpha-20230118200324-8f0e44a",
3
+ "version": "0.37.7-alpha-20230119221600-2d01b92",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
+ "engines": {
7
+ "node": ">=14"
8
+ },
6
9
  "bin": {
7
10
  "graph": "dist/bin.js"
8
11
  },
9
12
  "main": "dist/cli.js",
10
13
  "files": [
14
+ "README.md",
11
15
  "CHANGELOG.md",
12
16
  "dist"
13
17
  ],