@subql/node 6.4.0 → 6.4.1-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.
- package/package.json +5 -4
- package/dist/.tsbuildinfo +0 -1
- package/dist/app.module.d.ts +0 -2
- package/dist/app.module.js +0 -42
- package/dist/app.module.js.map +0 -1
- package/dist/blockchain.service.d.ts +0 -31
- package/dist/blockchain.service.js +0 -146
- package/dist/blockchain.service.js.map +0 -1
- package/dist/configure/NodeConfig.d.ts +0 -19
- package/dist/configure/NodeConfig.js +0 -28
- package/dist/configure/NodeConfig.js.map +0 -1
- package/dist/configure/SubqueryProject.d.ts +0 -13
- package/dist/configure/SubqueryProject.js +0 -29
- package/dist/configure/SubqueryProject.js.map +0 -1
- package/dist/configure/configure.module.d.ts +0 -11
- package/dist/configure/configure.module.js +0 -63
- package/dist/configure/configure.module.js.map +0 -1
- package/dist/indexer/api.service.d.ts +0 -36
- package/dist/indexer/api.service.js +0 -315
- package/dist/indexer/api.service.js.map +0 -1
- package/dist/indexer/apiPromise.connection.d.ts +0 -24
- package/dist/indexer/apiPromise.connection.js +0 -106
- package/dist/indexer/apiPromise.connection.js.map +0 -1
- package/dist/indexer/dictionary/index.d.ts +0 -2
- package/dist/indexer/dictionary/index.js +0 -21
- package/dist/indexer/dictionary/index.js.map +0 -1
- package/dist/indexer/dictionary/substrateDictionary.service.d.ts +0 -13
- package/dist/indexer/dictionary/substrateDictionary.service.js +0 -93
- package/dist/indexer/dictionary/substrateDictionary.service.js.map +0 -1
- package/dist/indexer/dictionary/types.d.ts +0 -10
- package/dist/indexer/dictionary/types.js +0 -5
- package/dist/indexer/dictionary/types.js.map +0 -1
- package/dist/indexer/dictionary/v1/index.d.ts +0 -1
- package/dist/indexer/dictionary/v1/index.js +0 -20
- package/dist/indexer/dictionary/v1/index.js.map +0 -1
- package/dist/indexer/dictionary/v1/substrateDictionaryV1.d.ts +0 -19
- package/dist/indexer/dictionary/v1/substrateDictionaryV1.js +0 -223
- package/dist/indexer/dictionary/v1/substrateDictionaryV1.js.map +0 -1
- package/dist/indexer/dictionary/v2/index.d.ts +0 -2
- package/dist/indexer/dictionary/v2/index.js +0 -21
- package/dist/indexer/dictionary/v2/index.js.map +0 -1
- package/dist/indexer/dictionary/v2/substrateDictionaryV2.d.ts +0 -20
- package/dist/indexer/dictionary/v2/substrateDictionaryV2.js +0 -46
- package/dist/indexer/dictionary/v2/substrateDictionaryV2.js.map +0 -1
- package/dist/indexer/dictionary/v2/types.d.ts +0 -5
- package/dist/indexer/dictionary/v2/types.js +0 -5
- package/dist/indexer/dictionary/v2/types.js.map +0 -1
- package/dist/indexer/fetch.module.d.ts +0 -2
- package/dist/indexer/fetch.module.js +0 -94
- package/dist/indexer/fetch.module.js.map +0 -1
- package/dist/indexer/indexer.manager.d.ts +0 -27
- package/dist/indexer/indexer.manager.js +0 -153
- package/dist/indexer/indexer.manager.js.map +0 -1
- package/dist/indexer/runtime/base-runtime.service.d.ts +0 -24
- package/dist/indexer/runtime/base-runtime.service.js +0 -136
- package/dist/indexer/runtime/base-runtime.service.js.map +0 -1
- package/dist/indexer/runtime/runtimeService.d.ts +0 -15
- package/dist/indexer/runtime/runtimeService.js +0 -94
- package/dist/indexer/runtime/runtimeService.js.map +0 -1
- package/dist/indexer/runtime/workerRuntimeService.d.ts +0 -9
- package/dist/indexer/runtime/workerRuntimeService.js +0 -43
- package/dist/indexer/runtime/workerRuntimeService.js.map +0 -1
- package/dist/indexer/types.d.ts +0 -20
- package/dist/indexer/types.js +0 -13
- package/dist/indexer/types.js.map +0 -1
- package/dist/indexer/worker/worker-fetch.module.d.ts +0 -5
- package/dist/indexer/worker/worker-fetch.module.js +0 -60
- package/dist/indexer/worker/worker-fetch.module.js.map +0 -1
- package/dist/indexer/worker/worker.d.ts +0 -9
- package/dist/indexer/worker/worker.js +0 -48
- package/dist/indexer/worker/worker.js.map +0 -1
- package/dist/indexer/worker/worker.module.d.ts +0 -2
- package/dist/indexer/worker/worker.module.js +0 -33
- package/dist/indexer/worker/worker.module.js.map +0 -1
- package/dist/indexer/worker/worker.service.d.ts +0 -26
- package/dist/indexer/worker/worker.service.js +0 -71
- package/dist/indexer/worker/worker.service.js.map +0 -1
- package/dist/indexer/x-provider/cachedProvider.d.ts +0 -2
- package/dist/indexer/x-provider/cachedProvider.js +0 -40
- package/dist/indexer/x-provider/cachedProvider.js.map +0 -1
- package/dist/indexer/x-provider/http.d.ts +0 -75
- package/dist/indexer/x-provider/http.js +0 -198
- package/dist/indexer/x-provider/http.js.map +0 -1
- package/dist/init.d.ts +0 -1
- package/dist/init.js +0 -41
- package/dist/init.js.map +0 -1
- package/dist/main.d.ts +0 -1
- package/dist/main.js +0 -19
- package/dist/main.js.map +0 -1
- package/dist/subcommands/forceClean.init.d.ts +0 -1
- package/dist/subcommands/forceClean.init.js +0 -10
- package/dist/subcommands/forceClean.init.js.map +0 -1
- package/dist/subcommands/forceClean.module.d.ts +0 -2
- package/dist/subcommands/forceClean.module.js +0 -28
- package/dist/subcommands/forceClean.module.js.map +0 -1
- package/dist/subcommands/reindex.init.d.ts +0 -3
- package/dist/subcommands/reindex.init.js +0 -33
- package/dist/subcommands/reindex.init.js.map +0 -1
- package/dist/subcommands/reindex.module.d.ts +0 -2
- package/dist/subcommands/reindex.module.js +0 -69
- package/dist/subcommands/reindex.module.js.map +0 -1
- package/dist/subcommands/testing.init.d.ts +0 -1
- package/dist/subcommands/testing.init.js +0 -21
- package/dist/subcommands/testing.init.js.map +0 -1
- package/dist/subcommands/testing.module.d.ts +0 -2
- package/dist/subcommands/testing.module.js +0 -65
- package/dist/subcommands/testing.module.js.map +0 -1
- package/dist/subcommands/testing.service.d.ts +0 -14
- package/dist/subcommands/testing.service.js +0 -60
- package/dist/subcommands/testing.service.js.map +0 -1
- package/dist/utils/project.d.ts +0 -9
- package/dist/utils/project.js +0 -116
- package/dist/utils/project.js.map +0 -1
- package/dist/utils/substrate.d.ts +0 -41
- package/dist/utils/substrate.js +0 -348
- package/dist/utils/substrate.js.map +0 -1
- package/dist/utils/test.utils.d.ts +0 -2
- package/dist/utils/test.utils.js +0 -70
- package/dist/utils/test.utils.js.map +0 -1
- package/dist/yargs.d.ts +0 -276
- package/dist/yargs.js +0 -27
- package/dist/yargs.js.map +0 -1
package/dist/yargs.d.ts
DELETED
|
@@ -1,276 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
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
|
package/dist/yargs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"]}
|