Skip to content

Commit

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

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

* align with all other sdk node

---------

Co-authored-by: bz888 <[email protected]>
Co-authored-by: bz888 <[email protected]>
  • Loading branch information
3 people authored Feb 24, 2024
1 parent 75e30f8 commit cb46102
Show file tree
Hide file tree
Showing 7 changed files with 238 additions and 578 deletions.
2 changes: 0 additions & 2 deletions .yarn/versions/b5f124c7.yml

This file was deleted.

7 changes: 6 additions & 1 deletion packages/common-concordium/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.4.2] - 2024-02-23
### Changed
- version bump with `@subql/common`

## [3.4.1] - 2024-02-07
### Changed
- Update `@subql/common`
Expand Down Expand Up @@ -43,7 +47,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Bump release version

## [3.1.0] - null
[Unreleased]: https://github.com/subquery/subql-concordium/compare/common-concordium/3.4.1...HEAD
[Unreleased]: https://github.com/subquery/subql-concordium/compare/common-concordium/3.4.2...HEAD
[3.4.2]: https://github.com/subquery/subql-concordium/compare/common-concordium/3.4.1...common-concordium/3.4.2
[3.4.1]: https://github.com/subquery/subql-concordium/compare/common-concordium/3.4.0...common-concordium/3.4.1
[3.4.0]: https://github.com/subquery/subql-concordium/compare/common-concordium/3.3.2...common-concordium/3.4.0
[3.3.2]: https://github.com/subquery/subql-concordium/compare/common-concordium/3.3.1...common-concordium/3.3.2
Expand Down
4 changes: 2 additions & 2 deletions packages/common-concordium/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/common-concordium",
"version": "3.4.1",
"version": "3.4.2",
"description": "",
"scripts": {
"build": "rm -rf dist && tsc -b",
Expand All @@ -15,7 +15,7 @@
"license": "GPL-3.0",
"dependencies": {
"@concordium/node-sdk": "9.4.0",
"@subql/common": "^3.4.0",
"@subql/common": "^3.4.1",
"@subql/types-concordium": "workspace:*",
"js-yaml": "^4.1.0",
"pino": "^6.13.3",
Expand Down
9 changes: 7 additions & 2 deletions 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
- Updates to match changes in `@subql/node-core` to 7.3.0

## [3.5.1] - 2024-02-07
### Fixed
- Critical bug introduced in 3.5.0 which broke historical indexing
Expand Down Expand Up @@ -48,7 +52,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [3.4.0] - 2023-11-13
### Changed
- Updates to match changes in `@subql/node-core`
- Updates to match changes in
- Dictionary service to use dictionary registry
- Use yargs from node core

Expand Down Expand Up @@ -76,7 +80,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Bump release version

## [3.1.0] - null
[Unreleased]: https://github.com/subquery/subql-concordium/compare/node-concordium/3.5.1...HEAD
[Unreleased]: https://github.com/subquery/subql-concordium/compare/node-concordium/3.8.0...HEAD
[3.8.0]: https://github.com/subquery/subql-concordium/compare/node-concordium/3.5.1...node-concordium/3.8.0
[3.5.1]: https://github.com/subquery/subql-concordium/compare/node-concordium/3.5.0...node-concordium/3.5.1
[3.5.0]: https://github.com/subquery/subql-concordium/compare/node-concordium/3.4.7...node-concordium/3.5.0
[3.4.7]: https://github.com/subquery/subql-concordium/compare/node-concordium/3.4.6...node-concordium/3.4.7
Expand Down
6 changes: 3 additions & 3 deletions packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/node-concordium",
"version": "3.5.1",
"version": "3.8.0",
"description": "",
"author": "Ian He",
"license": "GPL-3.0",
Expand All @@ -26,9 +26,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-concordium": "workspace:*",
"@subql/node-core": "^7.2.1",
"@subql/node-core": "^7.3.0",
"@subql/testing": "2.1.0",
"@subql/types-concordium": "workspace:*",
"cacheable-lookup": "6",
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 @@ -15,6 +15,7 @@ import {
ISubqueryProject,
mainThreadOnly,
PoiSyncService,
profiler,
} from '@subql/node-core';
import { ConcordiumBlock } from '@subql/types-concordium';
import {
Expand Down Expand Up @@ -73,6 +74,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 blockHash = (
await this.apiService.unsafeApi.api.getBlocksAtHeight(BigInt(height))
Expand Down
Loading

0 comments on commit cb46102

Please sign in to comment.