Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release] 20240408 #55

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/common-stellar/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.4.0] - 2024-04-08
### Changed
- version bump with `@subql/common`

## [3.3.2] - 2024-02-23
### Changed
- version bump with `@subql/common`
Expand Down Expand Up @@ -42,7 +46,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- rename `soroban` to `sorobanEndpoint` in network config (#16)

## [2.3.0] - 2023-09-12
[Unreleased]: https://github.com/subquery/subql-stellar/compare/common-stellar/3.3.2...HEAD
[Unreleased]: https://github.com/subquery/subql-stellar/compare/common-stellar/3.4.0...HEAD
[3.4.0]: https://github.com/subquery/subql-stellar/compare/common-stellar/3.3.2...common-stellar/3.4.0
[3.3.2]: https://github.com/subquery/subql-stellar/compare/common-stellar/3.3.1...common-stellar/3.3.2
[3.3.1]: https://github.com/subquery/subql-stellar/compare/common-stellar/3.3.0...common-stellar/3.3.1
[3.3.0]: https://github.com/subquery/subql-stellar/compare/common-stellar/3.2.0...common-stellar/3.3.0
Expand Down
4 changes: 2 additions & 2 deletions packages/common-stellar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/common-stellar",
"version": "3.3.2",
"version": "3.4.0",
"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.1",
"@subql/common": "^3.5.0",
"@subql/types-stellar": "workspace:*",
"js-yaml": "^4.1.0",
"pino": "^6.13.3",
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.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 @@ -102,7 +106,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- rename `soroban` to `sorobanEndpoint` in network config (#16)

## [2.12.0] - 2023-09-12
[Unreleased]: https://github.com/subquery/subql-stellar/compare/node-stellar/3.9.1...HEAD
[Unreleased]: https://github.com/subquery/subql-stellar/compare/node-stellar/3.10.0...HEAD
[3.10.0]: https://github.com/subquery/subql-stellar/compare/node-stellar/3.9.1...node-stellar/3.10.0
[3.9.1]: https://github.com/subquery/subql-stellar/compare/node-stellar/3.9.0...node-stellar/3.9.1
[3.9.0]: https://github.com/subquery/subql-stellar/compare/node-stellar/3.8.1...node-stellar/3.9.0
[3.8.1]: https://github.com/subquery/subql-stellar/compare/node-stellar/3.8.0...node-stellar/3.8.1
Expand Down
15 changes: 5 additions & 10 deletions packages/node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,16 @@ FROM node:18-alpine
COPY --from=builder /app/packages/node/app.tgz /app.tgz

# Install production dependencies
RUN apk add --no-cache tini curl git && \
apk add --no-cache python3 make g++ && \
npm install -g node-gyp

# Install the app
RUN npm i -g app.tgz

# Clean up unused deps
RUN rm /app.tgz && \
RUN apk add --no-cache tini curl git && \
tar -xzvf /app.tgz --strip 1 && \
rm /app.tgz && \
yarn install --production && \
yarn cache clean && \
rm -rf /root/.npm /root/.cache

# Make the user not ROOT
USER 1000

# Set Entry point and command
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/lib/node_modules/@subql/node-stellar/bin/run"]
ENTRYPOINT ["/sbin/tini", "--", "/bin/run"]
CMD ["-f","/app"]
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-stellar",
"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-stellar": "workspace:*",
"@subql/node-core": "^7.4.2",
"@subql/testing": "^2.0.0",
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 @@ -18,26 +18,24 @@ export class DictionaryService extends CoreDictionaryService {
nodeConfig: NodeConfig,
dictionaryUrl?: string,
) {
super(
dictionaryUrl ?? project.network.dictionary,
project.network.chainId,
nodeConfig,
eventEmitter,
);
super(dictionaryUrl, project.network.chainId, nodeConfig, eventEmitter);
}

static async create(
project: SubqueryProject,
nodeConfig: NodeConfig,
eventEmitter: EventEmitter2,
): Promise<DictionaryService> {
const url =
let url =
project.network.dictionary ??
(await CoreDictionaryService.resolveDictionary(
NETWORK_FAMILY.stellar,
project.network.chainId,
nodeConfig.dictionaryRegistry,
));
if (Array.isArray(url)) {
url = url[0];
}
return new DictionaryService(project, eventEmitter, nodeConfig, url);
}
}
7 changes: 6 additions & 1 deletion packages/types/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.0] - 2024-04-08
### Changed
- Update `@subql/types-core`

### Fixed
- Use types from stellar sdk (#46)

Expand All @@ -30,7 +34,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Use @subql/types-core (#18)

## [2.3.0] - 2023-09-12
[Unreleased]: https://github.com/subquery/subql-stellar/compare/types-stellar/3.2.1...HEAD
[Unreleased]: https://github.com/subquery/subql-stellar/compare/types-stellar/3.3.0...HEAD
[3.3.0]: https://github.com/subquery/subql-stellar/compare/types-stellar/3.2.1...types-stellar/3.3.0
[3.2.1]: https://github.com/subquery/subql-stellar/compare/types-stellar/3.2.0...types-stellar/3.2.1
[3.2.0]: https://github.com/subquery/subql-stellar/compare/types-stellar/3.1.1...types-stellar/3.2.0
[3.1.1]: https://github.com/subquery/subql-stellar/compare/types-stellar/3.1.0...types-stellar/3.1.1
Expand Down
7 changes: 3 additions & 4 deletions packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/types-stellar",
"version": "3.2.2-0",
"version": "3.3.0",
"description": "",
"homepage": "https://github.com/subquery/subql-stellar",
"repository": "github:subquery/subql-stellar",
Expand All @@ -17,8 +17,7 @@
"/dist"
],
"dependencies": {
"@subql/types-core": "^0.5.0",
"@subql/types-core": "^0.6.0",
"stellar-sdk": "^11.2.2"
},
"stableVersion": "3.2.1"
}
}
Loading
Loading