diff --git a/docs/substrate/events.md b/docs/substrate/events.md index 28acbb48ca..f4943fcb6f 100644 --- a/docs/substrate/events.md +++ b/docs/substrate/events.md @@ -35,6 +35,8 @@ Events are emitted for certain operations on the runtime. The following sections - **[treasury](#treasury)** +- **[utility](#utility)** + ___ @@ -287,3 +289,10 @@ ___ ▸ **Spending**(`Balance`) - **summary**: We have ended a spend period and will now allocate funds. + +___ + + +### utility + +▸ **BatchExecuted**(`Vec`) diff --git a/docs/substrate/extrinsics.md b/docs/substrate/extrinsics.md index 68ba70083f..adf459b6f4 100644 --- a/docs/substrate/extrinsics.md +++ b/docs/substrate/extrinsics.md @@ -37,6 +37,8 @@ The following sections contain Extrinsics methods are part of the default Substr - **[treasury](#treasury)** +- **[utility](#utility)** + ___ @@ -161,7 +163,7 @@ ___ ▸ **presentWinner**(candidate: `Address`, total: `Compact`, index: `Compact`) - **summary**: Claim that `candidate` is one of the top `carry_count + desired_seats` candidates. Only works iff the presentation period is active. `candidate` should have at least collected some non-zero `total` votes and `origin` must have enough funds to pay for a potential slash. # - O(voters) compute. - One DB change. # -▸ **proxySetApprovals**(votes: `Vec`, index: `Compact`, hint: `SetIndex`, value: `BalanceOf`) +▸ **proxySetApprovals**(votes: `Vec`, index: `Compact`, hint: `SetIndex`, value: `Compact`) - **summary**: Set candidate approvals from a proxy. Approval slots stay valid as long as candidates in those slots are registered. # - Same as `set_approvals` with one additional storage read. # ▸ **reapInactiveVoter**(reporter_index: `Compact`, who: `Address`, who_index: `Compact`, assumed_vote_index: `Compact`) @@ -173,7 +175,7 @@ ___ ▸ **retractVoter**(index: `Compact`) - **summary**: Remove a voter. All votes are cancelled and the voter deposit is returned. The index must be provided as explained in [`voter_at`] function. Also removes the lock on the balance of the voter. See [`do_set_approvals()`]. # - O(1). - Two fewer DB entries, one DB change. # -▸ **setApprovals**(votes: `Vec`, index: `Compact`, hint: `SetIndex`, value: `BalanceOf`) +▸ **setApprovals**(votes: `Vec`, index: `Compact`, hint: `SetIndex`, value: `Compact`) - **summary**: Set candidate approvals. Approval slots stay valid as long as candidates in those slots are registered. Locks `value` from the balance of `origin` indefinitely. Only [`retract_voter`] or [`reap_inactive_voter`] can unlock the balance. `hint` argument is interpreted differently based on: - if `origin` is setting approvals for the first time: The index will be checked for being a valid _hole_ in the voter list. - if the hint is correctly pointing to a hole, no fee is deducted from `origin`. - Otherwise, the call will succeed but the index is ignored and simply a push to the last chunk with free space happens. If the new push causes a new chunk to be created, a fee indicated by [`VotingFee`] is deducted. - if `origin` is already a voter: the index __must__ be valid and point to the correct position of the `origin` in the current voters list. Note that any trailing `false` votes in `votes` is ignored; In approval voting, not voting for a candidate and voting false, are equal. # - O(1). - Two extra DB entries, one DB change. - Argument `votes` is limited in length to number of candidates. # ▸ **setDesiredSeats**(count: `Compact`) @@ -285,6 +287,9 @@ ___ ▸ **fillBlock**() - **summary**: A big dispatch that will disallow any other transaction to be included. +▸ **killPrefix**(prefix: `Key`) +- **summary**: Kill all storage items with a key that starts with the given prefix. + ▸ **killStorage**(keys: `Vec`) - **summary**: Kill some items from storage. @@ -355,3 +360,11 @@ ___ ▸ **rejectProposal**(proposal_id: `Compact`) - **summary**: Reject a proposed spend. The original deposit will be slashed. # - O(1). - Limited storage reads. - One DB clear. # + +___ + + +### utility + +▸ **batch**(calls: `Vec`) +- **summary**: Send a batch of dispatch calls (only root). diff --git a/lerna.json b/lerna.json index ede61c32af..150738ca58 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "0.94.0-beta.14" + "version": "0.94.0-beta.15" } diff --git a/package.json b/package.json index 27dfc6d6e6..fcb4ffa05c 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.94.0-beta.14", + "version": "0.94.0-beta.15", "private": true, "engines": { "yarn": "^1.10.1" diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index 61bab76220..aa2bb56904 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "0.94.0-beta.14", + "version": "0.94.0-beta.15", "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.6.2", - "@polkadot/types": "^0.94.0-beta.14" + "@polkadot/types": "^0.94.0-beta.15" } } diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 5f75895d3d..a9a7f672d0 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "0.94.0-beta.14", + "version": "0.94.0-beta.15", "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.6.2", - "@polkadot/api": "^0.94.0-beta.14", - "@polkadot/types": "^0.94.0-beta.14" + "@polkadot/api": "^0.94.0-beta.15", + "@polkadot/types": "^0.94.0-beta.15" }, "devDependencies": { "@polkadot/keyring": "^1.5.1" diff --git a/packages/api-metadata/package.json b/packages/api-metadata/package.json index ae285b6a16..c046c481e8 100644 --- a/packages/api-metadata/package.json +++ b/packages/api-metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-metadata", - "version": "0.94.0-beta.14", + "version": "0.94.0-beta.15", "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.6.2", - "@polkadot/types": "^0.94.0-beta.14", + "@polkadot/types": "^0.94.0-beta.15", "@polkadot/util": "^1.5.1", "@polkadot/util-crypto": "^1.5.1" }, diff --git a/packages/api/package.json b/packages/api/package.json index c27e684828..fd8cda5b80 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "0.94.0-beta.14", + "version": "0.94.0-beta.15", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "keywords": [ @@ -27,12 +27,12 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.6.2", - "@polkadot/api-derive": "^0.94.0-beta.14", - "@polkadot/api-metadata": "^0.94.0-beta.14", + "@polkadot/api-derive": "^0.94.0-beta.15", + "@polkadot/api-metadata": "^0.94.0-beta.15", "@polkadot/keyring": "^1.5.1", - "@polkadot/rpc-core": "^0.94.0-beta.14", - "@polkadot/rpc-provider": "^0.94.0-beta.14", - "@polkadot/types": "^0.94.0-beta.14", + "@polkadot/rpc-core": "^0.94.0-beta.15", + "@polkadot/rpc-provider": "^0.94.0-beta.15", + "@polkadot/types": "^0.94.0-beta.15", "@polkadot/util-crypto": "^1.5.1" }, "devDependencies": { diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 1dac77a68e..8fbe297aac 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "0.94.0-beta.14", + "version": "0.94.0-beta.15", "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.6.2", - "@polkadot/jsonrpc": "^0.94.0-beta.14", - "@polkadot/rpc-provider": "^0.94.0-beta.14", - "@polkadot/types": "^0.94.0-beta.14", + "@polkadot/jsonrpc": "^0.94.0-beta.15", + "@polkadot/rpc-provider": "^0.94.0-beta.15", + "@polkadot/types": "^0.94.0-beta.15", "@polkadot/util": "^1.5.1", "rxjs": "^6.5.3" } diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 3ee0342c74..c1f30ca8d8 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "0.94.0-beta.14", + "version": "0.94.0-beta.15", "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.6.2", - "@polkadot/api-metadata": "^0.94.0-beta.14", + "@polkadot/api-metadata": "^0.94.0-beta.15", "@polkadot/util": "^1.5.1", "@polkadot/util-crypto": "^1.5.1", "@types/nock": "^11.1.0", diff --git a/packages/type-jsonrpc/package.json b/packages/type-jsonrpc/package.json index 9b5b56a80b..242831dc40 100644 --- a/packages/type-jsonrpc/package.json +++ b/packages/type-jsonrpc/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/jsonrpc", - "version": "0.94.0-beta.14", + "version": "0.94.0-beta.15", "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 f3b9484972..6909c2d929 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "0.94.0-beta.14", + "version": "0.94.0-beta.15", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [