Files
api/docs/METHODS_STORAGE.html
T
2018-10-15 20:59:02 +00:00

888 lines
33 KiB
HTML

<!DOCTYPE HTML>
<html lang="" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Storage chain state (runtime) · Polkadot API Book</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.3">
<link rel="stylesheet" href="gitbook/style.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-insert-logo-link/plugin.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-sunlight-highlighter/sunlight.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
<link rel="stylesheet" href="styles/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="METHODS_EXTRINSICS.html" />
<link rel="prev" href="METHODS_RPC.html" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="header">Packages</li>
<li class="chapter " data-level="1.1" data-path="./">
<a href="./">
Introduction
</a>
</li>
<li class="chapter " data-level="1.2" data-path="api/">
<a href="api/">
api
</a>
<ul class="articles">
<li class="chapter " data-level="1.2.1" data-path="api/classes/_promise_index_.apipromise.html">
<a href="api/classes/_promise_index_.apipromise.html">
ApiPromise
</a>
</li>
<li class="chapter " data-level="1.2.2" data-path="api/classes/_rx_index_.apirx.html">
<a href="api/classes/_rx_index_.apirx.html">
ApiRx
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3" data-path="rpc-provider/">
<a href="rpc-provider/">
rpc-provider
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.1" data-path="rpc-provider/classes/_http_index_.httpprovider.html">
<a href="rpc-provider/classes/_http_index_.httpprovider.html">
HttpProvider
</a>
</li>
<li class="chapter " data-level="1.3.2" data-path="rpc-provider/classes/_ws_index_.wsprovider.html">
<a href="rpc-provider/classes/_ws_index_.wsprovider.html">
WsProvider
</a>
</li>
</ul>
</li>
<li class="header">Node Interfaces</li>
<li class="chapter " data-level="2.1" data-path="METHODS_RPC.html">
<a href="METHODS_RPC.html">
RPC
</a>
</li>
<li class="chapter active" data-level="2.2" data-path="METHODS_STORAGE.html">
<a href="METHODS_STORAGE.html">
Storage chain state (runtime)
</a>
</li>
<li class="chapter " data-level="2.3" data-path="METHODS_EXTRINSICS.html">
<a href="METHODS_EXTRINSICS.html">
Extrinsics (runtime)
</a>
</li>
<li class="header">Examples</li>
<li class="chapter " data-level="3.1" data-path="examples/promise/">
<a href="examples/promise/">
ApiPromise
</a>
<ul class="articles">
<li class="chapter " data-level="3.1.1" data-path="examples/promise/01_simple_connect/">
<a href="examples/promise/01_simple_connect/">
Simple connect
</a>
</li>
<li class="chapter " data-level="3.1.2" data-path="examples/promise/02_listen_to_blocks/">
<a href="examples/promise/02_listen_to_blocks/">
Listen to blocks
</a>
</li>
<li class="chapter " data-level="3.1.3" data-path="examples/promise/03_listen_to_balance_change/">
<a href="examples/promise/03_listen_to_balance_change/">
Listen to balance change
</a>
</li>
<li class="chapter " data-level="3.1.4" data-path="examples/promise/05_read_storage/">
<a href="examples/promise/05_read_storage/">
Read chain state
</a>
</li>
<li class="chapter " data-level="3.1.5" data-path="examples/promise/07_transfer_dots/">
<a href="examples/promise/07_transfer_dots/">
Make a transfer
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
Published with GitBook
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href="." >Storage chain state (runtime)</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<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>&#x25B8; <strong>accountNonce</strong>(<code>AccountId</code>): <code>Index</code></p>
<p>&#x25B8; <strong>extrinsicCount</strong>(): <code>u32</code></p>
<p>&#x25B8; <strong>blockHash</strong>(<code>BlockNumber</code>): <code>Hash</code></p>
<p>&#x25B8; <strong>extrinsicData</strong>(<code>u32</code>): <code>Bytes</code></p>
<p>&#x25B8; <strong>randomSeed</strong>(): <code>Hash</code></p>
<p>&#x25B8; <strong>number</strong>(): <code>BlockNumber</code></p>
<ul>
<li><strong>summary</strong>: The current block number being processed. Set by <code>execute_block</code>.</li>
</ul>
<p>&#x25B8; <strong>parentHash</strong>(): <code>Hash</code></p>
<p>&#x25B8; <strong>extrinsicsRoot</strong>(): <code>Hash</code></p>
<p>&#x25B8; <strong>digest</strong>(): <code>Digest</code></p>
<p>&#x25B8; <strong>events</strong>(): <code>Vec&lt;EventRecord&gt;</code></p>
<hr>
<h3 id="consensus">consensus</h3>
<p>&#x25B8; <strong>originalAuthorities</strong>(): <code>Vec&lt;SessionKey&gt;</code></p>
<hr>
<h3 id="balances">balances</h3>
<p>&#x25B8; <strong>totalIssuance</strong>(): <code>Balance</code></p>
<ul>
<li><strong>summary</strong>: The total amount of stake on the system.</li>
</ul>
<p>&#x25B8; <strong>existentialDeposit</strong>(): <code>Balance</code></p>
<ul>
<li><strong>summary</strong>: The minimum amount allowed to keep an account open.</li>
</ul>
<p>&#x25B8; <strong>reclaimRebate</strong>(): <code>Balance</code></p>
<ul>
<li><strong>summary</strong>: The amount credited to a destination&apos;s account whose index was reclaimed.</li>
</ul>
<p>&#x25B8; <strong>transferFee</strong>(): <code>Balance</code></p>
<ul>
<li><strong>summary</strong>: The fee required to make a transfer.</li>
</ul>
<p>&#x25B8; <strong>creationFee</strong>(): <code>Balance</code></p>
<ul>
<li><strong>summary</strong>: The fee required to create an account. At least as big as ReclaimRebate.</li>
</ul>
<p>&#x25B8; <strong>nextEnumSet</strong>(): <code>AccountIndex</code></p>
<ul>
<li><strong>summary</strong>: The next free enumeration set.</li>
</ul>
<p>&#x25B8; <strong>enumSet</strong>(<code>AccountIndex</code>): <code>Vec&lt;AccountId&gt;</code></p>
<ul>
<li><strong>summary</strong>: The enumeration sets.</li>
</ul>
<p>&#x25B8; <strong>freeBalance</strong>(<code>AccountId</code>): <code>Balance</code></p>
<ul>
<li><strong>summary</strong>: The &apos;free&apos; 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 <code>ExistentialDeposit</code>, then the &apos;current account&apos; is deleted: specifically <code>FreeBalance</code>. Furthermore, <code>OnFreeBalanceZero</code> callback is invoked, giving a chance to external modules to cleanup data associated with the deleted account. <code>system::AccountNonce</code> is also deleted if <code>ReservedBalance</code> is also zero (it also gets collapsed to zero if it ever becomes less than <code>ExistentialDeposit</code>.</li>
</ul>
<p>&#x25B8; <strong>reservedBalance</strong>(<code>AccountId</code>): <code>Balance</code></p>
<ul>
<li><strong>summary</strong>: 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 &apos;reserve&apos; balance that other subsystems use in order to set aside tokens that are still &apos;owned&apos; by the account holder, but which are suspendable. (This is different and wholly unrelated to the <code>Bondage</code> system used in the staking module.) When this balance falls below the value of <code>ExistentialDeposit</code>, then this &apos;reserve account&apos; is deleted: specifically, <code>ReservedBalance</code>. <code>system::AccountNonce</code> is also deleted if <code>FreeBalance</code> is also zero (it also gets collapsed to zero if it ever becomes less than <code>ExistentialDeposit</code>.</li>
</ul>
<p>&#x25B8; <strong>transactionBaseFee</strong>(): <code>Balance</code></p>
<ul>
<li><strong>summary</strong>: The fee to be paid for making a transaction; the base.</li>
</ul>
<p>&#x25B8; <strong>transactionByteFee</strong>(): <code>Balance</code></p>
<ul>
<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>&#x25B8; <strong>now</strong>(): <code>Moment</code></p>
<ul>
<li><strong>summary</strong>: Current time for the current block.</li>
</ul>
<p>&#x25B8; <strong>blockPeriod</strong>(): <code>Moment</code></p>
<ul>
<li><strong>summary</strong>: The minimum (and advised) period between blocks.</li>
</ul>
<p>&#x25B8; <strong>didUpdate</strong>(): <code>bool</code></p>
<ul>
<li><strong>summary</strong>: Did the timestamp get updated in this block?</li>
</ul>
<hr>
<h3 id="session">session</h3>
<p>&#x25B8; <strong>validators</strong>(): <code>Vec&lt;AccountId&gt;</code></p>
<ul>
<li><strong>summary</strong>: The current set of validators.</li>
</ul>
<p>&#x25B8; <strong>sessionLength</strong>(): <code>BlockNumber</code></p>
<ul>
<li><strong>summary</strong>: Current length of the session.</li>
</ul>
<p>&#x25B8; <strong>currentIndex</strong>(): <code>BlockNumber</code></p>
<ul>
<li><strong>summary</strong>: Current index of the session.</li>
</ul>
<p>&#x25B8; <strong>currentStart</strong>(): <code>Moment</code></p>
<ul>
<li><strong>summary</strong>: Timestamp when current session started.</li>
</ul>
<p>&#x25B8; <strong>forcingNewSession</strong>(): <code>bool</code></p>
<ul>
<li><strong>summary</strong>: New session is being forced is this entry exists; in which case, the boolean value is whether the new session should be considered a normal rotation (rewardable) or exceptional (slashable).</li>
</ul>
<p>&#x25B8; <strong>lastLengthChange</strong>(): <code>BlockNumber</code></p>
<ul>
<li><strong>summary</strong>: Block at which the session length last changed.</li>
</ul>
<p>&#x25B8; <strong>nextKeyFor</strong>(<code>AccountId</code>): <code>SessionKey</code></p>
<ul>
<li><strong>summary</strong>: The next key for a given validator.</li>
</ul>
<p>&#x25B8; <strong>nextSessionLength</strong>(): <code>BlockNumber</code></p>
<ul>
<li><strong>summary</strong>: The next session length.</li>
</ul>
<hr>
<h3 id="staking">staking</h3>
<p>&#x25B8; <strong>validatorCount</strong>(): <code>u32</code></p>
<ul>
<li><strong>summary</strong>: The ideal number of staking participants.</li>
</ul>
<p>&#x25B8; <strong>minimumValidatorCount</strong>(): <code>u32</code></p>
<ul>
<li><strong>summary</strong>: Minimum number of staking participants before emergency conditions are imposed.</li>
</ul>
<p>&#x25B8; <strong>sessionsPerEra</strong>(): <code>BlockNumber</code></p>
<ul>
<li><strong>summary</strong>: The length of a staking era in sessions.</li>
</ul>
<p>&#x25B8; <strong>sessionReward</strong>(): <code>Perbill</code></p>
<ul>
<li><strong>summary</strong>: Maximum reward, per validator, that is provided per acceptable session.</li>
</ul>
<p>&#x25B8; <strong>offlineSlash</strong>(): <code>Perbill</code></p>
<ul>
<li><strong>summary</strong>: Slash, per validator that is taken for the first time they are found to be offline.</li>
</ul>
<p>&#x25B8; <strong>offlineSlashGrace</strong>(): <code>u32</code></p>
<ul>
<li><strong>summary</strong>: Number of instances of offline reports before slashing begins for validators.</li>
</ul>
<p>&#x25B8; <strong>bondingDuration</strong>(): <code>BlockNumber</code></p>
<ul>
<li><strong>summary</strong>: The length of the bonding duration in blocks.</li>
</ul>
<p>&#x25B8; <strong>currentEra</strong>(): <code>BlockNumber</code></p>
<ul>
<li><strong>summary</strong>: The current era index.</li>
</ul>
<p>&#x25B8; <strong>validatorPreferences</strong>(<code>AccountId</code>): <code>ValidatorPrefs</code></p>
<ul>
<li><strong>summary</strong>: Preferences that a validator has.</li>
</ul>
<p>&#x25B8; <strong>intentions</strong>(): <code>Vec&lt;AccountId&gt;</code></p>
<ul>
<li><strong>summary</strong>: All the accounts with a desire to stake.</li>
</ul>
<p>&#x25B8; <strong>nominating</strong>(<code>AccountId</code>): <code>AccountId</code></p>
<ul>
<li><strong>summary</strong>: All nominator -&gt; nominee relationships.</li>
</ul>
<p>&#x25B8; <strong>nominatorsFor</strong>(<code>AccountId</code>): <code>Vec&lt;AccountId&gt;</code></p>
<ul>
<li><strong>summary</strong>: Nominators for a particular account.</li>
</ul>
<p>&#x25B8; <strong>currentNominatorsFor</strong>(<code>AccountId</code>): <code>Vec&lt;AccountId&gt;</code></p>
<ul>
<li><strong>summary</strong>: Nominators for a particular account that is in action right now.</li>
</ul>
<p>&#x25B8; <strong>currentSessionReward</strong>(): <code>Balance</code></p>
<ul>
<li><strong>summary</strong>: Maximum reward, per validator, that is provided per acceptable session.</li>
</ul>
<p>&#x25B8; <strong>currentOfflineSlash</strong>(): <code>Balance</code></p>
<ul>
<li><strong>summary</strong>: Slash, per validator that is taken for the first time they are found to be offline.</li>
</ul>
<p>&#x25B8; <strong>nextSessionsPerEra</strong>(): <code>BlockNumber</code></p>
<ul>
<li><strong>summary</strong>: The next value of sessions per era.</li>
</ul>
<p>&#x25B8; <strong>lastEraLengthChange</strong>(): <code>BlockNumber</code></p>
<ul>
<li><strong>summary</strong>: The session index at which the era length last changed.</li>
</ul>
<p>&#x25B8; <strong>stakeRange</strong>(): <code>PairOf</code></p>
<ul>
<li><strong>summary</strong>: The highest and lowest staked validator slashable balances.</li>
</ul>
<p>&#x25B8; <strong>bondage</strong>(<code>AccountId</code>): <code>BlockNumber</code></p>
<ul>
<li><strong>summary</strong>: The block at which the <code>who</code>&apos;s funds become entirely liquid.</li>
</ul>
<p>&#x25B8; <strong>slashCount</strong>(<code>AccountId</code>): <code>u32</code></p>
<ul>
<li><strong>summary</strong>: The number of times a given validator has been reported offline. This gets decremented by one each era that passes.</li>
</ul>
<p>&#x25B8; <strong>forcingNewEra</strong>(): <code>()</code></p>
<ul>
<li><strong>summary</strong>: We are forcing a new era.</li>
</ul>
<hr>
<h3 id="democracy">democracy</h3>
<p>&#x25B8; <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>&#x25B8; <strong>publicProps</strong>(): <code>Vec&lt;(PropIndex, Proposal, AccountId)&gt;</code></p>
<ul>
<li><strong>summary</strong>: The public proposals. Unsorted.</li>
</ul>
<p>&#x25B8; <strong>depositOf</strong>(<code>PropIndex</code>): <code>(Balance, Vec&lt;AccountId&gt;)</code></p>
<ul>
<li><strong>summary</strong>: Those who have locked a deposit.</li>
</ul>
<p>&#x25B8; <strong>launchPeriod</strong>(): <code>BlockNumber</code></p>
<ul>
<li><strong>summary</strong>: How often (in blocks) new public referenda are launched.</li>
</ul>
<p>&#x25B8; <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>&#x25B8; <strong>votingPeriod</strong>(): <code>BlockNumber</code></p>
<ul>
<li><strong>summary</strong>: How often (in blocks) to check for new votes.</li>
</ul>
<p>&#x25B8; <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>&#x25B8; <strong>nextTally</strong>(): <code>ReferendumIndex</code></p>
<ul>
<li><strong>summary</strong>: The next referendum index that should be tallied.</li>
</ul>
<p>&#x25B8; <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>&#x25B8; <strong>votersFor</strong>(<code>ReferendumIndex</code>): <code>Vec&lt;AccountId&gt;</code></p>
<ul>
<li><strong>summary</strong>: Get the voters for the current proposal.</li>
</ul>
<p>&#x25B8; <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>
<h3 id="council">council</h3>
<p>&#x25B8; <strong>candidacyBond</strong>(): <code>Balance</code></p>
<ul>
<li><strong>summary</strong>: How much should be locked up in order to submit one&apos;s candidacy.</li>
</ul>
<p>&#x25B8; <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>&#x25B8; <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>&#x25B8; <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>&#x25B8; <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>&#x25B8; <strong>inactiveGracePeriod</strong>(): <code>VoteIndex</code></p>
<ul>
<li><strong>summary</strong>: How many votes need to go by after a voter&apos;s last vote before they can be reaped if their approvals are moot.</li>
</ul>
<p>&#x25B8; <strong>votingPeriod</strong>(): <code>BlockNumber</code></p>
<ul>
<li><strong>summary</strong>: How often (in blocks) to check for new votes.</li>
</ul>
<p>&#x25B8; <strong>termDuration</strong>(): <code>BlockNumber</code></p>
<ul>
<li><strong>summary</strong>: How long each position is active for.</li>
</ul>
<p>&#x25B8; <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>&#x25B8; <strong>activeCouncil</strong>(): <code>Vec&lt;(AccountId, BlockNumber)&gt;</code></p>
<ul>
<li><strong>summary</strong>: The current council. When there&apos;s a vote going on, this should still be used for executive matters.</li>
</ul>
<p>&#x25B8; <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>&#x25B8; <strong>approvalsOf</strong>(<code>AccountId</code>): <code>Vec&lt;bool&gt;</code></p>
<ul>
<li><strong>summary</strong>: The last cleared vote index that this voter was last active at.</li>
</ul>
<p>&#x25B8; <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>&#x25B8; <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>&#x25B8; <strong>voters</strong>(): <code>Vec&lt;AccountId&gt;</code></p>
<ul>
<li><strong>summary</strong>: The present voter list.</li>
</ul>
<p>&#x25B8; <strong>candidates</strong>(): <code>Vec&lt;AccountId&gt;</code></p>
<ul>
<li><strong>summary</strong>: The present candidate list.</li>
</ul>
<p>&#x25B8; <strong>candidateCount</strong>(): <code>u32</code></p>
<p>&#x25B8; <strong>nextFinalise</strong>(): <code>(BlockNumber, u32, Vec&lt;AccountId&gt;)</code></p>
<ul>
<li><strong>summary</strong>: The accounts holding the seats that will become free on the next tally.</li>
</ul>
<p>&#x25B8; <strong>snapshotedStakes</strong>(): <code>Vec&lt;Balance&gt;</code></p>
<ul>
<li><strong>summary</strong>: The stakes as they were at the point that the vote ended.</li>
</ul>
<p>&#x25B8; <strong>leaderboard</strong>(): <code>Vec&lt;(Balance, AccountId)&gt;</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>&#x25B8; <strong>cooloffPeriod</strong>(): <code>BlockNumber</code></p>
<p>&#x25B8; <strong>votingPeriod</strong>(): <code>BlockNumber</code></p>
<p>&#x25B8; <strong>proposals</strong>(): <code>Vec&lt;(BlockNumber, Hash)&gt;</code></p>
<p>&#x25B8; <strong>proposalOf</strong>(<code>Hash</code>): <code>Proposal</code></p>
<p>&#x25B8; <strong>proposalVoters</strong>(<code>Hash</code>): <code>Vec&lt;AccountId&gt;</code></p>
<p>&#x25B8; <strong>councilVoteOf</strong>(<code>(Hash, AccountId)</code>): <code>bool</code></p>
<p>&#x25B8; <strong>vetoedProposal</strong>(<code>Hash</code>): <code>(BlockNumber, Vec&lt;AccountId&gt;)</code></p>
<hr>
<h3 id="councilmotions">councilMotions</h3>
<p>&#x25B8; <strong>proposals</strong>(): <code>Vec&lt;Hash&gt;</code></p>
<ul>
<li><strong>summary</strong>: The (hashes of) the active proposals.</li>
</ul>
<p>&#x25B8; <strong>proposalOf</strong>(<code>Hash</code>): <code>Proposal</code></p>
<ul>
<li><strong>summary</strong>: Actual proposal for a given hash, if it&apos;s current.</li>
</ul>
<p>&#x25B8; <strong>voting</strong>(<code>Hash</code>): <code>(ProposalIndex, u32, Vec&lt;AccountId&gt;, Vec&lt;AccountId&gt;)</code></p>
<ul>
<li><strong>summary</strong>: Votes for a given proposal: (required_yes_votes, yes_voters, no_voters).</li>
</ul>
<p>&#x25B8; <strong>proposalCount</strong>(): <code>u32</code></p>
<ul>
<li><strong>summary</strong>: Proposals so far.</li>
</ul>
<hr>
<h3 id="treasury">treasury</h3>
<p>&#x25B8; <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&apos;t.</li>
</ul>
<p>&#x25B8; <strong>proposalBondMinimum</strong>(): <code>Balance</code></p>
<ul>
<li><strong>summary</strong>: Minimum amount of funds that should be placed in a deposit for making a proposal.</li>
</ul>
<p>&#x25B8; <strong>spendPeriod</strong>(): <code>BlockNumber</code></p>
<ul>
<li><strong>summary</strong>: Period between successive spends.</li>
</ul>
<p>&#x25B8; <strong>burn</strong>(): <code>Permill</code></p>
<ul>
<li><strong>summary</strong>: Percentage of spare funds (if any) that are burnt per spend period.</li>
</ul>
<p>&#x25B8; <strong>pot</strong>(): <code>Balance</code></p>
<ul>
<li><strong>summary</strong>: Total funds available to this module for spending.</li>
</ul>
<p>&#x25B8; <strong>proposalCount</strong>(): <code>ProposalIndex</code></p>
<ul>
<li><strong>summary</strong>: Number of proposals that have been made.</li>
</ul>
<p>&#x25B8; <strong>proposals</strong>(<code>ProposalIndex</code>): <code>Proposal</code></p>
<ul>
<li><strong>summary</strong>: Proposals that have been made.</li>
</ul>
<p>&#x25B8; <strong>approvals</strong>(): <code>Vec&lt;ProposalIndex&gt;</code></p>
<ul>
<li><strong>summary</strong>: Proposal indices that have been approved but not yet awarded.</li>
</ul>
<hr>
<h3 id="substrate">substrate</h3>
<p><em>These are keys that are always available to the runtime implementation</em></p>
<p>&#x25B8; <strong>code</strong>(): <code>Bytes</code></p>
<ul>
<li><strong>summary</strong>: Wasm code of the runtime.</li>
</ul>
<p>&#x25B8; <strong>heapPages</strong>(): <code>u64</code></p>
<ul>
<li><strong>summary</strong>: Number of wasm linear memory pages required for execution of the runtime.</li>
</ul>
<p>&#x25B8; <strong>authorityCount</strong>(): <code>u32</code></p>
<ul>
<li><strong>summary</strong>: Number of authorities.</li>
</ul>
<p>&#x25B8; <strong>authorityPrefix</strong>(): <code>u32</code></p>
<ul>
<li><strong>summary</strong>: Prefix under which authorities are storied.</li>
</ul>
<p>&#x25B8; <strong>extrinsicIndex</strong>(): <code>u32</code></p>
<ul>
<li><strong>summary</strong>: Current extrinsic index (u32) is stored under this key.</li>
</ul>
<p>&#x25B8; <strong>changesTrieConfig</strong>(): <code>u32</code></p>
<ul>
<li><strong>summary</strong>: Changes trie configuration is stored under this key.</li>
</ul>
<hr>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="METHODS_RPC.html" class="navigation navigation-prev " aria-label="Previous page: RPC">
<i class="fa fa-angle-left"></i>
</a>
<a href="METHODS_EXTRINSICS.html" class="navigation navigation-next " aria-label="Next page: Extrinsics (runtime)">
<i class="fa fa-angle-right"></i>
</a>
</div>
<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-15T20:56:53.673Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-15T20:58:54.421Z"},"basePath":".","book":{"language":""}});
});
</script>
</div>
<script src="gitbook/gitbook.js"></script>
<script src="gitbook/theme.js"></script>
<script src="gitbook/gitbook-plugin-insert-logo-link/plugin.js"></script>
<script src="gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
<script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
<script src="gitbook/gitbook-plugin-search/search.js"></script>
<script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
<script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
<script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
<script src="gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>
</body>
</html>