Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Commit

Permalink
Added pages/sections on Morden and dapp dev.. Fixed build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Hudson Jameson committed Feb 6, 2016
1 parent c5b1f14 commit 4479003
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 9 deletions.
102 changes: 98 additions & 4 deletions source/developing-on-ethereum/dapp-development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,102 @@ TODO

Connecting to Morden Testnet
================================================================================
Morden is the first Ethereum alternative testnet. It is expected to
continue throughout the Frontier and Homestead era.

Usage
--------------------------------------------------------------------------------

TurboEthereum (C++)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This is supported natively on 0.9.93 and above. Pass the ``--morden``
argument in when starting any of the clients. e.g.:

::

> eth --morden

Or, for AlethZero

::

> alethzero --morden

PyEthApp (Python client)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

PyEthApp supports the morden network from v1.0.5 onwards:

::

> pyethapp --profile morden run

geth (Go client)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

::

> geth --testnet

Details
--------------------------------------------------------------------------------

- Network Identity: **2**
- All parameters same as Frontier except:
- genesis.json (given below);
- Initial Account Nonce (``IAN``) is 2^20 (instead of 0 in all previous
networks).

- All accounts in the state trie have nonce >= ``IAN``.
- Whenever an account is inserted into the state trie it is
initialised with nonce = ``IAN``.

- Genesis block hash:
``0cd786a2425d16f152c658316c423e6ce1181e15c3295826d7c9904cba9ce303``
- Genesis state root:
``f3f4696bbf3b3b07775128eb7a3763279a394e382130f27c21e70233e04946a9``

Seed Nodes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

- ``enode://e58d5e26b3b630496ec640f2530f3e7fa8a8c7dfe79d9e9c4aac80e3730132b869c852d3125204ab35bb1b1951f6f2d40996c1034fd8c5a69b383ee337f02ddc@92.51.165.126:30303``

genesis.json
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. code:: json
{
"nonce": "0x00006d6f7264656e",
"difficulty": "0x20000",
"mixhash": "0x00000000000000000000000000000000000000647572616c65787365646c6578",
"coinbase": "0x0000000000000000000000000000000000000000",
"timestamp": "0x00",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x",
"gasLimit": "0x2FEFD8",
"alloc": {
"0000000000000000000000000000000000000001": { "balance": "1" },
"0000000000000000000000000000000000000002": { "balance": "1" },
"0000000000000000000000000000000000000003": { "balance": "1" },
"0000000000000000000000000000000000000004": { "balance": "1" },
"102e61f5d8f9bc71d0ad4a084df4e65e05ce0e1c": { "balance": "1606938044258990275541962092341162602522202993782792835301376" }
}
}
Getting Morden Testnet Ether
--------------------------------------------------------------------------------

Three ways to get Morden testnet ether:
You can mine testnet Ethereum
One way to get Ether is by using the `Ethereum wei
faucet <https://zerogox.com/ethereum/wei_faucet>`__. Just type in your
account address and enjoy some free ether.

TODO: FINISH MODREN SECTION


TODO

Setting Up a Local Private Testnet
================================================================================
Expand Down Expand Up @@ -69,7 +163,7 @@ This will enable RPC interface on your node. This is generally enabled by defaul

This dictates what APIs that are allowed to be accessed over RPC. By default, Geth enables the web3 interface over RPC.

**IMPORTANT: Please note that offering an API over the RPC/IPC interface will give everyone access to the API who can access this interface (e.g. DApp's). Be careful which API's you enable. By default geth enables all API's over the ipc interface and only the db,eth,net and web3 API's over the RPC interface.********************************************************************************
**IMPORTANT: Please note that offering an API over the RPC/IPC interface will give everyone access to the API who can access this interface (e.g. DApp's). Be careful which API's you enable. By default geth enables all API's over the ipc interface and only the db,eth,net and web3 API's over the RPC interface.**


``--rpcport "8080"``
Expand Down Expand Up @@ -102,7 +196,7 @@ Creating the geth Command

After you have created your custom genesis block JSON file and created a directory for your chain to go into, type the following command into your console that has access to geth:

.. code-block:: Bash
.. code-block:: Console
geth --identity "MyNodeName" --genesis /path/to/CustomGenesis.json --rpc --rpcport "8080" --rpccorsdomain "*" --datadir "C:\chains\TestChain1" --port "30303" --nodiscover --rpcapi "db,eth,net,web3" --networkid 1999 console
Expand All @@ -116,7 +210,7 @@ A difficulty of "0x400" allows you to mine Ether very quickly on your private te
2. Copy your new account address
3. Add the following command to your Custom_Genesis.json file:

.. code-block:: JSON
.. code-block:: Javascript
"alloc":
{
Expand Down
13 changes: 12 additions & 1 deletion source/developing-on-ethereum/developer-tools.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
********************************************************************************
Developer Tools
********************************************************************************
As a Ðapp developer you have three main resources which allow Ðapp
development.

IDEs/Frameworks
================================================================================

Solidity Contract Language Resources
================================================================================
- `Solidity
Documentation <https://solidity.readthedocs.org/en/latest/>`__ -
Solidity is the Ethereum developed Smart Contract language, which
compiles to EVM (Ethereum Virtual Machine) opcodes.
- `Standardized Contract
APIs <https://github.com/ethereum/wiki/wiki/Standardized_Contract_APIs>`__

Other Tools
================================================================================
================================================================================
- `Useful Ðapp
Patterns <https://github.com/ethereum/wiki/wiki/Useful-Ðapp-Patterns>`__
- Code snippets which are useful for Ðapp development.
18 changes: 18 additions & 0 deletions source/ethereum-ecosystem/client-implementations.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
********************************************************************************
Client Implementations
********************************************************************************
Ethereum clients are written in multiple programming lanuages. Each implementation is based on the formal definition of the Ethereum protocol defined in the `Ethereum Yellow Paper <http://gavwood.com/paper.pdf>`_.

Client List
===============

=============== ===============
Language Name
=============== ===============
Golang `Geth <http://ethereum.github.io/go-ethereum/)>`_
C++ `TurboEthereum (formerly eth) <https://github.com/ethereum/webthree-umbrella/wiki>`_
Javascript/Node `EthereumJS <http://ethereumjs.github.io/>`_
Python `Pyethereum <https://github.com/ethereum/pyethereum>`_
Java `ethereumJ <https://github.com/ethereum/ethereumj>`_
Haskell `ethereumH <https://github.com/blockapps/strato-p2p-client>`_
=============== ===============
3 changes: 0 additions & 3 deletions source/ethereum-ecosystem/client-implimentations.rst

This file was deleted.

2 changes: 1 addition & 1 deletion source/ethereum-ecosystem/ethereum-ecosystem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Ethereum Ecosystem
:maxdepth: 2

ethereum-network-stats.rst
client-implimentations.rst
client-implementations.rst
evm-compilers.rst
block-explorers.rst
miscellaneous-tools.rst
Expand Down

0 comments on commit 4479003

Please sign in to comment.