From d826ac85fa2c3094f8c7d33c0f72921750f8ac64 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 6 Jan 2021 18:18:08 +0100 Subject: [PATCH] Event check index (#3028) * Event check index * patch --- package.json | 2 +- packages/api-contract/package.json | 8 +- packages/api-derive/package.json | 12 +-- packages/api/package.json | 16 ++-- packages/metadata/package.json | 6 +- .../metadata/src/decorate/events/index.ts | 2 +- packages/rpc-core/package.json | 10 +-- packages/rpc-provider/package.json | 6 +- packages/typegen/package.json | 10 +-- packages/types-known/package.json | 4 +- packages/types/package.json | 6 +- packages/x-rxjs/package.json | 2 +- yarn.lock | 76 +++++++++---------- 13 files changed, 80 insertions(+), 80 deletions(-) diff --git a/package.json b/package.json index 1b54fff965..2fb8e2d6ba 100644 --- a/package.json +++ b/package.json @@ -34,5 +34,5 @@ "@types/jest": "^26.0.19", "copyfiles": "^2.4.1" }, - "version": "3.3.2-4" + "version": "3.3.2" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index ef4a3e444f..00267fae5b 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "3.3.2-4", + "version": "3.3.2", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", "module": "index.mjs", @@ -14,10 +14,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/api": "3.3.2-4", - "@polkadot/types": "3.3.2-4", + "@polkadot/api": "3.3.2", + "@polkadot/types": "3.3.2", "@polkadot/util": "^5.2.3", - "@polkadot/x-rxjs": "3.3.2-4", + "@polkadot/x-rxjs": "3.3.2", "bn.js": "^4.11.9" } } diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index ebbb40c1bf..016d307e2d 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "3.3.2-4", + "version": "3.3.2", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "module": "index.mjs", @@ -14,16 +14,16 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/api": "3.3.2-4", - "@polkadot/rpc-core": "3.3.2-4", - "@polkadot/types": "3.3.2-4", + "@polkadot/api": "3.3.2", + "@polkadot/rpc-core": "3.3.2", + "@polkadot/types": "3.3.2", "@polkadot/util": "^5.2.3", "@polkadot/util-crypto": "^5.2.3", - "@polkadot/x-rxjs": "3.3.2-4", + "@polkadot/x-rxjs": "3.3.2", "bn.js": "^4.11.9" }, "devDependencies": { "@polkadot/keyring": "^5.2.3", - "@polkadot/rpc-provider": "3.3.2-4" + "@polkadot/rpc-provider": "3.3.2" } } diff --git a/packages/api/package.json b/packages/api/package.json index ccf6ff2172..07d37f74ff 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "3.3.2-4", + "version": "3.3.2", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "module": "index.mjs", @@ -17,16 +17,16 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/api-derive": "3.3.2-4", + "@polkadot/api-derive": "3.3.2", "@polkadot/keyring": "^5.2.3", - "@polkadot/metadata": "3.3.2-4", - "@polkadot/rpc-core": "3.3.2-4", - "@polkadot/rpc-provider": "3.3.2-4", - "@polkadot/types": "3.3.2-4", - "@polkadot/types-known": "3.3.2-4", + "@polkadot/metadata": "3.3.2", + "@polkadot/rpc-core": "3.3.2", + "@polkadot/rpc-provider": "3.3.2", + "@polkadot/types": "3.3.2", + "@polkadot/types-known": "3.3.2", "@polkadot/util": "^5.2.3", "@polkadot/util-crypto": "^5.2.3", - "@polkadot/x-rxjs": "3.3.2-4", + "@polkadot/x-rxjs": "3.3.2", "bn.js": "^4.11.9", "eventemitter3": "^4.0.7" } diff --git a/packages/metadata/package.json b/packages/metadata/package.json index 44c155b5fb..880aa46621 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/metadata", - "version": "3.3.2-4", + "version": "3.3.2", "description": "Helpers to extract information from runtime metadata", "main": "index.js", "module": "index.mjs", @@ -17,8 +17,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/types": "3.3.2-4", - "@polkadot/types-known": "3.3.2-4", + "@polkadot/types": "3.3.2", + "@polkadot/types-known": "3.3.2", "@polkadot/util": "^5.2.3", "@polkadot/util-crypto": "^5.2.3", "bn.js": "^4.11.9" diff --git a/packages/metadata/src/decorate/events/index.ts b/packages/metadata/src/decorate/events/index.ts index 64b6129b2a..bbd9d26e82 100644 --- a/packages/metadata/src/decorate/events/index.ts +++ b/packages/metadata/src/decorate/events/index.ts @@ -8,7 +8,7 @@ import type { Events, ModuleEvents } from '../types'; import { stringCamelCase } from '@polkadot/util'; function isEvent (event: IEvent, sectionIndex: number, eventIndex: number): event is IEvent { - return event.index[0] === sectionIndex && event.index[0] === eventIndex; + return event.index[0] === sectionIndex && event.index[1] === eventIndex; } /** @internal */ diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 70f77ecee2..bbb8fa571a 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "3.3.2-4", + "version": "3.3.2", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "module": "index.mjs", @@ -14,11 +14,11 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/metadata": "3.3.2-4", - "@polkadot/rpc-provider": "3.3.2-4", - "@polkadot/types": "3.3.2-4", + "@polkadot/metadata": "3.3.2", + "@polkadot/rpc-provider": "3.3.2", + "@polkadot/types": "3.3.2", "@polkadot/util": "^5.2.3", - "@polkadot/x-rxjs": "3.3.2-4" + "@polkadot/x-rxjs": "3.3.2" }, "devDependencies": { "@polkadot/keyring": "^5.2.3" diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 22875490e6..b6fac68d68 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "3.3.2-4", + "version": "3.3.2", "description": "Transport providers for the API", "main": "index.js", "module": "index.mjs", @@ -14,7 +14,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/types": "3.3.2-4", + "@polkadot/types": "3.3.2", "@polkadot/util": "^5.2.3", "@polkadot/util-crypto": "^5.2.3", "@polkadot/x-fetch": "^5.2.3", @@ -24,7 +24,7 @@ }, "devDependencies": { "@polkadot/keyring": "^5.2.3", - "@polkadot/metadata": "3.3.2-4", + "@polkadot/metadata": "3.3.2", "mock-socket": "^9.0.3", "nock": "^13.0.5" } diff --git a/packages/typegen/package.json b/packages/typegen/package.json index ae37a56cb5..0a078f9aaf 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "3.3.2-4", + "version": "3.3.2", "description": "Type generation scripts", "main": "index.js", "module": "index.mjs", @@ -23,10 +23,10 @@ "@babel/core": "^7.12.10", "@babel/register": "^7.12.10", "@babel/runtime": "^7.12.5", - "@polkadot/api": "3.3.2-4", - "@polkadot/metadata": "3.3.2-4", - "@polkadot/rpc-provider": "3.3.2-4", - "@polkadot/types": "3.3.2-4", + "@polkadot/api": "3.3.2", + "@polkadot/metadata": "3.3.2", + "@polkadot/rpc-provider": "3.3.2", + "@polkadot/types": "3.3.2", "@polkadot/util": "^5.2.3", "handlebars": "^4.7.6", "websocket": "^1.0.33", diff --git a/packages/types-known/package.json b/packages/types-known/package.json index 1e4ca22458..92579148e9 100644 --- a/packages/types-known/package.json +++ b/packages/types-known/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types-known", - "version": "3.3.2-4", + "version": "3.3.2", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "module": "index.mjs", @@ -14,7 +14,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/types": "3.3.2-4", + "@polkadot/types": "3.3.2", "@polkadot/util": "^5.2.3", "bn.js": "^4.11.9" }, diff --git a/packages/types/package.json b/packages/types/package.json index e37dfd6368..a4c93b4643 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "3.3.2-4", + "version": "3.3.2", "description": "Implementation of the Parity codec", "main": "index.js", "module": "index.mjs", @@ -17,10 +17,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/metadata": "3.3.2-4", + "@polkadot/metadata": "3.3.2", "@polkadot/util": "^5.2.3", "@polkadot/util-crypto": "^5.2.3", - "@polkadot/x-rxjs": "3.3.2-4", + "@polkadot/x-rxjs": "3.3.2", "@types/bn.js": "^4.11.6", "bn.js": "^4.11.9" }, diff --git a/packages/x-rxjs/package.json b/packages/x-rxjs/package.json index 60c332e8cf..6512293fa9 100644 --- a/packages/x-rxjs/package.json +++ b/packages/x-rxjs/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/x-rxjs", - "version": "3.3.2-4", + "version": "3.3.2", "description": "A pass-through interface for RxJs (allowing node + mjs usage)", "main": "index.js", "sideEffects": false, diff --git a/yarn.lock b/yarn.lock index 2c5fcd0fa1..3e58f5876a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1622,46 +1622,46 @@ __metadata: resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/api": 3.3.2-4 - "@polkadot/types": 3.3.2-4 + "@polkadot/api": 3.3.2 + "@polkadot/types": 3.3.2 "@polkadot/util": ^5.2.3 - "@polkadot/x-rxjs": 3.3.2-4 + "@polkadot/x-rxjs": 3.3.2 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/api-derive@3.3.2-4, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@3.3.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.12.5 - "@polkadot/api": 3.3.2-4 + "@polkadot/api": 3.3.2 "@polkadot/keyring": ^5.2.3 - "@polkadot/rpc-core": 3.3.2-4 - "@polkadot/rpc-provider": 3.3.2-4 - "@polkadot/types": 3.3.2-4 + "@polkadot/rpc-core": 3.3.2 + "@polkadot/rpc-provider": 3.3.2 + "@polkadot/types": 3.3.2 "@polkadot/util": ^5.2.3 "@polkadot/util-crypto": ^5.2.3 - "@polkadot/x-rxjs": 3.3.2-4 + "@polkadot/x-rxjs": 3.3.2 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/api@3.3.2-4, @polkadot/api@workspace:packages/api": +"@polkadot/api@3.3.2, @polkadot/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/api-derive": 3.3.2-4 + "@polkadot/api-derive": 3.3.2 "@polkadot/keyring": ^5.2.3 - "@polkadot/metadata": 3.3.2-4 - "@polkadot/rpc-core": 3.3.2-4 - "@polkadot/rpc-provider": 3.3.2-4 - "@polkadot/types": 3.3.2-4 - "@polkadot/types-known": 3.3.2-4 + "@polkadot/metadata": 3.3.2 + "@polkadot/rpc-core": 3.3.2 + "@polkadot/rpc-provider": 3.3.2 + "@polkadot/types": 3.3.2 + "@polkadot/types-known": 3.3.2 "@polkadot/util": ^5.2.3 "@polkadot/util-crypto": ^5.2.3 - "@polkadot/x-rxjs": 3.3.2-4 + "@polkadot/x-rxjs": 3.3.2 bn.js: ^4.11.9 eventemitter3: ^4.0.7 languageName: unknown @@ -1772,14 +1772,14 @@ __metadata: languageName: node linkType: hard -"@polkadot/metadata@3.3.2-4, @polkadot/metadata@workspace:packages/metadata": +"@polkadot/metadata@3.3.2, @polkadot/metadata@workspace:packages/metadata": version: 0.0.0-use.local resolution: "@polkadot/metadata@workspace:packages/metadata" dependencies: "@babel/runtime": ^7.12.5 "@polkadot/keyring": ^5.2.3 - "@polkadot/types": 3.3.2-4 - "@polkadot/types-known": 3.3.2-4 + "@polkadot/types": 3.3.2 + "@polkadot/types-known": 3.3.2 "@polkadot/util": ^5.2.3 "@polkadot/util-crypto": ^5.2.3 bn.js: ^4.11.9 @@ -1795,28 +1795,28 @@ __metadata: languageName: node linkType: hard -"@polkadot/rpc-core@3.3.2-4, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@3.3.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.12.5 "@polkadot/keyring": ^5.2.3 - "@polkadot/metadata": 3.3.2-4 - "@polkadot/rpc-provider": 3.3.2-4 - "@polkadot/types": 3.3.2-4 + "@polkadot/metadata": 3.3.2 + "@polkadot/rpc-provider": 3.3.2 + "@polkadot/types": 3.3.2 "@polkadot/util": ^5.2.3 - "@polkadot/x-rxjs": 3.3.2-4 + "@polkadot/x-rxjs": 3.3.2 languageName: unknown linkType: soft -"@polkadot/rpc-provider@3.3.2-4, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@3.3.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.12.5 "@polkadot/keyring": ^5.2.3 - "@polkadot/metadata": 3.3.2-4 - "@polkadot/types": 3.3.2-4 + "@polkadot/metadata": 3.3.2 + "@polkadot/types": 3.3.2 "@polkadot/util": ^5.2.3 "@polkadot/util-crypto": ^5.2.3 "@polkadot/x-fetch": ^5.2.3 @@ -1844,10 +1844,10 @@ __metadata: "@babel/core": ^7.12.10 "@babel/register": ^7.12.10 "@babel/runtime": ^7.12.5 - "@polkadot/api": 3.3.2-4 - "@polkadot/metadata": 3.3.2-4 - "@polkadot/rpc-provider": 3.3.2-4 - "@polkadot/types": 3.3.2-4 + "@polkadot/api": 3.3.2 + "@polkadot/metadata": 3.3.2 + "@polkadot/rpc-provider": 3.3.2 + "@polkadot/types": 3.3.2 "@polkadot/util": ^5.2.3 "@types/websocket": ^1.0.1 "@types/yargs": ^15.0.12 @@ -1863,28 +1863,28 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types-known@3.3.2-4, @polkadot/types-known@workspace:packages/types-known": +"@polkadot/types-known@3.3.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.12.5 - "@polkadot/types": 3.3.2-4 + "@polkadot/types": 3.3.2 "@polkadot/util": ^5.2.3 "@types/bn.js": ^4.11.6 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/types@3.3.2-4, @polkadot/types@workspace:packages/types": +"@polkadot/types@3.3.2, @polkadot/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: "@babel/runtime": ^7.12.5 "@polkadot/keyring": ^5.2.3 - "@polkadot/metadata": 3.3.2-4 + "@polkadot/metadata": 3.3.2 "@polkadot/util": ^5.2.3 "@polkadot/util-crypto": ^5.2.3 - "@polkadot/x-rxjs": 3.3.2-4 + "@polkadot/x-rxjs": 3.3.2 "@types/bn.js": ^4.11.6 bn.js: ^4.11.9 languageName: unknown @@ -1982,7 +1982,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-rxjs@3.3.2-4, @polkadot/x-rxjs@workspace:packages/x-rxjs": +"@polkadot/x-rxjs@3.3.2, @polkadot/x-rxjs@workspace:packages/x-rxjs": version: 0.0.0-use.local resolution: "@polkadot/x-rxjs@workspace:packages/x-rxjs" dependencies: