From 47b456664c0705487bab9e57746a7133290c18f0 Mon Sep 17 00:00:00 2001 From: Travis CI <> Date: Wed, 7 Aug 2019 19:32:30 +0000 Subject: [PATCH] [CI Skip] 0.90.0-beta.29 --- docs/METHODS_CONSTANTS.md | 10 --------- docs/METHODS_EVENTS.md | 26 +++++++++++++++++++-- docs/METHODS_EXTRINSICS.md | 36 +++++++++++++++++++++--------- docs/METHODS_STORAGE.md | 23 +++++++++++++++---- lerna.json | 2 +- package.json | 2 +- packages/api-contract/package.json | 4 ++-- packages/api-derive/package.json | 6 ++--- packages/api-metadata/package.json | 4 ++-- packages/api/package.json | 12 +++++----- packages/rpc-core/package.json | 8 +++---- packages/rpc-provider/package.json | 4 ++-- packages/type-jsonrpc/package.json | 2 +- packages/types/package.json | 2 +- 14 files changed, 92 insertions(+), 49 deletions(-) diff --git a/docs/METHODS_CONSTANTS.md b/docs/METHODS_CONSTANTS.md index bdb9e7a89e..04745cbf19 100644 --- a/docs/METHODS_CONSTANTS.md +++ b/docs/METHODS_CONSTANTS.md @@ -13,8 +13,6 @@ _The following sections contain the module constants, also known as parameter ty - **[finalityTracker](#finalityTracker)** -- **[imOnline](#imOnline)** - - **[session](#session)** - **[staking](#staking)** @@ -180,14 +178,6 @@ ___ ___ -### imOnline - -▸ **sessionsPerEra**: `SessionIndex` -- **summary**: Number of sessions per era. - -___ - - ### session ▸ **dedupKeyPrefix**: `Bytes` diff --git a/docs/METHODS_EVENTS.md b/docs/METHODS_EVENTS.md index e5fd90da8e..456a5cd620 100644 --- a/docs/METHODS_EVENTS.md +++ b/docs/METHODS_EVENTS.md @@ -27,6 +27,8 @@ Events are emitted for certain operations on the runtime. The following sections - **[technicalCommittee](#technicalCommittee)** +- **[technicalMembership](#technicalMembership)** + - **[treasury](#treasury)** @@ -153,8 +155,8 @@ ___ ### imOnline -▸ **HeartbeatReceived**(`BlockNumber`, `AuthorityId`) -- **summary**: A new heartbeat was received at this `BlockNumber` from `AuthorityId` +▸ **HeartbeatReceived**(`AuthorityId`) +- **summary**: A new heartbeat was received from `AuthorityId` ___ @@ -234,6 +236,26 @@ ___ ___ +### technicalMembership + +▸ **Dummy**(`PhantomData`) +- **summary**: Phantom member, never used. + +▸ **MemberAdded**() +- **summary**: The given member was added; see the transaction for who. + +▸ **MemberRemoved**() +- **summary**: The given member was removed; see the transaction for who. + +▸ **MembersReset**() +- **summary**: The membership was reset; see the transaction for who the new set is. + +▸ **MembersSwapped**() +- **summary**: Two members were swapped; see the transaction for who. + +___ + + ### treasury ▸ **Awarded**(`ProposalIndex`, `Balance`, `AccountId`) diff --git a/docs/METHODS_EXTRINSICS.md b/docs/METHODS_EXTRINSICS.md index c42933332e..e6e1011961 100644 --- a/docs/METHODS_EXTRINSICS.md +++ b/docs/METHODS_EXTRINSICS.md @@ -29,6 +29,8 @@ _The following sections contain Extrinsics methods are part of the default Subst - **[technicalCommittee](#technicalCommittee)** +- **[technicalMembership](#technicalMembership)** + - **[timestamp](#timestamp)** - **[treasury](#treasury)** @@ -70,9 +72,6 @@ ___ ▸ **putCode**(gas_limit: `Compact`, code: `Bytes`) - **summary**: Stores the given binary Wasm code into the chain's storage and returns its `codehash`. You can instantiate contracts only with stored code. -▸ **restoreTo**(dest: `AccountId`, code_hash: `CodeHash`, rent_allowance: `BalanceOf`, delta: `Vec`) -- **summary**: Allows a contract to restore a tombstone by giving its storage. The contract that wants to restore (i.e. origin of the call, or `msg.sender` in Solidity terms) will compute a tombstone with its storage and the given code_hash. If the computed tombstone match the destination one, the destination contract is restored with the rent_allowance` specified, while the origin sends all its funds to the destination and is removed. - ▸ **updateSchedule**(schedule: `Schedule`) - **summary**: Updates the schedule for metering contracts. The schedule must have a greater version than the stored schedule. @@ -110,16 +109,16 @@ ___ ▸ **emergencyCancel**(ref_index: `ReferendumIndex`) - **summary**: Schedule an emergency cancellation of a referendum. Cannot happen twice to the same referendum. -▸ **emergencyPropose**(proposal: `Proposal`, threshold: `VoteThreshold`, voting_period: `BlockNumber`, delay: `BlockNumber`) -- **summary**: Schedule an emergency referendum. This will create a new referendum for the `proposal`, approved as long as counted votes exceed `threshold` and, if approved, enacted after the given `delay`. It may be called from either the Root or the Emergency origin. - ▸ **externalPropose**(proposal: `Proposal`) - **summary**: Schedule a referendum to be tabled once it is legal to schedule an external referendum. -▸ **externalProposeMajority**(proposal: `Proposal`) -- **summary**: Schedule a majority-carries referendum to be tabled next once it is legal to schedule an external referendum. +▸ **externalProposeDefault**(proposal: `Proposal`) +- **summary**: Schedule a negative-turnout-bias referendum to be tabled next once it is legal to schedule an external referendum. Unlike `external_propose`, blacklisting has no effect on this and it may replace a pre-scheduled `external_propose` call. -▸ **externalPush**(proposal_hash: `Hash`, voting_period: `BlockNumber`, delay: `BlockNumber`) +▸ **externalProposeMajority**(proposal: `Proposal`) +- **summary**: Schedule a majority-carries referendum to be tabled next once it is legal to schedule an external referendum. Unlike `external_propose`, blacklisting has no effect on this and it may replace a pre-scheduled `external_propose` call. + +▸ **fastTrack**(proposal_hash: `Hash`, voting_period: `BlockNumber`, delay: `BlockNumber`) - **summary**: Schedule the currently externally-proposed majority-carries referendum to be tabled immediately. If there is no externally-proposed referendum currently, or if there is one but it is not a majority-carries referendum then it fails. - `proposal_hash`: The hash of the current external proposal. - `voting_period`: The period that is allowed for voting on this proposal. - `delay`: The number of block after voting has ended in approval and this should be enacted. Increased to `EmergencyVotingPeriod` if too low. ▸ **propose**(proposal: `Proposal`, value: `Compact`) @@ -205,7 +204,7 @@ ___ ### imOnline -▸ **heartbeat**(heartbeat: `Heartbeat`, _signature: `Bytes`) +▸ **heartbeat**(heartbeat: `Heartbeat`, _signature: `AuthoritySignature`) ___ @@ -313,6 +312,23 @@ ___ ___ +### technicalMembership + +▸ **addMember**(who: `AccountId`) +- **summary**: Add a member `who` to the set. May only be called from `AddOrigin` or root. + +▸ **removeMember**(who: `AccountId`) +- **summary**: Remove a member `who` from the set. May only be called from `RemoveOrigin` or root. + +▸ **resetMembers**(members: `Vec`) +- **summary**: Change the membership to a new set, disregarding the existing membership. Be nice and pass `members` pre-sorted. May only be called from `ResetOrigin` or root. + +▸ **swapMember**(remove: `AccountId`, add: `AccountId`) +- **summary**: Swap out one member `remove` for another `add`. May only be called from `SwapOrigin` or root. + +___ + + ### timestamp ▸ **set**(now: `Compact`) diff --git a/docs/METHODS_STORAGE.md b/docs/METHODS_STORAGE.md index 5c452904e4..d83622fc31 100644 --- a/docs/METHODS_STORAGE.md +++ b/docs/METHODS_STORAGE.md @@ -31,6 +31,8 @@ _The following sections contain Storage methods are part of the default Substrat - **[technicalCommittee](#technicalCommittee)** +- **[technicalMembership](#technicalMembership)** + - **[timestamp](#timestamp)** - **[treasury](#treasury)** @@ -75,8 +77,10 @@ ___ ▸ **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. +▸ **segmentIndex**(): `u32` +- **summary**: Randomness under construction. We make a tradeoff between storage accesses and list length. We store the under-construction randomness in segments of up to `UNDER_CONSTRUCTION_SEGMENT_LENGTH`. Once a segment reaches this length, we begin the next one. We reset all segments and return to `0` at the beginning of every epoch. + +▸ **underConstruction**(`u32`): `Vec<[u8;32]>` ___ @@ -273,10 +277,13 @@ ___ ### imOnline ▸ **gossipAt**(): `BlockNumber` +- **summary**: The block number when we should gossip. -▸ **lastNewEraStart**(): `Option` +▸ **keys**(): `Vec` +- **summary**: The current set of keys that may issue a heartbeat. -▸ **receivedHeartbeats**(`SessionIndex, AuthorityId`): `Bytes` +▸ **receivedHeartbeats**(`SessionIndex, AuthIndex`): `Bytes` +- **summary**: For each session index we keep a mapping of `AuthorityId` to `offchain::OpaqueNetworkState`. ___ @@ -464,6 +471,14 @@ ___ ___ +### technicalMembership + +▸ **members**(): `Vec` +- **summary**: The current membership, stored as an ordered Vec. + +___ + + ### timestamp ▸ **didUpdate**(): `bool` diff --git a/lerna.json b/lerna.json index eb42fa6573..055730352f 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "0.90.0-beta.28" + "version": "0.90.0-beta.29" } diff --git a/package.json b/package.json index 7a3a40bb58..7dfca2eb0f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.90.0-beta.28", + "version": "0.90.0-beta.29", "private": true, "engines": { "yarn": "^1.10.1" diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index 3796ee659d..22f532fdb4 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "0.90.0-beta.28", + "version": "0.90.0-beta.29", "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.90.0-beta.28" + "@polkadot/types": "^0.90.0-beta.29" } } diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index ff147526fe..c9b5fd06d4 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "0.90.0-beta.28", + "version": "0.90.0-beta.29", "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.90.0-beta.28", - "@polkadot/types": "^0.90.0-beta.28" + "@polkadot/api": "^0.90.0-beta.29", + "@polkadot/types": "^0.90.0-beta.29" }, "devDependencies": { "@polkadot/keyring": "^1.0.1" diff --git a/packages/api-metadata/package.json b/packages/api-metadata/package.json index 25c5459449..64b51962c3 100644 --- a/packages/api-metadata/package.json +++ b/packages/api-metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-metadata", - "version": "0.90.0-beta.28", + "version": "0.90.0-beta.29", "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.90.0-beta.28", + "@polkadot/types": "^0.90.0-beta.29", "@polkadot/util": "^1.0.1", "@polkadot/util-crypto": "^1.0.1" }, diff --git a/packages/api/package.json b/packages/api/package.json index 580f1570c1..da87f688a5 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "0.90.0-beta.28", + "version": "0.90.0-beta.29", "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.90.0-beta.28", - "@polkadot/api-metadata": "^0.90.0-beta.28", - "@polkadot/rpc-core": "^0.90.0-beta.28", - "@polkadot/rpc-provider": "^0.90.0-beta.28", - "@polkadot/types": "^0.90.0-beta.28", + "@polkadot/api-derive": "^0.90.0-beta.29", + "@polkadot/api-metadata": "^0.90.0-beta.29", + "@polkadot/rpc-core": "^0.90.0-beta.29", + "@polkadot/rpc-provider": "^0.90.0-beta.29", + "@polkadot/types": "^0.90.0-beta.29", "@polkadot/util-crypto": "^1.0.1" }, "devDependencies": { diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 814b15c1aa..fdfaab32f3 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "0.90.0-beta.28", + "version": "0.90.0-beta.29", "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.90.0-beta.28", - "@polkadot/rpc-provider": "^0.90.0-beta.28", - "@polkadot/types": "^0.90.0-beta.28", + "@polkadot/jsonrpc": "^0.90.0-beta.29", + "@polkadot/rpc-provider": "^0.90.0-beta.29", + "@polkadot/types": "^0.90.0-beta.29", "@polkadot/util": "^1.0.1", "rxjs": "^6.5.2" } diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index f219fe4b70..b9f032a832 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "0.90.0-beta.28", + "version": "0.90.0-beta.29", "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.90.0-beta.28", + "@polkadot/api-metadata": "^0.90.0-beta.29", "@polkadot/util": "^1.0.1", "@polkadot/util-crypto": "^1.0.1", "@types/nock": "^10.0.3", diff --git a/packages/type-jsonrpc/package.json b/packages/type-jsonrpc/package.json index 69b16821d1..03a27a95f5 100644 --- a/packages/type-jsonrpc/package.json +++ b/packages/type-jsonrpc/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/jsonrpc", - "version": "0.90.0-beta.28", + "version": "0.90.0-beta.29", "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 eaea29d59b..a58ef60f86 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "0.90.0-beta.28", + "version": "0.90.0-beta.29", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [