@subql/node-ethereum 2.12.6-1 → 2.12.6-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 +11 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/configure/NodeConfig.d.ts +21 -0
- package/dist/configure/NodeConfig.js +31 -0
- package/dist/configure/NodeConfig.js.map +1 -0
- package/dist/configure/SubqueryProject.d.ts +21 -29
- package/dist/configure/SubqueryProject.js +48 -72
- package/dist/configure/SubqueryProject.js.map +1 -1
- package/dist/configure/configure.module.d.ts +2 -2
- package/dist/configure/configure.module.js +19 -89
- package/dist/configure/configure.module.js.map +1 -1
- package/dist/ethereum/api.connection.d.ts +7 -7
- package/dist/ethereum/api.connection.js +4 -4
- package/dist/ethereum/api.connection.js.map +1 -1
- package/dist/ethereum/api.ethereum.d.ts +14 -8
- package/dist/ethereum/api.ethereum.js +24 -13
- package/dist/ethereum/api.ethereum.js.map +1 -1
- package/dist/ethereum/api.ethereum.test.js +29 -32
- package/dist/ethereum/api.ethereum.test.js.map +1 -1
- package/dist/ethereum/api.service.ethereum.d.ts +9 -7
- package/dist/ethereum/api.service.ethereum.js +56 -64
- package/dist/ethereum/api.service.ethereum.js.map +1 -1
- package/dist/ethereum/api.service.ethereum.test.js +8 -13
- package/dist/ethereum/api.service.ethereum.test.js.map +1 -1
- package/dist/ethereum/block.ethereum.d.ts +6 -15
- package/dist/ethereum/block.ethereum.js +52 -79
- package/dist/ethereum/block.ethereum.js.map +1 -1
- package/dist/ethereum/ethers/celo/celo-json-rpc-batch-provider.spec.js +3 -6
- package/dist/ethereum/ethers/celo/celo-json-rpc-batch-provider.spec.js.map +1 -1
- package/dist/ethereum/ethers/celo/celo-json-rpc-provider.spec.js +3 -6
- package/dist/ethereum/ethers/celo/celo-json-rpc-provider.spec.js.map +1 -1
- package/dist/ethereum/ethers/celo/celo-ws-provider.spec.js +3 -6
- package/dist/ethereum/ethers/celo/celo-ws-provider.spec.js.map +1 -1
- package/dist/indexer/blockDispatcher/block-dispatcher.service.d.ts +7 -7
- package/dist/indexer/blockDispatcher/block-dispatcher.service.js +7 -6
- package/dist/indexer/blockDispatcher/block-dispatcher.service.js.map +1 -1
- package/dist/indexer/blockDispatcher/worker-block-dispatcher.service.d.ts +4 -4
- package/dist/indexer/blockDispatcher/worker-block-dispatcher.service.js +9 -18
- package/dist/indexer/blockDispatcher/worker-block-dispatcher.service.js.map +1 -1
- package/dist/indexer/dictionary.service.d.ts +3 -3
- package/dist/indexer/dictionary.service.js +7 -5
- package/dist/indexer/dictionary.service.js.map +1 -1
- package/dist/indexer/dynamic-ds.service.d.ts +3 -3
- package/dist/indexer/dynamic-ds.service.js.map +1 -1
- package/dist/indexer/fetch.module.js +8 -10
- package/dist/indexer/fetch.module.js.map +1 -1
- package/dist/indexer/fetch.service.d.ts +10 -10
- package/dist/indexer/fetch.service.js +22 -43
- package/dist/indexer/fetch.service.js.map +1 -1
- package/dist/indexer/fetch.service.spec.js +25 -45
- package/dist/indexer/fetch.service.spec.js.map +1 -1
- package/dist/indexer/indexer.manager.d.ts +10 -12
- package/dist/indexer/indexer.manager.js +20 -30
- package/dist/indexer/indexer.manager.js.map +1 -1
- package/dist/indexer/project.service.d.ts +8 -6
- package/dist/indexer/project.service.js +19 -12
- package/dist/indexer/project.service.js.map +1 -1
- package/dist/indexer/project.service.test.d.ts +1 -0
- package/dist/indexer/project.service.test.js +26 -0
- package/dist/indexer/project.service.test.js.map +1 -0
- package/dist/indexer/sandbox.service.d.ts +1 -1
- package/dist/indexer/sandbox.service.js +1 -0
- package/dist/indexer/sandbox.service.js.map +1 -1
- package/dist/indexer/types.d.ts +2 -11
- package/dist/indexer/types.js +0 -6
- package/dist/indexer/types.js.map +1 -1
- package/dist/indexer/unfinalizedBlocks.service.d.ts +4 -4
- package/dist/indexer/unfinalizedBlocks.service.js +25 -1
- package/dist/indexer/unfinalizedBlocks.service.js.map +1 -1
- package/dist/indexer/worker/worker.d.ts +4 -28
- package/dist/indexer/worker/worker.js +8 -71
- package/dist/indexer/worker/worker.js.map +1 -1
- package/dist/indexer/worker/worker.module.js +2 -2
- package/dist/indexer/worker/worker.module.js.map +1 -1
- package/dist/indexer/worker/worker.service.d.ts +11 -13
- package/dist/indexer/worker/worker.service.js +14 -56
- package/dist/indexer/worker/worker.service.js.map +1 -1
- package/dist/indexer/worker/worker.unfinalizedBlocks.service.d.ts +4 -8
- package/dist/indexer/worker/worker.unfinalizedBlocks.service.js +8 -7
- package/dist/indexer/worker/worker.unfinalizedBlocks.service.js.map +1 -1
- package/dist/indexer/worker-fetch.module.d.ts +2 -0
- package/dist/indexer/{indexer.module.js → worker-fetch.module.js} +10 -33
- package/dist/indexer/worker-fetch.module.js.map +1 -0
- package/dist/init.js +1 -1
- package/dist/init.js.map +1 -1
- package/dist/main.js +4 -8
- package/dist/main.js.map +1 -1
- package/dist/subcommands/reindex.init.js +1 -2
- package/dist/subcommands/reindex.init.js.map +1 -1
- package/dist/subcommands/reindex.module.js +10 -6
- package/dist/subcommands/reindex.module.js.map +1 -1
- package/dist/subcommands/testing.init.js +2 -4
- package/dist/subcommands/testing.init.js.map +1 -1
- package/dist/subcommands/testing.module.js +3 -8
- package/dist/subcommands/testing.module.js.map +1 -1
- package/dist/subcommands/testing.service.d.ts +8 -5
- package/dist/subcommands/testing.service.js +3 -8
- package/dist/subcommands/testing.service.js.map +1 -1
- package/dist/utils/project.d.ts +5 -4
- package/dist/utils/project.js +17 -1
- package/dist/utils/project.js.map +1 -1
- package/dist/yargs.d.ts +7 -90
- package/dist/yargs.js +9 -112
- package/dist/yargs.js.map +1 -1
- package/package.json +8 -8
- package/dist/indexer/indexer.module.d.ts +0 -2
- package/dist/indexer/indexer.module.js.map +0 -1
- package/dist/subcommands/mmrMigrate.init.d.ts +0 -2
- package/dist/subcommands/mmrMigrate.init.js +0 -28
- package/dist/subcommands/mmrMigrate.init.js.map +0 -1
- package/dist/subcommands/mmrMigrate.module.d.ts +0 -2
- package/dist/subcommands/mmrMigrate.module.js +0 -28
- package/dist/subcommands/mmrMigrate.module.js.map +0 -1
- package/dist/subcommands/mmrRegenerate.init.d.ts +0 -1
- package/dist/subcommands/mmrRegenerate.init.js +0 -28
- package/dist/subcommands/mmrRegenerate.init.js.map +0 -1
- package/dist/subcommands/mmrRegenerate.module.d.ts +0 -2
- package/dist/subcommands/mmrRegenerate.module.js +0 -30
- package/dist/subcommands/mmrRegenerate.module.js.map +0 -1
- package/dist/subcommands/reindex.service.d.ts +0 -11
- package/dist/subcommands/reindex.service.js +0 -46
- package/dist/subcommands/reindex.service.js.map +0 -1
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2020-2023 SubQuery Pte Ltd authors & contributors
|
|
3
|
-
// SPDX-License-Identifier: GPL-3.0
|
|
4
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9
|
-
};
|
|
10
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
12
|
-
};
|
|
13
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
14
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ReindexService = void 0;
|
|
18
|
-
const common_1 = require("@nestjs/common");
|
|
19
|
-
const node_core_1 = require("@subql/node-core");
|
|
20
|
-
const x_sequelize_1 = require("@subql/x-sequelize");
|
|
21
|
-
const SubqueryProject_1 = require("../configure/SubqueryProject");
|
|
22
|
-
const dynamic_ds_service_1 = require("../indexer/dynamic-ds.service");
|
|
23
|
-
const unfinalizedBlocks_service_1 = require("../indexer/unfinalizedBlocks.service");
|
|
24
|
-
let ReindexService = class ReindexService extends node_core_1.BaseReindexService {
|
|
25
|
-
constructor(sequelize, nodeConfig, storeService, mmrService, project, forceCleanService, unfinalizedBlocksService, dynamicDsService) {
|
|
26
|
-
super(sequelize, nodeConfig, storeService, mmrService, project, forceCleanService, unfinalizedBlocksService, dynamicDsService);
|
|
27
|
-
}
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
|
29
|
-
async getStartBlockDatasources() {
|
|
30
|
-
return this.project.dataSources;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
ReindexService = __decorate([
|
|
34
|
-
(0, common_1.Injectable)(),
|
|
35
|
-
__param(4, (0, common_1.Inject)('ISubqueryProject')),
|
|
36
|
-
__metadata("design:paramtypes", [x_sequelize_1.Sequelize,
|
|
37
|
-
node_core_1.NodeConfig,
|
|
38
|
-
node_core_1.StoreService,
|
|
39
|
-
node_core_1.MmrService,
|
|
40
|
-
SubqueryProject_1.SubqueryProject,
|
|
41
|
-
node_core_1.ForceCleanService,
|
|
42
|
-
unfinalizedBlocks_service_1.UnfinalizedBlocksService,
|
|
43
|
-
dynamic_ds_service_1.DynamicDsService])
|
|
44
|
-
], ReindexService);
|
|
45
|
-
exports.ReindexService = ReindexService;
|
|
46
|
-
//# sourceMappingURL=reindex.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reindex.service.js","sourceRoot":"","sources":["../../src/subcommands/reindex.service.ts"],"names":[],"mappings":";AAAA,8DAA8D;AAC9D,mCAAmC;;;;;;;;;;;;;;;AAEnC,2CAAoD;AAEpD,gDAM0B;AAE1B,oDAA+C;AAC/C,kEAA+D;AAC/D,sEAAiE;AACjE,oFAAgF;AAGzE,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,8BAInC;IACC,YACE,SAAoB,EACpB,UAAsB,EACtB,YAA0B,EAC1B,UAAsB,EACM,OAAwB,EACpD,iBAAoC,EACpC,wBAAkD,EAClD,gBAAkC;QAElC,KAAK,CACH,SAAS,EACT,UAAU,EACV,YAAY,EACZ,UAAU,EACV,OAAO,EACP,iBAAiB,EACjB,wBAAwB,EACxB,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED,4DAA4D;IAClD,KAAK,CAAC,wBAAwB;QAGtC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;IAClC,CAAC;CACF,CAAA;AAjCY,cAAc;IAD1B,IAAA,mBAAU,GAAE;IAWR,WAAA,IAAA,eAAM,EAAC,kBAAkB,CAAC,CAAA;qCAJhB,uBAAS;QACR,sBAAU;QACR,wBAAY;QACd,sBAAU;QACe,iCAAe;QACjC,6BAAiB;QACV,oDAAwB;QAChC,qCAAgB;GAbzB,cAAc,CAiC1B;AAjCY,wCAAc","sourcesContent":["// Copyright 2020-2023 SubQuery Pte Ltd authors & contributors\n// SPDX-License-Identifier: GPL-3.0\n\nimport { Inject, Injectable } from '@nestjs/common';\nimport { SubqlEthereumDataSource } from '@subql/common-ethereum';\nimport {\n MmrService,\n NodeConfig,\n StoreService,\n ForceCleanService,\n BaseReindexService,\n} from '@subql/node-core';\nimport { BlockWrapper } from '@subql/types-ethereum';\nimport { Sequelize } from '@subql/x-sequelize';\nimport { SubqueryProject } from '../configure/SubqueryProject';\nimport { DynamicDsService } from '../indexer/dynamic-ds.service';\nimport { UnfinalizedBlocksService } from '../indexer/unfinalizedBlocks.service';\n\n@Injectable()\nexport class ReindexService extends BaseReindexService<\n SubqueryProject,\n SubqlEthereumDataSource,\n BlockWrapper\n> {\n constructor(\n sequelize: Sequelize,\n nodeConfig: NodeConfig,\n storeService: StoreService,\n mmrService: MmrService,\n @Inject('ISubqueryProject') project: SubqueryProject,\n forceCleanService: ForceCleanService,\n unfinalizedBlocksService: UnfinalizedBlocksService,\n dynamicDsService: DynamicDsService,\n ) {\n super(\n sequelize,\n nodeConfig,\n storeService,\n mmrService,\n project,\n forceCleanService,\n unfinalizedBlocksService,\n dynamicDsService,\n );\n }\n\n // eslint-disable-next-line @typescript-eslint/require-await\n protected async getStartBlockDatasources(): Promise<\n SubqlEthereumDataSource[]\n > {\n return this.project.dataSources;\n }\n}\n"]}
|