From 5fbca9ae979b465e99fd1d8aa80a3441c3a1b2c0 Mon Sep 17 00:00:00 2001 From: Travis CI <> Date: Thu, 7 Mar 2019 11:15:46 +0000 Subject: [PATCH] [CI Skip] 0.46.7 --- docs/METHODS_EXTRINSICS.md | 40 +++++++++++++++++------ docs/METHODS_STORAGE.md | 47 +++++++++++++++------------ lerna.json | 2 +- package.json | 2 +- packages/api-derive/package.json | 6 ++-- packages/api/package.json | 14 ++++---- packages/rpc-core/package.json | 8 ++--- packages/rpc-provider/package.json | 4 +-- packages/rpc-rx/package.json | 6 ++-- packages/type-extrinsics/package.json | 4 +-- packages/type-jsonrpc/package.json | 2 +- packages/type-storage/package.json | 4 +-- packages/types/package.json | 2 +- 13 files changed, 84 insertions(+), 57 deletions(-) diff --git a/docs/METHODS_EXTRINSICS.md b/docs/METHODS_EXTRINSICS.md index 5c9961152b..922a4f7226 100644 --- a/docs/METHODS_EXTRINSICS.md +++ b/docs/METHODS_EXTRINSICS.md @@ -15,6 +15,8 @@ _The following sections contain Extrinsics methods are part of the default Subst - **[democracy](#democracy)** +- **[finalityTracker](#finalityTracker)** + - **[grandpa](#grandpa)** - **[session](#session)** @@ -161,6 +163,14 @@ ___ ___ +### finalityTracker + +▸ **finalHint**(hint: `Compact`) +- **summary**: Hint that the author of this block thinks the best finalized block is the given number. + +___ + + ### grandpa ▸ **reportMisbehavior**(_report: `Bytes`) @@ -185,13 +195,20 @@ ___ ### 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. + +▸ **bondExtra**(max_additional: `BalanceOf`) +- **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. NOTE: This call must be made by the controller, not the stash. + +▸ **chill**() +- **summary**: Declare no desire to either validate or nominate. Effects will be felt at the beginning of the next era. NOTE: This call must be made by the controller, not the stash. + ▸ **forceNewEra**(apply_rewards: `bool`) - **summary**: Force there to be a new era. This also forces a new session immediately after. `apply_rewards` should be true for validators to get the session reward. -▸ **nominate**(target: `Address`) - -▸ **registerPreferences**(intentions_index: `Compact`, prefs: `ValidatorPrefs`) -- **summary**: Set the given account's preference for slashing behaviour should they be a validator. An error (no-op) if `Self::intentions()[intentions_index] != origin`. +▸ **nominate**(targets: `Vec
`) +- **summary**: Declare the desire to nominate `targets` for the origin controller. Effects will be felt at the beginning of the next era. NOTE: This call must be made by the controller, not the stash. ▸ **setBondingDuration**(new: `Compact`) - **summary**: The length of the bonding duration in eras. @@ -202,20 +219,23 @@ ___ ▸ **setOfflineSlashGrace**(new: `Compact`) - **summary**: Set the offline slash grace period. +▸ **setPayee**(payee: `RewardDestination`) +- **summary**: (Re-)set the payment target for a controller. Effects will be felt at the beginning of the next era. NOTE: This call must be made by the controller, not the stash. + ▸ **setSessionsPerEra**(new: `Compact`) - **summary**: Set the number of sessions in an era. ▸ **setValidatorCount**(new: `Compact`) - **summary**: The ideal number of validators. -▸ **stake**() -- **summary**: Declare the desire to stake for the transactor. Effects will be felt at the beginning of the next era. +▸ **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. NOTE: This call must be made by the controller, not the stash. See also `withdraw_unbonded`. -▸ **unnominate**(target_index: `Compact`) -- **summary**: Will panic if called when source isn't currently nominating target. Updates Nominating, NominatorsFor and NominationBalance. +▸ **validate**(prefs: `ValidatorPrefs`) +- **summary**: Declare the desire to validate for the origin controller. Effects will be felt at the beginning of the next era. NOTE: This call must be made by the controller, not the stash. -▸ **unstake**(intentions_index: `Compact`) -- **summary**: Retract the desire to stake for the transactor. Effects will be felt at the beginning of the next era. +▸ **withdrawUnbonded**() +- **summary**: Remove any unlocked chunks from the `unlocking` queue from our management. This essentially frees up that balance to be used by the stash account to do whatever it wants. NOTE: This call must be made by the controller, not the stash. See also `unbond`. ___ diff --git a/docs/METHODS_STORAGE.md b/docs/METHODS_STORAGE.md index c1614504c9..bb96c8f861 100644 --- a/docs/METHODS_STORAGE.md +++ b/docs/METHODS_STORAGE.md @@ -50,6 +50,9 @@ ___ ▸ **freeBalance**(`AccountId`): `Balance` - **summary**: The 'free' balance of a given account. This is the only balance that matters in terms of most operations on tokens. It is alone used to determine the balance when in the contract execution environment. When this balance falls below the value of `ExistentialDeposit`, then the 'current account' is deleted: specifically `FreeBalance`. Furthermore, `OnFreeBalanceZero` callback is invoked, giving a chance to external modules to cleanup data associated with the deleted account. `system::AccountNonce` is also deleted if `ReservedBalance` is also zero (it also gets collapsed to zero if it ever becomes less than `ExistentialDeposit`. +▸ **locks**(`AccountId`): `Vec` +- **summary**: Any liquidity locks on some account balances. + ▸ **reservedBalance**(`AccountId`): `Balance` - **summary**: The amount of the balance of a given account that is externally reserved; this can still get slashed, but gets slashed last of all. This balance is a 'reserve' balance that other subsystems use in order to set aside tokens that are still 'owned' by the account holder, but which are suspendable. (This is different and wholly unrelated to the `Bondage` system used in the staking module.) When this balance falls below the value of `ExistentialDeposit`, then this 'reserve account' is deleted: specifically, `ReservedBalance`. `system::AccountNonce` is also deleted if `FreeBalance` is also zero (it also gets collapsed to zero if it ever becomes less than `ExistentialDeposit`. @@ -215,9 +218,6 @@ ___ ### democracy -▸ **bondage**(`AccountId`): `BlockNumber` -- **summary**: The block at which the `who`'s funds become liquid. - ▸ **depositOf**(`PropIndex`): `Option<(BalanceOf,Vec)>` - **summary**: Those who have locked a deposit. @@ -279,6 +279,8 @@ ___ ### grandpaFinality +▸ **nextForced**(): `Option` + ▸ **pendingChange**(): `Option` ___ @@ -326,8 +328,8 @@ ___ ### staking -▸ **bondage**(`AccountId`): `BlockNumber` -- **summary**: The block at which the `who`'s funds become entirely liquid. +▸ **bonded**(`AccountId`): `Option` +- **summary**: Map from all locked "stash" accounts to the controller account. ▸ **bondingDuration**(): `BlockNumber` - **summary**: The length of the bonding duration in blocks. @@ -335,8 +337,8 @@ ___ ▸ **currentEra**(): `BlockNumber` - **summary**: The current era index. -▸ **currentNominatorsFor**(`AccountId`): `Vec` -- **summary**: Nominators for a particular account that is in action right now. +▸ **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. ▸ **currentOfflineSlash**(): `BalanceOf` - **summary**: Slash, per validator that is taken for the first time they are found to be offline. @@ -347,26 +349,25 @@ ___ ▸ **forcingNewEra**(): `Option` - **summary**: We are forcing a new era. -▸ **intentions**(): `Vec` -- **summary**: All the accounts with a desire to stake. - ▸ **invulerables**(): `Vec` -- **summary**: Any validators that may never be slashed or forcible kicked. It's a Vec since they're easy to initialise and the performance hit is minimal (we expect no more than four invulnerables) and restricted to testnets. + +▸ **invulnerables**(): `Vec` +- **summary**: Any validators that may never be slashed or forcibly kicked. It's a Vec since they're easy to initialise and the performance hit is minimal (we expect no more than four invulnerables) and restricted to testnets. ▸ **lastEraLengthChange**(): `BlockNumber` - **summary**: The session index at which the era length last changed. +▸ **ledger**(`AccountId`): `Option` +- **summary**: Map from all (unlocked) "controller" accounts to the info regarding the staking. + ▸ **minimumValidatorCount**(): `u32` - **summary**: Minimum number of staking participants before emergency conditions are imposed. ▸ **nextSessionsPerEra**(): `Option` - **summary**: The next value of sessions per era. -▸ **nominating**(`AccountId`): `Option` -- **summary**: All nominator -> nominee relationships. - -▸ **nominatorsFor**(`AccountId`): `Vec` -- **summary**: Nominators for a particular account. +▸ **nominators**(`AccountId`): `Vec` +- **summary**: The set of keys are all controllers that want to nominate. The value are the nominations. ▸ **offlineSlash**(): `Perbill` - **summary**: Slash, per validator that is taken for the first time they are found to be offline. @@ -374,6 +375,9 @@ ___ ▸ **offlineSlashGrace**(): `u32` - **summary**: Number of instances of offline reports before slashing begins for validators. +▸ **payee**(`AccountId`): `RewardDestination` +- **summary**: Where the reward payment should be made. + ▸ **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). @@ -386,14 +390,17 @@ ___ ▸ **slashCount**(`AccountId`): `u32` - **summary**: The number of times a given validator has been reported offline. This gets decremented by one each era that passes. -▸ **stakeRange**(): `(BalanceOf,BalanceOf)` -- **summary**: The highest and lowest staked validator slashable balances. +▸ **slotStake**(): `BalanceOf` +- **summary**: The amount of balance actively at stake for each validator slot, currently. This is used to derive rewards and punishments. + +▸ **stakers**(`AccountId`): `Exposure` +- **summary**: Nominators for a particular account that is in action right now. You can't iterate through validators here, but you can find them in the `sessions` module. ▸ **validatorCount**(): `u32` - **summary**: The ideal number of staking participants. -▸ **validatorPreferences**(`AccountId`): `ValidatorPrefs` -- **summary**: Preferences that a validator has. +▸ **validators**(`AccountId`): `ValidatorPrefs` +- **summary**: The set of keys are all controllers that want to validate. The values are the preferences that a validator has. ___ diff --git a/lerna.json b/lerna.json index 79d590550a..3c2aa4c9ae 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "0.46.6" + "version": "0.46.7" } diff --git a/package.json b/package.json index a73630401e..78745e5b31 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.46.6", + "version": "0.46.7", "private": true, "engines": { "node": ">=10.13.0", diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 25675c0df9..48f429434f 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "0.46.6", + "version": "0.46.7", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "keywords": [ @@ -31,8 +31,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.3.4", - "@polkadot/api": "^0.46.6", - "@polkadot/types": "^0.46.6", + "@polkadot/api": "^0.46.7", + "@polkadot/types": "^0.46.7", "@types/memoizee": "^0.4.2", "memoizee": "^0.4.14" } diff --git a/packages/api/package.json b/packages/api/package.json index ce1ad41af4..bd3530bf23 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "0.46.6", + "version": "0.46.7", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "keywords": [ @@ -30,12 +30,12 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.3.4", - "@polkadot/api-derive": "^0.46.6", - "@polkadot/extrinsics": "^0.46.6", - "@polkadot/rpc-provider": "^0.46.6", - "@polkadot/rpc-rx": "^0.46.6", - "@polkadot/storage": "^0.46.6", - "@polkadot/types": "^0.46.6", + "@polkadot/api-derive": "^0.46.7", + "@polkadot/extrinsics": "^0.46.7", + "@polkadot/rpc-provider": "^0.46.7", + "@polkadot/rpc-rx": "^0.46.7", + "@polkadot/storage": "^0.46.7", + "@polkadot/types": "^0.46.7", "@polkadot/util-crypto": "^0.35.6" } } diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index f582471968..5146074246 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "0.46.6", + "version": "0.46.7", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "keywords": [ @@ -30,9 +30,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.3.4", - "@polkadot/jsonrpc": "^0.46.6", - "@polkadot/rpc-provider": "^0.46.6", - "@polkadot/types": "^0.46.6", + "@polkadot/jsonrpc": "^0.46.7", + "@polkadot/rpc-provider": "^0.46.7", + "@polkadot/types": "^0.46.7", "@polkadot/util": "^0.35.6" } } diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 922e6d148a..69e9002ac8 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "0.46.6", + "version": "0.46.7", "description": "Transport providers for the API", "main": "index.js", "keywords": [ @@ -31,7 +31,7 @@ "dependencies": { "@babel/runtime": "^7.3.4", "@polkadot/keyring": "^0.35.6", - "@polkadot/storage": "^0.46.6", + "@polkadot/storage": "^0.46.7", "@polkadot/util": "^0.35.6", "@polkadot/util-crypto": "^0.35.6", "@types/nock": "^9.3.1", diff --git a/packages/rpc-rx/package.json b/packages/rpc-rx/package.json index 94d317e5da..f85d32af38 100644 --- a/packages/rpc-rx/package.json +++ b/packages/rpc-rx/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-rx", - "version": "0.46.6", + "version": "0.46.7", "description": "An RxJs wrapper around the Polkadot JS API", "main": "index.js", "keywords": [ @@ -30,8 +30,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-rx#readme", "dependencies": { "@babel/runtime": "^7.3.4", - "@polkadot/rpc-core": "^0.46.6", - "@polkadot/rpc-provider": "^0.46.6", + "@polkadot/rpc-core": "^0.46.7", + "@polkadot/rpc-provider": "^0.46.7", "@types/memoizee": "^0.4.2", "@types/rx": "^4.1.1", "memoizee": "^0.4.14", diff --git a/packages/type-extrinsics/package.json b/packages/type-extrinsics/package.json index 1ee48cdbb9..6e16e94668 100644 --- a/packages/type-extrinsics/package.json +++ b/packages/type-extrinsics/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/extrinsics", - "version": "0.46.6", + "version": "0.46.7", "main": "index.js", "repository": "https://github.com/polkadot-js/api.git", "author": "Jaco Greeff ", @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.3.4", - "@polkadot/types": "^0.46.6", + "@polkadot/types": "^0.46.7", "@polkadot/util": "^0.35.6" } } diff --git a/packages/type-jsonrpc/package.json b/packages/type-jsonrpc/package.json index 5804bd630e..0ac9e7784e 100644 --- a/packages/type-jsonrpc/package.json +++ b/packages/type-jsonrpc/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/jsonrpc", - "version": "0.46.6", + "version": "0.46.7", "description": "Method definitions for the Polkadot RPC layer", "main": "index.js", "engines": { diff --git a/packages/type-storage/package.json b/packages/type-storage/package.json index 0eeb6a14c5..0cc63bc636 100644 --- a/packages/type-storage/package.json +++ b/packages/type-storage/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/storage", - "version": "0.46.6", + "version": "0.46.7", "description": "Generic wrapper wrapper around state storage", "main": "index.js", "engines": { @@ -31,7 +31,7 @@ "dependencies": { "@babel/runtime": "^7.3.4", "@polkadot/keyring": "^0.35.6", - "@polkadot/types": "^0.46.6", + "@polkadot/types": "^0.46.7", "@polkadot/util": "^0.35.6", "@polkadot/util-crypto": "^0.35.6" } diff --git a/packages/types/package.json b/packages/types/package.json index efffa44020..37d39ff6ff 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "0.46.6", + "version": "0.46.7", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [