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

Update polkadot 14 #2602

Merged
merged 6 commits into from
Nov 25, 2024
Merged
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"typescript": "^5.5.4"
},
"resolutions": {
"@polkadot/api": "12.3.1",
"@polkadot/util": "13.0.2",
"@polkadot/api": "14.3.1",
"@polkadot/util": "^13.2.3",
"node-fetch": "2.6.7"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"author": "SubQuery Team",
"license": "MIT",
"devDependencies": {
"@polkadot/api": "^11",
"@polkadot/api": "^14",
"@subql/cli": "latest",
"@subql/testing": "latest",
"@subql/types": "latest",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/fixtures/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"author": "Ian He & Jay Ji",
"license": "Apache-2.0",
"devDependencies": {
"@polkadot/api": "^12.3.1",
"@polkadot/api": "^14.3.1",
"@subql/types": "latest",
"typescript": "^4.9.5",
"@subql/cli": "latest"
Expand Down
2 changes: 1 addition & 1 deletion packages/node-core/test/v1.0.0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"author": "Ian He & Jay Ji",
"license": "Apache-2.0",
"devDependencies": {
"@polkadot/api": "^12.3.1",
"@polkadot/api": "^14.3.1",
"@subql/types": "latest",
"typescript": "^4.9.5",
"@subql/cli": "latest"
Expand Down
1 change: 1 addition & 0 deletions packages/node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Changed
- Improve event iteration, this improves performance with large blocks (#2601)
- Update polkadot/api library to 14 version

## [5.3.0] - 2024-11-22
### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@nestjs/event-emitter": "^2.0.0",
"@nestjs/platform-express": "^9.4.0",
"@nestjs/schedule": "^3.0.1",
"@polkadot/api": "^12.3.1",
"@polkadot/api": "^14.3.1",
"@subql/common": "workspace:*",
"@subql/common-substrate": "workspace:*",
"@subql/node-core": "workspace:*",
Expand Down
4 changes: 3 additions & 1 deletion packages/node/src/indexer/api.service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ describe('ApiService', () => {
patchedApi.query.session.validators(),
api.query.session.validators(),
]);
expect(validators).toMatchObject(patchedValidators);
expect(validators.toJSON()).toMatchObject(
patchedValidators.toJSON() as any,
);
expect(patchedValidators).not.toMatchObject(currentValidators);
});

Expand Down
4 changes: 4 additions & 0 deletions packages/node/src/indexer/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ const logger = getLogger('api');

// This is a temp fix for https://github.com/polkadot-js/api/issues/5871
function overrideConsoleWarn(): void {
// Ensure its only run once
if ((console as any).oldWarn) {
return;
}
(console as any).oldWarn = console.warn;
console.warn = function () {
// eslint-disable-next-line prefer-rest-params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"author": "Ian He & Jay Ji",
"license": "Apache-2.0",
"devDependencies": {
"@polkadot/api": "^12.3.1",
"@polkadot/api": "^14.3.1",
"@subql/types": "dev",
"typescript": "^4.1.3",
"@subql/cli": "dev"
Expand Down
2 changes: 1 addition & 1 deletion packages/node/test/projectFixture/v1.0.0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"author": "Ian He & Jay Ji",
"license": "Apache-2.0",
"devDependencies": {
"@polkadot/api": "^12.3.1",
"@polkadot/api": "^14.3.1",
"@subql/types": "dev",
"typescript": "^4.9.5",
"@subql/cli": "dev"
Expand Down
2 changes: 2 additions & 0 deletions packages/types/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Update polkadot/api library to 14 version

## [3.11.3] - 2024-10-23
### Fixed
Expand Down
4 changes: 2 additions & 2 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"@subql/types-core": "workspace:*"
},
"peerDependencies": {
"@polkadot/api": "^12"
"@polkadot/api": "^14"
},
"devDependencies": {
"@polkadot/api": "^12.3.1"
"@polkadot/api": "^14.3.1"
}
}
3 changes: 3 additions & 0 deletions packages/utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## Changed
- Update polkadot/api library to 14 version

## [2.15.0] - 2024-11-22
### Added
- Support for indexes on enums (#2586)
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"main": "dist/index.js",
"license": "GPL-3.0",
"dependencies": {
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"@polkadot/util": "^13.2.3",
"@polkadot/util-crypto": "^13.2.3",
"@subql/x-sequelize": "6.32.0-0.0.4",
"chalk": "^4.1.2",
"detect-port": "^1.6.1",
Expand Down
Loading
Loading