diff --git a/CHANGELOG.md b/CHANGELOG.md index 16f986654e..5d18465276 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,16 @@ # CHANGELOG -## master +## 4.7.2 Apr 26, 2021 + +Upgrade priority: Low. Recommended for users of 4.7.1 using nvm Changes: +- Update `.nvmrc` to reflect engines changes - Update `EthBlock`/`EthHeader` types (as per Rust origin) - Updated Xcm `OriginKind` enum +- Add derives for `membership` +- Cleanups on encodedLength calculations ## 4.7.1 Apr 25, 2021 diff --git a/package.json b/package.json index 0cb30dc458..2557962b53 100644 --- a/package.json +++ b/package.json @@ -34,5 +34,5 @@ "@types/jest": "^26.0.22", "copyfiles": "^2.4.1" }, - "version": "4.7.2-5" + "version": "4.7.2" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index b33e66dd79..73847ea692 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "4.7.2-5", + "version": "4.7.2", "type": "module", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", @@ -20,8 +20,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { "@babel/runtime": "^7.13.17", - "@polkadot/api": "4.7.2-5", - "@polkadot/types": "4.7.2-5", + "@polkadot/api": "4.7.2", + "@polkadot/types": "4.7.2", "@polkadot/util": "^6.3.1", "@polkadot/x-rxjs": "^6.3.1", "bn.js": "^4.11.9" diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 7e3e28dec9..780f2f694d 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "4.7.2-5", + "version": "4.7.2", "type": "module", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", @@ -20,9 +20,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.13.17", - "@polkadot/api": "4.7.2-5", - "@polkadot/rpc-core": "4.7.2-5", - "@polkadot/types": "4.7.2-5", + "@polkadot/api": "4.7.2", + "@polkadot/rpc-core": "4.7.2", + "@polkadot/types": "4.7.2", "@polkadot/util": "^6.3.1", "@polkadot/util-crypto": "^6.3.1", "@polkadot/x-rxjs": "^6.3.1", @@ -30,6 +30,6 @@ }, "devDependencies": { "@polkadot/keyring": "^6.3.1", - "@polkadot/rpc-provider": "4.7.2-5" + "@polkadot/rpc-provider": "4.7.2" } } diff --git a/packages/api/package.json b/packages/api/package.json index a391a7a2d9..37706c0b96 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "4.7.2-5", + "version": "4.7.2", "type": "module", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", @@ -20,13 +20,13 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.13.17", - "@polkadot/api-derive": "4.7.2-5", + "@polkadot/api-derive": "4.7.2", "@polkadot/keyring": "^6.3.1", - "@polkadot/metadata": "4.7.2-5", - "@polkadot/rpc-core": "4.7.2-5", - "@polkadot/rpc-provider": "4.7.2-5", - "@polkadot/types": "4.7.2-5", - "@polkadot/types-known": "4.7.2-5", + "@polkadot/metadata": "4.7.2", + "@polkadot/rpc-core": "4.7.2", + "@polkadot/rpc-provider": "4.7.2", + "@polkadot/types": "4.7.2", + "@polkadot/types-known": "4.7.2", "@polkadot/util": "^6.3.1", "@polkadot/util-crypto": "^6.3.1", "@polkadot/x-rxjs": "^6.3.1", diff --git a/packages/metadata/package.json b/packages/metadata/package.json index d4b3a61891..e241210e97 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/metadata", - "version": "4.7.2-5", + "version": "4.7.2", "type": "module", "description": "Helpers to extract information from runtime metadata", "main": "index.js", @@ -20,8 +20,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme", "dependencies": { "@babel/runtime": "^7.13.17", - "@polkadot/types": "4.7.2-5", - "@polkadot/types-known": "4.7.2-5", + "@polkadot/types": "4.7.2", + "@polkadot/types-known": "4.7.2", "@polkadot/util": "^6.3.1", "@polkadot/util-crypto": "^6.3.1", "bn.js": "^4.11.9" diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 16a3593256..5524552d9c 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "4.7.2-5", + "version": "4.7.2", "type": "module", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", @@ -20,9 +20,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.13.17", - "@polkadot/metadata": "4.7.2-5", - "@polkadot/rpc-provider": "4.7.2-5", - "@polkadot/types": "4.7.2-5", + "@polkadot/metadata": "4.7.2", + "@polkadot/rpc-provider": "4.7.2", + "@polkadot/types": "4.7.2", "@polkadot/util": "^6.3.1", "@polkadot/x-rxjs": "^6.3.1" }, diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 21fa1f2950..5d1c071b5a 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "4.7.2-5", + "version": "4.7.2", "type": "module", "description": "Transport providers for the API", "main": "index.js", @@ -20,7 +20,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.13.17", - "@polkadot/types": "4.7.2-5", + "@polkadot/types": "4.7.2", "@polkadot/util": "^6.3.1", "@polkadot/util-crypto": "^6.3.1", "@polkadot/x-fetch": "^6.3.1", @@ -31,7 +31,7 @@ }, "devDependencies": { "@polkadot/keyring": "^6.3.1", - "@polkadot/metadata": "4.7.2-5", + "@polkadot/metadata": "4.7.2", "mock-socket": "^9.0.3", "nock": "^13.0.11" } diff --git a/packages/typegen/package.json b/packages/typegen/package.json index f1b862d84e..ec9aeb99f4 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "4.7.2-5", + "version": "4.7.2", "type": "module", "description": "Type generation scripts", "main": "index.js", @@ -29,10 +29,10 @@ "@babel/core": "^7.13.16", "@babel/register": "^7.13.16", "@babel/runtime": "^7.13.17", - "@polkadot/api": "4.7.2-5", - "@polkadot/metadata": "4.7.2-5", - "@polkadot/rpc-provider": "4.7.2-5", - "@polkadot/types": "4.7.2-5", + "@polkadot/api": "4.7.2", + "@polkadot/metadata": "4.7.2", + "@polkadot/rpc-provider": "4.7.2", + "@polkadot/types": "4.7.2", "@polkadot/util": "^6.3.1", "handlebars": "^4.7.7", "websocket": "^1.0.34", diff --git a/packages/types-known/package.json b/packages/types-known/package.json index 28fe9e70cb..4c18c05399 100644 --- a/packages/types-known/package.json +++ b/packages/types-known/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types-known", - "version": "4.7.2-5", + "version": "4.7.2", "type": "module", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", @@ -21,7 +21,7 @@ "dependencies": { "@babel/runtime": "^7.13.17", "@polkadot/networks": "^6.3.1", - "@polkadot/types": "4.7.2-5", + "@polkadot/types": "4.7.2", "@polkadot/util": "^6.3.1", "bn.js": "^4.11.9" }, diff --git a/packages/types/package.json b/packages/types/package.json index ad90dcd148..827eff0dc8 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "4.7.2-5", + "version": "4.7.2", "type": "module", "description": "Implementation of the Parity codec", "main": "index.js", @@ -20,7 +20,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.13.17", - "@polkadot/metadata": "4.7.2-5", + "@polkadot/metadata": "4.7.2", "@polkadot/util": "^6.3.1", "@polkadot/util-crypto": "^6.3.1", "@polkadot/x-rxjs": "^6.3.1", diff --git a/packages/types/src/interfaces/xcm/definitions.ts b/packages/types/src/interfaces/xcm/definitions.ts index d7d084aedb..0f64f24898 100644 --- a/packages/types/src/interfaces/xcm/definitions.ts +++ b/packages/types/src/interfaces/xcm/definitions.ts @@ -212,7 +212,8 @@ export default { WeightNotComputable: 'Null', Barrier: 'Null', NotWithdrawable: 'Null', - LocationCannotHold: 'Null' + LocationCannotHold: 'Null', + TooExpensive: 'Null' } }, XcmOutcome: { diff --git a/yarn.lock b/yarn.lock index f6bfea0cba..0271fd8d05 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1788,24 +1788,24 @@ __metadata: resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: "@babel/runtime": ^7.13.17 - "@polkadot/api": 4.7.2-5 - "@polkadot/types": 4.7.2-5 + "@polkadot/api": 4.7.2 + "@polkadot/types": 4.7.2 "@polkadot/util": ^6.3.1 "@polkadot/x-rxjs": ^6.3.1 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/api-derive@4.7.2-5, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@4.7.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.13.17 - "@polkadot/api": 4.7.2-5 + "@polkadot/api": 4.7.2 "@polkadot/keyring": ^6.3.1 - "@polkadot/rpc-core": 4.7.2-5 - "@polkadot/rpc-provider": 4.7.2-5 - "@polkadot/types": 4.7.2-5 + "@polkadot/rpc-core": 4.7.2 + "@polkadot/rpc-provider": 4.7.2 + "@polkadot/types": 4.7.2 "@polkadot/util": ^6.3.1 "@polkadot/util-crypto": ^6.3.1 "@polkadot/x-rxjs": ^6.3.1 @@ -1813,18 +1813,18 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/api@4.7.2-5, @polkadot/api@workspace:packages/api": +"@polkadot/api@4.7.2, @polkadot/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: "@babel/runtime": ^7.13.17 - "@polkadot/api-derive": 4.7.2-5 + "@polkadot/api-derive": 4.7.2 "@polkadot/keyring": ^6.3.1 - "@polkadot/metadata": 4.7.2-5 - "@polkadot/rpc-core": 4.7.2-5 - "@polkadot/rpc-provider": 4.7.2-5 - "@polkadot/types": 4.7.2-5 - "@polkadot/types-known": 4.7.2-5 + "@polkadot/metadata": 4.7.2 + "@polkadot/rpc-core": 4.7.2 + "@polkadot/rpc-provider": 4.7.2 + "@polkadot/types": 4.7.2 + "@polkadot/types-known": 4.7.2 "@polkadot/util": ^6.3.1 "@polkadot/util-crypto": ^6.3.1 "@polkadot/x-rxjs": ^6.3.1 @@ -1933,14 +1933,14 @@ __metadata: languageName: node linkType: hard -"@polkadot/metadata@4.7.2-5, @polkadot/metadata@workspace:packages/metadata": +"@polkadot/metadata@4.7.2, @polkadot/metadata@workspace:packages/metadata": version: 0.0.0-use.local resolution: "@polkadot/metadata@workspace:packages/metadata" dependencies: "@babel/runtime": ^7.13.17 "@polkadot/keyring": ^6.3.1 - "@polkadot/types": 4.7.2-5 - "@polkadot/types-known": 4.7.2-5 + "@polkadot/types": 4.7.2 + "@polkadot/types-known": 4.7.2 "@polkadot/util": ^6.3.1 "@polkadot/util-crypto": ^6.3.1 bn.js: ^4.11.9 @@ -1956,28 +1956,28 @@ __metadata: languageName: node linkType: hard -"@polkadot/rpc-core@4.7.2-5, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@4.7.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.13.17 "@polkadot/keyring": ^6.3.1 - "@polkadot/metadata": 4.7.2-5 - "@polkadot/rpc-provider": 4.7.2-5 - "@polkadot/types": 4.7.2-5 + "@polkadot/metadata": 4.7.2 + "@polkadot/rpc-provider": 4.7.2 + "@polkadot/types": 4.7.2 "@polkadot/util": ^6.3.1 "@polkadot/x-rxjs": ^6.3.1 languageName: unknown linkType: soft -"@polkadot/rpc-provider@4.7.2-5, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@4.7.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.13.17 "@polkadot/keyring": ^6.3.1 - "@polkadot/metadata": 4.7.2-5 - "@polkadot/types": 4.7.2-5 + "@polkadot/metadata": 4.7.2 + "@polkadot/types": 4.7.2 "@polkadot/util": ^6.3.1 "@polkadot/util-crypto": ^6.3.1 "@polkadot/x-fetch": ^6.3.1 @@ -2006,10 +2006,10 @@ __metadata: "@babel/core": ^7.13.16 "@babel/register": ^7.13.16 "@babel/runtime": ^7.13.17 - "@polkadot/api": 4.7.2-5 - "@polkadot/metadata": 4.7.2-5 - "@polkadot/rpc-provider": 4.7.2-5 - "@polkadot/types": 4.7.2-5 + "@polkadot/api": 4.7.2 + "@polkadot/metadata": 4.7.2 + "@polkadot/rpc-provider": 4.7.2 + "@polkadot/types": 4.7.2 "@polkadot/util": ^6.3.1 "@types/websocket": ^1.0.2 "@types/yargs": ^16.0.1 @@ -2025,26 +2025,26 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types-known@4.7.2-5, @polkadot/types-known@workspace:packages/types-known": +"@polkadot/types-known@4.7.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.13.17 "@polkadot/networks": ^6.3.1 - "@polkadot/types": 4.7.2-5 + "@polkadot/types": 4.7.2 "@polkadot/util": ^6.3.1 "@types/bn.js": ^4.11.6 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/types@4.7.2-5, @polkadot/types@workspace:packages/types": +"@polkadot/types@4.7.2, @polkadot/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: "@babel/runtime": ^7.13.17 "@polkadot/keyring": ^6.3.1 - "@polkadot/metadata": 4.7.2-5 + "@polkadot/metadata": 4.7.2 "@polkadot/util": ^6.3.1 "@polkadot/util-crypto": ^6.3.1 "@polkadot/x-rxjs": ^6.3.1