@subql/node 6.4.1-0 → 6.4.4-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 (123) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/dist/.tsbuildinfo +1 -0
  3. package/dist/app.module.d.ts +2 -0
  4. package/dist/app.module.js +42 -0
  5. package/dist/app.module.js.map +1 -0
  6. package/dist/blockchain.service.d.ts +31 -0
  7. package/dist/blockchain.service.js +146 -0
  8. package/dist/blockchain.service.js.map +1 -0
  9. package/dist/configure/NodeConfig.d.ts +19 -0
  10. package/dist/configure/NodeConfig.js +28 -0
  11. package/dist/configure/NodeConfig.js.map +1 -0
  12. package/dist/configure/SubqueryProject.d.ts +13 -0
  13. package/dist/configure/SubqueryProject.js +29 -0
  14. package/dist/configure/SubqueryProject.js.map +1 -0
  15. package/dist/configure/configure.module.d.ts +11 -0
  16. package/dist/configure/configure.module.js +63 -0
  17. package/dist/configure/configure.module.js.map +1 -0
  18. package/dist/indexer/api.service.d.ts +36 -0
  19. package/dist/indexer/api.service.js +315 -0
  20. package/dist/indexer/api.service.js.map +1 -0
  21. package/dist/indexer/apiPromise.connection.d.ts +24 -0
  22. package/dist/indexer/apiPromise.connection.js +106 -0
  23. package/dist/indexer/apiPromise.connection.js.map +1 -0
  24. package/dist/indexer/dictionary/index.d.ts +2 -0
  25. package/dist/indexer/dictionary/index.js +21 -0
  26. package/dist/indexer/dictionary/index.js.map +1 -0
  27. package/dist/indexer/dictionary/substrateDictionary.service.d.ts +13 -0
  28. package/dist/indexer/dictionary/substrateDictionary.service.js +93 -0
  29. package/dist/indexer/dictionary/substrateDictionary.service.js.map +1 -0
  30. package/dist/indexer/dictionary/types.d.ts +10 -0
  31. package/dist/indexer/dictionary/types.js +5 -0
  32. package/dist/indexer/dictionary/types.js.map +1 -0
  33. package/dist/indexer/dictionary/v1/index.d.ts +1 -0
  34. package/dist/indexer/dictionary/v1/index.js +20 -0
  35. package/dist/indexer/dictionary/v1/index.js.map +1 -0
  36. package/dist/indexer/dictionary/v1/substrateDictionaryV1.d.ts +19 -0
  37. package/dist/indexer/dictionary/v1/substrateDictionaryV1.js +223 -0
  38. package/dist/indexer/dictionary/v1/substrateDictionaryV1.js.map +1 -0
  39. package/dist/indexer/dictionary/v2/index.d.ts +2 -0
  40. package/dist/indexer/dictionary/v2/index.js +21 -0
  41. package/dist/indexer/dictionary/v2/index.js.map +1 -0
  42. package/dist/indexer/dictionary/v2/substrateDictionaryV2.d.ts +20 -0
  43. package/dist/indexer/dictionary/v2/substrateDictionaryV2.js +46 -0
  44. package/dist/indexer/dictionary/v2/substrateDictionaryV2.js.map +1 -0
  45. package/dist/indexer/dictionary/v2/types.d.ts +5 -0
  46. package/dist/indexer/dictionary/v2/types.js +5 -0
  47. package/dist/indexer/dictionary/v2/types.js.map +1 -0
  48. package/dist/indexer/fetch.module.d.ts +2 -0
  49. package/dist/indexer/fetch.module.js +94 -0
  50. package/dist/indexer/fetch.module.js.map +1 -0
  51. package/dist/indexer/indexer.manager.d.ts +27 -0
  52. package/dist/indexer/indexer.manager.js +153 -0
  53. package/dist/indexer/indexer.manager.js.map +1 -0
  54. package/dist/indexer/runtime/base-runtime.service.d.ts +24 -0
  55. package/dist/indexer/runtime/base-runtime.service.js +136 -0
  56. package/dist/indexer/runtime/base-runtime.service.js.map +1 -0
  57. package/dist/indexer/runtime/runtimeService.d.ts +15 -0
  58. package/dist/indexer/runtime/runtimeService.js +94 -0
  59. package/dist/indexer/runtime/runtimeService.js.map +1 -0
  60. package/dist/indexer/runtime/workerRuntimeService.d.ts +9 -0
  61. package/dist/indexer/runtime/workerRuntimeService.js +43 -0
  62. package/dist/indexer/runtime/workerRuntimeService.js.map +1 -0
  63. package/dist/indexer/types.d.ts +20 -0
  64. package/dist/indexer/types.js +13 -0
  65. package/dist/indexer/types.js.map +1 -0
  66. package/dist/indexer/worker/worker-fetch.module.d.ts +5 -0
  67. package/dist/indexer/worker/worker-fetch.module.js +60 -0
  68. package/dist/indexer/worker/worker-fetch.module.js.map +1 -0
  69. package/dist/indexer/worker/worker.d.ts +9 -0
  70. package/dist/indexer/worker/worker.js +48 -0
  71. package/dist/indexer/worker/worker.js.map +1 -0
  72. package/dist/indexer/worker/worker.module.d.ts +2 -0
  73. package/dist/indexer/worker/worker.module.js +33 -0
  74. package/dist/indexer/worker/worker.module.js.map +1 -0
  75. package/dist/indexer/worker/worker.service.d.ts +26 -0
  76. package/dist/indexer/worker/worker.service.js +71 -0
  77. package/dist/indexer/worker/worker.service.js.map +1 -0
  78. package/dist/indexer/x-provider/cachedProvider.d.ts +2 -0
  79. package/dist/indexer/x-provider/cachedProvider.js +40 -0
  80. package/dist/indexer/x-provider/cachedProvider.js.map +1 -0
  81. package/dist/indexer/x-provider/http.d.ts +75 -0
  82. package/dist/indexer/x-provider/http.js +198 -0
  83. package/dist/indexer/x-provider/http.js.map +1 -0
  84. package/dist/init.d.ts +1 -0
  85. package/dist/init.js +41 -0
  86. package/dist/init.js.map +1 -0
  87. package/dist/main.d.ts +1 -0
  88. package/dist/main.js +19 -0
  89. package/dist/main.js.map +1 -0
  90. package/dist/subcommands/forceClean.init.d.ts +1 -0
  91. package/dist/subcommands/forceClean.init.js +10 -0
  92. package/dist/subcommands/forceClean.init.js.map +1 -0
  93. package/dist/subcommands/forceClean.module.d.ts +2 -0
  94. package/dist/subcommands/forceClean.module.js +28 -0
  95. package/dist/subcommands/forceClean.module.js.map +1 -0
  96. package/dist/subcommands/reindex.init.d.ts +3 -0
  97. package/dist/subcommands/reindex.init.js +33 -0
  98. package/dist/subcommands/reindex.init.js.map +1 -0
  99. package/dist/subcommands/reindex.module.d.ts +2 -0
  100. package/dist/subcommands/reindex.module.js +69 -0
  101. package/dist/subcommands/reindex.module.js.map +1 -0
  102. package/dist/subcommands/testing.init.d.ts +1 -0
  103. package/dist/subcommands/testing.init.js +21 -0
  104. package/dist/subcommands/testing.init.js.map +1 -0
  105. package/dist/subcommands/testing.module.d.ts +2 -0
  106. package/dist/subcommands/testing.module.js +65 -0
  107. package/dist/subcommands/testing.module.js.map +1 -0
  108. package/dist/subcommands/testing.service.d.ts +14 -0
  109. package/dist/subcommands/testing.service.js +60 -0
  110. package/dist/subcommands/testing.service.js.map +1 -0
  111. package/dist/utils/project.d.ts +9 -0
  112. package/dist/utils/project.js +116 -0
  113. package/dist/utils/project.js.map +1 -0
  114. package/dist/utils/substrate.d.ts +41 -0
  115. package/dist/utils/substrate.js +348 -0
  116. package/dist/utils/substrate.js.map +1 -0
  117. package/dist/utils/test.utils.d.ts +2 -0
  118. package/dist/utils/test.utils.js +70 -0
  119. package/dist/utils/test.utils.js.map +1 -0
  120. package/dist/yargs.d.ts +276 -0
  121. package/dist/yargs.js +27 -0
  122. package/dist/yargs.js.map +1 -0
  123. package/package.json +5 -5
@@ -0,0 +1,276 @@
1
+ export declare const yargsOptions: import("yargs").Argv<import("yargs").Omit<import("yargs").Omit<{
2
+ targetHeight: number;
3
+ }, "timeout" | "workers" | "unsafe" | "subscription" | "historical" | "root" | "skipTransactions" | "subquery-name" | "network-endpoint-config" | "primary-network-endpoint-config" | "batch-size" | "dictionary-timeout" | "dictionary-query-size" | "dictionary-registry" | "disable-historical" | "log-level" | "multi-chain" | "network-dictionary" | "primary-network-endpoint" | "output-fmt" | "query-limit" | "store-cache-threshold" | "store-cache-upper-limit" | "store-get-cache-size" | "store-cache-async" | "store-flush-interval" | "store-cache-target" | "unfinalized-blocks" | "allow-schema-migration" | "csv-out-dir" | "monitor-out-dir" | "monitor-file-size" | "monitor-object-max-depth" | "enable-cache"> & import("yargs").InferredOptionTypes<{
4
+ 'batch-size': {
5
+ demandOption: false;
6
+ describe: string;
7
+ type: "number";
8
+ };
9
+ 'dictionary-timeout': {
10
+ demandOption: false;
11
+ describe: string;
12
+ type: "number";
13
+ };
14
+ 'dictionary-query-size': {
15
+ demandOption: false;
16
+ describe: string;
17
+ type: "number";
18
+ };
19
+ 'dictionary-registry': {
20
+ demandOption: false;
21
+ describe: string;
22
+ type: "string";
23
+ };
24
+ 'disable-historical': {
25
+ demandOption: false;
26
+ describe: string;
27
+ type: "boolean";
28
+ deprecated: true;
29
+ conflicts: string;
30
+ };
31
+ historical: {
32
+ describe: string;
33
+ type: "string";
34
+ choices: string[];
35
+ conflicts: string;
36
+ };
37
+ 'log-level': {
38
+ demandOption: false;
39
+ describe: string;
40
+ type: "string";
41
+ choices: string[];
42
+ };
43
+ 'multi-chain': {
44
+ alias: string;
45
+ demandOption: false;
46
+ default: boolean;
47
+ describe: string;
48
+ type: "boolean";
49
+ };
50
+ 'network-dictionary': {
51
+ alias: string;
52
+ demandOption: false;
53
+ describe: string;
54
+ type: "string";
55
+ };
56
+ 'primary-network-endpoint': {
57
+ demandOption: false;
58
+ type: "string";
59
+ describe: string;
60
+ };
61
+ 'network-endpoint-config': {
62
+ demandOption: false;
63
+ type: "string";
64
+ describe: string;
65
+ };
66
+ 'primary-network-endpoint-config': {
67
+ demandOption: false;
68
+ type: "string";
69
+ describe: string;
70
+ };
71
+ 'output-fmt': {
72
+ demandOption: false;
73
+ describe: string;
74
+ type: "string";
75
+ choices: string[];
76
+ };
77
+ 'query-limit': {
78
+ demandOption: false;
79
+ describe: string;
80
+ type: "number";
81
+ default: number;
82
+ };
83
+ 'store-cache-threshold': {
84
+ demandOption: false;
85
+ describe: string;
86
+ type: "number";
87
+ };
88
+ 'store-cache-upper-limit': {
89
+ demandOption: false;
90
+ describe: string;
91
+ type: "number";
92
+ };
93
+ 'store-get-cache-size': {
94
+ demandOption: false;
95
+ describe: string;
96
+ type: "number";
97
+ };
98
+ 'store-cache-async': {
99
+ demandOption: false;
100
+ describe: string;
101
+ type: "boolean";
102
+ };
103
+ 'store-flush-interval': {
104
+ demandOption: false;
105
+ describe: string;
106
+ type: "number";
107
+ default: number;
108
+ };
109
+ 'store-cache-target': {
110
+ demandOption: false;
111
+ describe: string;
112
+ type: "number";
113
+ default: number;
114
+ };
115
+ 'subquery-name': {
116
+ deprecated: true;
117
+ demandOption: false;
118
+ describe: string;
119
+ type: "string";
120
+ };
121
+ subscription: {
122
+ demandOption: false;
123
+ describe: string;
124
+ type: "boolean";
125
+ default: boolean;
126
+ };
127
+ skipTransactions: {
128
+ demandOption: false;
129
+ describe: string;
130
+ type: "boolean";
131
+ };
132
+ timeout: {
133
+ demandOption: false;
134
+ describe: string;
135
+ type: "number";
136
+ };
137
+ 'unfinalized-blocks': {
138
+ demandOption: false;
139
+ describe: string;
140
+ type: "boolean";
141
+ };
142
+ unsafe: {
143
+ type: "boolean";
144
+ demandOption: false;
145
+ describe: string;
146
+ };
147
+ workers: {
148
+ alias: string;
149
+ demandOption: false;
150
+ describe: string;
151
+ type: "number";
152
+ };
153
+ 'allow-schema-migration': {
154
+ demandOption: false;
155
+ describe: string;
156
+ type: "boolean";
157
+ };
158
+ root: {
159
+ describe: string;
160
+ type: "string";
161
+ };
162
+ 'csv-out-dir': {
163
+ describe: string;
164
+ type: "string";
165
+ };
166
+ 'monitor-out-dir': {
167
+ describe: string;
168
+ type: "string";
169
+ };
170
+ 'monitor-file-size': {
171
+ describe: string;
172
+ type: "number";
173
+ };
174
+ 'monitor-object-max-depth': {
175
+ describe: string;
176
+ type: "number";
177
+ };
178
+ 'enable-cache': {
179
+ describe: string;
180
+ type: "boolean";
181
+ default: boolean;
182
+ };
183
+ }>, "debug" | "subquery" | "ipfs" | "profiler" | "port" | "config" | "db-schema" | "proof-of-index" | "pg-ca" | "pg-key" | "pg-cert" | "pg-pool-min" | "pg-pool-max" | "pg-pool-acquire" | "pg-pool-idle" | "pg-pool-evict" | "network-endpoint"> & import("yargs").InferredOptionTypes<{
184
+ config: {
185
+ alias: string;
186
+ demandOption: false;
187
+ describe: string;
188
+ type: "string";
189
+ };
190
+ 'db-schema': {
191
+ demandOption: false;
192
+ describe: string;
193
+ type: "string";
194
+ };
195
+ debug: {
196
+ demandOption: false;
197
+ describe: string;
198
+ type: "string";
199
+ };
200
+ ipfs: {
201
+ demandOption: false;
202
+ describe: string;
203
+ type: "string";
204
+ };
205
+ port: {
206
+ alias: string;
207
+ demandOption: false;
208
+ describe: string;
209
+ type: "number";
210
+ };
211
+ profiler: {
212
+ demandOption: false;
213
+ describe: string;
214
+ type: "boolean";
215
+ default: boolean;
216
+ };
217
+ 'proof-of-index': {
218
+ demandOption: false;
219
+ alias: string;
220
+ describe: string;
221
+ type: "boolean";
222
+ default: boolean;
223
+ };
224
+ 'pg-ca': {
225
+ demandOption: false;
226
+ describe: string;
227
+ type: "string";
228
+ };
229
+ 'pg-key': {
230
+ demandOption: false;
231
+ describe: string;
232
+ type: "string";
233
+ };
234
+ 'pg-cert': {
235
+ demandOption: false;
236
+ describe: string;
237
+ type: "string";
238
+ };
239
+ 'pg-pool-min': {
240
+ demandOption: false;
241
+ type: "number";
242
+ describe: string;
243
+ };
244
+ 'pg-pool-max': {
245
+ demandOption: false;
246
+ type: "number";
247
+ describe: string;
248
+ };
249
+ 'pg-pool-acquire': {
250
+ demandOption: false;
251
+ type: "number";
252
+ describe: string;
253
+ };
254
+ 'pg-pool-idle': {
255
+ demandOption: false;
256
+ type: "number";
257
+ describe: string;
258
+ };
259
+ 'pg-pool-evict': {
260
+ demandOption: false;
261
+ type: "number";
262
+ describe: string;
263
+ };
264
+ subquery: {
265
+ alias: string;
266
+ demandOption: true;
267
+ default: string;
268
+ describe: string;
269
+ type: "string";
270
+ };
271
+ 'network-endpoint': {
272
+ demandOption: false;
273
+ type: "string";
274
+ describe: string;
275
+ };
276
+ }>>;
package/dist/yargs.js ADDED
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
3
+ // SPDX-License-Identifier: GPL-3.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.yargsOptions = void 0;
6
+ const yargs_1 = require("@subql/node-core/yargs");
7
+ exports.yargsOptions = (0, yargs_1.yargsBuilder)({
8
+ initTesting: () => {
9
+ // lazy import to make sure logger is instantiated before all other services
10
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
11
+ const { testingInit } = require('./subcommands/testing.init');
12
+ return testingInit();
13
+ },
14
+ initForceClean: () => {
15
+ // lazy import to make sure logger is instantiated before all other services
16
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
17
+ const { forceCleanInit } = require('./subcommands/forceClean.init');
18
+ return forceCleanInit();
19
+ },
20
+ initReindex: (targetHeight) => {
21
+ // lazy import to make sure logger is instantiated before all other services
22
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
23
+ const { reindexInit } = require('./subcommands/reindex.init');
24
+ return reindexInit(targetHeight);
25
+ },
26
+ });
27
+ //# sourceMappingURL=yargs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yargs.js","sourceRoot":"","sources":["../src/yargs.ts"],"names":[],"mappings":";AAAA,8DAA8D;AAC9D,mCAAmC;;;AAEnC,kDAAsD;AAEzC,QAAA,YAAY,GAAG,IAAA,oBAAY,EAAC;IACvC,WAAW,EAAE,GAAG,EAAE;QAChB,4EAA4E;QAC5E,8DAA8D;QAC9D,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;QAC9D,OAAO,WAAW,EAAE,CAAC;IACvB,CAAC;IACD,cAAc,EAAE,GAAG,EAAE;QACnB,4EAA4E;QAC5E,8DAA8D;QAC9D,MAAM,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;QACpE,OAAO,cAAc,EAAE,CAAC;IAC1B,CAAC;IACD,WAAW,EAAE,CAAC,YAAoB,EAAE,EAAE;QACpC,4EAA4E;QAC5E,8DAA8D;QAC9D,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;QAC9D,OAAO,WAAW,CAAC,YAAY,CAAC,CAAC;IACnC,CAAC;CACF,CAAC,CAAC","sourcesContent":["// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors\n// SPDX-License-Identifier: GPL-3.0\n\nimport { yargsBuilder } from '@subql/node-core/yargs';\n\nexport const yargsOptions = yargsBuilder({\n initTesting: () => {\n // lazy import to make sure logger is instantiated before all other services\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n const { testingInit } = require('./subcommands/testing.init');\n return testingInit();\n },\n initForceClean: () => {\n // lazy import to make sure logger is instantiated before all other services\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n const { forceCleanInit } = require('./subcommands/forceClean.init');\n return forceCleanInit();\n },\n initReindex: (targetHeight: number) => {\n // lazy import to make sure logger is instantiated before all other services\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n const { reindexInit } = require('./subcommands/reindex.init');\n return reindexInit(targetHeight);\n },\n});\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@subql/node",
3
- "version": "6.4.1-0",
3
+ "version": "6.4.4-0",
4
4
  "description": "",
5
5
  "author": "Ian He",
6
6
  "license": "GPL-3.0",
@@ -26,10 +26,10 @@
26
26
  "@nestjs/platform-express": "^11.0.7",
27
27
  "@nestjs/schedule": "^5.0.1",
28
28
  "@polkadot/api": "^16.4.7",
29
- "@subql/common-substrate": "~4.5.2",
30
- "@subql/node-core": "~18.5.0",
29
+ "@subql/common-substrate": "~4.5.4",
30
+ "@subql/node-core": "~18.5.2-0",
31
31
  "@subql/types": "~3.15.0",
32
- "@subql/utils": "~2.22.1-3",
32
+ "@subql/utils": "~2.22.1",
33
33
  "fetch-h2": "3.0.2",
34
34
  "lodash": "^4.17.21",
35
35
  "reflect-metadata": "^0.2.2"
@@ -59,5 +59,5 @@
59
59
  "README.md",
60
60
  "CHANGELOG.md"
61
61
  ],
62
- "stableVersion": "6.4.0"
62
+ "stableVersion": "6.4.3"
63
63
  }