diff --git a/docs/METHODS_CONSTANTS.md b/docs/METHODS_CONSTANTS.md index a9802b002d..e35835df3d 100644 --- a/docs/METHODS_CONSTANTS.md +++ b/docs/METHODS_CONSTANTS.md @@ -156,7 +156,7 @@ ___ ___ -### finality_tracker +### finalityTracker ▸ **reportLatency**: `BlockNumber` - **summary**: The delay after which point things become suspicious. Default is 1000. @@ -167,7 +167,7 @@ ___ ___ -### im_online +### imOnline ▸ **sessionsPerEra**: `SessionIndex` - **summary**: Number of sessions per era. diff --git a/docs/METHODS_EVENTS.md b/docs/METHODS_EVENTS.md index 134642d27c..e5fd90da8e 100644 --- a/docs/METHODS_EVENTS.md +++ b/docs/METHODS_EVENTS.md @@ -3,12 +3,10 @@ Events are emitted for certain operations on the runtime. The following sections describe the events that are part of the default Substrate runtime. - **[balances](#balances)** -- **[collective](#collective)** - -- **[collective](#collective)** - - **[contracts](#contracts)** +- **[council](#council)** + - **[democracy](#democracy)** - **[elections](#elections)** @@ -27,6 +25,8 @@ Events are emitted for certain operations on the runtime. The following sections - **[system](#system)** +- **[technicalCommittee](#technicalCommittee)** + - **[treasury](#treasury)** @@ -47,52 +47,6 @@ ___ ___ -### collective - -▸ **Approved**(`Hash`) -- **summary**: A motion was approved by the required threshold. - -▸ **Disapproved**(`Hash`) -- **summary**: A motion was not approved by the required threshold. - -▸ **Executed**(`Hash`, `bool`) -- **summary**: A motion was executed; `bool` is true if returned without error. - -▸ **MemberExecuted**(`Hash`, `bool`) -- **summary**: A single member did some action; `bool` is true if returned without error. - -▸ **Proposed**(`AccountId`, `ProposalIndex`, `Hash`, `MemberCount`) -- **summary**: A motion (given hash) has been proposed (by given account) with a threshold (given `MemberCount`). - -▸ **Voted**(`AccountId`, `Hash`, `bool`, `MemberCount`, `MemberCount`) -- **summary**: A motion (given hash) has been voted on by given account, leaving a tally (yes votes and no votes given respectively as `MemberCount`). - -___ - - -### collective - -▸ **Approved**(`Hash`) -- **summary**: A motion was approved by the required threshold. - -▸ **Disapproved**(`Hash`) -- **summary**: A motion was not approved by the required threshold. - -▸ **Executed**(`Hash`, `bool`) -- **summary**: A motion was executed; `bool` is true if returned without error. - -▸ **MemberExecuted**(`Hash`, `bool`) -- **summary**: A single member did some action; `bool` is true if returned without error. - -▸ **Proposed**(`AccountId`, `ProposalIndex`, `Hash`, `MemberCount`) -- **summary**: A motion (given hash) has been proposed (by given account) with a threshold (given `MemberCount`). - -▸ **Voted**(`AccountId`, `Hash`, `bool`, `MemberCount`, `MemberCount`) -- **summary**: A motion (given hash) has been voted on by given account, leaving a tally (yes votes and no votes given respectively as `MemberCount`). - -___ - - ### contracts ▸ **CodeStored**(`Hash`) @@ -116,6 +70,29 @@ ___ ___ +### council + +▸ **Approved**(`Hash`) +- **summary**: A motion was approved by the required threshold. + +▸ **Disapproved**(`Hash`) +- **summary**: A motion was not approved by the required threshold. + +▸ **Executed**(`Hash`, `bool`) +- **summary**: A motion was executed; `bool` is true if returned without error. + +▸ **MemberExecuted**(`Hash`, `bool`) +- **summary**: A single member did some action; `bool` is true if returned without error. + +▸ **Proposed**(`AccountId`, `ProposalIndex`, `Hash`, `MemberCount`) +- **summary**: A motion (given hash) has been proposed (by given account) with a threshold (given `MemberCount`). + +▸ **Voted**(`AccountId`, `Hash`, `bool`, `MemberCount`, `MemberCount`) +- **summary**: A motion (given hash) has been voted on by given account, leaving a tally (yes votes and no votes given respectively as `MemberCount`). + +___ + + ### democracy ▸ **Cancelled**(`ReferendumIndex`) @@ -234,6 +211,29 @@ ___ ___ +### technicalCommittee + +▸ **Approved**(`Hash`) +- **summary**: A motion was approved by the required threshold. + +▸ **Disapproved**(`Hash`) +- **summary**: A motion was not approved by the required threshold. + +▸ **Executed**(`Hash`, `bool`) +- **summary**: A motion was executed; `bool` is true if returned without error. + +▸ **MemberExecuted**(`Hash`, `bool`) +- **summary**: A single member did some action; `bool` is true if returned without error. + +▸ **Proposed**(`AccountId`, `ProposalIndex`, `Hash`, `MemberCount`) +- **summary**: A motion (given hash) has been proposed (by given account) with a threshold (given `MemberCount`). + +▸ **Voted**(`AccountId`, `Hash`, `bool`, `MemberCount`, `MemberCount`) +- **summary**: A motion (given hash) has been voted on by given account, leaving a tally (yes votes and no votes given respectively as `MemberCount`). + +___ + + ### treasury ▸ **Awarded**(`ProposalIndex`, `Balance`, `AccountId`) diff --git a/docs/METHODS_EXTRINSICS.md b/docs/METHODS_EXTRINSICS.md index d8d6662cc8..c9321262ad 100644 --- a/docs/METHODS_EXTRINSICS.md +++ b/docs/METHODS_EXTRINSICS.md @@ -5,12 +5,10 @@ _The following sections contain Extrinsics methods are part of the default Subst - **[balances](#balances)** -- **[collective](#collective)** - -- **[collective](#collective)** - - **[contracts](#contracts)** +- **[council](#council)** + - **[democracy](#democracy)** - **[elections](#elections)** @@ -29,6 +27,8 @@ _The following sections contain Extrinsics methods are part of the default Subst - **[system](#system)** +- **[technicalCommittee](#technicalCommittee)** + - **[timestamp](#timestamp)** - **[treasury](#treasury)** @@ -56,40 +56,6 @@ ___ ___ -### collective - -▸ **execute**(proposal: `Proposal`) -- **summary**: Dispatch a proposal from a member using the `Member` origin. Origin must be a member of the collective. - -▸ **propose**(threshold: `Compact`, proposal: `Proposal`) -- **summary**: # - Bounded storage reads and writes. - Argument `threshold` has bearing on weight. # - -▸ **setMembers**(new_members: `Vec`) -- **summary**: Set the collective's membership manually to `new_members`. Be nice to the chain and provide it pre-sorted. Requires root origin. - -▸ **vote**(proposal: `Hash`, index: `Compact`, approve: `bool`) -- **summary**: # - Bounded storage read and writes. - Will be slightly heavier if the proposal is approved / disapproved after the vote. # - -___ - - -### collective - -▸ **execute**(proposal: `Proposal`) -- **summary**: Dispatch a proposal from a member using the `Member` origin. Origin must be a member of the collective. - -▸ **propose**(threshold: `Compact`, proposal: `Proposal`) -- **summary**: # - Bounded storage reads and writes. - Argument `threshold` has bearing on weight. # - -▸ **setMembers**(new_members: `Vec`) -- **summary**: Set the collective's membership manually to `new_members`. Be nice to the chain and provide it pre-sorted. Requires root origin. - -▸ **vote**(proposal: `Hash`, index: `Compact`, approve: `bool`) -- **summary**: # - Bounded storage read and writes. - Will be slightly heavier if the proposal is approved / disapproved after the vote. # - -___ - - ### contracts ▸ **call**(dest: `Address`, value: `Compact`, gas_limit: `Compact`, data: `Bytes`) @@ -113,6 +79,23 @@ ___ ___ +### council + +▸ **execute**(proposal: `Proposal`) +- **summary**: Dispatch a proposal from a member using the `Member` origin. Origin must be a member of the collective. + +▸ **propose**(threshold: `Compact`, proposal: `Proposal`) +- **summary**: # - Bounded storage reads and writes. - Argument `threshold` has bearing on weight. # + +▸ **setMembers**(new_members: `Vec`) +- **summary**: Set the collective's membership manually to `new_members`. Be nice to the chain and provide it pre-sorted. Requires root origin. + +▸ **vote**(proposal: `Hash`, index: `Compact`, approve: `bool`) +- **summary**: # - Bounded storage read and writes. - Will be slightly heavier if the proposal is approved / disapproved after the vote. # + +___ + + ### democracy ▸ **cancelQueued**(when: `Compact`, which: `Compact`, what: `Compact`) @@ -310,6 +293,23 @@ ___ ___ +### technicalCommittee + +▸ **execute**(proposal: `Proposal`) +- **summary**: Dispatch a proposal from a member using the `Member` origin. Origin must be a member of the collective. + +▸ **propose**(threshold: `Compact`, proposal: `Proposal`) +- **summary**: # - Bounded storage reads and writes. - Argument `threshold` has bearing on weight. # + +▸ **setMembers**(new_members: `Vec`) +- **summary**: Set the collective's membership manually to `new_members`. Be nice to the chain and provide it pre-sorted. Requires root origin. + +▸ **vote**(proposal: `Hash`, index: `Compact`, approve: `bool`) +- **summary**: # - Bounded storage read and writes. - Will be slightly heavier if the proposal is approved / disapproved after the vote. # + +___ + + ### timestamp ▸ **set**(now: `Compact`) diff --git a/docs/METHODS_STORAGE.md b/docs/METHODS_STORAGE.md index dc58538ceb..a068163d3c 100644 --- a/docs/METHODS_STORAGE.md +++ b/docs/METHODS_STORAGE.md @@ -7,12 +7,10 @@ _The following sections contain Storage methods are part of the default Substrat - **[balances](#balances)** -- **[collective](#collective)** - -- **[collective](#collective)** - - **[contracts](#contracts)** +- **[council](#council)** + - **[democracy](#democracy)** - **[elections](#elections)** @@ -31,6 +29,8 @@ _The following sections contain Storage methods are part of the default Substrat - **[system](#system)** +- **[technicalCommittee](#technicalCommittee)** + - **[timestamp](#timestamp)** - **[treasury](#treasury)** @@ -86,46 +86,6 @@ ___ ___ -### collective - -▸ **members**(): `Vec` -- **summary**: The current members of the collective. This is stored sorted (just by value). - -▸ **proposalCount**(): `u32` -- **summary**: Proposals so far. - -▸ **proposalOf**(`Hash`): `Option` -- **summary**: Actual proposal for a given hash, if it's current. - -▸ **proposals**(): `Vec` -- **summary**: The hashes of the active proposals. - -▸ **voting**(`Hash`): `Option` -- **summary**: Votes on a given proposal, if it is ongoing. - -___ - - -### collective - -▸ **members**(): `Vec` -- **summary**: The current members of the collective. This is stored sorted (just by value). - -▸ **proposalCount**(): `u32` -- **summary**: Proposals so far. - -▸ **proposalOf**(`Hash`): `Option` -- **summary**: Actual proposal for a given hash, if it's current. - -▸ **proposals**(): `Vec` -- **summary**: The hashes of the active proposals. - -▸ **voting**(`Hash`): `Option` -- **summary**: Votes on a given proposal, if it is ongoing. - -___ - - ### contracts ▸ **accountCounter**(): `u64` @@ -152,6 +112,26 @@ ___ ___ +### council + +▸ **members**(): `Vec` +- **summary**: The current members of the collective. This is stored sorted (just by value). + +▸ **proposalCount**(): `u32` +- **summary**: Proposals so far. + +▸ **proposalOf**(`Hash`): `Option` +- **summary**: Actual proposal for a given hash, if it's current. + +▸ **proposals**(): `Vec` +- **summary**: The hashes of the active proposals. + +▸ **voting**(`Hash`): `Option` +- **summary**: Votes on a given proposal, if it is ongoing. + +___ + + ### democracy ▸ **blacklist**(`Hash`): `Option<(BlockNumber,Vec)>` @@ -275,7 +255,7 @@ ___ ___ -### im_online +### imOnline ▸ **gossipAt**(): `BlockNumber` @@ -449,6 +429,26 @@ ___ ___ +### technicalCommittee + +▸ **members**(): `Vec` +- **summary**: The current members of the collective. This is stored sorted (just by value). + +▸ **proposalCount**(): `u32` +- **summary**: Proposals so far. + +▸ **proposalOf**(`Hash`): `Option` +- **summary**: Actual proposal for a given hash, if it's current. + +▸ **proposals**(): `Vec` +- **summary**: The hashes of the active proposals. + +▸ **voting**(`Hash`): `Option` +- **summary**: Votes on a given proposal, if it is ongoing. + +___ + + ### timestamp ▸ **didUpdate**(): `bool` diff --git a/lerna.json b/lerna.json index 1ef6a46713..fbf8f312f2 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "0.82.0-beta.94" + "version": "0.82.0-beta.95" } diff --git a/package.json b/package.json index 7e6fd8c2d8..dacd6cf53c 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.82.0-beta.94", + "version": "0.82.0-beta.95", "private": true, "engines": { "yarn": "^1.10.1" diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index a54bd81869..da166440d3 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.94", + "version": "0.82.0-beta.95", "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.94" + "@polkadot/types": "^0.82.0-beta.95" } } diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 90b2e2bfb9..62bd5f5461 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.94", + "version": "0.82.0-beta.95", "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.94", - "@polkadot/types": "^0.82.0-beta.94" + "@polkadot/api": "^0.82.0-beta.95", + "@polkadot/types": "^0.82.0-beta.95" }, "devDependencies": { "@polkadot/keyring": "^0.94.1" diff --git a/packages/api-metadata/package.json b/packages/api-metadata/package.json index 3a475f359d..0d7348e403 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.94", + "version": "0.82.0-beta.95", "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.94", + "@polkadot/types": "^0.82.0-beta.95", "@polkadot/util": "^0.94.1", "@polkadot/util-crypto": "^0.94.1" }, diff --git a/packages/api/package.json b/packages/api/package.json index c7438cfb81..13a432e526 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "0.82.0-beta.94", + "version": "0.82.0-beta.95", "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.94", - "@polkadot/api-metadata": "^0.82.0-beta.94", - "@polkadot/rpc-core": "^0.82.0-beta.94", - "@polkadot/rpc-provider": "^0.82.0-beta.94", - "@polkadot/types": "^0.82.0-beta.94", + "@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/util-crypto": "^0.94.1" }, "devDependencies": { diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 4669f492ec..4fcaa9a38b 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.94", + "version": "0.82.0-beta.95", "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.94", - "@polkadot/rpc-provider": "^0.82.0-beta.94", - "@polkadot/types": "^0.82.0-beta.94", + "@polkadot/jsonrpc": "^0.82.0-beta.95", + "@polkadot/rpc-provider": "^0.82.0-beta.95", + "@polkadot/types": "^0.82.0-beta.95", "@polkadot/util": "^0.94.1", "rxjs": "^6.5.2" } diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 211a617582..aa0ab310a7 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.94", + "version": "0.82.0-beta.95", "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.94", + "@polkadot/api-metadata": "^0.82.0-beta.95", "@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 50fd6fa2db..051b6fec3f 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.94", + "version": "0.82.0-beta.95", "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 ff1a8f72af..1a42768889 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "0.82.0-beta.94", + "version": "0.82.0-beta.95", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [