diff --git a/docs/METHODS_EXTRINSICS.md b/docs/METHODS_EXTRINSICS.md
index bc640f849f..a705748009 100644
--- a/docs/METHODS_EXTRINSICS.md
+++ b/docs/METHODS_EXTRINSICS.md
@@ -196,7 +196,7 @@ ___
### session
▸ **setKeys**(keys: `Keys`, proof: `Bytes`)
-- **summary**: Sets the session key(s) of the function caller to `key`. Allows an account to set its session key prior to becoming a validator. This doesn't take effect until the next session. The dispatch origin of this function must be signed. # - O(1). - One extra DB entry. #
+- **summary**: Sets the session key(s) of the function caller to `key`. Allows an account to set its session key prior to becoming a validator. This doesn't take effect until the next session. The dispatch origin of this function must be signed. # - O(log n) in number of accounts. - One extra DB entry. #
___
diff --git a/docs/METHODS_STORAGE.md b/docs/METHODS_STORAGE.md
index d6d50d7960..e5cc317ac7 100644
--- a/docs/METHODS_STORAGE.md
+++ b/docs/METHODS_STORAGE.md
@@ -242,25 +242,19 @@ ___
### session
-▸ **active**(`u32`): `Vec`
-- **summary**: The keys that are currently active.
-
▸ **changed**(): `bool`
- **summary**: True if anything has changed in this session.
▸ **currentIndex**(): `SessionIndex`
- **summary**: Current index of the session.
-▸ **nextKeyFor**(`AccountId`): `Option`
-- **summary**: The next key to be used for a given validator. At the end of the session, they will be moved into the `QueuedKeys` and so changes here will not take effect for at least one whole session.
-
▸ **queuedChanged**(): `bool`
- **summary**: Queued keys changed.
-▸ **queuedKeys**(): `Vec<(AccountId,Keys)>`
+▸ **queuedKeys**(): `Vec<(ValidatorId,Keys)>`
- **summary**: The queued keys for the next session. When the next session begins, these keys will be used to determine the validator's session keys.
-▸ **validators**(): `Vec`
+▸ **validators**(): `Vec`
- **summary**: The current set of validators.
___
@@ -271,6 +265,9 @@ ___
▸ **bonded**(`AccountId`): `Option`
- **summary**: Map from all locked "stash" accounts to the controller account.
+▸ **bondedEras**(): `Vec<(EraIndex,SessionIndex)>`
+- **summary**: A mapping from still-bonded eras to the first session index of that era.
+
▸ **currentElected**(): `Vec`
- **summary**: The currently elected validator set keyed by stash account ID.
diff --git a/lerna.json b/lerna.json
index c5ccb5e5f5..498768b965 100644
--- a/lerna.json
+++ b/lerna.json
@@ -9,5 +9,5 @@
"packages": [
"packages/*"
],
- "version": "0.82.0-beta.39"
+ "version": "0.82.0-beta.40"
}
diff --git a/package.json b/package.json
index 15ab4a87d6..fa7b69794d 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "version": "0.82.0-beta.39",
+ "version": "0.82.0-beta.40",
"private": true,
"engines": {
"yarn": "^1.10.1"
diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json
index 097b1702ce..90e5c32cb7 100644
--- a/packages/api-contract/package.json
+++ b/packages/api-contract/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-contract",
- "version": "0.82.0-beta.39",
+ "version": "0.82.0-beta.40",
"description": "Interfaces for interacting with contracts and contract ABIs",
"main": "index.js",
"keywords": [
@@ -27,6 +27,6 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
"dependencies": {
"@babel/runtime": "^7.5.2",
- "@polkadot/types": "^0.82.0-beta.39"
+ "@polkadot/types": "^0.82.0-beta.40"
}
}
diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json
index 5001f38439..f43575f51f 100644
--- a/packages/api-derive/package.json
+++ b/packages/api-derive/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-derive",
- "version": "0.82.0-beta.39",
+ "version": "0.82.0-beta.40",
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
"main": "index.js",
"keywords": [
@@ -28,8 +28,8 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
"dependencies": {
"@babel/runtime": "^7.5.2",
- "@polkadot/api": "^0.82.0-beta.39",
- "@polkadot/types": "^0.82.0-beta.39",
+ "@polkadot/api": "^0.82.0-beta.40",
+ "@polkadot/types": "^0.82.0-beta.40",
"@types/memoizee": "^0.4.2",
"memoizee": "^0.4.14"
},
diff --git a/packages/api-metadata/package.json b/packages/api-metadata/package.json
index 4f505e8c55..303710abc9 100644
--- a/packages/api-metadata/package.json
+++ b/packages/api-metadata/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-metadata",
- "version": "0.82.0-beta.39",
+ "version": "0.82.0-beta.40",
"description": "Helpers to extract information from runtime metadata",
"main": "index.js",
"publishConfig": {
@@ -27,7 +27,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
"dependencies": {
"@babel/runtime": "^7.5.2",
- "@polkadot/types": "^0.82.0-beta.39",
+ "@polkadot/types": "^0.82.0-beta.40",
"@polkadot/util": "^0.94.0-beta.6",
"@polkadot/util-crypto": "^0.94.0-beta.6"
},
diff --git a/packages/api/package.json b/packages/api/package.json
index 075e78c048..5291bf3d2d 100644
--- a/packages/api/package.json
+++ b/packages/api/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api",
- "version": "0.82.0-beta.39",
+ "version": "0.82.0-beta.40",
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
"main": "index.js",
"keywords": [
@@ -27,11 +27,11 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
"dependencies": {
"@babel/runtime": "^7.5.2",
- "@polkadot/api-derive": "^0.82.0-beta.39",
- "@polkadot/api-metadata": "^0.82.0-beta.39",
- "@polkadot/rpc-core": "^0.82.0-beta.39",
- "@polkadot/rpc-provider": "^0.82.0-beta.39",
- "@polkadot/types": "^0.82.0-beta.39",
+ "@polkadot/api-derive": "^0.82.0-beta.40",
+ "@polkadot/api-metadata": "^0.82.0-beta.40",
+ "@polkadot/rpc-core": "^0.82.0-beta.40",
+ "@polkadot/rpc-provider": "^0.82.0-beta.40",
+ "@polkadot/types": "^0.82.0-beta.40",
"@polkadot/util-crypto": "^0.94.0-beta.6"
},
"devDependencies": {
diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json
index 503b188ae3..c6e9c8491e 100644
--- a/packages/rpc-core/package.json
+++ b/packages/rpc-core/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-core",
- "version": "0.82.0-beta.39",
+ "version": "0.82.0-beta.40",
"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.5.2",
- "@polkadot/jsonrpc": "^0.82.0-beta.39",
- "@polkadot/rpc-provider": "^0.82.0-beta.39",
- "@polkadot/types": "^0.82.0-beta.39",
+ "@polkadot/jsonrpc": "^0.82.0-beta.40",
+ "@polkadot/rpc-provider": "^0.82.0-beta.40",
+ "@polkadot/types": "^0.82.0-beta.40",
"@polkadot/util": "^0.94.0-beta.6",
"memoizee": "^0.4.14",
"rxjs": "^6.5.2"
diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json
index 4b04a256a7..10e2fccc65 100644
--- a/packages/rpc-provider/package.json
+++ b/packages/rpc-provider/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-provider",
- "version": "0.82.0-beta.39",
+ "version": "0.82.0-beta.40",
"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.5.2",
- "@polkadot/api-metadata": "^0.82.0-beta.39",
+ "@polkadot/api-metadata": "^0.82.0-beta.40",
"@polkadot/util": "^0.94.0-beta.6",
"@polkadot/util-crypto": "^0.94.0-beta.6",
"@types/nock": "^10.0.3",
diff --git a/packages/type-jsonrpc/package.json b/packages/type-jsonrpc/package.json
index 51ff5fe3d1..34f78d39ae 100644
--- a/packages/type-jsonrpc/package.json
+++ b/packages/type-jsonrpc/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/jsonrpc",
- "version": "0.82.0-beta.39",
+ "version": "0.82.0-beta.40",
"description": "Method definitions for the Polkadot RPC layer",
"main": "index.js",
"publishConfig": {
diff --git a/packages/types/package.json b/packages/types/package.json
index 0c2d3a5fad..3d683bd6fe 100644
--- a/packages/types/package.json
+++ b/packages/types/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types",
- "version": "0.82.0-beta.39",
+ "version": "0.82.0-beta.40",
"description": "Implementation of the Parity codec",
"main": "index.js",
"keywords": [