diff --git a/docs/METHODS_STORAGE.md b/docs/METHODS_STORAGE.md index a068163d3c..fa504b8af7 100644 --- a/docs/METHODS_STORAGE.md +++ b/docs/METHODS_STORAGE.md @@ -1,10 +1,10 @@ ## Storage _The following sections contain Storage methods are part of the default Substrate runtime._ -- **[aura](#aura)** - - **[authorship](#authorship)** +- **[babe](#babe)** + - **[balances](#balances)** - **[contracts](#contracts)** @@ -41,17 +41,6 @@ _The following sections contain Storage methods are part of the default Substrat ___ -### aura - -▸ **authorities**(): `Vec` -- **summary**: The current authorities - -▸ **lastTimestamp**(): `Moment` -- **summary**: The last timestamp. - -___ - - ### authorship ▸ **author**(): `Option` @@ -66,6 +55,32 @@ ___ ___ +### babe + +▸ **authorities**(): `Vec<(AuthorityId,BabeWeight)>` +- **summary**: Current epoch authorities. + +▸ **currentSlot**(): `u64` +- **summary**: Current slot number. + +▸ **epochIndex**(): `u64` +- **summary**: Current epoch index. + +▸ **epochStartSlot**(): `u64` +- **summary**: Slot at which the current epoch started. It is possible that no block was authored at the given slot and the epoch change was signalled later than this. + +▸ **nextRandomness**(): `[u8;32]` +- **summary**: Next epoch randomness. + +▸ **randomness**(): `[u8;32]` +- **summary**: The epoch randomness for the *current* epoch. # Security This MUST NOT be used for gambling, as it can be influenced by a malicious validator in the short term. It MAY be used in many cryptographic protocols, however, so long as one remembers that this (like everything else on-chain) it is public. For example, it can be used where a number is needed that cannot have been chosen by an adversary, for purposes such as public-coin zero-knowledge proofs. + +▸ **underConstruction**(): `[u8;32]` +- **summary**: Randomness under construction. + +___ + + ### balances ▸ **freeBalance**(`AccountId`): `Balance` @@ -317,11 +332,11 @@ ___ ▸ **currentEra**(): `EraIndex` - **summary**: The current era index. -▸ **currentEraReward**(): `BalanceOf` -- **summary**: The accumulated reward for the current era. Reset to zero at the beginning of the era and increased for every successfully finished session. +▸ **currentEraRewards**(): `EraRewards` +- **summary**: Rewards for the current era. Using indices of current elected set. -▸ **currentSessionReward**(): `BalanceOf` -- **summary**: Maximum reward, per validator, that is provided per acceptable session. +▸ **currentEraStart**(): `MomentOf` +- **summary**: The start of the current era. ▸ **forceNewEra**(): `bool` - **summary**: True if the next session change will be a new era regardless of index. @@ -350,9 +365,6 @@ ___ ▸ **recentlyOffline**(): `Vec<(AccountId,BlockNumber,u32)>` - **summary**: Most recent `RECENT_OFFLINE_COUNT` instances. (Who it was, when it was reported, how many instances they were offline for). -▸ **sessionReward**(): `Perbill` -- **summary**: Maximum reward, per validator, that is provided per acceptable session. - ▸ **slashCount**(`AccountId`): `u32` - **summary**: The number of times a given validator has been reported offline. This gets decremented by one each era that passes. diff --git a/lerna.json b/lerna.json index fbf8f312f2..032f18273e 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "0.82.0-beta.95" + "version": "0.82.0-beta.96" } diff --git a/package.json b/package.json index dacd6cf53c..b52b5ccf95 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.82.0-beta.95", + "version": "0.82.0-beta.96", "private": true, "engines": { "yarn": "^1.10.1" diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index da166440d3..44f8e0f530 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.95", + "version": "0.82.0-beta.96", "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.5", - "@polkadot/types": "^0.82.0-beta.95" + "@polkadot/types": "^0.82.0-beta.96" } } diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 62bd5f5461..7868a883d0 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.95", + "version": "0.82.0-beta.96", "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.5", - "@polkadot/api": "^0.82.0-beta.95", - "@polkadot/types": "^0.82.0-beta.95" + "@polkadot/api": "^0.82.0-beta.96", + "@polkadot/types": "^0.82.0-beta.96" }, "devDependencies": { "@polkadot/keyring": "^0.94.1" diff --git a/packages/api-metadata/package.json b/packages/api-metadata/package.json index 0d7348e403..523b694852 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.95", + "version": "0.82.0-beta.96", "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.5", - "@polkadot/types": "^0.82.0-beta.95", + "@polkadot/types": "^0.82.0-beta.96", "@polkadot/util": "^0.94.1", "@polkadot/util-crypto": "^0.94.1" }, diff --git a/packages/api/package.json b/packages/api/package.json index 13a432e526..6e71c702b3 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "0.82.0-beta.95", + "version": "0.82.0-beta.96", "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.5", - "@polkadot/api-derive": "^0.82.0-beta.95", - "@polkadot/api-metadata": "^0.82.0-beta.95", - "@polkadot/rpc-core": "^0.82.0-beta.95", - "@polkadot/rpc-provider": "^0.82.0-beta.95", - "@polkadot/types": "^0.82.0-beta.95", + "@polkadot/api-derive": "^0.82.0-beta.96", + "@polkadot/api-metadata": "^0.82.0-beta.96", + "@polkadot/rpc-core": "^0.82.0-beta.96", + "@polkadot/rpc-provider": "^0.82.0-beta.96", + "@polkadot/types": "^0.82.0-beta.96", "@polkadot/util-crypto": "^0.94.1" }, "devDependencies": { diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 4fcaa9a38b..79d4735c96 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.95", + "version": "0.82.0-beta.96", "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.5", - "@polkadot/jsonrpc": "^0.82.0-beta.95", - "@polkadot/rpc-provider": "^0.82.0-beta.95", - "@polkadot/types": "^0.82.0-beta.95", + "@polkadot/jsonrpc": "^0.82.0-beta.96", + "@polkadot/rpc-provider": "^0.82.0-beta.96", + "@polkadot/types": "^0.82.0-beta.96", "@polkadot/util": "^0.94.1", "rxjs": "^6.5.2" } diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index aa0ab310a7..3450bb9d4e 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.95", + "version": "0.82.0-beta.96", "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.5", - "@polkadot/api-metadata": "^0.82.0-beta.95", + "@polkadot/api-metadata": "^0.82.0-beta.96", "@polkadot/util": "^0.94.1", "@polkadot/util-crypto": "^0.94.1", "@types/nock": "^10.0.3", diff --git a/packages/type-jsonrpc/package.json b/packages/type-jsonrpc/package.json index 051b6fec3f..5df1df4f42 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.95", + "version": "0.82.0-beta.96", "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 1a42768889..78671aa65a 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "0.82.0-beta.95", + "version": "0.82.0-beta.96", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [