{"action":"created","issue":{"url":"https://api.github.com/repos/avatar-lavventura/ethereum/issues/4","repository_url":"https://api.github.com/repos/avatar-lavventura/ethereum","labels_url":"https://api.github.com/repos/avatar-lavventura/ethereum/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/avatar-lavventura/ethereum/issues/4/comments","events_url":"https://api.github.com/repos/avatar-lavventura/ethereum/issues/4/events","html_url":"https://github.com/avatar-lavventura/ethereum/issues/4","id":212051845,"number":4,"title":"Populus \"Hello World\" tutorial","user":{"login":"avatar-lavventura","id":18537398,"avatar_url":"https://avatars1.githubusercontent.com/u/18537398?v=3","gravatar_id":"","url":"https://api.github.com/users/avatar-lavventura","html_url":"https://github.com/avatar-lavventura","followers_url":"https://api.github.com/users/avatar-lavventura/followers","following_url":"https://api.github.com/users/avatar-lavventura/following{/other_user}","gists_url":"https://api.github.com/users/avatar-lavventura/gists{/gist_id}","starred_url":"https://api.github.com/users/avatar-lavventura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avatar-lavventura/subscriptions","organizations_url":"https://api.github.com/users/avatar-lavventura/orgs","repos_url":"https://api.github.com/users/avatar-lavventura/repos","events_url":"https://api.github.com/users/avatar-lavventura/events{/privacy}","received_events_url":"https://api.github.com/users/avatar-lavventura/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-03-06T08:19:54Z","updated_at":"2017-03-11T23:59:09Z","closed_at":null,"body":"`Populus` is a smart contract development framework for the Ethereum blockchain. (http://populus.readthedocs.io/en/latest/quickstart.html#installation)\r\n\r\n**Debian, Ubuntu, Mint:**\r\n```\r\nsudo apt-get install libssl-dev python-pip\r\nsudo apt-get install cmake libblkid-dev e2fslibs-dev libboost-all-dev libaudit-dev\r\n```\r\nIf you are using Ubuntu 16.04 run the following:\r\n`sudo apt-add-repository --remove ppa:fkrull/deadsnakes-python2.7`\r\n\r\n**OSX:**\r\n```\r\nbrew install pkg-config libffi autoconf automake libtool openssl\r\ncurl https://bootstrap.pypa.io/ez_setup.py -o - | sudo python\r\nsudo easy_install pip\r\n\r\nbrew install https://raw.githubusercontent.com/ethereum/homebrew-ethereum/77cce03da9f289e5a3ffe579840d3c5dc0a62717/solidity.rb\r\n```\r\n\r\n**Later do following:**\r\n```\r\nsudo pip install --upgrade pip\r\nsudo pip install py-solc -U\r\nsudo pip install pytest==3.0.5\r\nsudo pip install populus==1.6.5\r\nsudo pip install web3==3.7.1.\r\n```\r\n\r\n**And finally, required for only Ubuntu users:**\r\nInstall following tar.gz: https://github.com/ethereum/solidity/archive/v0.4.8.tar.gz\r\nnavigate into `solidity-0.4.8`\r\n```\r\n./scripts/install_deps.sh\r\nmkdir build\r\ncd build\r\ncmake .. && make\r\n```\r\n`$ build/solc/solc --version`\r\nVersion: 0.4.8+commit.60cc1668.Linux.g++\r\n\r\nNote that `path/to/compiled-0.4.8/build/solc` should be replaced with whatever the correct path is for the compiled version of `solc`. \r\n\r\nAdd following lines into `.profile` file.\r\n```\r\nSOLC_BINARY=\"/home/prc/solc-versions/solc-0.4.8/solidity/build/solc/solc\"\r\nLD_LIBRARY_PATH=\"/home/prc/solc-versions/solc-0.4.8/solidity/build/solc\"\r\n```\r\nAnd update the `$PATH`. Bold line should be added by you.\r\nPATH=\"**/home/prc/solc-versions/solc-0.4.8/solidity/build/solc**:$HOME/bin:$HOME/.local/bin:$PATH\"\r\n\r\n-----------------------------------------------------------------------------------------------------\r\n\r\n**Initializing a new project:**\r\n```\r\n[~] mkdir populus_workspace && cd populus_workspace\r\n\r\n[~/populus_workspace] populus init\r\nCreated Directory: ./contracts\r\nCreated Example Contract: ./contracts/Greeter.sol\r\nCreated Directory: ./tests\r\nCreated Example Tests: ./tests/test_greeter.py\r\n\r\n[~/populus_workspace] cat contracts/Greeter.sol\r\ncontract Greeter {\r\n    string public greeting;\r\n\r\n    function Greeter() {\r\n        greeting = 'Hello';\r\n    }\r\n\r\n    function setGreeting(string _greeting) public {\r\n        greeting = _greeting;\r\n    }\r\n\r\n    function greet() constant returns (string) {\r\n        return greeting;\r\n    }\r\n}\r\n\r\n[~/populus_workspace] cat tests/test_greeter.py\r\ndef test_greeter(chain, accounts):\r\n    greeter = chain.get_contract('Greeter')\r\n\r\n    account = accounts[0];\r\n    print(account);\r\n\r\n    greeting = greeter.call().greet()\r\n    assert greeting == 'Hello'\r\n\r\n\r\ndef test_custom_greeting(chain):\r\n    greeter = chain.get_contract('Greeter')\r\n\r\n    set_txn_hash = greeter.transact().setGreeting('Guten Tag')\r\n    chain.wait.for_receipt(set_txn_hash)\r\n\r\n    greeting = greeter.call().greet()\r\n    assert greeting == 'Guten Tag'\r\n    print(greeting);  #added later.\r\n\r\n[~/populus_workspace] py.test --capture=fd tests/test_greeter.py -s\r\n===================================== test session starts =====================================\r\nplatform darwin -- Python 2.7.13, pytest-3.0.5, py-1.4.32, pluggy-0.4.0\r\nrootdir: /Users/alper/den, inifile:\r\nplugins: populus-1.4.2\r\ncollected 2 items\r\n.Guten Tag\r\n.\r\n================================== 2 passed in 1.52 seconds ==================================="},"comment":{"url":"https://api.github.com/repos/avatar-lavventura/ethereum/issues/comments/285910199","html_url":"https://github.com/avatar-lavventura/ethereum/issues/4#issuecomment-285910199","issue_url":"https://api.github.com/repos/avatar-lavventura/ethereum/issues/4","id":285910199,"user":{"login":"avatar-lavventura","id":18537398,"avatar_url":"https://avatars1.githubusercontent.com/u/18537398?v=3","gravatar_id":"","url":"https://api.github.com/users/avatar-lavventura","html_url":"https://github.com/avatar-lavventura","followers_url":"https://api.github.com/users/avatar-lavventura/followers","following_url":"https://api.github.com/users/avatar-lavventura/following{/other_user}","gists_url":"https://api.github.com/users/avatar-lavventura/gists{/gist_id}","starred_url":"https://api.github.com/users/avatar-lavventura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avatar-lavventura/subscriptions","organizations_url":"https://api.github.com/users/avatar-lavventura/orgs","repos_url":"https://api.github.com/users/avatar-lavventura/repos","events_url":"https://api.github.com/users/avatar-lavventura/events{/privacy}","received_events_url":"https://api.github.com/users/avatar-lavventura/received_events","type":"User","site_admin":false},"created_at":"2017-03-11T23:59:09Z","updated_at":"2017-03-11T23:59:09Z","body":"Thanks, I added that to installation guide. @ktasyaran "}}
{"actor":{"display_login":"avatar-lavventura"}}