Skip to content

Commit

Permalink
[release] 20240224 (#47)
Browse files Browse the repository at this point in the history
* Update @subql deps

* update changelog and package.json and add profiler for init

* update yan.lock

* update ProjectUpgradeService name

---------

Co-authored-by: bz888 <[email protected]>
Co-authored-by: bz888 <[email protected]>
  • Loading branch information
3 people authored Feb 24, 2024
1 parent f1d0f72 commit 8dbdd75
Show file tree
Hide file tree
Showing 10 changed files with 234 additions and 607 deletions.
7 changes: 6 additions & 1 deletion packages/common-stellar/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.3.2] - 2024-02-23
### Changed
- version bump with `@subql/common`

## [3.3.1] - 2024-02-07
### Changed
- Update `@subql/common`
Expand Down Expand Up @@ -38,7 +42,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- rename `soroban` to `sorobanEndpoint` in network config (#16)

## [2.3.0] - 2023-09-12
[Unreleased]: https://github.com/subquery/subql-stellar/compare/common-stellar/3.3.1...HEAD
[Unreleased]: https://github.com/subquery/subql-stellar/compare/common-stellar/3.3.2...HEAD
[3.3.2]: https://github.com/subquery/subql-stellar/compare/common-stellar/3.3.1...common-stellar/3.3.2
[3.3.1]: https://github.com/subquery/subql-stellar/compare/common-stellar/3.3.0...common-stellar/3.3.1
[3.3.0]: https://github.com/subquery/subql-stellar/compare/common-stellar/3.2.0...common-stellar/3.3.0
[3.2.0]: https://github.com/subquery/subql-stellar/compare/common-stellar/3.1.0...common-stellar/3.2.0
Expand Down
4 changes: 2 additions & 2 deletions packages/common-stellar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/common-stellar",
"version": "3.3.1",
"version": "3.3.2",
"description": "",
"scripts": {
"build": "rm -rf dist && tsc -b",
Expand All @@ -14,7 +14,7 @@
"main": "dist/index.js",
"license": "GPL-3.0",
"dependencies": {
"@subql/common": "^3.4.0",
"@subql/common": "^3.4.1",
"@subql/types-stellar": "workspace:*",
"js-yaml": "^4.1.0",
"pino": "^6.13.3",
Expand Down
7 changes: 6 additions & 1 deletion packages/node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.8.0] - 2024-02-23
### Changed
- Update `@subql/node-core` to 7.3.0

### Fixed
- Remove soroban client and use stellar sdk, fix decode issue with `scVal` (#46)

Expand Down Expand Up @@ -86,7 +90,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- rename `soroban` to `sorobanEndpoint` in network config (#16)

## [2.12.0] - 2023-09-12
[Unreleased]: https://github.com/subquery/subql-stellar/compare/node-stellar/3.6.1...HEAD
[Unreleased]: https://github.com/subquery/subql-stellar/compare/node-stellar/3.8.0...HEAD
[3.8.0]: https://github.com/subquery/subql-stellar/compare/node-stellar/3.6.1...node-stellar/3.8.0
[3.6.1]: https://github.com/subquery/subql-stellar/compare/node-stellar/3.6.0...node-stellar/3.6.1
[3.6.0]: https://github.com/subquery/subql-stellar/compare/node-stellar/3.5.0...node-stellar/3.6.0
[3.5.0]: https://github.com/subquery/subql-stellar/compare/node-stellar/3.4.2...node-stellar/3.5.0
Expand Down
9 changes: 4 additions & 5 deletions packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/node-stellar",
"version": "3.6.2-0",
"version": "3.8.0",
"description": "",
"author": "Ian He",
"license": "GPL-3.0",
Expand All @@ -25,9 +25,9 @@
"@nestjs/event-emitter": "^2.0.0",
"@nestjs/platform-express": "^9.4.0",
"@nestjs/schedule": "^3.0.1",
"@subql/common": "^3.4.0",
"@subql/common": "^3.4.1",
"@subql/common-stellar": "workspace:*",
"@subql/node-core": "^7.2.1",
"@subql/node-core": "^7.3.0",
"@subql/testing": "^2.0.0",
"@subql/types": "^2.2.1-1",
"@subql/types-stellar": "workspace:*",
Expand Down Expand Up @@ -64,6 +64,5 @@
"files": [
"/dist",
"/bin"
],
"stableVersion": "3.6.1"
]
}
4 changes: 2 additions & 2 deletions packages/node/src/indexer/fetch.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
ConnectionPoolStateManager,
NodeConfig,
IProjectUpgradeService,
ProjectUpgradeSevice,
ProjectUpgradeService,
InMemoryCacheService,
} from '@subql/node-core';
import { SubqueryProject } from '../configure/SubqueryProject';
Expand Down Expand Up @@ -44,7 +44,7 @@ import { UnfinalizedBlocksService } from './unfinalizedBlocks.service';
provide: ApiService,
useFactory: async (
project: SubqueryProject,
projectUpgradeService: ProjectUpgradeSevice,
projectUpgradeService: ProjectUpgradeService,
connectionPoolService: ConnectionPoolService<StellarApiConnection>,
eventEmitter: EventEmitter2,
) => {
Expand Down
6 changes: 6 additions & 0 deletions packages/node/src/indexer/project.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
NodeConfig,
ApiService,
IProjectUpgradeService,
profiler,
} from '@subql/node-core';
import { StellarBlockWrapper } from '@subql/types-stellar';
import { Sequelize } from '@subql/x-sequelize';
Expand Down Expand Up @@ -69,6 +70,11 @@ export class ProjectService extends BaseProjectService<
);
}

@profiler()
async init(startHeight?: number): Promise<void> {
return super.init(startHeight);
}

protected async getBlockTimestamp(height: number): Promise<Date> {
const block = await this.apiService.unsafeApi.api
.ledgers()
Expand Down
4 changes: 2 additions & 2 deletions packages/node/src/indexer/worker/worker-fetch.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
WorkerDynamicDsService,
ConnectionPoolStateManager,
WorkerConnectionPoolStateManager,
ProjectUpgradeSevice,
ProjectUpgradeService,
InMemoryCacheService,
WorkerInMemoryCacheService,
} from '@subql/node-core';
Expand Down Expand Up @@ -43,7 +43,7 @@ import { WorkerUnfinalizedBlocksService } from './worker.unfinalizedBlocks.servi
provide: ApiService,
useFactory: async (
project: SubqueryProject,
projectUpgradeService: ProjectUpgradeSevice,
projectUpgradeService: ProjectUpgradeService,
connectionPoolService: ConnectionPoolService<StellarApiConnection>,
eventEmitter: EventEmitter2,
) => {
Expand Down
4 changes: 2 additions & 2 deletions packages/node/src/stellar/api.service.stellar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
NetworkMetadataPayload,
getLogger,
IndexerEvent,
ProjectUpgradeSevice,
ProjectUpgradeService,
} from '@subql/node-core';
import { StellarBlockWrapper } from '@subql/types-stellar';
import {
Expand All @@ -39,7 +39,7 @@ export class StellarApiService extends ApiService<
constructor(
@Inject('ISubqueryProject') private project: SubqueryProject,
@Inject('IProjectUpgradeService')
private projectUpgradeService: ProjectUpgradeSevice,
private projectUpgradeService: ProjectUpgradeService,
connectionPoolService: ConnectionPoolService<StellarApiConnection>,
eventEmitter: EventEmitter2,
) {
Expand Down
4 changes: 2 additions & 2 deletions packages/node/src/subcommands/testing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
InMemoryCacheService,
PoiService,
PoiSyncService,
ProjectUpgradeSevice,
ProjectUpgradeService,
StoreService,
TestRunner,
} from '@subql/node-core';
Expand Down Expand Up @@ -50,7 +50,7 @@ import { TestingService } from './testing.service';
provide: ApiService,
useFactory: async (
project: SubqueryProject,
projectUpgradeService: ProjectUpgradeSevice,
projectUpgradeService: ProjectUpgradeService,
connectionPoolService: ConnectionPoolService<StellarApiConnection>,
eventEmitter: EventEmitter2,
) => {
Expand Down
Loading

0 comments on commit 8dbdd75

Please sign in to comment.