[CI Skip] 0.31.46
This commit is contained in:
+210
-173
@@ -380,28 +380,37 @@
|
||||
|
||||
<section class="normal markdown-section">
|
||||
|
||||
<h2 id="storage">Storage</h2>
|
||||
<p><em>The following Storage methods are part of the default Substrate runtime.</em></p>
|
||||
<hr>
|
||||
<h3 id="system">system</h3>
|
||||
<p>▸ <strong>accountNonce</strong>(<code>AccountId</code>): <code>Index</code></p>
|
||||
<p>▸ <strong>extrinsicCount</strong>(): <code>u32</code></p>
|
||||
<p>▸ <strong>blockHash</strong>(<code>BlockNumber</code>): <code>Hash</code></p>
|
||||
<p>▸ <strong>extrinsicData</strong>(<code>u32</code>): <code>Bytes</code></p>
|
||||
<p>▸ <strong>randomSeed</strong>(): <code>Hash</code></p>
|
||||
<p>▸ <strong>number</strong>(): <code>BlockNumber</code></p>
|
||||
<h2 id="storage"><a id="top" style="text-decoration: none;">Storage</a></h2>
|
||||
<p><em>The following sections contain Storage methods are part of the default Substrate runtime.</em></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The current block number being processed. Set by <code>execute_block</code>.</li>
|
||||
<li><p><strong><a href="#balances">balances</a></strong></p>
|
||||
</li>
|
||||
<li><p><strong><a href="#consensus">consensus</a></strong></p>
|
||||
</li>
|
||||
<li><p><strong><a href="#contract">contract</a></strong></p>
|
||||
</li>
|
||||
<li><p><strong><a href="#council">council</a></strong></p>
|
||||
</li>
|
||||
<li><p><strong><a href="#councilMotions">councilMotions</a></strong></p>
|
||||
</li>
|
||||
<li><p><strong><a href="#councilVoting">councilVoting</a></strong></p>
|
||||
</li>
|
||||
<li><p><strong><a href="#democracy">democracy</a></strong></p>
|
||||
</li>
|
||||
<li><p><strong><a href="#session">session</a></strong></p>
|
||||
</li>
|
||||
<li><p><strong><a href="#staking">staking</a></strong></p>
|
||||
</li>
|
||||
<li><p><strong><a href="#system">system</a></strong></p>
|
||||
</li>
|
||||
<li><p><strong><a href="#timestamp">timestamp</a></strong></p>
|
||||
</li>
|
||||
<li><p><strong><a href="#treasury">treasury</a></strong></p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>▸ <strong>parentHash</strong>(): <code>Hash</code></p>
|
||||
<p>▸ <strong>extrinsicsRoot</strong>(): <code>Hash</code></p>
|
||||
<p>▸ <strong>digest</strong>(): <code>Digest</code></p>
|
||||
<p>▸ <strong>events</strong>(): <code>Vec<EventRecord></code></p>
|
||||
<hr>
|
||||
<h3 id="consensus">consensus</h3>
|
||||
<p>▸ <strong>originalAuthorities</strong>(): <code>Vec<SessionKey></code></p>
|
||||
<hr>
|
||||
<h3 id="balances">balances</h3>
|
||||
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
||||
<h3 id="balances"><a id="balances"></a>balances</h3>
|
||||
<p>▸ <strong>totalIssuance</strong>(): <code>Balance</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The total amount of stake on the system.</li>
|
||||
@@ -447,21 +456,168 @@
|
||||
<li><strong>summary</strong>: The fee to be paid for making a transaction; the per-byte portion.</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h3 id="timestamp">timestamp</h3>
|
||||
<p>▸ <strong>now</strong>(): <code>Moment</code></p>
|
||||
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
||||
<h3 id="consensus"><a id="consensus"></a>consensus</h3>
|
||||
<p>▸ <strong>originalAuthorities</strong>(): <code>Vec<SessionKey></code></p>
|
||||
<hr>
|
||||
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
||||
<h3 id="council"><a id="council"></a>council</h3>
|
||||
<p>▸ <strong>candidacyBond</strong>(): <code>Balance</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Current time for the current block.</li>
|
||||
<li><strong>summary</strong>: How much should be locked up in order to submit one's candidacy.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>blockPeriod</strong>(): <code>Moment</code></p>
|
||||
<p>▸ <strong>votingBond</strong>(): <code>Balance</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The minimum (and advised) period between blocks.</li>
|
||||
<li><strong>summary</strong>: How much should be locked up in order to be able to submit votes.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>didUpdate</strong>(): <code>bool</code></p>
|
||||
<p>▸ <strong>presentSlashPerVoter</strong>(): <code>Balance</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Did the timestamp get updated in this block?</li>
|
||||
<li><strong>summary</strong>: The punishment, per voter, if you provide an invalid presentation.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>carryCount</strong>(): <code>u32</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: How many runners-up should have their approvals persist until the next vote.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>presentationDuration</strong>(): <code>BlockNumber</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: How long to give each top candidate to present themselves after the vote ends.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>inactiveGracePeriod</strong>(): <code>VoteIndex</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: How many votes need to go by after a voter's last vote before they can be reaped if their approvals are moot.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>votingPeriod</strong>(): <code>BlockNumber</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: How often (in blocks) to check for new votes.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>termDuration</strong>(): <code>BlockNumber</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: How long each position is active for.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>desiredSeats</strong>(): <code>u32</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Number of accounts that should be sitting on the council.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>activeCouncil</strong>(): <code>Vec<(AccountId, BlockNumber)></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The current council. When there's a vote going on, this should still be used for executive matters.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>voteCount</strong>(): <code>VoteIndex</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The total number of votes that have happened or are in progress.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>approvalsOf</strong>(<code>AccountId</code>): <code>Vec<bool></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The last cleared vote index that this voter was last active at.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>registerInfoOf</strong>(<code>AccountId</code>): <code>(VoteIndex, u32)</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The vote index and list slot that the candidate <code>who</code> was registered or <code>None</code> if they are not currently registered.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>lastActiveOf</strong>(<code>AccountId</code>): <code>VoteIndex</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The last cleared vote index that this voter was last active at.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>voters</strong>(): <code>Vec<AccountId></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The present voter list.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>candidates</strong>(): <code>Vec<AccountId></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The present candidate list.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>candidateCount</strong>(): <code>u32</code></p>
|
||||
<p>▸ <strong>nextFinalise</strong>(): <code>(BlockNumber, u32, Vec<AccountId>)</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The accounts holding the seats that will become free on the next tally.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>snapshotedStakes</strong>(): <code>Vec<Balance></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The stakes as they were at the point that the vote ended.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>leaderboard</strong>(): <code>Vec<(Balance, AccountId)></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Get the leaderboard if we;re in the presentation phase.</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h3 id="session">session</h3>
|
||||
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
||||
<h3 id="councilmotions"><a id="councilMotions"></a>councilMotions</h3>
|
||||
<p>▸ <strong>proposals</strong>(): <code>Vec<Hash></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The (hashes of) the active proposals.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>proposalOf</strong>(<code>Hash</code>): <code>Proposal</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Actual proposal for a given hash, if it's current.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>voting</strong>(<code>Hash</code>): <code>(ProposalIndex, u32, Vec<AccountId>, Vec<AccountId>)</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Votes for a given proposal: (required_yes_votes, yes_voters, no_voters).</li>
|
||||
</ul>
|
||||
<p>▸ <strong>proposalCount</strong>(): <code>u32</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Proposals so far.</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
||||
<h3 id="councilvoting"><a id="councilVoting"></a>councilVoting</h3>
|
||||
<p>▸ <strong>cooloffPeriod</strong>(): <code>BlockNumber</code></p>
|
||||
<p>▸ <strong>votingPeriod</strong>(): <code>BlockNumber</code></p>
|
||||
<p>▸ <strong>proposals</strong>(): <code>Vec<(BlockNumber, Hash)></code></p>
|
||||
<p>▸ <strong>proposalOf</strong>(<code>Hash</code>): <code>Proposal</code></p>
|
||||
<p>▸ <strong>proposalVoters</strong>(<code>Hash</code>): <code>Vec<AccountId></code></p>
|
||||
<p>▸ <strong>councilVoteOf</strong>(<code>(Hash, AccountId)</code>): <code>bool</code></p>
|
||||
<p>▸ <strong>vetoedProposal</strong>(<code>Hash</code>): <code>(BlockNumber, Vec<AccountId>)</code></p>
|
||||
<hr>
|
||||
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
||||
<h3 id="democracy"><a id="democracy"></a>democracy</h3>
|
||||
<p>▸ <strong>publicPropCount</strong>(): <code>PropIndex</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The number of (public) proposals that have been made so far.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>publicProps</strong>(): <code>Vec<(PropIndex, Proposal, AccountId)></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The public proposals. Unsorted.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>depositOf</strong>(<code>PropIndex</code>): <code>(Balance, Vec<AccountId>)</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Those who have locked a deposit.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>launchPeriod</strong>(): <code>BlockNumber</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: How often (in blocks) new public referenda are launched.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>minimumDeposit</strong>(): <code>Balance</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The minimum amount to be used as a deposit for a public referendum proposal.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>votingPeriod</strong>(): <code>BlockNumber</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: How often (in blocks) to check for new votes.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>referendumCount</strong>(): <code>ReferendumIndex</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The next free referendum index, aka the number of referendums started so far.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>nextTally</strong>(): <code>ReferendumIndex</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The next referendum index that should be tallied.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>referendumInfoOf</strong>(<code>ReferendumIndex</code>): <code>(BlockNumber, Proposal, VoteThreshold)</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Information concerning any given referendum.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>votersFor</strong>(<code>ReferendumIndex</code>): <code>Vec<AccountId></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Get the voters for the current proposal.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>voteOf</strong>(<code>(ReferendumIndex, AccountId)</code>): <code>bool</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Get the vote, if Some, of <code>who</code>.</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
||||
<h3 id="session"><a id="session"></a>session</h3>
|
||||
<p>▸ <strong>validators</strong>(): <code>Vec<AccountId></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The current set of validators.</li>
|
||||
@@ -495,7 +651,8 @@
|
||||
<li><strong>summary</strong>: The next session length.</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h3 id="staking">staking</h3>
|
||||
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
||||
<h3 id="staking"><a id="staking"></a>staking</h3>
|
||||
<p>▸ <strong>validatorCount</strong>(): <code>u32</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The ideal number of staking participants.</li>
|
||||
@@ -581,159 +738,39 @@
|
||||
<li><strong>summary</strong>: We are forcing a new era.</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h3 id="democracy">democracy</h3>
|
||||
<p>▸ <strong>publicPropCount</strong>(): <code>PropIndex</code></p>
|
||||
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
||||
<h3 id="system"><a id="system"></a>system</h3>
|
||||
<p>▸ <strong>accountNonce</strong>(<code>AccountId</code>): <code>Index</code></p>
|
||||
<p>▸ <strong>extrinsicCount</strong>(): <code>u32</code></p>
|
||||
<p>▸ <strong>blockHash</strong>(<code>BlockNumber</code>): <code>Hash</code></p>
|
||||
<p>▸ <strong>extrinsicData</strong>(<code>u32</code>): <code>Bytes</code></p>
|
||||
<p>▸ <strong>randomSeed</strong>(): <code>Hash</code></p>
|
||||
<p>▸ <strong>number</strong>(): <code>BlockNumber</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The number of (public) proposals that have been made so far.</li>
|
||||
<li><strong>summary</strong>: The current block number being processed. Set by <code>execute_block</code>.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>publicProps</strong>(): <code>Vec<(PropIndex, Proposal, AccountId)></code></p>
|
||||
<p>▸ <strong>parentHash</strong>(): <code>Hash</code></p>
|
||||
<p>▸ <strong>extrinsicsRoot</strong>(): <code>Hash</code></p>
|
||||
<p>▸ <strong>digest</strong>(): <code>Digest</code></p>
|
||||
<p>▸ <strong>events</strong>(): <code>Vec<EventRecord></code></p>
|
||||
<hr>
|
||||
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
||||
<h3 id="timestamp"><a id="timestamp"></a>timestamp</h3>
|
||||
<p>▸ <strong>now</strong>(): <code>Moment</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The public proposals. Unsorted.</li>
|
||||
<li><strong>summary</strong>: Current time for the current block.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>depositOf</strong>(<code>PropIndex</code>): <code>(Balance, Vec<AccountId>)</code></p>
|
||||
<p>▸ <strong>blockPeriod</strong>(): <code>Moment</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Those who have locked a deposit.</li>
|
||||
<li><strong>summary</strong>: The minimum (and advised) period between blocks.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>launchPeriod</strong>(): <code>BlockNumber</code></p>
|
||||
<p>▸ <strong>didUpdate</strong>(): <code>bool</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: How often (in blocks) new public referenda are launched.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>minimumDeposit</strong>(): <code>Balance</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The minimum amount to be used as a deposit for a public referendum proposal.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>votingPeriod</strong>(): <code>BlockNumber</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: How often (in blocks) to check for new votes.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>referendumCount</strong>(): <code>ReferendumIndex</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The next free referendum index, aka the number of referendums started so far.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>nextTally</strong>(): <code>ReferendumIndex</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The next referendum index that should be tallied.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>referendumInfoOf</strong>(<code>ReferendumIndex</code>): <code>(BlockNumber, Proposal, VoteThreshold)</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Information concerning any given referendum.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>votersFor</strong>(<code>ReferendumIndex</code>): <code>Vec<AccountId></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Get the voters for the current proposal.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>voteOf</strong>(<code>(ReferendumIndex, AccountId)</code>): <code>bool</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Get the vote, if Some, of <code>who</code>.</li>
|
||||
<li><strong>summary</strong>: Did the timestamp get updated in this block?</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h3 id="council">council</h3>
|
||||
<p>▸ <strong>candidacyBond</strong>(): <code>Balance</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: How much should be locked up in order to submit one's candidacy.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>votingBond</strong>(): <code>Balance</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: How much should be locked up in order to be able to submit votes.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>presentSlashPerVoter</strong>(): <code>Balance</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The punishment, per voter, if you provide an invalid presentation.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>carryCount</strong>(): <code>u32</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: How many runners-up should have their approvals persist until the next vote.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>presentationDuration</strong>(): <code>BlockNumber</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: How long to give each top candidate to present themselves after the vote ends.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>inactiveGracePeriod</strong>(): <code>VoteIndex</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: How many votes need to go by after a voter's last vote before they can be reaped if their approvals are moot.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>votingPeriod</strong>(): <code>BlockNumber</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: How often (in blocks) to check for new votes.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>termDuration</strong>(): <code>BlockNumber</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: How long each position is active for.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>desiredSeats</strong>(): <code>u32</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Number of accounts that should be sitting on the council.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>activeCouncil</strong>(): <code>Vec<(AccountId, BlockNumber)></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The current council. When there's a vote going on, this should still be used for executive matters.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>voteCount</strong>(): <code>VoteIndex</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The total number of votes that have happened or are in progress.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>approvalsOf</strong>(<code>AccountId</code>): <code>Vec<bool></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The last cleared vote index that this voter was last active at.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>registerInfoOf</strong>(<code>AccountId</code>): <code>(VoteIndex, u32)</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The vote index and list slot that the candidate <code>who</code> was registered or <code>None</code> if they are not currently registered.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>lastActiveOf</strong>(<code>AccountId</code>): <code>VoteIndex</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The last cleared vote index that this voter was last active at.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>voters</strong>(): <code>Vec<AccountId></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The present voter list.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>candidates</strong>(): <code>Vec<AccountId></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The present candidate list.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>candidateCount</strong>(): <code>u32</code></p>
|
||||
<p>▸ <strong>nextFinalise</strong>(): <code>(BlockNumber, u32, Vec<AccountId>)</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The accounts holding the seats that will become free on the next tally.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>snapshotedStakes</strong>(): <code>Vec<Balance></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The stakes as they were at the point that the vote ended.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>leaderboard</strong>(): <code>Vec<(Balance, AccountId)></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Get the leaderboard if we;re in the presentation phase.</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h3 id="councilvoting">councilVoting</h3>
|
||||
<p>▸ <strong>cooloffPeriod</strong>(): <code>BlockNumber</code></p>
|
||||
<p>▸ <strong>votingPeriod</strong>(): <code>BlockNumber</code></p>
|
||||
<p>▸ <strong>proposals</strong>(): <code>Vec<(BlockNumber, Hash)></code></p>
|
||||
<p>▸ <strong>proposalOf</strong>(<code>Hash</code>): <code>Proposal</code></p>
|
||||
<p>▸ <strong>proposalVoters</strong>(<code>Hash</code>): <code>Vec<AccountId></code></p>
|
||||
<p>▸ <strong>councilVoteOf</strong>(<code>(Hash, AccountId)</code>): <code>bool</code></p>
|
||||
<p>▸ <strong>vetoedProposal</strong>(<code>Hash</code>): <code>(BlockNumber, Vec<AccountId>)</code></p>
|
||||
<hr>
|
||||
<h3 id="councilmotions">councilMotions</h3>
|
||||
<p>▸ <strong>proposals</strong>(): <code>Vec<Hash></code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: The (hashes of) the active proposals.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>proposalOf</strong>(<code>Hash</code>): <code>Proposal</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Actual proposal for a given hash, if it's current.</li>
|
||||
</ul>
|
||||
<p>▸ <strong>voting</strong>(<code>Hash</code>): <code>(ProposalIndex, u32, Vec<AccountId>, Vec<AccountId>)</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Votes for a given proposal: (required_yes_votes, yes_voters, no_voters).</li>
|
||||
</ul>
|
||||
<p>▸ <strong>proposalCount</strong>(): <code>u32</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Proposals so far.</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h3 id="treasury">treasury</h3>
|
||||
<p><a href="#top" style="float: right; font-size: 1.6rem; font-weight: bold;">Back To Top</a></p>
|
||||
<h3 id="treasury"><a id="treasury"></a>treasury</h3>
|
||||
<p>▸ <strong>proposalBond</strong>(): <code>Permill</code></p>
|
||||
<ul>
|
||||
<li><strong>summary</strong>: Proportion of funds that should be bonded in order to place a proposal. An accepted proposal gets these back. A rejected proposal doesn't.</li>
|
||||
@@ -837,7 +874,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Storage chain state (runtime)","level":"2.2","depth":1,"next":{"title":"Extrinsics (runtime)","level":"2.3","depth":1,"path":"METHODS_EXTRINSICS.md","ref":"METHODS_EXTRINSICS.md","articles":[]},"previous":{"title":"RPC","level":"2.1","depth":1,"path":"METHODS_RPC.md","ref":"METHODS_RPC.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/api/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"METHODS_STORAGE.md","mtime":"2018-10-15T21:17:53.865Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-15T21:19:48.745Z"},"basePath":".","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Storage chain state (runtime)","level":"2.2","depth":1,"next":{"title":"Extrinsics (runtime)","level":"2.3","depth":1,"path":"METHODS_EXTRINSICS.md","ref":"METHODS_EXTRINSICS.md","articles":[]},"previous":{"title":"RPC","level":"2.1","depth":1,"path":"METHODS_RPC.md","ref":"METHODS_RPC.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/api/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"METHODS_STORAGE.md","mtime":"2018-10-15T21:38:41.479Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-15T21:40:43.175Z"},"basePath":".","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user