diff --git a/docs/METHODS_EVENTS.md b/docs/METHODS_EVENTS.md index 9f2197959f..da69398a2d 100644 --- a/docs/METHODS_EVENTS.md +++ b/docs/METHODS_EVENTS.md @@ -214,7 +214,7 @@ ___ ### system -▸ **ExtrinsicFailed**() +▸ **ExtrinsicFailed**(`DispatchError`) - **summary**: An extrinsic failed. ▸ **ExtrinsicSuccess**() diff --git a/docs/METHODS_EXTRINSICS.md b/docs/METHODS_EXTRINSICS.md index 03ab45cd21..bf2876a88b 100644 --- a/docs/METHODS_EXTRINSICS.md +++ b/docs/METHODS_EXTRINSICS.md @@ -233,7 +233,7 @@ ___ ### staking ▸ **bond**(controller: `Address`, value: `Compact`, payee: `RewardDestination`) -- **summary**: Take the origin account as a stash and lock up `value` of its balance. `controller` will be the account that controls it. `value` must be more than the `existential_deposit` defined in the Balances module. The dispatch origin for this call must be _Signed_ by the stash account. # - Independent of the arguments. Moderate complexity. - O(1). - Three extra DB entries. NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned unless the `origin` falls below _existential deposit_ and gets removed as dust. # +- **summary**: Take the origin account as a stash and lock up `value` of its balance. `controller` will be the account that controls it. `value` must be more than the `minimum_balance` specified by `T::Currency`. The dispatch origin for this call must be _Signed_ by the stash account. # - Independent of the arguments. Moderate complexity. - O(1). - Three extra DB entries. NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned unless the `origin` falls below _existential deposit_ and gets removed as dust. # ▸ **bondExtra**(max_additional: `Compact`) - **summary**: Add some extra amount that have appeared in the stash `free_balance` into the balance up for staking. Use this if there are additional funds in your stash account that you wish to bond. Unlike [`bond`] or [`unbond`] this function does not impose any limitation on the amount that can be added. The dispatch origin for this call must be _Signed_ by the stash, not the controller. # - Independent of the arguments. Insignificant complexity. - O(1). - One DB entry. # @@ -263,7 +263,7 @@ ___ - **summary**: The ideal number of validators. ▸ **unbond**(value: `Compact`) -- **summary**: Schedule a portion of the stash to be unlocked ready for transfer out after the bond period ends. If this leaves an amount actively bonded less than T::Currency::existential_deposit(), then it is increased to the full amount. Once the unlock period is done, you can call `withdraw_unbonded` to actually move the funds out of management ready for transfer. No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`) can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need to be called first to remove some of the chunks (if possible). The dispatch origin for this call must be _Signed_ by the controller, not the stash. See also [`Call::withdraw_unbonded`]. # - Independent of the arguments. Limited but potentially exploitable complexity. - Contains a limited number of reads. - Each call (requires the remainder of the bonded balance to be above `minimum_balance`) will cause a new entry to be inserted into a vector (`Ledger.unlocking`) kept in storage. The only way to clean the aforementioned storage item is also user-controlled via `withdraw_unbonded`. - One DB entry. +- **summary**: Schedule a portion of the stash to be unlocked ready for transfer out after the bond period ends. If this leaves an amount actively bonded less than T::Currency::minimum_balance(), then it is increased to the full amount. Once the unlock period is done, you can call `withdraw_unbonded` to actually move the funds out of management ready for transfer. No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`) can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need to be called first to remove some of the chunks (if possible). The dispatch origin for this call must be _Signed_ by the controller, not the stash. See also [`Call::withdraw_unbonded`]. # - Independent of the arguments. Limited but potentially exploitable complexity. - Contains a limited number of reads. - Each call (requires the remainder of the bonded balance to be above `minimum_balance`) will cause a new entry to be inserted into a vector (`Ledger.unlocking`) kept in storage. The only way to clean the aforementioned storage item is also user-controlled via `withdraw_unbonded`. - One DB entry. ▸ **validate**(prefs: `ValidatorPrefs`) - **summary**: Declare the desire to validate for the origin controller. Effects will be felt at the beginning of the next era. The dispatch origin for this call must be _Signed_ by the controller, not the stash. # - Independent of the arguments. Insignificant complexity. - Contains a limited number of reads. - Writes are limited to the `origin` account key. # diff --git a/lerna.json b/lerna.json index 29535c9a2e..acbae77a36 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "0.91.0-beta.19" + "version": "0.91.0-beta.20" } diff --git a/package.json b/package.json index 2fa16f5f4c..8746e0434b 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.91.0-beta.19", + "version": "0.91.0-beta.20", "private": true, "engines": { "yarn": "^1.10.1" diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index beda657a8e..7653791f5c 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "0.91.0-beta.19", + "version": "0.91.0-beta.20", "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.91.0-beta.19" + "@polkadot/types": "^0.91.0-beta.20" } } diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index ce98b1d32d..1b5523a56e 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "0.91.0-beta.19", + "version": "0.91.0-beta.20", "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.91.0-beta.19", - "@polkadot/types": "^0.91.0-beta.19" + "@polkadot/api": "^0.91.0-beta.20", + "@polkadot/types": "^0.91.0-beta.20" }, "devDependencies": { "@polkadot/keyring": "^1.2.0-beta.6" diff --git a/packages/api-metadata/package.json b/packages/api-metadata/package.json index 0c997868cb..d163d5169b 100644 --- a/packages/api-metadata/package.json +++ b/packages/api-metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-metadata", - "version": "0.91.0-beta.19", + "version": "0.91.0-beta.20", "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.91.0-beta.19", + "@polkadot/types": "^0.91.0-beta.20", "@polkadot/util": "^1.2.0-beta.6", "@polkadot/util-crypto": "^1.2.0-beta.6" }, diff --git a/packages/api/package.json b/packages/api/package.json index 7e82b9e06a..62205e350b 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "0.91.0-beta.19", + "version": "0.91.0-beta.20", "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.91.0-beta.19", - "@polkadot/api-metadata": "^0.91.0-beta.19", - "@polkadot/rpc-core": "^0.91.0-beta.19", - "@polkadot/rpc-provider": "^0.91.0-beta.19", - "@polkadot/types": "^0.91.0-beta.19", + "@polkadot/api-derive": "^0.91.0-beta.20", + "@polkadot/api-metadata": "^0.91.0-beta.20", + "@polkadot/rpc-core": "^0.91.0-beta.20", + "@polkadot/rpc-provider": "^0.91.0-beta.20", + "@polkadot/types": "^0.91.0-beta.20", "@polkadot/util-crypto": "^1.2.0-beta.6" }, "devDependencies": { diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 0bb463e8cc..b9943669a7 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "0.91.0-beta.19", + "version": "0.91.0-beta.20", "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.91.0-beta.19", - "@polkadot/rpc-provider": "^0.91.0-beta.19", - "@polkadot/types": "^0.91.0-beta.19", + "@polkadot/jsonrpc": "^0.91.0-beta.20", + "@polkadot/rpc-provider": "^0.91.0-beta.20", + "@polkadot/types": "^0.91.0-beta.20", "@polkadot/util": "^1.2.0-beta.6", "rxjs": "^6.5.2" } diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 670b95de37..041028e678 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "0.91.0-beta.19", + "version": "0.91.0-beta.20", "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.91.0-beta.19", + "@polkadot/api-metadata": "^0.91.0-beta.20", "@polkadot/util": "^1.2.0-beta.6", "@polkadot/util-crypto": "^1.2.0-beta.6", "@types/nock": "^10.0.3", diff --git a/packages/type-jsonrpc/package.json b/packages/type-jsonrpc/package.json index 16c3b0187f..f292702b8b 100644 --- a/packages/type-jsonrpc/package.json +++ b/packages/type-jsonrpc/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/jsonrpc", - "version": "0.91.0-beta.19", + "version": "0.91.0-beta.20", "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 554ccea242..e4a560bb6f 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "0.91.0-beta.19", + "version": "0.91.0-beta.20", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [