Skip to content

Commit

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

---------

Co-authored-by: bz888 <[email protected]>
Co-authored-by: bz888 <[email protected]>
  • Loading branch information
3 people authored Feb 24, 2024
1 parent 7bbeb61 commit 3d8312c
Show file tree
Hide file tree
Showing 7 changed files with 235 additions and 593 deletions.
3 changes: 0 additions & 3 deletions .yarn/versions/c354d9cd.yml

This file was deleted.

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

## [3.3.0] - 2024-02-07
### Changed
- Update `@subql/common`
Expand Down Expand Up @@ -70,7 +74,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add transaction receipts handlers and filters (#13)

## [1.0.0] - 2023-01-26
[Unreleased]: https://github.com/subquery/subql-near/compare/common-near/3.3.0...HEAD
[Unreleased]: https://github.com/subquery/subql-near/compare/common-near/3.3.1...HEAD
[3.3.1]: https://github.com/subquery/subql-near/compare/common-near/3.3.0...common-near/3.3.1
[3.3.0]: https://github.com/subquery/subql-near/compare/common-near/3.2.0...common-near/3.3.0
[3.2.0]: https://github.com/subquery/subql-near/compare/common-near/3.1.1...common-near/3.2.0
[3.1.1]: https://github.com/subquery/subql-near/compare/common-near/3.1.0...common-near/3.1.1
Expand Down
4 changes: 2 additions & 2 deletions packages/common-near/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/common-near",
"version": "3.3.0",
"version": "3.3.1",
"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-near": "workspace:*",
"js-yaml": "^4.1.0",
"reflect-metadata": "^0.1.13"
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 @@ -196,7 +200,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add `toJson` method to function args (#9)

## 1.18.0 - 2023-01-26
[Unreleased]: https://github.com/subquery/subql-near/compare/node-near/3.5.1...HEAD
[Unreleased]: https://github.com/subquery/subql-near/compare/node-near/3.8.0...HEAD
[3.8.0]: https://github.com/subquery/subql-near/compare/node-near/3.5.1...node-near/3.8.0
[3.5.1]: https://github.com/subquery/subql-near/compare/node-near/3.5.0...node-near/3.5.1
[3.5.0]: https://github.com/subquery/subql-near/compare/node-near/3.4.6...node-near/3.5.0
[3.4.6]: https://github.com/subquery/subql-near/compare/node-near/3.4.5...node-near/3.4.6
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-near",
"version": "3.5.1",
"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-near": "workspace:*",
"@subql/node-core": "^7.2.1",
"@subql/node-core": "^7.3.0",
"@subql/types-near": "workspace:*",
"cron-converter": "^1.0.2",
"eventemitter2": "^6.4.5",
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 @@ -11,6 +11,7 @@ import {
NodeConfig,
IProjectUpgradeService,
PoiSyncService,
profiler,
} from '@subql/node-core';
import { Sequelize } from '@subql/x-sequelize';
import { NearProjectDs, SubqueryProject } from '../configure/SubqueryProject';
Expand Down Expand Up @@ -62,6 +63,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 getBlockByHeight(this.apiService.unsafeApi, height);

Expand Down
Loading

0 comments on commit 3d8312c

Please sign in to comment.