Skip to content

Commit

Permalink
indexing complete
Browse files Browse the repository at this point in the history
  • Loading branch information
Meghan Jones committed Oct 19, 2018
1 parent 23a0161 commit 57cd2bc
Show file tree
Hide file tree
Showing 21 changed files with 818 additions and 818 deletions.
70 changes: 35 additions & 35 deletions 01what-is.asciidoc

Large diffs are not rendered by default.

94 changes: 47 additions & 47 deletions 02intro.asciidoc

Large diffs are not rendered by default.

92 changes: 46 additions & 46 deletions 03clients.asciidoc

Large diffs are not rendered by default.

96 changes: 48 additions & 48 deletions 04keys-addresses.asciidoc

Large diffs are not rendered by default.

84 changes: 42 additions & 42 deletions 05wallets.asciidoc

Large diffs are not rendered by default.

102 changes: 51 additions & 51 deletions 06transactions.asciidoc

Large diffs are not rendered by default.

152 changes: 76 additions & 76 deletions 07smart-contracts-solidity.asciidoc

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions 08smart-contracts-vyper.asciidoc

Large diffs are not rendered by default.

224 changes: 112 additions & 112 deletions 09smart-contracts-security.asciidoc

Large diffs are not rendered by default.

116 changes: 58 additions & 58 deletions 10tokens.asciidoc

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions 11oracles.asciidoc

Large diffs are not rendered by default.

84 changes: 42 additions & 42 deletions 12dapps.asciidoc

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions 13evm.asciidoc

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions 14consensus.asciidoc

Large diffs are not rendered by default.

96 changes: 48 additions & 48 deletions appdx-dev-tools.asciidoc

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion appdx-evm-opcodes-gas.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[[evm_opcodes]]
== Ethereum EVM Opcodes and Gas Consumption

This appendix is based on the consolidation work done by the people of https://github.com/trailofbits/evm-opcodes as a reference for Ethereum VM (EVM) opcodes and instruction information licensed under the https://github.com/trailofbits/evm-opcodes/blob/master/LICENSE[Apache License 2.0].
((("EVM (Ethereum Virtual Machine)","opcodes and gas consumption")))((("gas","EVM opcodes and gas consumption")))This appendix is based on the consolidation work done by the people of https://github.com/trailofbits/evm-opcodes as a reference for Ethereum VM (EVM) opcodes and instruction information licensed under the https://github.com/trailofbits/evm-opcodes/blob/master/LICENSE[Apache License 2.0].



Expand Down
36 changes: 18 additions & 18 deletions appdx-forks-history.asciidoc

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion appdx-standards-eip-erc.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[[eips]]
=== Ethereum Improvement Proposals (EIPs)

The Ethereum Improvement Proposal repository is located at https://github.com/ethereum/EIPs/[]. The workflow is illustrated in <<eip_workflow>>.
((("EIPs (Ethereum Improvement Proposals)")))((("Ethereum (generally)","EIPs")))((("Ethereum (generally)","standards")))The Ethereum Improvement Proposal repository is located at https://github.com/ethereum/EIPs/[]. ((("EIPs (Ethereum Improvement Proposals)","workflow")))The workflow is illustrated in <<eip_workflow>>.

From https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1.md[EIP-1]:

Expand Down
14 changes: 7 additions & 7 deletions appdx-web3js-tutorial.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
== web3.js Tutorial

=== Description
This tutorial is based on [email protected] web3.js. It is intended as an introduction to web3.js.
((("web3.js","tutorial", id="ix_appdx-web3js-tutorial-asciidoc0", range="startofrange")))This tutorial is based on [email protected] web3.js. It is intended as an introduction to web3.js.

The web3.js JavaScript library is a collection of modules that contain specific functionality for the Ethereum ecosystem, together with an Ethereum-compatible JavaScript API which implements the Generic JSON RPC spec.

To run this script you don’t need to run your own local node, because it uses the https://infura.io[Infura services].

=== web3.js Contract Basic Interaction in a Nonblocked (Async) Fashion

Check you have a valid +npm+ version:
((("web3.js","contract basic interaction in nonblocked (Async) fashion")))Check you have a valid +npm+ version:

++++
<pre data-type="programlisting">
Expand Down Expand Up @@ -42,7 +42,7 @@ This will update your _package.json_ configuration file with your new dependence

==== Node.js Script Execution

Basic execution:
((("web3.js","node.js script execution")))Basic execution:

++++
<pre data-type="programlisting">
Expand Down Expand Up @@ -72,7 +72,7 @@ This will read the file with your own token and pass it in as a command-line arg

=== Reviewing the Demo Script

Next, let's review our demo script, _web3-contract-basic-interaction_.
((("web3.js","reviewing demo script")))Next, let's review our demo script, _web3-contract-basic-interaction_.

We use the +Web3+ object to obtain a basic web3 provider:

Expand Down Expand Up @@ -110,7 +110,7 @@ web3.eth.getBlockNumber().then(function(blockNumber) {

=== Contract Interaction

Now let's try some basic interactions with a contract. For these examples, we'll use the https://bit.ly/2MPZZLx[+WETH9_+ contract] on the Kovan testnet.
((("web3.js","contract interaction", id="ix_appdx-web3js-tutorial-asciidoc1", range="startofrange")))Now let's try some basic interactions with a contract. For these examples, we'll use the https://bit.ly/2MPZZLx[+WETH9_+ contract] on the Kovan testnet.

First, let's initialize our contract address:

Expand Down Expand Up @@ -231,7 +231,7 @@ our_contract.methods.totalSupply().call(function(err, totalSupply) {
});
----

Or we can use the returned promise instead of passing in the callback:
Or we can use the returned promise instead of passing in the callback:(((range="endofrange", startref="ix_appdx-web3js-tutorial-asciidoc1")))

[source,solidity]
----
Expand All @@ -244,4 +244,4 @@ our_contract.methods.totalSupply().call().then(function(totalSupply){

=== Asynchronous Operation with Await

Now that you've seen the basic tutorial, you can try the same interactions using an asynchronous +await+ construct. Review the _web3-contract-basic-interaction-async-await.js_ script in https://github.com/ethereumbook/ethereumbook/tree/develop/code/web3js[_code/web3js_] and compare it to this tutorial to see how they differ. Async-await is easier to read, as it makes the asynchronous interaction behave more like a sequence of blocking calls.
((("await construct")))((("web3.js","asynchronous operation with await")))Now that you've seen the basic tutorial, you can try the same interactions using an asynchronous +await+ construct. Review the _web3-contract-basic-interaction-async-await.js_ script in https://github.com/ethereumbook/ethereumbook/tree/develop/code/web3js[_code/web3js_] and compare it to this tutorial to see how they differ. Async-await is easier to read, as it makes the asynchronous interaction behave more like a sequence of blocking calls.(((range="endofrange", startref="ix_appdx-web3js-tutorial-asciidoc0")))
Loading

0 comments on commit 57cd2bc

Please sign in to comment.