From e7ee68d1386e029f54c08f039205441be3198949 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Mon, 9 Nov 2020 09:19:58 +0000 Subject: [PATCH] [CI Skip] release/beta 2.5.2-5 skip-checks: true --- package.json | 2 +- packages/api-contract/package.json | 8 ++-- packages/api-derive/package.json | 10 ++--- packages/api/package.json | 14 +++---- packages/api/src/augment/consts.ts | 11 ----- packages/api/src/augment/query.ts | 6 +++ packages/api/src/augment/tx.ts | 32 +++++++++------ packages/metadata/package.json | 6 +-- packages/rpc-core/package.json | 8 ++-- packages/rpc-provider/package.json | 6 +-- packages/typegen/package.json | 10 ++--- packages/types-known/package.json | 4 +- packages/types/package.json | 4 +- yarn.lock | 66 +++++++++++++++--------------- 14 files changed, 94 insertions(+), 93 deletions(-) diff --git a/package.json b/package.json index 8bd1bfccf2..3e3805d819 100644 --- a/package.json +++ b/package.json @@ -32,5 +32,5 @@ "@types/jest": "^26.0.15", "copyfiles": "^2.4.0" }, - "version": "2.5.2-4" + "version": "2.5.2-5" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index 98c78c73ec..cd217739de 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "2.5.2-4", + "version": "2.5.2-5", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", "keywords": [ @@ -27,14 +27,14 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { "@babel/runtime": "^7.12.1", - "@polkadot/api": "2.5.2-4", - "@polkadot/types": "2.5.2-4", + "@polkadot/api": "2.5.2-5", + "@polkadot/types": "2.5.2-5", "@polkadot/util": "^4.0.1", "bn.js": "^5.1.3", "rxjs": "^6.6.3" }, "peerDependencies": { - "@polkadot/api": "2.5.2-4", + "@polkadot/api": "2.5.2-5", "@polkadot/util": "*" } } diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 6e0ca104e5..257579f6df 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "2.5.2-4", + "version": "2.5.2-5", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "keywords": [ @@ -28,9 +28,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.12.1", - "@polkadot/api": "2.5.2-4", - "@polkadot/rpc-core": "2.5.2-4", - "@polkadot/types": "2.5.2-4", + "@polkadot/api": "2.5.2-5", + "@polkadot/rpc-core": "2.5.2-5", + "@polkadot/types": "2.5.2-5", "@polkadot/util": "^4.0.1", "@polkadot/util-crypto": "^4.0.1", "bn.js": "^5.1.3", @@ -39,7 +39,7 @@ }, "devDependencies": { "@polkadot/keyring": "^4.0.1", - "@polkadot/rpc-provider": "2.5.2-4" + "@polkadot/rpc-provider": "2.5.2-5" }, "peerDependencies": { "@polkadot/util": "*", diff --git a/packages/api/package.json b/packages/api/package.json index a818f3c922..b8882b6bc1 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "2.5.2-4", + "version": "2.5.2-5", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "keywords": [ @@ -27,13 +27,13 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.12.1", - "@polkadot/api-derive": "2.5.2-4", + "@polkadot/api-derive": "2.5.2-5", "@polkadot/keyring": "^4.0.1", - "@polkadot/metadata": "2.5.2-4", - "@polkadot/rpc-core": "2.5.2-4", - "@polkadot/rpc-provider": "2.5.2-4", - "@polkadot/types": "2.5.2-4", - "@polkadot/types-known": "2.5.2-4", + "@polkadot/metadata": "2.5.2-5", + "@polkadot/rpc-core": "2.5.2-5", + "@polkadot/rpc-provider": "2.5.2-5", + "@polkadot/types": "2.5.2-5", + "@polkadot/types-known": "2.5.2-5", "@polkadot/util": "^4.0.1", "@polkadot/util-crypto": "^4.0.1", "bn.js": "^5.1.3", diff --git a/packages/api/src/augment/consts.ts b/packages/api/src/augment/consts.ts index 71189d6ddb..6b9857e176 100644 --- a/packages/api/src/augment/consts.ts +++ b/packages/api/src/augment/consts.ts @@ -134,17 +134,6 @@ declare module '@polkadot/api/types/consts' { termDuration: BlockNumber & AugmentedConst; votingBond: BalanceOf & AugmentedConst; }; - finalityTracker: { - [key: string]: Codec; - /** - * The delay after which point things become suspicious. Default is 1000. - **/ - reportLatency: BlockNumber & AugmentedConst; - /** - * The number of recent samples to keep from this chain. Default is 101. - **/ - windowSize: BlockNumber & AugmentedConst; - }; identity: { [key: string]: Codec; /** diff --git a/packages/api/src/augment/query.ts b/packages/api/src/augment/query.ts index 0bdd014f43..e2ab8bd9c8 100644 --- a/packages/api/src/augment/query.ts +++ b/packages/api/src/augment/query.ts @@ -53,6 +53,12 @@ declare module '@polkadot/api/types/storage' { * Current epoch authorities. **/ authorities: AugmentedQuery Observable>>> & QueryableStorageEntry; + /** + * Temporary value (cleared at block finalization) that includes the VRF output generated + * at this block. This field should always be populated during block processing unless + * secondary plain slots are enabled (which don't contain a VRF output). + **/ + authorVrfRandomness: AugmentedQuery Observable> & QueryableStorageEntry; /** * Current slot number. **/ diff --git a/packages/api/src/augment/tx.ts b/packages/api/src/augment/tx.ts index 3ecc854b7c..d105609aac 100644 --- a/packages/api/src/augment/tx.ts +++ b/packages/api/src/augment/tx.ts @@ -805,14 +805,6 @@ declare module '@polkadot/api/types/submittable' { **/ vote: AugmentedSubmittable<(votes: Vec | (AccountId | string | Uint8Array)[], value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; }; - finalityTracker: { - [key: string]: SubmittableExtrinsicFunction; - /** - * Hint that the author of this block thinks the best finalized - * block is the given number. - **/ - finalHint: AugmentedSubmittable<(hint: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; - }; grandpa: { [key: string]: SubmittableExtrinsicFunction; /** @@ -3047,9 +3039,9 @@ declare module '@polkadot/api/types/submittable' { * The dispatch origin for this call must be `Inherent`. * * # - * - `O(T)` where `T` complexity of `on_timestamp_set` + * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in `on_finalize`) - * - 1 event handler `on_timestamp_set` `O(T)`. + * - 1 event handler `on_timestamp_set`. Must be `O(1)`. * # **/ set: AugmentedSubmittable<(now: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; @@ -3351,9 +3343,7 @@ declare module '@polkadot/api/types/submittable' { * bypassing `frame_system::Trait::BaseCallFilter`). * * # - * - Base weight: 14.39 + .987 * c µs - * - Plus the sum of the weights of the `calls`. - * - Plus one additional event. (repeat read/write) + * - Complexity: O(C) where C is the number of calls to be batched. * # * * This will return `Ok` in all circumstances. To determine the success of the batch, an @@ -3363,6 +3353,22 @@ declare module '@polkadot/api/types/submittable' { * event is deposited. **/ batch: AugmentedSubmittable<(calls: Vec | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic>; + /** + * Send a batch of dispatch calls and atomically execute them. + * The whole transaction will rollback and fail if any of the calls failed. + * + * May be called from any origin. + * + * - `calls`: The calls to be dispatched from the same origin. + * + * If origin is root then call are dispatch without checking origin filter. (This includes + * bypassing `frame_system::Trait::BaseCallFilter`). + * + * # + * - Complexity: O(C) where C is the number of calls to be batched. + * # + **/ + batchAll: AugmentedSubmittable<(calls: Vec | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic>; }; vesting: { [key: string]: SubmittableExtrinsicFunction; diff --git a/packages/metadata/package.json b/packages/metadata/package.json index bdda012de2..a9e3c4a047 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/metadata", - "version": "2.5.2-4", + "version": "2.5.2-5", "description": "Helpers to extract information from runtime metadata", "main": "index.js", "publishConfig": { @@ -27,8 +27,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme", "dependencies": { "@babel/runtime": "^7.12.1", - "@polkadot/types": "2.5.2-4", - "@polkadot/types-known": "2.5.2-4", + "@polkadot/types": "2.5.2-5", + "@polkadot/types-known": "2.5.2-5", "@polkadot/util": "^4.0.1", "@polkadot/util-crypto": "^4.0.1", "bn.js": "^5.1.3" diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index d13b01e4c4..4240dad2dc 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "2.5.2-4", + "version": "2.5.2-5", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "keywords": [ @@ -27,9 +27,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.12.1", - "@polkadot/metadata": "2.5.2-4", - "@polkadot/rpc-provider": "2.5.2-4", - "@polkadot/types": "2.5.2-4", + "@polkadot/metadata": "2.5.2-5", + "@polkadot/rpc-provider": "2.5.2-5", + "@polkadot/types": "2.5.2-5", "@polkadot/util": "^4.0.1", "memoizee": "^0.4.14", "rxjs": "^6.6.3" diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index f9a6046e48..a219803742 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "2.5.2-4", + "version": "2.5.2-5", "description": "Transport providers for the API", "main": "index.js", "keywords": [ @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.12.1", - "@polkadot/types": "2.5.2-4", + "@polkadot/types": "2.5.2-5", "@polkadot/util": "^4.0.1", "@polkadot/util-crypto": "^4.0.1", "@polkadot/x-fetch": "^4.0.1", @@ -37,7 +37,7 @@ }, "devDependencies": { "@polkadot/keyring": "^4.0.1", - "@polkadot/metadata": "2.5.2-4", + "@polkadot/metadata": "2.5.2-5", "mock-socket": "^9.0.3", "nock": "^13.0.4" }, diff --git a/packages/typegen/package.json b/packages/typegen/package.json index de4dbc51a3..499acb883a 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "2.5.2-4", + "version": "2.5.2-5", "description": "Type generation scripts", "main": "index.js", "bin": { @@ -36,10 +36,10 @@ "@babel/core": "^7.12.3", "@babel/register": "^7.12.1", "@babel/runtime": "^7.12.1", - "@polkadot/api": "2.5.2-4", - "@polkadot/metadata": "2.5.2-4", - "@polkadot/rpc-provider": "2.5.2-4", - "@polkadot/types": "2.5.2-4", + "@polkadot/api": "2.5.2-5", + "@polkadot/metadata": "2.5.2-5", + "@polkadot/rpc-provider": "2.5.2-5", + "@polkadot/types": "2.5.2-5", "@polkadot/util": "^4.0.1", "handlebars": "^4.7.6", "websocket": "^1.0.32", diff --git a/packages/types-known/package.json b/packages/types-known/package.json index 3cd4edbc05..4e66e3444c 100644 --- a/packages/types-known/package.json +++ b/packages/types-known/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types-known", - "version": "2.5.2-4", + "version": "2.5.2-5", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "keywords": [ @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme", "dependencies": { "@babel/runtime": "^7.12.1", - "@polkadot/types": "2.5.2-4", + "@polkadot/types": "2.5.2-5", "@polkadot/util": "^4.0.1", "bn.js": "^5.1.3" }, diff --git a/packages/types/package.json b/packages/types/package.json index 07e021b0b7..d0812244a4 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "2.5.2-4", + "version": "2.5.2-5", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [ @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.12.1", - "@polkadot/metadata": "2.5.2-4", + "@polkadot/metadata": "2.5.2-5", "@polkadot/util": "^4.0.1", "@polkadot/util-crypto": "^4.0.1", "@types/bn.js": "^4.11.6", diff --git a/yarn.lock b/yarn.lock index 1351a7f71f..1dd14cb5b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1751,27 +1751,27 @@ __metadata: resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: "@babel/runtime": ^7.12.1 - "@polkadot/api": 2.5.2-4 - "@polkadot/types": 2.5.2-4 + "@polkadot/api": 2.5.2-5 + "@polkadot/types": 2.5.2-5 "@polkadot/util": ^4.0.1 bn.js: ^5.1.3 rxjs: ^6.6.3 peerDependencies: - "@polkadot/api": 2.5.2-4 + "@polkadot/api": 2.5.2-5 "@polkadot/util": "*" languageName: unknown linkType: soft -"@polkadot/api-derive@2.5.2-4, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@2.5.2-5, @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.1 - "@polkadot/api": 2.5.2-4 + "@polkadot/api": 2.5.2-5 "@polkadot/keyring": ^4.0.1 - "@polkadot/rpc-core": 2.5.2-4 - "@polkadot/rpc-provider": 2.5.2-4 - "@polkadot/types": 2.5.2-4 + "@polkadot/rpc-core": 2.5.2-5 + "@polkadot/rpc-provider": 2.5.2-5 + "@polkadot/types": 2.5.2-5 "@polkadot/util": ^4.0.1 "@polkadot/util-crypto": ^4.0.1 bn.js: ^5.1.3 @@ -1783,18 +1783,18 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/api@2.5.2-4, @polkadot/api@workspace:packages/api": +"@polkadot/api@2.5.2-5, @polkadot/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: "@babel/runtime": ^7.12.1 - "@polkadot/api-derive": 2.5.2-4 + "@polkadot/api-derive": 2.5.2-5 "@polkadot/keyring": ^4.0.1 - "@polkadot/metadata": 2.5.2-4 - "@polkadot/rpc-core": 2.5.2-4 - "@polkadot/rpc-provider": 2.5.2-4 - "@polkadot/types": 2.5.2-4 - "@polkadot/types-known": 2.5.2-4 + "@polkadot/metadata": 2.5.2-5 + "@polkadot/rpc-core": 2.5.2-5 + "@polkadot/rpc-provider": 2.5.2-5 + "@polkadot/types": 2.5.2-5 + "@polkadot/types-known": 2.5.2-5 "@polkadot/util": ^4.0.1 "@polkadot/util-crypto": ^4.0.1 bn.js: ^5.1.3 @@ -1913,14 +1913,14 @@ __metadata: languageName: node linkType: hard -"@polkadot/metadata@2.5.2-4, @polkadot/metadata@workspace:packages/metadata": +"@polkadot/metadata@2.5.2-5, @polkadot/metadata@workspace:packages/metadata": version: 0.0.0-use.local resolution: "@polkadot/metadata@workspace:packages/metadata" dependencies: "@babel/runtime": ^7.12.1 "@polkadot/keyring": ^4.0.1 - "@polkadot/types": 2.5.2-4 - "@polkadot/types-known": 2.5.2-4 + "@polkadot/types": 2.5.2-5 + "@polkadot/types-known": 2.5.2-5 "@polkadot/util": ^4.0.1 "@polkadot/util-crypto": ^4.0.1 bn.js: ^5.1.3 @@ -1939,15 +1939,15 @@ __metadata: languageName: node linkType: hard -"@polkadot/rpc-core@2.5.2-4, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@2.5.2-5, @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.1 "@polkadot/keyring": ^4.0.1 - "@polkadot/metadata": 2.5.2-4 - "@polkadot/rpc-provider": 2.5.2-4 - "@polkadot/types": 2.5.2-4 + "@polkadot/metadata": 2.5.2-5 + "@polkadot/rpc-provider": 2.5.2-5 + "@polkadot/types": 2.5.2-5 "@polkadot/util": ^4.0.1 memoizee: ^0.4.14 rxjs: ^6.6.3 @@ -1956,14 +1956,14 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/rpc-provider@2.5.2-4, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@2.5.2-5, @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.1 "@polkadot/keyring": ^4.0.1 - "@polkadot/metadata": 2.5.2-4 - "@polkadot/types": 2.5.2-4 + "@polkadot/metadata": 2.5.2-5 + "@polkadot/types": 2.5.2-5 "@polkadot/util": ^4.0.1 "@polkadot/util-crypto": ^4.0.1 "@polkadot/x-fetch": ^4.0.1 @@ -1994,10 +1994,10 @@ __metadata: "@babel/core": ^7.12.3 "@babel/register": ^7.12.1 "@babel/runtime": ^7.12.1 - "@polkadot/api": 2.5.2-4 - "@polkadot/metadata": 2.5.2-4 - "@polkadot/rpc-provider": 2.5.2-4 - "@polkadot/types": 2.5.2-4 + "@polkadot/api": 2.5.2-5 + "@polkadot/metadata": 2.5.2-5 + "@polkadot/rpc-provider": 2.5.2-5 + "@polkadot/types": 2.5.2-5 "@polkadot/util": ^4.0.1 "@types/websocket": ^1.0.1 "@types/yargs": ^15.0.9 @@ -2015,12 +2015,12 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types-known@2.5.2-4, @polkadot/types-known@workspace:packages/types-known": +"@polkadot/types-known@2.5.2-5, @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.1 - "@polkadot/types": 2.5.2-4 + "@polkadot/types": 2.5.2-5 "@polkadot/util": ^4.0.1 "@types/bn.js": ^4.11.6 bn.js: ^5.1.3 @@ -2029,13 +2029,13 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types@2.5.2-4, @polkadot/types@workspace:packages/types": +"@polkadot/types@2.5.2-5, @polkadot/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: "@babel/runtime": ^7.12.1 "@polkadot/keyring": ^4.0.1 - "@polkadot/metadata": 2.5.2-4 + "@polkadot/metadata": 2.5.2-5 "@polkadot/util": ^4.0.1 "@polkadot/util-crypto": ^4.0.1 "@types/bn.js": ^4.11.6