From 5222320a9c1ab1d704163579e3123da0a03b579b Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Fri, 5 Apr 2024 11:30:48 +1300 Subject: [PATCH] [release] 20240405 (#243) --- .yarn/versions/07e87407.yml | 3 +++ packages/node/src/indexer/dictionary.service.ts | 17 ++++++++++------- packages/types/CHANGELOG.md | 1 + 3 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 .yarn/versions/07e87407.yml diff --git a/.yarn/versions/07e87407.yml b/.yarn/versions/07e87407.yml new file mode 100644 index 000000000..6b73f40f5 --- /dev/null +++ b/.yarn/versions/07e87407.yml @@ -0,0 +1,3 @@ +undecided: + - "@subql/common-cosmos" + - "@subql/node-cosmos" diff --git a/packages/node/src/indexer/dictionary.service.ts b/packages/node/src/indexer/dictionary.service.ts index 2b65ec24a..1f9a2cea4 100644 --- a/packages/node/src/indexer/dictionary.service.ts +++ b/packages/node/src/indexer/dictionary.service.ts @@ -1,6 +1,7 @@ // Copyright 2020-2023 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 +import assert from 'assert'; import { Inject, Injectable } from '@nestjs/common'; import { EventEmitter2 } from '@nestjs/event-emitter'; import { NETWORK_FAMILY } from '@subql/common'; @@ -18,13 +19,10 @@ export class DictionaryService extends CoreDictionaryService { eventEmitter: EventEmitter2, dictionaryUrl?: string, ) { - super( - dictionaryUrl ?? project.network.dictionary, - project.network.chainId, - nodeConfig, - eventEmitter, - ['lastProcessedHeight', 'chain'], - ); + super(dictionaryUrl, project.network.chainId, nodeConfig, eventEmitter, [ + 'lastProcessedHeight', + 'chain', + ]); } static async create( @@ -40,6 +38,11 @@ export class DictionaryService extends CoreDictionaryService { nodeConfig.dictionaryRegistry, )); + assert( + typeof url === 'string', + `Cosmos doesn't yet support multiple dictionary endpoints`, + ); + return new DictionaryService(project, nodeConfig, eventEmitter, url); } } diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 0df726752..eb32cb649 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] + ## [3.2.4] - 2024-04-05 ### Changed - Update `@subql/types-core`