Skip to content

Commit

Permalink
release commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Furter committed Feb 6, 2019
1 parent c8021de commit 8b69db8
Show file tree
Hide file tree
Showing 38 changed files with 178 additions and 233 deletions.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/web3-eth-contract.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/web3-eth-ens.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/web3-eth-personal.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/web3-shh.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/web3.doctree
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/_build/html/_sources/web3-eth-contract.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,8 @@ The **callback** will return the 32 bytes transaction hash.

- ``"transactionHash"`` returns ``String``: is fired right after the transaction is sent and a transaction hash is available.
- ``"receipt"`` returns ``Object``: is fired when the transaction *receipt* is available. Receipts from contracts will have no ``logs`` property, but instead an ``events`` property with event names as keys and events as properties. See :ref:`getPastEvents return values <contract-events-return>` for details about the returned event object.
- ``"confirmation"`` returns ``Number``, ``Object``: is fired for every confirmation up to the 24th confirmation. Receives the confirmation number as the first and the receipt as the second argument. Fired from confirmation 1 on, which is the block where it's minded.
- ``"error"`` returns ``Error``: is fired if an error occurs during sending. If a out of gas error, the second parameter is the receipt.
- ``"confirmation"`` returns ``Number``, ``Object``: is fired for every confirmation up to the 24th confirmation. Receives the confirmation number as the first and the receipt as the second argument. Fired from confirmation 1 on, which is the block where it's mined.
- ``"error"`` returns ``Error``: is fired if an error occurs during sending. If an out of gas error, the second parameter is the receipt.


-------
Expand Down
4 changes: 2 additions & 2 deletions docs/_build/html/_sources/web3-eth-ens.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The ``web3.eth.ens`` functions let you interacting with Ens.
import Web3 from 'web3';
import {Ens} from 'web3-eth-ens';
import {Accounts} from 'web3-eth-accounts;
import {Accounts} from 'web3-eth-accounts';
// "Web3.givenProvider" will be set if in an Ethereum supported browser.
const eth = new Ens(
Expand Down Expand Up @@ -388,7 +388,7 @@ Example

.. code-block:: javascript
web3.eth.ens.getText('ethereum.eth', 'key).then((result) => {
web3.eth.ens.getText('ethereum.eth', 'key').then((result) => {
console.log(result);
});
> "0000000000000000000000000000000000000000000000000000000000000000"
Expand Down
4 changes: 3 additions & 1 deletion docs/_build/html/_sources/web3-eth-personal.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ sign
web3.eth.personal.sign(dataToSign, address, password [, callback])
Signs data using a specific account.
Signs data using a specific account. This data is before UTF-8 HEX decoded and enveloped as follows: ``"\x19Ethereum Signed Message:\n" + message.length + message``.



.. note:: Sending your account password over an unsecured HTTP RPC connection is highly unsecure.

Expand Down
9 changes: 3 additions & 6 deletions docs/_build/html/_sources/web3-shh.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -761,8 +761,7 @@ Example
.. code-block:: javascript
const identities = [],
subscription = null;
const identities = [];
Promise.all([
web3.shh.newSymKey().then((id) => {identities.push(id);}),
Expand All @@ -771,7 +770,7 @@ Example
]).then(() => {
// will receive also its own message send, below
subscription = shh.subscribe("messages", {
const subscription = shh.subscribe("messages", {
symKeyID: identities[0],
topics: ['0xffaadd11']
}).on('data', console.log);
Expand All @@ -785,7 +784,7 @@ Example
payload: '0xffffffdddddd1122',
powTime: 3,
powTarget: 0.5
}).then(hash => console.log(`Message with hash ${h} was successfuly sent`))
}).then(hash => console.log(`Message with hash ${hash} was successfuly sent`))
.catch(err => console.log("Error: ", err));
});
Expand Down Expand Up @@ -1023,5 +1022,3 @@ Example
"topic": "0x01020304",
"ttl": 50
},{...}]
2 changes: 1 addition & 1 deletion docs/_build/html/_sources/web3.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Web3
====

The Web3 class is an wrapper to house all Ethereum related modules.
The Web3 class is a wrapper to house all Ethereum related modules.

.. code-block:: javascript
Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/searchindex.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/_build/html/web3-eth-contract.html
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,8 @@ <h3>Returns<a class="headerlink" href="#id22" title="Permalink to this headline"
<ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">&quot;transactionHash&quot;</span></code> returns <code class="docutils literal notranslate"><span class="pre">String</span></code>: is fired right after the transaction is sent and a transaction hash is available.</li>
<li><code class="docutils literal notranslate"><span class="pre">&quot;receipt&quot;</span></code> returns <code class="docutils literal notranslate"><span class="pre">Object</span></code>: is fired when the transaction <em>receipt</em> is available. Receipts from contracts will have no <code class="docutils literal notranslate"><span class="pre">logs</span></code> property, but instead an <code class="docutils literal notranslate"><span class="pre">events</span></code> property with event names as keys and events as properties. See <a class="reference internal" href="#contract-events-return"><span class="std std-ref">getPastEvents return values</span></a> for details about the returned event object.</li>
<li><code class="docutils literal notranslate"><span class="pre">&quot;confirmation&quot;</span></code> returns <code class="docutils literal notranslate"><span class="pre">Number</span></code>, <code class="docutils literal notranslate"><span class="pre">Object</span></code>: is fired for every confirmation up to the 24th confirmation. Receives the confirmation number as the first and the receipt as the second argument. Fired from confirmation 1 on, which is the block where it’s minded.</li>
<li><code class="docutils literal notranslate"><span class="pre">&quot;error&quot;</span></code> returns <code class="docutils literal notranslate"><span class="pre">Error</span></code>: is fired if an error occurs during sending. If a out of gas error, the second parameter is the receipt.</li>
<li><code class="docutils literal notranslate"><span class="pre">&quot;confirmation&quot;</span></code> returns <code class="docutils literal notranslate"><span class="pre">Number</span></code>, <code class="docutils literal notranslate"><span class="pre">Object</span></code>: is fired for every confirmation up to the 24th confirmation. Receives the confirmation number as the first and the receipt as the second argument. Fired from confirmation 1 on, which is the block where it’s mined.</li>
<li><code class="docutils literal notranslate"><span class="pre">&quot;error&quot;</span></code> returns <code class="docutils literal notranslate"><span class="pre">Error</span></code>: is fired if an error occurs during sending. If an out of gas error, the second parameter is the receipt.</li>
</ul>
</div>
<div class="section" id="id23">
Expand Down
16 changes: 8 additions & 8 deletions docs/_build/html/web3-eth-ens.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ <h1>web3.eth.ens<a class="headerlink" href="#web3-eth-ens" title="Permalink to t
<p>The <code class="docutils literal notranslate"><span class="pre">web3.eth.ens</span></code> functions let you interacting with Ens.</p>
<div class="highlight-javascript notranslate"><div class="highlight"><pre><span></span><span class="kr">import</span> <span class="nx">Web3</span> <span class="nx">from</span> <span class="s1">&#39;web3&#39;</span><span class="p">;</span>
<span class="kr">import</span> <span class="p">{</span><span class="nx">Ens</span><span class="p">}</span> <span class="nx">from</span> <span class="s1">&#39;web3-eth-ens&#39;</span><span class="p">;</span>
<span class="kr">import</span> <span class="p">{</span><span class="nx">Accounts</span><span class="p">}</span> <span class="nx">from</span> <span class="s1">&#39;web3-eth-accounts;</span>
<span class="kr">import</span> <span class="p">{</span><span class="nx">Accounts</span><span class="p">}</span> <span class="nx">from</span> <span class="s1">&#39;web3-eth-accounts&#39;</span><span class="p">;</span>

<span class="s1">// &quot;Web3.givenProvider&quot; will be set if in an Ethereum supported browser.</span>
<span class="s1">const eth = new Ens(</span>
<span class="s1"> Web3.givenProvider || &#39;</span><span class="nx">ws</span><span class="o">:</span><span class="c1">//some.local-or-remote.node:8546&#39;,</span>
<span class="c1">// &quot;Web3.givenProvider&quot; will be set if in an Ethereum supported browser.</span>
<span class="kr">const</span> <span class="nx">eth</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Ens</span><span class="p">(</span>
<span class="nx">Web3</span><span class="p">.</span><span class="nx">givenProvider</span> <span class="o">||</span> <span class="s1">&#39;ws://some.local-or-remote.node:8546&#39;</span><span class="p">,</span>
<span class="k">new</span> <span class="nx">Accounts</span><span class="p">(</span><span class="nx">Web3</span><span class="p">.</span><span class="nx">givenProvider</span> <span class="o">||</span> <span class="s1">&#39;ws://some.local-or-remote.node:8546&#39;</span><span class="p">,</span> <span class="nx">options</span><span class="p">),</span>
<span class="nx">options</span>
<span class="p">);</span>
Expand Down Expand Up @@ -376,10 +376,10 @@ <h3>Returns<a class="headerlink" href="#id16" title="Permalink to this headline"
</div>
<div class="section" id="id17">
<h3>Example<a class="headerlink" href="#id17" title="Permalink to this headline"></a></h3>
<div class="highlight-javascript notranslate"><div class="highlight"><pre><span></span>web3.eth.ens.getText(&#39;ethereum.eth&#39;, &#39;key).then((result) =&gt; {
console.log(result);
});
&gt; &quot;0000000000000000000000000000000000000000000000000000000000000000&quot;
<div class="highlight-javascript notranslate"><div class="highlight"><pre><span></span><span class="nx">web3</span><span class="p">.</span><span class="nx">eth</span><span class="p">.</span><span class="nx">ens</span><span class="p">.</span><span class="nx">getText</span><span class="p">(</span><span class="s1">&#39;ethereum.eth&#39;</span><span class="p">,</span> <span class="s1">&#39;key&#39;</span><span class="p">).</span><span class="nx">then</span><span class="p">((</span><span class="nx">result</span><span class="p">)</span> <span class="p">=&gt;</span> <span class="p">{</span>
<span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="nx">result</span><span class="p">);</span>
<span class="p">});</span>
<span class="o">&gt;</span> <span class="s2">&quot;0000000000000000000000000000000000000000000000000000000000000000&quot;</span>
</pre></div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/web3-eth-personal.html
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ <h2>sign<a class="headerlink" href="#sign" title="Permalink to this headline">¶
<div class="highlight-javascript notranslate"><div class="highlight"><pre><span></span><span class="nx">web3</span><span class="p">.</span><span class="nx">eth</span><span class="p">.</span><span class="nx">personal</span><span class="p">.</span><span class="nx">sign</span><span class="p">(</span><span class="nx">dataToSign</span><span class="p">,</span> <span class="nx">address</span><span class="p">,</span> <span class="nx">password</span> <span class="p">[,</span> <span class="nx">callback</span><span class="p">])</span>
</pre></div>
</div>
<p>Signs data using a specific account.</p>
<p>Signs data using a specific account. This data is before UTF-8 HEX decoded and enveloped as follows: <code class="docutils literal notranslate"><span class="pre">&quot;\x19Ethereum</span> <span class="pre">Signed</span> <span class="pre">Message:\n&quot;</span> <span class="pre">+</span> <span class="pre">message.length</span> <span class="pre">+</span> <span class="pre">message</span></code>.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">Sending your account password over an unsecured HTTP RPC connection is highly unsecure.</p>
Expand Down
7 changes: 3 additions & 4 deletions docs/_build/html/web3-shh.html
Original file line number Diff line number Diff line change
Expand Up @@ -971,8 +971,7 @@ <h3>Returns<a class="headerlink" href="#id78" title="Permalink to this headline"
</div>
<div class="section" id="id79">
<h3>Example<a class="headerlink" href="#id79" title="Permalink to this headline"></a></h3>
<div class="highlight-javascript notranslate"><div class="highlight"><pre><span></span><span class="kr">const</span> <span class="nx">identities</span> <span class="o">=</span> <span class="p">[],</span>
<span class="nx">subscription</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
<div class="highlight-javascript notranslate"><div class="highlight"><pre><span></span><span class="kr">const</span> <span class="nx">identities</span> <span class="o">=</span> <span class="p">[];</span>

<span class="nb">Promise</span><span class="p">.</span><span class="nx">all</span><span class="p">([</span>
<span class="nx">web3</span><span class="p">.</span><span class="nx">shh</span><span class="p">.</span><span class="nx">newSymKey</span><span class="p">().</span><span class="nx">then</span><span class="p">((</span><span class="nx">id</span><span class="p">)</span> <span class="p">=&gt;</span> <span class="p">{</span><span class="nx">identities</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">id</span><span class="p">);}),</span>
Expand All @@ -981,7 +980,7 @@ <h3>Example<a class="headerlink" href="#id79" title="Permalink to this headline"
<span class="p">]).</span><span class="nx">then</span><span class="p">(()</span> <span class="p">=&gt;</span> <span class="p">{</span>

<span class="c1">// will receive also its own message send, below</span>
<span class="nx">subscription</span> <span class="o">=</span> <span class="nx">shh</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="s2">&quot;messages&quot;</span><span class="p">,</span> <span class="p">{</span>
<span class="kr">const</span> <span class="nx">subscription</span> <span class="o">=</span> <span class="nx">shh</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="s2">&quot;messages&quot;</span><span class="p">,</span> <span class="p">{</span>
<span class="nx">symKeyID</span><span class="o">:</span> <span class="nx">identities</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span>
<span class="nx">topics</span><span class="o">:</span> <span class="p">[</span><span class="s1">&#39;0xffaadd11&#39;</span><span class="p">]</span>
<span class="p">}).</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;data&#39;</span><span class="p">,</span> <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">);</span>
Expand All @@ -995,7 +994,7 @@ <h3>Example<a class="headerlink" href="#id79" title="Permalink to this headline"
<span class="nx">payload</span><span class="o">:</span> <span class="s1">&#39;0xffffffdddddd1122&#39;</span><span class="p">,</span>
<span class="nx">powTime</span><span class="o">:</span> <span class="mi">3</span><span class="p">,</span>
<span class="nx">powTarget</span><span class="o">:</span> <span class="mf">0.5</span>
<span class="p">}).</span><span class="nx">then</span><span class="p">(</span><span class="nx">hash</span> <span class="p">=&gt;</span> <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="sb">`Message with hash </span><span class="si">${</span><span class="nx">h</span><span class="si">}</span><span class="sb"> was successfuly sent`</span><span class="p">))</span>
<span class="p">}).</span><span class="nx">then</span><span class="p">(</span><span class="nx">hash</span> <span class="p">=&gt;</span> <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="sb">`Message with hash </span><span class="si">${</span><span class="nx">hash</span><span class="si">}</span><span class="sb"> was successfuly sent`</span><span class="p">))</span>
<span class="p">.</span><span class="k">catch</span><span class="p">(</span><span class="nx">err</span> <span class="p">=&gt;</span> <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s2">&quot;Error: &quot;</span><span class="p">,</span> <span class="nx">err</span><span class="p">));</span>
<span class="p">});</span>
</pre></div>
Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/web3.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h3>Navigation</h3>
<div class="section" id="web3">
<h1>Web3<a class="headerlink" href="#web3" title="Permalink to this headline"></a></h1>
<blockquote>
<div>The Web3 class is an wrapper to house all Ethereum related modules.</div></blockquote>
<div>The Web3 class is a wrapper to house all Ethereum related modules.</div></blockquote>
<div class="highlight-javascript notranslate"><div class="highlight"><pre><span></span><span class="kr">import</span> <span class="p">{</span><span class="nx">Web3</span><span class="p">}</span> <span class="nx">from</span> <span class="s1">&#39;web3&#39;</span><span class="p">;</span>

<span class="c1">// &quot;Web3.providers.givenProvider&quot; will be set if in an Ethereum supported browser.</span>
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.0-beta.41",
"version": "1.0.0-beta.42",
"lerna": "2.0.0",
"command": {
"init": {
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-bzz/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "web3-bzz",
"namespace": "ethereum",
"version": "1.0.0-beta.41",
"version": "1.0.0-beta.42",
"description": "Web3 module to interact with the Swarm network.",
"repository": "https://github.com/ethereum/web3.js/tree/1.0/packages/web3-bzz",
"license": "LGPL-3.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/web3-core-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "web3-core-helpers",
"namespace": "ethereum",
"version": "1.0.0-beta.41",
"version": "1.0.0-beta.42",
"description": "Web3 core tools helper for sub packages. This is an internal package.",
"repository": "https://github.com/ethereum/web3.js/tree/1.0/packages/web3-core-helpers",
"license": "LGPL-3.0",
Expand All @@ -18,13 +18,13 @@
"dependencies": {
"@babel/runtime": "^7.3.1",
"lodash": "^4.17.11",
"web3-eth-iban": "1.0.0-beta.41",
"web3-utils": "1.0.0-beta.41"
"web3-eth-iban": "1.0.0-beta.42",
"web3-utils": "1.0.0-beta.42"
},
"devDependencies": {
"dtslint": "^0.4.2",
"web3-core": "1.0.0-beta.41",
"web3-providers": "1.0.0-beta.41"
"web3-core": "1.0.0-beta.42",
"web3-providers": "1.0.0-beta.42"
},
"files": [
"dist",
Expand Down
5 changes: 5 additions & 0 deletions packages/web3-core-method/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions packages/web3-core-method/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "web3-core-method",
"namespace": "ethereum",
"version": "1.0.0-beta.41",
"version": "1.0.0-beta.42",
"description": "Handles the JSON-RPC methods. This package is internally used by web3.",
"repository": "https://github.com/ethereum/web3.js/tree/1.0/packages/web3-core-method",
"license": "LGPL-3.0",
Expand All @@ -19,16 +19,16 @@
"dependencies": {
"@babel/runtime": "^7.3.1",
"eventemitter3": "3.1.0",
"web3-core": "1.0.0-beta.41",
"web3-core-helpers": "1.0.0-beta.41",
"web3-core-promievent": "1.0.0-beta.41",
"web3-core-subscriptions": "1.0.0-beta.41",
"web3-utils": "1.0.0-beta.41",
"lodash": "^4.17.11"
"lodash": "^4.17.11",
"web3-core": "1.0.0-beta.42",
"web3-core-helpers": "1.0.0-beta.42",
"web3-core-promievent": "1.0.0-beta.42",
"web3-core-subscriptions": "1.0.0-beta.42",
"web3-utils": "1.0.0-beta.42"
},
"devDependencies": {
"dtslint": "^0.4.2",
"web3-providers": "1.0.0-beta.41"
"web3-providers": "1.0.0-beta.42"
},
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-core-promievent/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "web3-core-promievent",
"namespace": "ethereum",
"version": "1.0.0-beta.41",
"version": "1.0.0-beta.42",
"description": "This package extends eventEmitters with promises to allow chaining as well as multiple final states of a function.",
"repository": "https://github.com/ethereum/web3.js/tree/1.0/packages/web3-core-promievent",
"license": "LGPL-3.0",
Expand Down
Loading

0 comments on commit 8b69db8

Please sign in to comment.