Skip to content

Commit

Permalink
update for node
Browse files Browse the repository at this point in the history
  • Loading branch information
jiqiang90 committed Apr 8, 2024
1 parent 236ed40 commit 5e38958
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
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.10.0] - 2024-04-08
### Changed
- Update `@subql/common` to 3.5.0, also allow user use array for dictionary

## [3.9.1] - 2024-03-14
### Changed
- Update `@subql/node-core` to 4.7.2 with graphql comments escaping fix
Expand Down Expand Up @@ -220,7 +224,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.9.1...HEAD
[Unreleased]: https://github.com/subquery/subql-algorand/compare/node-algorand/3.10.0...HEAD
[3.10.0]: https://github.com/subquery/subql-algorand/compare/node-algorand/3.9.1...node-algorand/3.10.0
[3.9.1]: https://github.com/subquery/subql-algorand/compare/node-algorand/3.9.0...node-algorand/3.9.1
[3.9.0]: https://github.com/subquery/subql-algorand/compare/node-algorand/3.8.1...node-algorand/3.9.0
[3.8.1]: https://github.com/subquery/subql-algorand/compare/node-algorand/3.8.0...node-algorand/3.8.1
Expand Down
4 changes: 2 additions & 2 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.9.1",
"version": "3.10.0",
"description": "",
"author": "Ian He",
"license": "GPL-3.0",
Expand All @@ -25,7 +25,7 @@
"@nestjs/event-emitter": "^2.0.0",
"@nestjs/platform-express": "^9.4.0",
"@nestjs/schedule": "^3.0.1",
"@subql/common": "^3.4.1",
"@subql/common": "^3.5.0",
"@subql/common-algorand": "workspace:*",
"@subql/node-core": "^7.4.2",
"@subql/types-algorand": "workspace:*",
Expand Down
12 changes: 5 additions & 7 deletions packages/node/src/indexer/dictionary.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ export class DictionaryService extends CoreDictionaryService {
eventEmitter: EventEmitter2,
dictionaryUrl?: string,
) {
super(
dictionaryUrl ?? project.network.dictionary,
project.network.chainId,
nodeConfig,
eventEmitter,
);
super(dictionaryUrl, project.network.chainId, nodeConfig, eventEmitter);
}

protected validateChainMeta(metaData: MetaData): boolean {
Expand All @@ -37,14 +32,17 @@ export class DictionaryService extends CoreDictionaryService {
nodeConfig: NodeConfig,
eventEmitter: EventEmitter2,
): Promise<DictionaryService> {
const url =
let url =
project.network.dictionary ??
(await CoreDictionaryService.resolveDictionary(
NETWORK_FAMILY.algorand,
project.network.chainId,
nodeConfig.dictionaryRegistry,
));

if (Array.isArray(url)) {
url = url[0];
}
return new DictionaryService(project, nodeConfig, eventEmitter, url);
}
}

0 comments on commit 5e38958

Please sign in to comment.