@graphprotocol/graph-cli 0.33.1 → 0.34.0

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.
Files changed (33) hide show
  1. package/examples/basic-event-handlers/node_modules/@graphprotocol/graph-ts/README.md +1 -1
  2. package/examples/basic-event-handlers/node_modules/@graphprotocol/graph-ts/chain/ethereum.ts +200 -0
  3. package/examples/basic-event-handlers/node_modules/@graphprotocol/graph-ts/global/global.ts +28 -28
  4. package/examples/basic-event-handlers/node_modules/@graphprotocol/graph-ts/methods.txt +18 -0
  5. package/examples/basic-event-handlers/node_modules/@graphprotocol/graph-ts/package.json +1 -1
  6. package/examples/basic-event-handlers/node_modules/keccak/build/Makefile +342 -0
  7. package/examples/basic-event-handlers/node_modules/keccak/build/Release/.deps/Release/obj.target/keccak/src/addon.o.d.raw +69 -0
  8. package/examples/basic-event-handlers/node_modules/keccak/build/binding.Makefile +6 -0
  9. package/examples/basic-event-handlers/node_modules/keccak/build/config.gypi +27 -11
  10. package/examples/basic-event-handlers/node_modules/keccak/build/gyp-mac-tool +772 -0
  11. package/examples/basic-event-handlers/node_modules/keccak/build/keccak.target.mk +207 -0
  12. package/examples/basic-event-handlers/node_modules/websocket/build/Makefile +347 -0
  13. package/examples/basic-event-handlers/node_modules/websocket/build/Release/.deps/Release/obj.target/bufferutil/src/bufferutil.o.d.raw +67 -0
  14. package/examples/basic-event-handlers/node_modules/websocket/build/binding.Makefile +6 -0
  15. package/examples/basic-event-handlers/node_modules/websocket/build/bufferutil.target.mk +190 -0
  16. package/examples/basic-event-handlers/node_modules/websocket/build/config.gypi +23 -7
  17. package/examples/basic-event-handlers/node_modules/websocket/build/gyp-mac-tool +772 -0
  18. package/examples/basic-event-handlers/node_modules/websocket/build/validation.target.mk +190 -0
  19. package/examples/basic-event-handlers/package.json +1 -1
  20. package/examples/basic-event-handlers/yarn.lock +4 -4
  21. package/examples/example-subgraph/package.json +1 -1
  22. package/examples/example-subgraph/yarn.lock +4 -4
  23. package/package.json +1 -1
  24. package/src/codegen/types/conversions.js +100 -0
  25. package/src/codegen/types/index.test.js +347 -0
  26. package/src/codegen/util.js +6 -1
  27. package/src/command-helpers/spinner.js +6 -0
  28. package/src/commands/init.js +33 -12
  29. package/src/protocols/ethereum/abi.js +8 -0
  30. package/src/protocols/ethereum/codegen/abi.js +12 -1
  31. package/src/scaffold/index.js +1 -1
  32. package/src/subgraph.js +6 -5
  33. package/tests/cli/init.test.js +1 -0
@@ -0,0 +1,190 @@
1
+ # This file is generated by gyp; do not edit.
2
+
3
+ TOOLSET := target
4
+ TARGET := bufferutil
5
+ DEFS_Debug := \
6
+ '-DNODE_GYP_MODULE_NAME=bufferutil' \
7
+ '-DUSING_UV_SHARED=1' \
8
+ '-DUSING_V8_SHARED=1' \
9
+ '-DV8_DEPRECATION_WARNINGS=1' \
10
+ '-DV8_DEPRECATION_WARNINGS' \
11
+ '-DV8_IMMINENT_DEPRECATION_WARNINGS' \
12
+ '-D_GLIBCXX_USE_CXX11_ABI=1' \
13
+ '-D_DARWIN_USE_64_BIT_INODE=1' \
14
+ '-D_LARGEFILE_SOURCE' \
15
+ '-D_FILE_OFFSET_BITS=64' \
16
+ '-DOPENSSL_NO_PINSHARED' \
17
+ '-DOPENSSL_THREADS' \
18
+ '-DBUILDING_NODE_EXTENSION' \
19
+ '-DDEBUG' \
20
+ '-D_DEBUG' \
21
+ '-DV8_ENABLE_CHECKS'
22
+
23
+ # Flags passed to all source files.
24
+ CFLAGS_Debug := \
25
+ -O0 \
26
+ -gdwarf-2 \
27
+ -mmacosx-version-min=10.15 \
28
+ -arch arm64 \
29
+ -Wall \
30
+ -Wendif-labels \
31
+ -W \
32
+ -Wno-unused-parameter
33
+
34
+ # Flags passed to only C files.
35
+ CFLAGS_C_Debug := \
36
+ -fno-strict-aliasing
37
+
38
+ # Flags passed to only C++ files.
39
+ CFLAGS_CC_Debug := \
40
+ -std=gnu++17 \
41
+ -stdlib=libc++ \
42
+ -fno-rtti \
43
+ -fno-exceptions \
44
+ -fno-strict-aliasing
45
+
46
+ # Flags passed to only ObjC files.
47
+ CFLAGS_OBJC_Debug :=
48
+
49
+ # Flags passed to only ObjC++ files.
50
+ CFLAGS_OBJCC_Debug :=
51
+
52
+ INCS_Debug := \
53
+ -I/Users/eva/Library/Caches/node-gyp/18.2.0/include/node \
54
+ -I/Users/eva/Library/Caches/node-gyp/18.2.0/src \
55
+ -I/Users/eva/Library/Caches/node-gyp/18.2.0/deps/openssl/config \
56
+ -I/Users/eva/Library/Caches/node-gyp/18.2.0/deps/openssl/openssl/include \
57
+ -I/Users/eva/Library/Caches/node-gyp/18.2.0/deps/uv/include \
58
+ -I/Users/eva/Library/Caches/node-gyp/18.2.0/deps/zlib \
59
+ -I/Users/eva/Library/Caches/node-gyp/18.2.0/deps/v8/include \
60
+ -I$(srcdir)/../nan
61
+
62
+ DEFS_Release := \
63
+ '-DNODE_GYP_MODULE_NAME=bufferutil' \
64
+ '-DUSING_UV_SHARED=1' \
65
+ '-DUSING_V8_SHARED=1' \
66
+ '-DV8_DEPRECATION_WARNINGS=1' \
67
+ '-DV8_DEPRECATION_WARNINGS' \
68
+ '-DV8_IMMINENT_DEPRECATION_WARNINGS' \
69
+ '-D_GLIBCXX_USE_CXX11_ABI=1' \
70
+ '-D_DARWIN_USE_64_BIT_INODE=1' \
71
+ '-D_LARGEFILE_SOURCE' \
72
+ '-D_FILE_OFFSET_BITS=64' \
73
+ '-DOPENSSL_NO_PINSHARED' \
74
+ '-DOPENSSL_THREADS' \
75
+ '-DBUILDING_NODE_EXTENSION'
76
+
77
+ # Flags passed to all source files.
78
+ CFLAGS_Release := \
79
+ -O3 \
80
+ -gdwarf-2 \
81
+ -mmacosx-version-min=10.15 \
82
+ -arch arm64 \
83
+ -Wall \
84
+ -Wendif-labels \
85
+ -W \
86
+ -Wno-unused-parameter
87
+
88
+ # Flags passed to only C files.
89
+ CFLAGS_C_Release := \
90
+ -fno-strict-aliasing
91
+
92
+ # Flags passed to only C++ files.
93
+ CFLAGS_CC_Release := \
94
+ -std=gnu++17 \
95
+ -stdlib=libc++ \
96
+ -fno-rtti \
97
+ -fno-exceptions \
98
+ -fno-strict-aliasing
99
+
100
+ # Flags passed to only ObjC files.
101
+ CFLAGS_OBJC_Release :=
102
+
103
+ # Flags passed to only ObjC++ files.
104
+ CFLAGS_OBJCC_Release :=
105
+
106
+ INCS_Release := \
107
+ -I/Users/eva/Library/Caches/node-gyp/18.2.0/include/node \
108
+ -I/Users/eva/Library/Caches/node-gyp/18.2.0/src \
109
+ -I/Users/eva/Library/Caches/node-gyp/18.2.0/deps/openssl/config \
110
+ -I/Users/eva/Library/Caches/node-gyp/18.2.0/deps/openssl/openssl/include \
111
+ -I/Users/eva/Library/Caches/node-gyp/18.2.0/deps/uv/include \
112
+ -I/Users/eva/Library/Caches/node-gyp/18.2.0/deps/zlib \
113
+ -I/Users/eva/Library/Caches/node-gyp/18.2.0/deps/v8/include \
114
+ -I$(srcdir)/../nan
115
+
116
+ OBJS := \
117
+ $(obj).target/$(TARGET)/src/bufferutil.o
118
+
119
+ # Add to the list of files we specially track dependencies for.
120
+ all_deps += $(OBJS)
121
+
122
+ # CFLAGS et al overrides must be target-local.
123
+ # See "Target-specific Variable Values" in the GNU Make manual.
124
+ $(OBJS): TOOLSET := $(TOOLSET)
125
+ $(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
126
+ $(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
127
+ $(OBJS): GYP_OBJCFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE)) $(CFLAGS_OBJC_$(BUILDTYPE))
128
+ $(OBJS): GYP_OBJCXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE)) $(CFLAGS_OBJCC_$(BUILDTYPE))
129
+
130
+ # Suffix rules, putting all outputs into $(obj).
131
+
132
+ $(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
133
+ @$(call do_cmd,cxx,1)
134
+
135
+ # Try building from generated source, too.
136
+
137
+ $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
138
+ @$(call do_cmd,cxx,1)
139
+
140
+ $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cc FORCE_DO_CMD
141
+ @$(call do_cmd,cxx,1)
142
+
143
+ # End of this set of suffix rules
144
+ ### Rules for final target.
145
+ LDFLAGS_Debug := \
146
+ -undefined dynamic_lookup \
147
+ -Wl,-search_paths_first \
148
+ -mmacosx-version-min=10.15 \
149
+ -arch arm64 \
150
+ -L$(builddir) \
151
+ -stdlib=libc++
152
+
153
+ LIBTOOLFLAGS_Debug := \
154
+ -undefined dynamic_lookup \
155
+ -Wl,-search_paths_first
156
+
157
+ LDFLAGS_Release := \
158
+ -undefined dynamic_lookup \
159
+ -Wl,-search_paths_first \
160
+ -mmacosx-version-min=10.15 \
161
+ -arch arm64 \
162
+ -L$(builddir) \
163
+ -stdlib=libc++
164
+
165
+ LIBTOOLFLAGS_Release := \
166
+ -undefined dynamic_lookup \
167
+ -Wl,-search_paths_first
168
+
169
+ LIBS :=
170
+
171
+ $(builddir)/bufferutil.node: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
172
+ $(builddir)/bufferutil.node: LIBS := $(LIBS)
173
+ $(builddir)/bufferutil.node: GYP_LIBTOOLFLAGS := $(LIBTOOLFLAGS_$(BUILDTYPE))
174
+ $(builddir)/bufferutil.node: TOOLSET := $(TOOLSET)
175
+ $(builddir)/bufferutil.node: $(OBJS) FORCE_DO_CMD
176
+ $(call do_cmd,solink_module)
177
+
178
+ all_deps += $(builddir)/bufferutil.node
179
+ # Add target alias
180
+ .PHONY: bufferutil
181
+ bufferutil: $(builddir)/bufferutil.node
182
+
183
+ # Short alias for building this executable.
184
+ .PHONY: bufferutil.node
185
+ bufferutil.node: $(builddir)/bufferutil.node
186
+
187
+ # Add executable to "all" target.
188
+ .PHONY: all
189
+ all: $(builddir)/bufferutil.node
190
+
@@ -21,12 +21,12 @@
21
21
  "error_on_warn": "false",
22
22
  "force_dynamic_crt": 0,
23
23
  "host_arch": "arm64",
24
- "icu_data_in": "../../deps/icu-tmp/icudt70l.dat",
24
+ "icu_data_in": "../../deps/icu-tmp/icudt71l.dat",
25
25
  "icu_endianness": "l",
26
26
  "icu_gyp_path": "tools/icu/icu-generic.gyp",
27
27
  "icu_path": "deps/icu-small",
28
28
  "icu_small": "false",
29
- "icu_ver_major": "70",
29
+ "icu_ver_major": "71",
30
30
  "is_debug": 0,
31
31
  "llvm_version": "12.0",
32
32
  "napi_build_version": "8",
@@ -49,6 +49,7 @@
49
49
  "lib/child_process.js",
50
50
  "lib/assert.js",
51
51
  "lib/_tls_wrap.js",
52
+ "lib/test.js",
52
53
  "lib/http2.js",
53
54
  "lib/inspector.js",
54
55
  "lib/os.js",
@@ -143,9 +144,14 @@
143
144
  "lib/internal/stream_base_commons.js",
144
145
  "lib/internal/url.js",
145
146
  "lib/internal/async_hooks.js",
147
+ "lib/internal/wasm_web_api.js",
146
148
  "lib/internal/http.js",
147
149
  "lib/internal/buffer.js",
148
150
  "lib/internal/trace_events_async_hooks.js",
151
+ "lib/internal/test_runner/test.js",
152
+ "lib/internal/test_runner/harness.js",
153
+ "lib/internal/test_runner/utils.js",
154
+ "lib/internal/test_runner/tap_stream.js",
149
155
  "lib/internal/crypto/sig.js",
150
156
  "lib/internal/crypto/rsa.js",
151
157
  "lib/internal/crypto/aes.js",
@@ -184,6 +190,7 @@
184
190
  "lib/internal/bootstrap/loaders.js",
185
191
  "lib/internal/bootstrap/pre_execution.js",
186
192
  "lib/internal/bootstrap/node.js",
193
+ "lib/internal/bootstrap/browser.js",
187
194
  "lib/internal/bootstrap/environment.js",
188
195
  "lib/internal/bootstrap/switches/does_not_own_process_state.js",
189
196
  "lib/internal/bootstrap/switches/is_not_main_thread.js",
@@ -203,6 +210,7 @@
203
210
  "lib/internal/streams/destroy.js",
204
211
  "lib/internal/streams/legacy.js",
205
212
  "lib/internal/streams/passthrough.js",
213
+ "lib/internal/streams/operators.js",
206
214
  "lib/internal/streams/readable.js",
207
215
  "lib/internal/streams/from.js",
208
216
  "lib/internal/streams/writable.js",
@@ -233,7 +241,6 @@
233
241
  "lib/internal/per_context/domexception.js",
234
242
  "lib/internal/vm/module.js",
235
243
  "lib/internal/tls/secure-pair.js",
236
- "lib/internal/tls/parse-cert-string.js",
237
244
  "lib/internal/tls/secure-context.js",
238
245
  "lib/internal/child_process/serialization.js",
239
246
  "lib/internal/debugger/inspect_repl.js",
@@ -246,7 +253,9 @@
246
253
  "lib/internal/main/eval_string.js",
247
254
  "lib/internal/main/check_syntax.js",
248
255
  "lib/internal/main/prof_process.js",
256
+ "lib/internal/main/test_runner.js",
249
257
  "lib/internal/main/worker_thread.js",
258
+ "lib/internal/main/mksnapshot.js",
250
259
  "lib/internal/main/inspect.js",
251
260
  "lib/internal/main/eval_stdin.js",
252
261
  "lib/internal/main/run_main_module.js",
@@ -254,14 +263,17 @@
254
263
  "lib/internal/modules/package_json_reader.js",
255
264
  "lib/internal/modules/esm/module_job.js",
256
265
  "lib/internal/modules/esm/assert.js",
266
+ "lib/internal/modules/esm/fetch_module.js",
257
267
  "lib/internal/modules/esm/get_source.js",
258
268
  "lib/internal/modules/esm/translators.js",
259
269
  "lib/internal/modules/esm/resolve.js",
260
270
  "lib/internal/modules/esm/create_dynamic_module.js",
261
271
  "lib/internal/modules/esm/load.js",
272
+ "lib/internal/modules/esm/handle_process_exit.js",
262
273
  "lib/internal/modules/esm/initialize_import_meta.js",
263
274
  "lib/internal/modules/esm/module_map.js",
264
275
  "lib/internal/modules/esm/get_format.js",
276
+ "lib/internal/modules/esm/formats.js",
265
277
  "lib/internal/modules/esm/loader.js",
266
278
  "lib/internal/modules/cjs/helpers.js",
267
279
  "lib/internal/modules/cjs/loader.js",
@@ -288,6 +300,7 @@
288
300
  "lib/internal/perf/utils.js",
289
301
  "lib/internal/perf/observe.js",
290
302
  "lib/internal/perf/event_loop_delay.js",
303
+ "lib/internal/perf/resource_timing.js",
291
304
  "lib/internal/perf/event_loop_utilization.js",
292
305
  "lib/internal/policy/manifest.js",
293
306
  "lib/internal/policy/sri.js",
@@ -307,7 +320,7 @@
307
320
  "lib/dns/promises.js",
308
321
  "lib/fs/promises.js"
309
322
  ],
310
- "node_module_version": 102,
323
+ "node_module_version": 108,
311
324
  "node_no_browser_globals": "false",
312
325
  "node_prefix": "/",
313
326
  "node_release_urlbase": "https://nodejs.org/download/release/",
@@ -335,15 +348,18 @@
335
348
  "openssl_is_fips": "false",
336
349
  "openssl_quic": "true",
337
350
  "ossfuzz": "false",
338
- "shlib_suffix": "102.dylib",
351
+ "shlib_suffix": "108.dylib",
339
352
  "target_arch": "arm64",
340
353
  "v8_enable_31bit_smis_on_64bit_arch": 0,
341
354
  "v8_enable_gdbjit": 0,
355
+ "v8_enable_hugepage": 0,
342
356
  "v8_enable_i18n_support": 1,
343
357
  "v8_enable_inspector": 1,
358
+ "v8_enable_javascript_promise_hooks": 1,
344
359
  "v8_enable_lite_mode": 0,
345
360
  "v8_enable_object_print": 1,
346
361
  "v8_enable_pointer_compression": 0,
362
+ "v8_enable_shared_ro_heap": 1,
347
363
  "v8_enable_webassembly": 1,
348
364
  "v8_no_strict_aliasing": 1,
349
365
  "v8_optimized_debug": 1,
@@ -353,7 +369,7 @@
353
369
  "v8_use_siphash": 1,
354
370
  "want_separate_host_toolset": 0,
355
371
  "xcode_version": "12.0",
356
- "nodedir": "/Users/eva/Library/Caches/node-gyp/17.3.1",
372
+ "nodedir": "/Users/eva/Library/Caches/node-gyp/18.2.0",
357
373
  "standalone_static_library": 1,
358
374
  "version_git_tag": "true",
359
375
  "init_license": "MIT",
@@ -363,7 +379,7 @@
363
379
  "strict_ssl": "true",
364
380
  "save_prefix": "^",
365
381
  "version_git_message": "v%s",
366
- "user_agent": "yarn/1.22.10 npm/? node/v17.3.1 darwin arm64",
382
+ "user_agent": "yarn/1.22.10 npm/? node/v18.2.0 darwin arm64",
367
383
  "ignore_scripts": "",
368
384
  "version_git_sign": "",
369
385
  "ignore_optional": "",