Code Monkey home page Code Monkey logo

ethereum-org's Introduction

Homestead Release

Build Status dependency status

This repository contains the Homestead Release of the ethereum.org website.

Screenshot

Prerequisite

  • node
  • npm

Installation

Make sure you have node.js and npm installed.

Clone the repository and install the dependencies

git clone https://github.com/ethereum/ethereum-org
cd ethereum-org
npm install
npm install -g grunt-cli

Build static resources

grunt

Run

npm start

see the interface at http://localhost:3000

Publish latest master to GitHub Pages

git checkout gh-pages
git merge master
grunt build
git commit -am "Updated build"
git push origin gh-pages

ethereum-org's People

Contributors

alexvansande avatar arachnid avatar benwaah avatar bobsummerwill avatar cathalyst avatar chriseth avatar cubedro avatar ethertyper avatar evertonfraga avatar fgo avatar frozeman avatar him2 avatar hrldcpr avatar jpitts avatar kenkappler avatar linagee avatar p0n1 avatar rafialhamd avatar rethore avatar ryanio avatar ryestew avatar shubhamtatvamasi avatar souptacular avatar stephantual avatar tgerring avatar virgil avatar whitj00 avatar wuya666 avatar zach-is-my-name avatar zelig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ethereum-org's Issues

Fix tutorial wording in these three places.

Where it says "If instead the command returns an error, then you need to install it."
Should be more like "If the command does not return ['Solidity'], then you need to install it."

Incorrect phrase: "Unlike last time we will not be making a call as we wish to change something on the blockchain."
Reason: Actually, we WILL be making a call.

Incorrect phrase: "(or at least until the frontier contracts are all wiped)"
Reason: This is no longer in the plans.

Only Geth or Eth is needed, fix install text

I have heard this from two newbies already. "You mean I don't need geth and eth?"

The install web page doesn't actually seem to say this anywhere. Can it please be added in some way that makes it more user friendly?
https://ethereum.org/cli

I understand what two different implementations mean. Maybe ELI5 it somehow on the page?

no such file or directory '/frontier-release/dist/images/favicon.png'

Workaround:

ln -s public/ dist

Error:

fs.js:797
return binding.stat(pathModule._makeLong(path));
^
Error: ENOENT, no such file or directory '/frontier-release/dist/images/favicon.png'
at Error (native)
at Object.fs.statSync (fs.js:797:18)
at favicon (/frontier-release/node_modules/serve-favicon/index.js:64:15)
at Object. (/frontier-release/app.js:13:9)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)

\n

fix \n on first install

install.sh failed on Ubuntu 14.10

(pulled down latest master branch as of this issue creation)

==> Adding ethereum repository
$ sudo add-apt-repository -q -y ppa:ethereum/ethereum
Usage: add-apt-repository

add-apt-repository is a script for adding apt sources.list entries.
It can be used to add any repository and also provides a shorthand
syntax for adding a Launchpad PPA (Personal Package Archive)
repository.

<sourceline> - The apt repository source line to add. This is one of:
  a complete apt line in quotes,
  a repo url and areas in quotes (areas defaults to 'main')
  a PPA shortcut.
  a distro component

  Examples:
    apt-add-repository 'deb http://myserver/path/to/repo stable myrepo'
    apt-add-repository 'http://myserver/path/to/repo myrepo'
    apt-add-repository 'https://packages.medibuntu.org free non-free'
    apt-add-repository http://extras.ubuntu.com/ubuntu
    apt-add-repository ppa:user/repository
    apt-add-repository ppa:user/distro/repository
    apt-add-repository multiverse

If --remove is given the tool will remove the given sourceline from your
sources.list


add-apt-repository: error: no such option: -q

...

==> Installing geth
$ sudo apt-get install -q -y geth
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package geth

==> Verifying installation
 ✘  Geth is missing

Was able to work around by using:

sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install geth

(man add-apt-repository does not list a -q option)

Not sure if this affects all Ubuntu versions?

Needs new Screenshot

In the README, I reattached the link to the Frontier screenshot to semonstrate the site in action, but I think that the screenshot should be updated to the Homestead website.

On "Installing Geth", "Command Line" text shouldn't hide

I might be the only person who sees the site a bit tricky like this, but I saw:
"Installing Geth"
then scrolled, then saw
"The command line tool for Ethereum Frontier"

It was only a bit tricky because after seeing "Installing Geth", I immediately thought: "how is this installing something??" (then I saw the Command Line Tool text and understood)

I think this bit of UX might be fixed by having "The command line tool for Ethereum Frontier" appear statically. I like the scroll to appear thing, but I don't think it's appropriate for this line of text.

This is on https://github.com/ethereum/frontier-release/blob/master/views/geth.jade#L22

I'd like to know what others think.

Build 1.3.1 Failed on El Capitan

Please see the issue encountered here trying to build on El Capitan
http://forum.ethereum.org/discussion/3838/build-failed-for-1-3-1#latest

It appears the bottle link is dead.
Thanks

On El Capitan:

bash <(curl https://install-geth.ethereum.org -L)

The build fails for me.

brew install ethereum
==> Installing ethereum from ethereum/homebrew-ethereum
==> Downloading https://build.ethdev.com/builds/bottles/ethereum-1.3.1.el_capitan.bottle.7.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "ethereum"
Download failed: https://build.ethdev.com/builds/bottles/ethereum-1.3.1.el_capitan.bottle.7.tar.gz
Warning: Bottle installation failed: building from source.


With.... $brew install ethereum -v:

The result includes the following snippet:

==> go build -v ./src/github.com/ethereum/go-ethereum/cmd/evm
github.com/codegangsta/cli
github.com/ethereum/go-ethereum/rlp
github.com/ethereum/go-ethereum/crypto/ecies
github.com/ethereum/go-ethereum/crypto/sha3
github.com/ethereum/go-ethereum/crypto/randentropy
github.com/ethereum/go-ethereum/crypto/secp256k1

github.com/ethereum/go-ethereum/crypto/secp256k1

clang: warning: no such sysroot directory: ''
In file included from src/github.com/ethereum/go-ethereum/crypto/secp256k1/secp256.go:36:
In file included from ././libsecp256k1/src/secp256k1.c:11:
././libsecp256k1/src/util.h:14:10: fatal error: 'stdlib.h' file not found

include

^
1 error generated.

cli tutorial seems outdated and is very hard to follow

I think the dev tutorials need to be up to date and really good if developers are to come to this platform...

Typo in dao.md

Line 298 of dao.md, there is this sentence:

[...] Bytecode can be extremely very and therefore expensive to store [...]

It seems there is a typo here, but I'm unfortunately unable to figure out what should be the correct words.

Building source from Git

I followed the instructions from the webpage here:
https://github.com/ethereum/webthree-umbrella/wiki/Building-on-Windows

Everything seems okay until I get to this part of the instructions:

  1. Getting dependencies

cd C:\PATHTO\webthree-helpers\extdep
getstuff.bat
rem #you must run/click this script from .\extdep directory!
rem #Note that the getstuff.bat will not work if you have a path with spaces!

I believe I was successful in downloading the source files and received this in the CMD prompt:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>git clone --recursive https://github.com/ethereum/webthree-u
mbrella.git
Cloning into 'webthree-umbrella'...
remote: Counting objects: 70750, done.
remote: Compressing objects: 100% (64/64), done.
remote: Total 70750 (delta 31), reused 0 (delta 0), pack-reused 70686
Receiving objects: 100% (70750/70750), 28.69 MiB | 3.82 MiB/s, done.
Resolving deltas: 100% (53374/53374), done.
Checking connectivity... done.
Submodule 'alethzero' (https://github.com/ethereum/alethzero) registered for pat
h 'alethzero'
Submodule 'libethereum' (https://github.com/ethereum/libethereum) registered for
path 'libethereum'
Submodule 'libweb3core' (https://github.com/ethereum/libweb3core) registered for
path 'libweb3core'
Submodule 'mix' (https://github.com/ethereum/mix) registered for path 'mix'
Submodule 'solidity' (https://github.com/ethereum/solidity) registered for path
'solidity'
Submodule 'web3.js' (https://github.com/ethereum/web3.js) registered for path 'w
eb3.js'
Submodule 'webthree' (https://github.com/ethereum/webthree) registered for path
'webthree'
Submodule 'webthree-helpers' (https://github.com/ethereum/webthree-helpers) regi
stered for path 'webthree-helpers'
Cloning into 'alethzero'...
remote: Counting objects: 1892, done.
emote: Total 1892 (delta 0), reused 0 (delta 0), pack-reused 1892R
Receiving objects: 98% (1855/1892)
Receiving objects: 100% (1892/1892), 1.12 MiB | 0 bytes/s, done.
Resolving deltas: 100% (1401/1401), done.
Checking connectivity... done.
Submodule path 'alethzero': checked out '22f4dd099bf011aea11e7d17fe4b4c9fe44607d
1'
Cloning into 'libethereum'...
remote: Counting objects: 34553, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 34553 (delta 0), reused 0 (delta 0), pack-reused 34548
Receiving objects: 100% (34553/34553), 10.96 MiB | 3.36 MiB/s, done.
Resolving deltas: 100% (24634/24634), done.
Checking connectivity... done.
Submodule path 'libethereum': checked out 'bd7d51102a2bc785dd037cf745a2a8fb67814
ee7'
Cloning into 'libweb3core'...
remote: Counting objects: 20129, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 20129 (delta 0), reused 0 (delta 0), pack-reused 20122
Receiving objects: 100% (20129/20129), 6.26 MiB | 2.98 MiB/s, done.
Resolving deltas: 100% (11961/11961), done.
Checking connectivity... done.
Submodule path 'libweb3core': checked out 'a95f5622efc9715334065fb12ebef2eaa2c02
aef'
Cloning into 'mix'...
remote: Counting objects: 8252, done.
remote: Compressing objects: 100% (75/75), done.
remote: Total 8252 (delta 35), reused 0 (delta 0), pack-reused 8177
Receiving objects: 100% (8252/8252), 7.37 MiB | 3.40 MiB/s, done.
Resolving deltas: 100% (6225/6225), done.
Checking connectivity... done.
Submodule path 'mix': checked out 'ae389f5bd1482d2321a9051b4f7b390cf6a190e7'
Cloning into 'solidity'...
remote: Counting objects: 14745, done.
remote: Total 14745 (delta 0), reused 0 (delta 0), pack-reused 14745
Receiving objects: 100% (14745/14745), 6.55 MiB | 3.08 MiB/s, done.
Resolving deltas: 100% (9988/9988), done.
Checking connectivity... done.
Submodule path 'solidity': checked out '7a9f8d9f35ee3791ba4e41bcee224fbffa9d2b28
'
Cloning into 'web3.js'...
remote: Counting objects: 9086, done.
remote: Compressing objects: 100% (84/84), done.
remote: Total 9086 (delta 43), reused 0 (delta 0), pack-reused 9001
Receiving objects: 100% (9086/9086), 15.92 MiB | 3.54 MiB/s, done.
Resolving deltas: 100% (6682/6682), done.
Checking connectivity... done.
Submodule path 'web3.js': checked out '6df0cd6e2e815c7dc06c077ff7acdea020f1e13f'

Cloning into 'webthree'...
remote: Counting objects: 1889, done.
emote: Total 1889 (delta 0), reused 0 (delta 0), pack-reused 1889R
Rs: 95% (1795/1889)
Receiving objects: 100% (1889/1889), 419.10 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1251/1251), done.
Checking connectivity... done.
Submodule path 'webthree': checked out 'de2bfa371e5867e52c47d879cdd7965f3469d9a6
'
Cloning into 'webthree-helpers'...
remote: Counting objects: 1296, done.
remote: Compressing objects: 100% (9/9), done.
Receiving objects: emote: Total 1296 (delta 2), reused 0 (delta 0), pack-reused
Receiving objects: 96% (1245
Receiving objects: 100% (1296/1296), 413.06 KiB | 0 bytes/s, done.
Resolving deltas: 100% (749/749), done.
Checking connectivity... done.
Submodule path 'webthree-helpers': checked out '1faa41c425fb5376c766885b2809663b
1be9621c'

(Proceeding to the next step here)

C:\Windows\system32>cd C:\PATHTO\webthree-helpers\extdep
The system cannot find the path specified.

The only thing i can think of is that it wasn't downloaded correctly but i am not sure how to verify the download was successful?

Thanks.

Variable not declared in Token tutorial

In the token tutorial that i've been following step by step: https://ethereum.org/token

At this code snippet we introduce the totalSupply variable, but we haven't declared it yet at the top of the contract. It is there in the full source code, but might be confusing for someone completely new.

function mintToken(address target, uint256 mintedAmount) onlyOwner {
    balanceOf[target] += mintedAmount;  
    totalSupply += mintedAmount;
    Transfer(0, owner, mintedAmount);
    Transfer(owner, target, mintedAmount);
}

token example does not preserve token invariant

In this document - https://github.com/ethereum/ethereum-org/blob/master/views/content/token.md there is this code example:

function sell(uint amount) returns (uint revenue){
    if (balanceOf[msg.sender] < amount ) throw;        // checks if the sender has enough to sell
    balanceOf[this] += amount;                         // adds the amount to owner's balance
    balanceOf[msg.sender] -= amount;                   // subtracts the amount from seller's balance
    uint revenue = amount * sellPrice;
    if (!msg.sender.send(revenue)) {                    // sends ether to the seller
        balanceOf[msg.sender] += amount
    }
    Transfer(msg.sender, this, amount);                // executes an event reflecting on the change
    return revenue;                                    // ends function and returns
}

This example incorrectly a) adds amount to its own balance even if the attempt to send ether to the caller fails and b) sends a notification for a transfer in the failure case.

Is there a reason why throw is not used to cleanup in this case?

No reset during Frontier to Homestead

https://github.com/ethereum/frontier-release/blob/master/bin/install.sh#L496

states: "we will preserve all non-contract (i.e. code-less) account balances above the value of 1 ETH into the Homestead Genesis block."

This was what was said a while back, but that decision has since been reversed and the text here will need to change to reflect that.

See:
https://blog.ethereum.org/2015/07/22/frontier-is-coming-what-to-expect-and-how-to-prepare/
section "Bugs, Issues and Complications"

"Many of the planned Frontier gotchas (which included a chain reset at Homestead, limiting mining rewards to 10%, and centralized checkpointing) were deemed unnecessary."

Docs should say what needs to be in the testnet genesis block

Hi, I am totally new to Etherium and am walking through your docs. I am on the CLI page. Pretty much the first thing is "you should make a private testnet to avoid spending real ether."

i would like to improve the page to help other devs who have no idea what this genesis block is, but I would rather not say 'google etherium genesis block json and pick the top result and modify it', surely there is an example committed in a repo, or a wiki page with documentation?

edit: found an example via ethereum/genesis_block_generator#16

Consistent use of -sed/-zed

Please pick a version of decentralized / decentralised and centralized / centralised.
The site right now has both versions.

Being from America, I prefer the -zed, but I guess British English (UK) says -sed.
I think the thing here would to at least be consistent.
I can submit a PR if the choice is made. (Or whoever answers this can probably grep just as easy. 👍 )

DevOps preparations

  • ansible deploy script for ethereum.org
  • ssl (certificates, nginx configs)
  • eth-install and geth-install redirect scripts
  • sort out the guide.ethereum.org ssl issues

Text is not being spaced apart

(Pulled down master branch.)
Tried the site, it looks awesome.

Text is appearing like this though:
"Get the source code atGitHub"

When it should be like:
"Get the source code at GitHub"

I look at the HTML generated and it looks like it's missing a space after "at":

<li>Get the source code at<a href="http://github.com/ethereum/">GitHub</a></li>

This is where it's being generated from code, I don't really understand Jade that well, so I'm not sure if there is a space somehow missing here?
https://github.com/ethereum/frontier-release/blob/master/views/includes/footer.jade

screenshot - 07232015 - 09 22 12 am

Low resolution Mix resources are gone.

mix no-show image

"The site does uses the @2x images, but only when it detects a high resolution display. Look on the @media queries section." - @alexvandesande on PR #236

There are only [email protected] images in the repository, no low-res images available to display on other computers. Is there any way for you to add these resources to the repository, or to produce a workaround so that it doesn't attempt to use such nonexistent resources at all? The site does not look good in Inspect Element, either! 😆

Thanks,
The @EtherTyper

Missing GMP symlink in OSX 10.10.1 causes error when running 'geth console'

When running 'geth console' on OSX 10.10.1, a missing symlink between the currently-installed GMP library and homebrew causes the following error:

dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib
Referenced from: /usr/local/bin/geth
Reason: image not found

a fix is to run:
sudo brew link gmp

Absolutely no peers

Running Geth, only got three peers, had MaxPeers set to 25
Punched through modem
465 nat.go:111] mapped network port udp:30303 -> 30303 (ethereum discovery) using UPNP IGDv1-PPP1
I0730 22:03:58.682524 465 nat.go:111] mapped network port tcp:30303 -> 30303 (ethereum p2p) using UPNP IGDv1-PPP1

Internet running
net on the console shows
{
listening: true,
peerCount: 0,
version: '1',
addPeer: function (),
getListening: function (),
getPeerCount: function (),
getVersion: function ()
}
I tried deleting blockchain extra and nodes and state directories, rebooting, but same behavior

dead link

Hi,

On this page, there is a dead link :

In First, create a token that belongs to.... create a token is refered by this url : https://www.ethereum.org/token/, which is 404.

Geth on Windows - major issues - Did you even test?

Hi devs!

Did you test the client?
There are 2 major issues when using the client

  1. when you make an error in a command, the client crashes and any further (valid) commands are not working. You need to restart the client

  2. when copying text, it often "keeps rolling on the screen" and it just doesn't work.

These are major issues I found out when i tried to send transactions this morning. I was there when the first transactions were send, but I couldn't send mine. It took me about 2 hours to fix it and I still had unexpected errors.

I am starting to think you released Frontier in this way so you could limit the amount of ETH send in the first hours, so the "insiders/devs/nerds" could dump first. Seriously guys, you should at least have a working command line client on ALL major platforms. This windows client was clearly NOT tested.

receiveApproval in token tutorial code, but not explained

The tutorial has "spend behalf" element:

   contract tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData); }

However this is not explained in the tutorial text and unnecessarily confuses the reader?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.