Skip to content

Commit

Permalink
[release] 20240224 (#232)
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

* update pjson for node

---------

Co-authored-by: bz888 <[email protected]>
Co-authored-by: bz888 <[email protected]>
  • Loading branch information
3 people authored Feb 24, 2024
1 parent e463cd8 commit 2f57602
Show file tree
Hide file tree
Showing 9 changed files with 251 additions and 529 deletions.
3 changes: 0 additions & 3 deletions .yarn/versions/0c8fecde.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .yarn/versions/0e5ce6f6.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .yarn/versions/9d09b54c.yml

This file was deleted.

7 changes: 6 additions & 1 deletion packages/common-cosmos/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]

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

## [4.1.0] - 2024-02-07
### Changed
- Update `@subql/common`
Expand Down Expand Up @@ -126,7 +130,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix chainTypes not being in deployments

## [0.0.5] - 2022-06-15
[Unreleased]: https://github.com/subquery/subql-cosmos/compare/common-cosmos/4.1.0...HEAD
[Unreleased]: https://github.com/subquery/subql-cosmos/compare/common-cosmos/4.1.1...HEAD
[4.1.1]: https://github.com/subquery/subql-cosmos/compare/common-cosmos/4.1.0...common-cosmos/4.1.1
[4.1.0]: https://github.com/subquery/subql-cosmos/compare/common-cosmos/4.0.1...common-cosmos/4.1.0
[4.0.1]: https://github.com/subquery/subql-cosmos/compare/common-cosmos/4.0.0...common-cosmos/4.0.1
[4.0.0]: https://github.com/subquery/subql-cosmos/compare/common-cosmos/3.2.1...common-cosmos/4.0.0
Expand Down
4 changes: 2 additions & 2 deletions packages/common-cosmos/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/common-cosmos",
"version": "4.1.0",
"version": "4.1.1",
"description": "",
"scripts": {
"build": "rm -rf dist && tsc -b",
Expand All @@ -22,7 +22,7 @@
"@protobufs/google": "^0.0.10",
"@protobufs/ibc": "^0.1.0",
"@protobufs/tendermint": "^0.0.10",
"@subql/common": "^3.4.0",
"@subql/common": "^3.4.1",
"@subql/types-cosmos": "workspace:*",
"@subql/x-cosmology-telescope": "^1.4.14",
"fs-extra": "^11.1.1",
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
- 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 @@ -360,7 +364,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Init release

[Unreleased]: https://github.com/subquery/subql-cosmos/compare/node-cosmos/3.5.1...HEAD
[Unreleased]: https://github.com/subquery/subql-cosmos/compare/node-cosmos/3.8.0...HEAD
[3.8.0]: https://github.com/subquery/subql-cosmos/compare/node-cosmos/3.5.1...node-cosmos/3.8.0
[3.5.1]: https://github.com/subquery/subql-cosmos/compare/node-cosmos/3.5.0...node-cosmos/3.5.1
[3.5.0]: https://github.com/subquery/subql-cosmos/compare/node-cosmos/3.4.7...node-cosmos/3.5.0
[3.4.7]: https://github.com/subquery/subql-cosmos/compare/node-cosmos/3.4.6...node-cosmos/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-cosmos",
"version": "3.5.1",
"version": "3.8.0",
"description": "",
"author": "SubQuery Pte Ltd",
"license": "GPL-3.0",
Expand Down Expand Up @@ -28,9 +28,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-cosmos": "workspace:*",
"@subql/node-core": "^7.2.1",
"@subql/node-core": "^7.3.0",
"@subql/types-cosmos": "workspace:*",
"cosmjs-types": "^0.7.0",
"cron-converter": "^1.0.2",
Expand Down
7 changes: 7 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 {
PoiSyncService,
BaseProjectService,
IProjectUpgradeService,
profiler,
} from '@subql/node-core';
import { Sequelize } from '@subql/x-sequelize';
import { SubqueryProject, CosmosProjectDs } from '../configure/SubqueryProject';
Expand Down Expand Up @@ -61,6 +62,12 @@ export class ProjectService extends BaseProjectService<
unfinalizedBlockService,
);
}

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

protected async getBlockTimestamp(height: number): Promise<Date> {
const response = await this.apiService.api.blockInfo(height);
return new Date(toRfc3339WithNanoseconds(response.block.header.time));
Expand Down
Loading

0 comments on commit 2f57602

Please sign in to comment.