@subql/node-stellar 2.9.3-2
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 +7 -0
- package/LICENSE +674 -0
- package/README.md +77 -0
- package/bin/run +4 -0
- package/bin/run.cmd +3 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/app.module.d.ts +2 -0
- package/dist/app.module.js +35 -0
- package/dist/app.module.js.map +1 -0
- package/dist/configure/SubqueryProject.d.ts +25 -0
- package/dist/configure/SubqueryProject.js +148 -0
- package/dist/configure/SubqueryProject.js.map +1 -0
- package/dist/configure/configure.module.d.ts +10 -0
- package/dist/configure/configure.module.js +129 -0
- package/dist/configure/configure.module.js.map +1 -0
- package/dist/indexer/blockDispatcher/block-dispatcher.service.d.ts +16 -0
- package/dist/indexer/blockDispatcher/block-dispatcher.service.js +54 -0
- package/dist/indexer/blockDispatcher/block-dispatcher.service.js.map +1 -0
- package/dist/indexer/blockDispatcher/index.d.ts +4 -0
- package/dist/indexer/blockDispatcher/index.js +10 -0
- package/dist/indexer/blockDispatcher/index.js.map +1 -0
- package/dist/indexer/blockDispatcher/stellar-block-dispatcher.d.ts +4 -0
- package/dist/indexer/blockDispatcher/stellar-block-dispatcher.js +5 -0
- package/dist/indexer/blockDispatcher/stellar-block-dispatcher.js.map +1 -0
- package/dist/indexer/blockDispatcher/worker-block-dispatcher.service.d.ts +16 -0
- package/dist/indexer/blockDispatcher/worker-block-dispatcher.service.js +78 -0
- package/dist/indexer/blockDispatcher/worker-block-dispatcher.service.js.map +1 -0
- package/dist/indexer/dictionary.service.d.ts +7 -0
- package/dist/indexer/dictionary.service.js +34 -0
- package/dist/indexer/dictionary.service.js.map +1 -0
- package/dist/indexer/ds-processor.service.d.ts +9 -0
- package/dist/indexer/ds-processor.service.js +46 -0
- package/dist/indexer/ds-processor.service.js.map +1 -0
- package/dist/indexer/dynamic-ds.service.d.ts +9 -0
- package/dist/indexer/dynamic-ds.service.js +71 -0
- package/dist/indexer/dynamic-ds.service.js.map +1 -0
- package/dist/indexer/fetch.module.d.ts +2 -0
- package/dist/indexer/fetch.module.js +93 -0
- package/dist/indexer/fetch.module.js.map +1 -0
- package/dist/indexer/fetch.service.d.ts +33 -0
- package/dist/indexer/fetch.service.js +201 -0
- package/dist/indexer/fetch.service.js.map +1 -0
- package/dist/indexer/fetch.service.spec.d.ts +1 -0
- package/dist/indexer/fetch.service.spec.js +58 -0
- package/dist/indexer/fetch.service.spec.js.map +1 -0
- package/dist/indexer/indexer.manager.d.ts +36 -0
- package/dist/indexer/indexer.manager.js +92 -0
- package/dist/indexer/indexer.manager.js.map +1 -0
- package/dist/indexer/indexer.module.d.ts +2 -0
- package/dist/indexer/indexer.module.js +86 -0
- package/dist/indexer/indexer.module.js.map +1 -0
- package/dist/indexer/project.service.d.ts +13 -0
- package/dist/indexer/project.service.js +60 -0
- package/dist/indexer/project.service.js.map +1 -0
- package/dist/indexer/sandbox.service.d.ts +13 -0
- package/dist/indexer/sandbox.service.js +64 -0
- package/dist/indexer/sandbox.service.js.map +1 -0
- package/dist/indexer/types.d.ts +1 -0
- package/dist/indexer/types.js +5 -0
- package/dist/indexer/types.js.map +1 -0
- package/dist/indexer/unfinalizedBlocks.service.d.ts +11 -0
- package/dist/indexer/unfinalizedBlocks.service.js +52 -0
- package/dist/indexer/unfinalizedBlocks.service.js.map +1 -0
- package/dist/indexer/worker/worker.d.ts +31 -0
- package/dist/indexer/worker/worker.js +103 -0
- package/dist/indexer/worker/worker.js.map +1 -0
- package/dist/indexer/worker/worker.module.d.ts +2 -0
- package/dist/indexer/worker/worker.module.js +33 -0
- package/dist/indexer/worker/worker.module.js.map +1 -0
- package/dist/indexer/worker/worker.service.d.ts +26 -0
- package/dist/indexer/worker/worker.service.js +90 -0
- package/dist/indexer/worker/worker.service.js.map +1 -0
- package/dist/indexer/worker/worker.unfinalizedBlocks.service.d.ts +16 -0
- package/dist/indexer/worker/worker.unfinalizedBlocks.service.js +50 -0
- package/dist/indexer/worker/worker.unfinalizedBlocks.service.js.map +1 -0
- package/dist/init.d.ts +1 -0
- package/dist/init.js +52 -0
- package/dist/init.js.map +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +22 -0
- package/dist/main.js.map +1 -0
- package/dist/meta/meta.controller.d.ts +21 -0
- package/dist/meta/meta.controller.js +36 -0
- package/dist/meta/meta.controller.js.map +1 -0
- package/dist/meta/meta.module.d.ts +2 -0
- package/dist/meta/meta.module.js +28 -0
- package/dist/meta/meta.module.js.map +1 -0
- package/dist/meta/meta.service.d.ts +24 -0
- package/dist/meta/meta.service.js +121 -0
- package/dist/meta/meta.service.js.map +1 -0
- package/dist/stellar/api.connection.d.ts +20 -0
- package/dist/stellar/api.connection.js +63 -0
- package/dist/stellar/api.connection.js.map +1 -0
- package/dist/stellar/api.connection.spec.d.ts +1 -0
- package/dist/stellar/api.connection.spec.js +81 -0
- package/dist/stellar/api.connection.spec.js.map +1 -0
- package/dist/stellar/api.service.stellar.d.ts +18 -0
- package/dist/stellar/api.service.stellar.js +144 -0
- package/dist/stellar/api.service.stellar.js.map +1 -0
- package/dist/stellar/api.service.stellar.spec.d.ts +5 -0
- package/dist/stellar/api.service.stellar.spec.js +87 -0
- package/dist/stellar/api.service.stellar.spec.js.map +1 -0
- package/dist/stellar/api.stellar.d.ts +29 -0
- package/dist/stellar/api.stellar.js +116 -0
- package/dist/stellar/api.stellar.js.map +1 -0
- package/dist/stellar/api.stellar.spec.d.ts +1 -0
- package/dist/stellar/api.stellar.spec.js +81 -0
- package/dist/stellar/api.stellar.spec.js.map +1 -0
- package/dist/stellar/block.stellar.d.ts +11 -0
- package/dist/stellar/block.stellar.js +81 -0
- package/dist/stellar/block.stellar.js.map +1 -0
- package/dist/stellar/block.stellar.spec.d.ts +1 -0
- package/dist/stellar/block.stellar.spec.js +58 -0
- package/dist/stellar/block.stellar.spec.js.map +1 -0
- package/dist/stellar/index.d.ts +2 -0
- package/dist/stellar/index.js +21 -0
- package/dist/stellar/index.js.map +1 -0
- package/dist/stellar/safe-api.d.ts +20 -0
- package/dist/stellar/safe-api.js +67 -0
- package/dist/stellar/safe-api.js.map +1 -0
- package/dist/stellar/stellar.server.d.ts +8 -0
- package/dist/stellar/stellar.server.js +72 -0
- package/dist/stellar/stellar.server.js.map +1 -0
- package/dist/stellar/stellar.server.spec.d.ts +1 -0
- package/dist/stellar/stellar.server.spec.js +132 -0
- package/dist/stellar/stellar.server.spec.js.map +1 -0
- package/dist/stellar/utils.stellar.d.ts +2 -0
- package/dist/stellar/utils.stellar.js +10 -0
- package/dist/stellar/utils.stellar.js.map +1 -0
- package/dist/subcommands/forceClean.init.d.ts +1 -0
- package/dist/subcommands/forceClean.init.js +24 -0
- package/dist/subcommands/forceClean.init.js.map +1 -0
- package/dist/subcommands/forceClean.module.d.ts +2 -0
- package/dist/subcommands/forceClean.module.js +28 -0
- package/dist/subcommands/forceClean.module.js.map +1 -0
- package/dist/subcommands/mmrMigrate.init.d.ts +2 -0
- package/dist/subcommands/mmrMigrate.init.js +28 -0
- package/dist/subcommands/mmrMigrate.init.js.map +1 -0
- package/dist/subcommands/mmrMigrate.module.d.ts +2 -0
- package/dist/subcommands/mmrMigrate.module.js +28 -0
- package/dist/subcommands/mmrMigrate.module.js.map +1 -0
- package/dist/subcommands/mmrRegenerate.init.d.ts +1 -0
- package/dist/subcommands/mmrRegenerate.init.js +28 -0
- package/dist/subcommands/mmrRegenerate.init.js.map +1 -0
- package/dist/subcommands/mmrRegenerate.module.d.ts +2 -0
- package/dist/subcommands/mmrRegenerate.module.js +30 -0
- package/dist/subcommands/mmrRegenerate.module.js.map +1 -0
- package/dist/subcommands/reindex.init.d.ts +1 -0
- package/dist/subcommands/reindex.init.js +30 -0
- package/dist/subcommands/reindex.init.js.map +1 -0
- package/dist/subcommands/reindex.module.d.ts +4 -0
- package/dist/subcommands/reindex.module.js +60 -0
- package/dist/subcommands/reindex.module.js.map +1 -0
- package/dist/subcommands/reindex.service.d.ts +11 -0
- package/dist/subcommands/reindex.service.js +46 -0
- package/dist/subcommands/reindex.service.js.map +1 -0
- package/dist/subcommands/testing.init.d.ts +1 -0
- package/dist/subcommands/testing.init.js +25 -0
- package/dist/subcommands/testing.init.js.map +1 -0
- package/dist/subcommands/testing.module.d.ts +4 -0
- package/dist/subcommands/testing.module.js +88 -0
- package/dist/subcommands/testing.module.js.map +1 -0
- package/dist/subcommands/testing.service.d.ts +9 -0
- package/dist/subcommands/testing.service.js +49 -0
- package/dist/subcommands/testing.service.js.map +1 -0
- package/dist/utils/project.d.ts +6 -0
- package/dist/utils/project.js +33 -0
- package/dist/utils/project.js.map +1 -0
- package/dist/utils/string.d.ts +1 -0
- package/dist/utils/string.js +10 -0
- package/dist/utils/string.js.map +1 -0
- package/dist/yargs.d.ts +303 -0
- package/dist/yargs.js +381 -0
- package/dist/yargs.js.map +1 -0
- package/package.json +69 -0
package/README.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# @subql-node
|
|
2
|
+
|
|
3
|
+
## Description
|
|
4
|
+
|
|
5
|
+
Indexer service in our @subql toolkit, can load user's subquery then fetch, process and persist to db accordingly.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
$ npm i -g @subql/node
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Running the app
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
$> subql-node
|
|
17
|
+
|
|
18
|
+
Commands:
|
|
19
|
+
run force-clean Force cleans the database, dropping project schemas and
|
|
20
|
+
tables (Once the command is executed, the application would
|
|
21
|
+
exit upon completion)
|
|
22
|
+
|
|
23
|
+
run reindex Reindex to specified block height (Once the command is
|
|
24
|
+
executed, the application would exit upon completion).
|
|
25
|
+
|
|
26
|
+
Options:
|
|
27
|
+
--help Show help [boolean]
|
|
28
|
+
--version Show version number [boolean]
|
|
29
|
+
-f, --subquery Local path or IPFS cid of the subquery project
|
|
30
|
+
[string] [required] [default: process.cwd()]
|
|
31
|
+
--subquery-name Name of the subquery project [deprecated] [string]
|
|
32
|
+
-c, --config Specify configuration file [string]
|
|
33
|
+
--local Use local mode [deprecated] [boolean] [boolean]
|
|
34
|
+
--db-schema Db schema name of the project [string]
|
|
35
|
+
--unsafe Allows usage of any built-in module within the
|
|
36
|
+
sandbox [boolean]
|
|
37
|
+
--subscription Enable subscription by create notification triggers
|
|
38
|
+
[boolean] [default: false]
|
|
39
|
+
--batch-size Batch size of blocks to fetch in one round [number]
|
|
40
|
+
--scale-batch-size scale batch size based on memory usage
|
|
41
|
+
[boolean] [default: false]
|
|
42
|
+
--timeout Timeout for indexer sandbox to execute the mapping
|
|
43
|
+
functions [number]
|
|
44
|
+
--debug Show debug information to console output. will
|
|
45
|
+
forcefully set log level to debug
|
|
46
|
+
[boolean] [default: false]
|
|
47
|
+
--profiler Show profiler information to console output
|
|
48
|
+
[boolean] [default: false]
|
|
49
|
+
--network-endpoint Blockchain network endpoint to connect [string]
|
|
50
|
+
--output-fmt Print log as json or plain text
|
|
51
|
+
[string] [choices: "json", "colored"]
|
|
52
|
+
--log-level Specify log level to print. Ignored when --debug is
|
|
53
|
+
used
|
|
54
|
+
[string] [choices: "fatal", "error", "warn", "info", "debug", "trace",
|
|
55
|
+
"silent"]
|
|
56
|
+
--timestamp-field Enable/disable created_at and updated_at in schema
|
|
57
|
+
[boolean] [default: false]
|
|
58
|
+
-d, --network-dictionary Specify the dictionary api for this network [string]
|
|
59
|
+
--dictionary-timeout Max timeout for dictionary query [number]
|
|
60
|
+
--sponsored-dictionary Use subquery network sponsored dictionary [string]
|
|
61
|
+
-m, --mmr-path Local path of the merkle mountain range (.mmr) file
|
|
62
|
+
[string]
|
|
63
|
+
--proof-of-index Enable/disable proof of index
|
|
64
|
+
[boolean] [default: false]
|
|
65
|
+
--ipfs IPFS gateway endpoint [string]
|
|
66
|
+
-p, --port The port the service will bind to [number]
|
|
67
|
+
--disable-historical Disable storing historical state entities
|
|
68
|
+
[boolean] [default: true]
|
|
69
|
+
-w, --workers Number of worker threads to use for fetching and
|
|
70
|
+
processing blocks. Disabled by default. [number]
|
|
71
|
+
--multi-chain Enables indexing multiple subquery projects into the
|
|
72
|
+
same database schema [boolean] [default: false]
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## License
|
|
76
|
+
|
|
77
|
+
Apache-2.0
|
package/bin/run
ADDED
package/bin/run.cmd
ADDED