Skip to content

Commit

Permalink
[release] 20240224 (#100)
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 103992b commit 49a2200
Show file tree
Hide file tree
Showing 6 changed files with 236 additions and 587 deletions.
7 changes: 6 additions & 1 deletion packages/common-algorand/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.2.2] - 2024-02-23
### Changed
- version bump with `@subql/common`

## [3.2.1] - 2024-02-07
### Changed
- Update `@subql/common`
Expand Down Expand Up @@ -74,7 +78,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed `assetId` on transaction filter being validated as a string. (#9)

## [1.0.0] - 2022-08-04
[Unreleased]: https://github.com/subquery/subql-algorand/compare/common-algorand/3.2.1...HEAD
[Unreleased]: https://github.com/subquery/subql-algorand/compare/common-algorand/3.2.2...HEAD
[3.2.2]: https://github.com/subquery/subql-algorand/compare/common-algorand/3.2.1...common-algorand/3.2.2
[3.2.1]: https://github.com/subquery/subql-algorand/compare/common-algorand/3.2.0...common-algorand/3.2.1
[3.2.0]: https://github.com/subquery/subql-algorand/compare/common-algorand/3.1.0...common-algorand/3.2.0
[3.1.0]: https://github.com/subquery/subql-algorand/compare/common-algorand/3.0.2...common-algorand/3.1.0
Expand Down
4 changes: 2 additions & 2 deletions packages/common-algorand/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/common-algorand",
"version": "3.2.1",
"version": "3.2.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-algorand": "workspace:*",
"class-transformer": "^0.5.1",
"class-validator": "^0.13.2",
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 @@ -204,7 +208,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Synced latest changes from main repo. (#10)

## [1.6.0] - 2022-08-04
[Unreleased]: https://github.com/subquery/subql-algorand/compare/node-algorand/3.5.1...HEAD
[Unreleased]: https://github.com/subquery/subql-algorand/compare/node-algorand/3.8.0...HEAD
[3.8.0]: https://github.com/subquery/subql-algorand/compare/node-algorand/3.5.1...node-algorand/3.8.0
[3.5.1]: https://github.com/subquery/subql-algorand/compare/node-algorand/3.5.0...node-algorand/3.5.1
[3.5.0]: https://github.com/subquery/subql-algorand/compare/node-algorand/3.4.4...node-algorand/3.5.0
[3.4.4]: https://github.com/subquery/subql-algorand/compare/node-algorand/3.4.3...node-algorand/3.4.4
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-algorand",
"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-algorand": "workspace:*",
"@subql/node-core": "^7.2.1",
"@subql/node-core": "^7.3.0",
"@subql/types-algorand": "workspace:*",
"algosdk": "^2.2.0",
"axios": "^1.3.4",
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 {
StoreService,
NodeConfig,
IProjectUpgradeService,
profiler,
} from '@subql/node-core';
import { Sequelize } from '@subql/x-sequelize';
import { AlgorandApiService } from '../algorand';
Expand Down Expand Up @@ -64,6 +65,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.api.getBlockByHeight(height);

Expand Down
Loading

0 comments on commit 49a2200

Please sign in to comment.