Skip to content
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
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# CHANGELOG

## master
## 5.5.2 Aug 19, 2021

Upgrade priority: Medium. Contains fixes for parachain types, affecting historic block retrieval on Kusama.

Changes:

- Adjust `ValidDisputeStatementKind` enum to latest version
- Only enable API health keepalive on connections supporting subscriptions


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
"@types/jest": "^26.0.24",
"copyfiles": "^2.4.1"
},
"version": "5.5.2-1",
"version": "5.5.2",
"packageManager": "yarn@3.0.1"
}
6 changes: 3 additions & 3 deletions packages/api-contract/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-contract",
"version": "5.5.2-1",
"version": "5.5.2",
"type": "module",
"description": "Interfaces for interacting with contracts and contract ABIs",
"main": "index.js",
Expand All @@ -20,8 +20,8 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
"dependencies": {
"@babel/runtime": "^7.15.3",
"@polkadot/api": "5.5.2-1",
"@polkadot/types": "5.5.2-1",
"@polkadot/api": "5.5.2",
"@polkadot/types": "5.5.2",
"@polkadot/util": "^7.2.1",
"rxjs": "^7.3.0"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/api-derive/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-derive",
"version": "5.5.2-1",
"version": "5.5.2",
"type": "module",
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
"main": "index.js",
Expand All @@ -20,15 +20,15 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
"dependencies": {
"@babel/runtime": "^7.15.3",
"@polkadot/api": "5.5.2-1",
"@polkadot/rpc-core": "5.5.2-1",
"@polkadot/types": "5.5.2-1",
"@polkadot/api": "5.5.2",
"@polkadot/rpc-core": "5.5.2",
"@polkadot/types": "5.5.2",
"@polkadot/util": "^7.2.1",
"@polkadot/util-crypto": "^7.2.1",
"rxjs": "^7.3.0"
},
"devDependencies": {
"@polkadot/keyring": "^7.2.1",
"@polkadot/rpc-provider": "5.5.2-1"
"@polkadot/rpc-provider": "5.5.2"
}
}
12 changes: 6 additions & 6 deletions packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api",
"version": "5.5.2-1",
"version": "5.5.2",
"type": "module",
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
"main": "index.js",
Expand All @@ -20,12 +20,12 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
"dependencies": {
"@babel/runtime": "^7.15.3",
"@polkadot/api-derive": "5.5.2-1",
"@polkadot/api-derive": "5.5.2",
"@polkadot/keyring": "^7.2.1",
"@polkadot/rpc-core": "5.5.2-1",
"@polkadot/rpc-provider": "5.5.2-1",
"@polkadot/types": "5.5.2-1",
"@polkadot/types-known": "5.5.2-1",
"@polkadot/rpc-core": "5.5.2",
"@polkadot/rpc-provider": "5.5.2",
"@polkadot/types": "5.5.2",
"@polkadot/types-known": "5.5.2",
"@polkadot/util": "^7.2.1",
"@polkadot/util-crypto": "^7.2.1",
"eventemitter3": "^4.0.7",
Expand Down
6 changes: 3 additions & 3 deletions packages/rpc-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-core",
"version": "5.5.2-1",
"version": "5.5.2",
"type": "module",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
Expand All @@ -20,8 +20,8 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
"dependencies": {
"@babel/runtime": "^7.15.3",
"@polkadot/rpc-provider": "5.5.2-1",
"@polkadot/types": "5.5.2-1",
"@polkadot/rpc-provider": "5.5.2",
"@polkadot/types": "5.5.2",
"@polkadot/util": "^7.2.1",
"rxjs": "^7.3.0"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/rpc-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-provider",
"version": "5.5.2-1",
"version": "5.5.2",
"type": "module",
"description": "Transport providers for the API",
"main": "index.js",
Expand All @@ -20,7 +20,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.15.3",
"@polkadot/types": "5.5.2-1",
"@polkadot/types": "5.5.2",
"@polkadot/util": "^7.2.1",
"@polkadot/util-crypto": "^7.2.1",
"@polkadot/x-fetch": "^7.2.1",
Expand All @@ -30,7 +30,7 @@
},
"devDependencies": {
"@polkadot/keyring": "^7.2.1",
"@polkadot/types": "5.5.2-1",
"@polkadot/types": "5.5.2",
"mock-socket": "^9.0.3",
"nock": "^13.1.1"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/typegen/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/typegen",
"version": "5.5.2-1",
"version": "5.5.2",
"type": "module",
"description": "Type generation scripts",
"main": "index.js",
Expand Down Expand Up @@ -29,10 +29,10 @@
"@babel/core": "^7.15.0",
"@babel/register": "^7.15.3",
"@babel/runtime": "^7.15.3",
"@polkadot/api": "5.5.2-1",
"@polkadot/rpc-provider": "5.5.2-1",
"@polkadot/types": "5.5.2-1",
"@polkadot/types-support": "5.5.2-1",
"@polkadot/api": "5.5.2",
"@polkadot/rpc-provider": "5.5.2",
"@polkadot/types": "5.5.2",
"@polkadot/types-support": "5.5.2",
"@polkadot/util": "^7.2.1",
"handlebars": "^4.7.7",
"websocket": "^1.0.34",
Expand Down
4 changes: 2 additions & 2 deletions packages/types-known/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types-known",
"version": "5.5.2-1",
"version": "5.5.2",
"type": "module",
"description": "Known type definitions",
"main": "index.js",
Expand All @@ -21,7 +21,7 @@
"dependencies": {
"@babel/runtime": "^7.15.3",
"@polkadot/networks": "^7.2.1",
"@polkadot/types": "5.5.2-1",
"@polkadot/types": "5.5.2",
"@polkadot/util": "^7.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/types-support/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types-support",
"version": "5.5.2-1",
"version": "5.5.2",
"type": "module",
"description": "Supporting files for types, mostly for testing",
"main": "index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types",
"version": "5.5.2-1",
"version": "5.5.2",
"type": "module",
"description": "Implementation of the Parity codec",
"main": "index.js",
Expand All @@ -26,7 +26,7 @@
},
"devDependencies": {
"@polkadot/keyring": "^7.2.1",
"@polkadot/types-support": "5.5.2-1",
"@polkadot/types-support": "5.5.2",
"@types/bn.js": "^4.11.6",
"bn.js": "^4.11.9"
}
Expand Down
14 changes: 7 additions & 7 deletions packages/types/src/interfaces/parachains/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default {
DisputeStatementSet: {
candidateHash: 'CandidateHash',
session: 'SessionIndex',
statements: 'Vec<(DisputeStatement, ValidatorIndex, ValidatorSignature)>'
statements: 'Vec<(DisputeStatement, ParaValidatorIndex, ValidatorSignature)>'
},
MultiDisputeStatementSet: 'Vec<DisputeStatementSet>',
DisputeStatement: {
Expand All @@ -169,12 +169,12 @@ export default {
}
},
ValidDisputeStatementKind: {
_enum: [
'Explicit',
'BackingSeconded',
'BackingValid',
'ApprovalChecking'
]
_enum: {
Explicit: 'Null',
BackingSeconded: 'Hash',
BackingValid: 'Hash',
ApprovalChecking: 'Null'
}
},
InvalidDisputeStatementKind: {
_enum: [
Expand Down
5 changes: 3 additions & 2 deletions packages/types/src/interfaces/parachains/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type { ITuple } from '@polkadot/types/types';
import type { Signature } from '@polkadot/types/interfaces/extrinsics';
import type { AccountId, Balance, BalanceOf, BlockNumber, H256, Hash, Header, StorageProof, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
import type { MembershipProof, SessionIndex } from '@polkadot/types/interfaces/session';
import type { ValidatorIndex } from '@polkadot/types/interfaces/staking';

/** @name AbridgedCandidateReceipt */
export interface AbridgedCandidateReceipt extends Struct {
Expand Down Expand Up @@ -189,7 +188,7 @@ export interface DisputeStatement extends Enum {
export interface DisputeStatementSet extends Struct {
readonly candidateHash: CandidateHash;
readonly session: SessionIndex;
readonly statements: Vec<ITuple<[DisputeStatement, ValidatorIndex, ValidatorSignature]>>;
readonly statements: Vec<ITuple<[DisputeStatement, ParaValidatorIndex, ValidatorSignature]>>;
}

/** @name DoubleVoteReport */
Expand Down Expand Up @@ -661,7 +660,9 @@ export interface ValidatorSignature extends Signature {}
export interface ValidDisputeStatementKind extends Enum {
readonly isExplicit: boolean;
readonly isBackingSeconded: boolean;
readonly asBackingSeconded: Hash;
readonly isBackingValid: boolean;
readonly asBackingValid: Hash;
readonly isApprovalChecking: boolean;
}

Expand Down
54 changes: 27 additions & 27 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1867,40 +1867,40 @@ __metadata:
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@babel/runtime": ^7.15.3
"@polkadot/api": 5.5.2-1
"@polkadot/types": 5.5.2-1
"@polkadot/api": 5.5.2
"@polkadot/types": 5.5.2
"@polkadot/util": ^7.2.1
rxjs: ^7.3.0
languageName: unknown
linkType: soft

"@polkadot/api-derive@5.5.2-1, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@5.5.2, @polkadot/api-derive@workspace:packages/api-derive":
version: 0.0.0-use.local
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
dependencies:
"@babel/runtime": ^7.15.3
"@polkadot/api": 5.5.2-1
"@polkadot/api": 5.5.2
"@polkadot/keyring": ^7.2.1
"@polkadot/rpc-core": 5.5.2-1
"@polkadot/rpc-provider": 5.5.2-1
"@polkadot/types": 5.5.2-1
"@polkadot/rpc-core": 5.5.2
"@polkadot/rpc-provider": 5.5.2
"@polkadot/types": 5.5.2
"@polkadot/util": ^7.2.1
"@polkadot/util-crypto": ^7.2.1
rxjs: ^7.3.0
languageName: unknown
linkType: soft

"@polkadot/api@5.5.2-1, @polkadot/api@workspace:packages/api":
"@polkadot/api@5.5.2, @polkadot/api@workspace:packages/api":
version: 0.0.0-use.local
resolution: "@polkadot/api@workspace:packages/api"
dependencies:
"@babel/runtime": ^7.15.3
"@polkadot/api-derive": 5.5.2-1
"@polkadot/api-derive": 5.5.2
"@polkadot/keyring": ^7.2.1
"@polkadot/rpc-core": 5.5.2-1
"@polkadot/rpc-provider": 5.5.2-1
"@polkadot/types": 5.5.2-1
"@polkadot/types-known": 5.5.2-1
"@polkadot/rpc-core": 5.5.2
"@polkadot/rpc-provider": 5.5.2
"@polkadot/types": 5.5.2
"@polkadot/types-known": 5.5.2
"@polkadot/util": ^7.2.1
"@polkadot/util-crypto": ^7.2.1
eventemitter3: ^4.0.7
Expand Down Expand Up @@ -2025,26 +2025,26 @@ __metadata:
languageName: node
linkType: hard

"@polkadot/rpc-core@5.5.2-1, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@5.5.2, @polkadot/rpc-core@workspace:packages/rpc-core":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
dependencies:
"@babel/runtime": ^7.15.3
"@polkadot/keyring": ^7.2.1
"@polkadot/rpc-provider": 5.5.2-1
"@polkadot/types": 5.5.2-1
"@polkadot/rpc-provider": 5.5.2
"@polkadot/types": 5.5.2
"@polkadot/util": ^7.2.1
rxjs: ^7.3.0
languageName: unknown
linkType: soft

"@polkadot/rpc-provider@5.5.2-1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@5.5.2, @polkadot/rpc-provider@workspace:packages/rpc-provider":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
dependencies:
"@babel/runtime": ^7.15.3
"@polkadot/keyring": ^7.2.1
"@polkadot/types": 5.5.2-1
"@polkadot/types": 5.5.2
"@polkadot/util": ^7.2.1
"@polkadot/util-crypto": ^7.2.1
"@polkadot/x-fetch": ^7.2.1
Expand Down Expand Up @@ -2072,10 +2072,10 @@ __metadata:
"@babel/core": ^7.15.0
"@babel/register": ^7.15.3
"@babel/runtime": ^7.15.3
"@polkadot/api": 5.5.2-1
"@polkadot/rpc-provider": 5.5.2-1
"@polkadot/types": 5.5.2-1
"@polkadot/types-support": 5.5.2-1
"@polkadot/api": 5.5.2
"@polkadot/rpc-provider": 5.5.2
"@polkadot/types": 5.5.2
"@polkadot/types-support": 5.5.2
"@polkadot/util": ^7.2.1
"@types/websocket": ^1.0.4
"@types/yargs": ^17.0.2
Expand All @@ -2091,18 +2091,18 @@ __metadata:
languageName: unknown
linkType: soft

"@polkadot/types-known@5.5.2-1, @polkadot/types-known@workspace:packages/types-known":
"@polkadot/types-known@5.5.2, @polkadot/types-known@workspace:packages/types-known":
version: 0.0.0-use.local
resolution: "@polkadot/types-known@workspace:packages/types-known"
dependencies:
"@babel/runtime": ^7.15.3
"@polkadot/networks": ^7.2.1
"@polkadot/types": 5.5.2-1
"@polkadot/types": 5.5.2
"@polkadot/util": ^7.2.1
languageName: unknown
linkType: soft

"@polkadot/types-support@5.5.2-1, @polkadot/types-support@workspace:packages/types-support":
"@polkadot/types-support@5.5.2, @polkadot/types-support@workspace:packages/types-support":
version: 0.0.0-use.local
resolution: "@polkadot/types-support@workspace:packages/types-support"
dependencies:
Expand All @@ -2111,13 +2111,13 @@ __metadata:
languageName: unknown
linkType: soft

"@polkadot/types@5.5.2-1, @polkadot/types@workspace:packages/types":
"@polkadot/types@5.5.2, @polkadot/types@workspace:packages/types":
version: 0.0.0-use.local
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@babel/runtime": ^7.15.3
"@polkadot/keyring": ^7.2.1
"@polkadot/types-support": 5.5.2-1
"@polkadot/types-support": 5.5.2
"@polkadot/util": ^7.2.1
"@polkadot/util-crypto": ^7.2.1
"@types/bn.js": ^4.11.6
Expand Down