From b1022919c1f9fa668c078eab0c99fcec96cc3f85 Mon Sep 17 00:00:00 2001 From: Travis CI <> Date: Thu, 13 Jun 2019 12:52:11 +0000 Subject: [PATCH] [CI Skip] 0.81.0-beta.13 --- docs/METHODS_EXTRINSICS.md | 76 ++++++++++++++------------- docs/METHODS_STORAGE.md | 36 ++++++++----- 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, 89 insertions(+), 77 deletions(-) diff --git a/docs/METHODS_EXTRINSICS.md b/docs/METHODS_EXTRINSICS.md index c79d19c028..ce882ead61 100644 --- a/docs/METHODS_EXTRINSICS.md +++ b/docs/METHODS_EXTRINSICS.md @@ -34,10 +34,10 @@ ___ ### balances ▸ **setBalance**(who: `Address`, free: `Compact`, reserved: `Compact`) -- **summary**: Set the balances of a given account. This will alter `FreeBalance` and `ReservedBalance` in storage. If the new free or reserved balance is below the existential deposit, it will also decrease the total issuance of the system (`TotalIssuance`) and reset the account nonce (`system::AccountNonce`). The dispatch origin for this call is `root`. +- **summary**: Set the balances of a given account. This will alter `FreeBalance` and `ReservedBalance` in storage. If the new free or reserved balance is below the existential deposit, it will also decrease the total issuance of the system (`TotalIssuance`) and reset the account nonce (`system::AccountNonce`). The dispatch origin for this call is `root`. # - Independent of the arguments. - Contains a limited number of reads and writes. # ▸ **transfer**(dest: `Address`, value: `Compact`) -- **summary**: Transfer some liquid free balance to another account. `transfer` will set the `FreeBalance` of the sender and receiver. It will decrease the total issuance of the system by the `TransferFee`. If the sender's account is below the existential deposit as a result of the transfer, the account will be reaped. The dispatch origin for this call must be `Signed` by the transactor. +- **summary**: Transfer some liquid free balance to another account. `transfer` will set the `FreeBalance` of the sender and receiver. It will decrease the total issuance of the system by the `TransferFee`. If the sender's account is below the existential deposit as a result of the transfer, the account will be reaped. The dispatch origin for this call must be `Signed` by the transactor. # - Dependent on arguments but not critical, given proper implementations for input config types. See related functions below. - It contains a limited number of reads and writes internally and no complex computation. Related functions: - `ensure_can_withdraw` is always called internally but has a bounded complexity. - Transferring balances to accounts that did not exist before will cause `T::OnNewAccount::on_new_account` to be called. - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced` and `T::OnFreeBalanceZero::on_free_balance_zero`. # ___ @@ -94,22 +94,22 @@ ___ ### council ▸ **presentWinner**(candidate: `Address`, total: `Compact`, index: `Compact`) -- **summary**: Claim that `signed` is one of the top Self::carry_count() + current_vote().1 candidates. Only works if the `block_number >= current_vote().0` and `< current_vote().0 + presentation_duration()`` `signed` should have at least +- **summary**: Claim that `signed` is one of the top Self::carry_count() + current_vote().1 candidates. Only works if the `block_number >= current_vote().0` and `< current_vote().0 + presentation_duration()` `signed` should have at least # - O(voters) compute. - One DB change. # -▸ **proxySetApprovals**(votes: `Vec`, index: `Compact`) -- **summary**: Set candidate approvals from a proxy. Approval slots stay valid as long as candidates in those slots are registered. +▸ **proxySetApprovals**(votes: `Vec`, index: `Compact`, hint: `SetIndex`) +- **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`) -- **summary**: Remove a voter. For it not to be a bond-consuming no-op, all approved candidate indices must now be either unregistered or registered to a candidate that registered the slot after the voter gave their last approval set. May be called by anyone. Returns the voter deposit to `signed`. +- **summary**: Remove a voter. For it not to be a bond-consuming no-op, all approved candidate indices must now be either unregistered or registered to a candidate that registered the slot after the voter gave their last approval set. Both indices must be provided as explained in [`voter_at`] function. May be called by anyone. Returns the voter deposit to `signed`. # - O(1). - Two fewer DB entries, one DB change. # ▸ **removeMember**(who: `Address`) - **summary**: Remove a particular member from the council. This is effective immediately. Note: A tally should happen instantly (if not already in a presentation period) to fill the seat if removal means that the desired members are not met. ▸ **retractVoter**(index: `Compact`) -- **summary**: Remove a voter. All votes are cancelled and the voter deposit is returned. +- **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`) -- **summary**: Set candidate approvals. Approval slots stay valid as long as candidates in those slots are registered. +▸ **setApprovals**(votes: `Vec`, index: `Compact`, hint: `SetIndex`) +- **summary**: Set candidate approvals. Approval slots stay valid as long as candidates in those slots are registered. Locks the total balance of caller 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`) - **summary**: Set the desired member count; if lower than the current count, then seats will not be up election when they expire. If more, then a new vote will be started if one is not already in progress. @@ -121,7 +121,7 @@ ___ - **summary**: Set the presentation duration. If there is current a vote being presented for, will invoke `finalize_vote`. ▸ **submitCandidacy**(slot: `Compact`) -- **summary**: Submit oneself for candidacy. Account must have enough transferrable funds in it to pay the bond. +- **summary**: Submit oneself for candidacy. Account must have enough transferrable funds in it to pay the bond. NOTE: if `origin` has already assigned approvals via [`set_approvals`], it will NOT have any usable funds to pass candidacy bond and must first retract. Note that setting approvals will lock the entire balance of the voter until retraction or being reported. # - Independent of input. - Three DB changes. # ___ @@ -132,8 +132,10 @@ ___ - **summary**: Dispatch a proposal from a councilor using the `Member` origin. Origin must be a council member. ▸ **propose**(threshold: `Compact`, proposal: `Proposal`) +- **summary**: # - Bounded storage reads and writes. - Argument `threshold` has bearing on weight. # ▸ **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. # ___ @@ -147,7 +149,7 @@ ___ - **summary**: Remove a referendum. ▸ **delegate**(to: `AccountId`, conviction: `Conviction`) -- **summary**: Delegate vote. +- **summary**: Delegate vote. # - One extra DB entry. # ▸ **emergencyCancel**(ref_index: `ReferendumIndex`) - **summary**: Schedule an emergency cancellation of a referendum. Cannot happen twice to the same referendum. @@ -162,31 +164,31 @@ ___ - **summary**: Schedule a majority-carries referendum to be tabled next once it is legal to schedule an external referendum. ▸ **propose**(proposal: `Proposal`, value: `Compact`) -- **summary**: Propose a sensitive action to be taken. +- **summary**: Propose a sensitive action to be taken. # - O(1). - Two DB changes, one DB entry. # ▸ **proxyVote**(ref_index: `Compact`, vote: `Vote`) -- **summary**: Vote in a referendum on behalf of a stash. If `vote.is_aye()`, the vote is to enact the proposal; otherwise it is a vote to keep the status quo. +- **summary**: Vote in a referendum on behalf of a stash. If `vote.is_aye()`, the vote is to enact the proposal; otherwise it is a vote to keep the status quo. # - O(1). - One DB change, one DB entry. # ▸ **removeProxy**(proxy: `AccountId`) -- **summary**: Clear the proxy. Called by the stash. +- **summary**: Clear the proxy. Called by the stash. # - One DB clear. # ▸ **resignProxy**() -- **summary**: Clear the proxy. Called by the proxy. +- **summary**: Clear the proxy. Called by the proxy. # - One DB clear. # ▸ **second**(proposal: `Compact`) -- **summary**: Propose a sensitive action to be taken. +- **summary**: Propose a sensitive action to be taken. # - O(1). - One DB entry. # ▸ **setProxy**(proxy: `AccountId`) -- **summary**: Specify a proxy. Called by the stash. +- **summary**: Specify a proxy. Called by the stash. # - One extra DB entry. # ▸ **undelegate**() -- **summary**: Undelegate vote. +- **summary**: Undelegate vote. # - O(1). # ▸ **vetoExternal**(proposal_hash: `Hash`) - **summary**: Veto and blacklist the external proposal hash. ▸ **vote**(ref_index: `Compact`, vote: `Vote`) -- **summary**: Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal; otherwise it is a vote to keep the status quo. +- **summary**: Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal; otherwise it is a vote to keep the status quo. # - O(1). - One DB change, one DB entry. # ___ @@ -210,13 +212,13 @@ ___ ### session ▸ **forceNewSession**(apply_rewards: `bool`) -- **summary**: Forces a new session. +- **summary**: Forces a new session. Dispatch origin of this call must be _root_. ▸ **setKey**(key: `SessionKey`) -- **summary**: Sets the session key of a validator (function caller) to `key`. This doesn't take effect until the next session. +- **summary**: Sets the session key of the function caller to `key`. Allows an account to set its session key prior to becoming a validator. This doesn't take effect until the next session. The dispatch origin of this function must be signed. # - O(1). - One extra DB entry. # ▸ **setLength**(new: `Compact`) -- **summary**: Set a new session length. Won't kick in until the next session change (at current length). +- **summary**: Set a new session length. Won't kick in until the next session change (at current length). Dispatch origin of this call must be _root_. ___ @@ -224,25 +226,25 @@ ___ ### 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. The dispatch origin for this call must be _Signed_ by the stash account. +- **summary**: Take the origin account as a stash and lock up `value` of its balance. `controller` will be the account that controls it. 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. NOTE: At the moment, there are no financial restrictions to bond (which creates a bunch of storage items for an account). In essence, nothing prevents many accounts from spamming `Staking` storage by bonding 1 UNIT. See test case: `bond_with_no_staked_value`. # ▸ **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. The dispatch origin for this call must be _Signed_ by the stash, not the controller. +- **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. 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. # ▸ **chill**() -- **summary**: Declare no desire to either validate or nominate. 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. +- **summary**: Declare no desire to either validate or nominate. 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 one read. - Writes are limited to the `origin` account key. # ▸ **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. +- **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. # - Independent of the arguments. - Triggers the Phragmen election. Expensive but not user-controlled. - Depends on state: `O(|edges| * |validators|)`. # ▸ **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. The dispatch origin for this call must be _Signed_ by the controller, not the stash. +- **summary**: Declare the desire to nominate `targets` 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. # - The transaction's complexity is proportional to the size of `targets`, which is capped at `MAX_NOMINATIONS`. - Both the reads and writes follow a similar pattern. # ▸ **setBondingDuration**(new: `Compact`) - **summary**: The length of the bonding duration in eras. ▸ **setController**(controller: `Address`) -- **summary**: (Re-)set the payment target for a controller. Effects will be felt at the beginning of the next era. The dispatch origin for this call must be _Signed_ by the stash, not the controller. +- **summary**: (Re-)set the payment target for a controller. Effects will be felt at the beginning of the next era. The dispatch origin for this call must be _Signed_ by the stash, not the controller. # - Independent of the arguments. Insignificant complexity. - Contains a limited number of reads. - Writes are limited to the `origin` account key. # ▸ **setInvulnerables**(validators: `Vec`) - **summary**: Set the validators who cannot be slashed (if any). @@ -251,7 +253,7 @@ ___ - **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. The dispatch origin for this call must be _Signed_ by the controller, not the stash. +- **summary**: (Re-)set the payment target for a 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. # ▸ **setSessionsPerEra**(new: `Compact`) - **summary**: Set the number of sessions in an era. @@ -260,13 +262,13 @@ ___ - **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`]. +- **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. ▸ **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. +- **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. # ▸ **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. The dispatch origin for this call must be _Signed_ by the controller, not the stash. See also [`Call::unbond`]. +- **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. The dispatch origin for this call must be _Signed_ by the controller, not the stash. See also [`Call::unbond`]. # - Could be dependent on the `origin` argument and how much `unlocking` chunks exist. It implies `consolidate_unlocked` which loops over `Ledger.unlocking`, which is indirectly user-controlled. See [`unbond`] for more detail. - Contains a limited number of reads, yet the size of which could be large based on `ledger`. - Writes are limited to the `origin` account key. # ___ @@ -274,10 +276,10 @@ ___ ### sudo ▸ **setKey**(new: `Address`) -- **summary**: Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key. The dispatch origin for this call must be _Signed_. +- **summary**: Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key. The dispatch origin for this call must be _Signed_. # - O(1). - Limited storage reads. - One DB change. # ▸ **sudo**(proposal: `Proposal`) -- **summary**: Authenticates the sudo key and dispatches a function call with `Root` origin. The dispatch origin for this call must be _Signed_. +- **summary**: Authenticates the sudo key and dispatches a function call with `Root` origin. The dispatch origin for this call must be _Signed_. # - O(1). - Limited storage reads. - No DB writes. # ___ @@ -293,16 +295,16 @@ ___ ### treasury ▸ **approveProposal**(proposal_id: `Compact`) -- **summary**: Approve a proposal. At a later time, the proposal will be allocated to the beneficiary and the original deposit will be returned. +- **summary**: Approve a proposal. At a later time, the proposal will be allocated to the beneficiary and the original deposit will be returned. # - O(1). - Limited storage reads. - One DB change. # ▸ **configure**(proposal_bond: `Compact`, proposal_bond_minimum: `Compact`, spend_period: `Compact`, burn: `Compact`) - **summary**: (Re-)configure this module. ▸ **proposeSpend**(value: `Compact`, beneficiary: `Address`) -- **summary**: Put forward a suggestion for spending. A deposit proportional to the value is reserved and slashed if the proposal is rejected. It is returned once the proposal is awarded. +- **summary**: Put forward a suggestion for spending. A deposit proportional to the value is reserved and slashed if the proposal is rejected. It is returned once the proposal is awarded. # - O(1). - Limited storage reads. - One DB change, one extra DB entry. # ▸ **rejectProposal**(proposal_id: `Compact`) -- **summary**: Reject a proposed spend. The original deposit will be slashed. +- **summary**: Reject a proposed spend. The original deposit will be slashed. # - O(1). - Limited storage reads. - One DB clear. # ▸ **setPot**(new_pot: `Compact`) - **summary**: Set the balance of funds available to spend. diff --git a/docs/METHODS_STORAGE.md b/docs/METHODS_STORAGE.md index 0a049916d6..28d351a7d6 100644 --- a/docs/METHODS_STORAGE.md +++ b/docs/METHODS_STORAGE.md @@ -153,13 +153,14 @@ ___ ▸ **activeCouncil**(): `Vec<(AccountId,BlockNumber)>` - **summary**: The current council. When there's a vote going on, this should still be used for executive matters. The block number (second element in the tuple) is the block that their position is active until (calculated by the sum of the block number when the council member was elected and their term duration). -▸ **approvalsOf**(`AccountId`): `Vec` -- **summary**: A list of votes for each voter, respecting the last cleared vote index that this voter was last active at. +▸ **approvalsOf**(`(AccountId,SetIndex)`): `Vec` +- **summary**: A list of votes for each voter. The votes are stored as numeric values and parsed in a bit-wise manner. In order to get a human-readable representation (`Vec`), use [`all_approvals_of`]. Furthermore, each vector of scalars is chunked with the cap of `APPROVAL_SET_SIZE`. ▸ **candidacyBond**(): `BalanceOf` - **summary**: How much should be locked up in order to submit one's candidacy. ▸ **candidateCount**(): `u32` +- **summary**: Current number of active candidates ▸ **candidates**(): `Vec` - **summary**: The present candidate list. @@ -167,21 +168,24 @@ ___ ▸ **carryCount**(): `u32` - **summary**: How many runners-up should have their approvals persist until the next vote. +▸ **decayRatio**(): `u32` +- **summary**: Decay factor of weight when being accumulated. It should typically be set to __at least__ `council_size -1` to keep the council secure. When set to `N`, it indicates `(1/N)^t` of staked is decayed at weight increment step `t`. 0 will result in no weight being added at all (normal approval voting). + ▸ **desiredSeats**(): `u32` - **summary**: Number of accounts that should be sitting on the council. ▸ **inactiveGracePeriod**(): `VoteIndex` -- **summary**: How many vote indexes need to go by after a target voter's last vote before they can be reaped if their approvals are moot. - -▸ **lastActiveOf**(`AccountId`): `Option` -- **summary**: The last cleared vote index that this voter was last active at. +- **summary**: How many vote indices need to go by after a target voter's last vote before they can be reaped if their approvals are moot. ▸ **leaderboard**(): `Option>` -- **summary**: Get the leaderboard if we;re in the presentation phase. +- **summary**: Get the leaderboard if we're in the presentation phase. The first element is the weight of each entry; It may be the direct summed approval stakes, or a weighted version of it. ▸ **nextFinalize**(): `Option<(BlockNumber,u32,Vec)>` - **summary**: The accounts holding the seats that will become free on the next tally. +▸ **nextVoterSet**(): `SetIndex` +- **summary**: the next free set to store a voter in. This will keep growing. + ▸ **presentationDuration**(): `BlockNumber` - **summary**: How long to give each top candidate to present themselves after the vote ends. @@ -191,21 +195,27 @@ ___ ▸ **registerInfoOf**(`AccountId`): `Option<(VoteIndex,u32)>` - **summary**: The vote index and list slot that the candidate `who` was registered or `None` if they are not currently registered. -▸ **snapshotedStakes**(): `Vec` -- **summary**: The stakes as they were at the point that the vote ended. - ▸ **termDuration**(): `BlockNumber` - **summary**: How long each position is active for. ▸ **voteCount**(): `VoteIndex` -- **summary**: The total number of votes that have happened or are in progress. +- **summary**: The total number of vote rounds that have happened or are in progress. -▸ **voters**(): `Vec` -- **summary**: The present voter list. +▸ **voterCount**(): `SetIndex` +- **summary**: Current number of Voters. + +▸ **voterInfoOf**(`AccountId`): `Option` +- **summary**: Basic information about a voter. + +▸ **voters**(`SetIndex`): `Vec>` +- **summary**: The present voter list (chunked and capped at [`VOTER_SET_SIZE`]). ▸ **votingBond**(): `BalanceOf` - **summary**: How much should be locked up in order to be able to submit votes. +▸ **votingFee**(): `BalanceOf` +- **summary**: The amount of fee paid upon each vote submission, unless if they submit a _hole_ index and replace it. + ▸ **votingPeriod**(): `BlockNumber` - **summary**: How often (in blocks) to check for new votes. diff --git a/lerna.json b/lerna.json index c6bc94da58..fc8543afdb 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "0.81.0-beta.12" + "version": "0.81.0-beta.13" } diff --git a/package.json b/package.json index 0d90e3c991..caff894a27 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.81.0-beta.12", + "version": "0.81.0-beta.13", "private": true, "engines": { "yarn": "^1.10.1" diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 58a1998ea3..b4ecfab438 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "0.81.0-beta.12", + "version": "0.81.0-beta.13", "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.4.5", - "@polkadot/api": "^0.81.0-beta.12", - "@polkadot/types": "^0.81.0-beta.12", + "@polkadot/api": "^0.81.0-beta.13", + "@polkadot/types": "^0.81.0-beta.13", "@types/memoizee": "^0.4.2", "memoizee": "^0.4.14" }, diff --git a/packages/api/package.json b/packages/api/package.json index 1ec93cedd4..d9561a49a4 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "0.81.0-beta.12", + "version": "0.81.0-beta.13", "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.4.5", - "@polkadot/api-derive": "^0.81.0-beta.12", - "@polkadot/extrinsics": "^0.81.0-beta.12", - "@polkadot/rpc-provider": "^0.81.0-beta.12", - "@polkadot/rpc-rx": "^0.81.0-beta.12", - "@polkadot/storage": "^0.81.0-beta.12", - "@polkadot/types": "^0.81.0-beta.12", + "@polkadot/api-derive": "^0.81.0-beta.13", + "@polkadot/extrinsics": "^0.81.0-beta.13", + "@polkadot/rpc-provider": "^0.81.0-beta.13", + "@polkadot/rpc-rx": "^0.81.0-beta.13", + "@polkadot/storage": "^0.81.0-beta.13", + "@polkadot/types": "^0.81.0-beta.13", "@polkadot/util-crypto": "^0.93.0-beta.4" }, "devDependencies": { diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 56bda3a2bb..1b107e032c 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "0.81.0-beta.12", + "version": "0.81.0-beta.13", "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.4.5", - "@polkadot/jsonrpc": "^0.81.0-beta.12", - "@polkadot/rpc-provider": "^0.81.0-beta.12", - "@polkadot/types": "^0.81.0-beta.12", + "@polkadot/jsonrpc": "^0.81.0-beta.13", + "@polkadot/rpc-provider": "^0.81.0-beta.13", + "@polkadot/types": "^0.81.0-beta.13", "@polkadot/util": "^0.93.0-beta.4" } } diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 5cd05bfed9..b9e6173c4a 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "0.81.0-beta.12", + "version": "0.81.0-beta.13", "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.4.5", - "@polkadot/storage": "^0.81.0-beta.12", + "@polkadot/storage": "^0.81.0-beta.13", "@polkadot/util": "^0.93.0-beta.4", "@polkadot/util-crypto": "^0.93.0-beta.4", "@types/nock": "^10.0.3", diff --git a/packages/rpc-rx/package.json b/packages/rpc-rx/package.json index 51cccd2d46..6c5bb98239 100644 --- a/packages/rpc-rx/package.json +++ b/packages/rpc-rx/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-rx", - "version": "0.81.0-beta.12", + "version": "0.81.0-beta.13", "description": "An RxJs wrapper around the Polkadot JS API", "main": "index.js", "keywords": [ @@ -27,8 +27,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-rx#readme", "dependencies": { "@babel/runtime": "^7.4.5", - "@polkadot/rpc-core": "^0.81.0-beta.12", - "@polkadot/rpc-provider": "^0.81.0-beta.12", + "@polkadot/rpc-core": "^0.81.0-beta.13", + "@polkadot/rpc-provider": "^0.81.0-beta.13", "@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 b782ae90a2..683ce3a2a7 100644 --- a/packages/type-extrinsics/package.json +++ b/packages/type-extrinsics/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/extrinsics", - "version": "0.81.0-beta.12", + "version": "0.81.0-beta.13", "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.4.5", - "@polkadot/types": "^0.81.0-beta.12", + "@polkadot/types": "^0.81.0-beta.13", "@polkadot/util": "^0.93.0-beta.4" } } diff --git a/packages/type-jsonrpc/package.json b/packages/type-jsonrpc/package.json index 7eca530521..c3563d5d8b 100644 --- a/packages/type-jsonrpc/package.json +++ b/packages/type-jsonrpc/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/jsonrpc", - "version": "0.81.0-beta.12", + "version": "0.81.0-beta.13", "description": "Method definitions for the Polkadot RPC layer", "main": "index.js", "publishConfig": { diff --git a/packages/type-storage/package.json b/packages/type-storage/package.json index 5e104876ce..0cc58b8f2c 100644 --- a/packages/type-storage/package.json +++ b/packages/type-storage/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/storage", - "version": "0.81.0-beta.12", + "version": "0.81.0-beta.13", "description": "Generic wrapper wrapper around state storage", "main": "index.js", "publishConfig": { @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-storage#readme", "dependencies": { "@babel/runtime": "^7.4.5", - "@polkadot/types": "^0.81.0-beta.12", + "@polkadot/types": "^0.81.0-beta.13", "@polkadot/util": "^0.93.0-beta.4", "@polkadot/util-crypto": "^0.93.0-beta.4" }, diff --git a/packages/types/package.json b/packages/types/package.json index a0cab9f63a..992c5c41f8 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "0.81.0-beta.12", + "version": "0.81.0-beta.13", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [