{"id":18769457,"url":"https://github.com/learnforpractice/evm4eosio-demo","last_synced_at":"2025-12-10T15:30:15.711Z","repository":{"id":121687667,"uuid":"239064717","full_name":"learnforpractice/evm4eosio-demo","owner":"learnforpractice","description":"Running EVM bytecode on an EOSIO Based Blockchain","archived":false,"fork":false,"pushed_at":"2020-03-13T06:14:36.000Z","size":926,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-29T07:26:19.967Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/learnforpractice.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-08T03:45:21.000Z","updated_at":"2020-03-13T06:14:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"ceaeada6-d32f-4e07-9e0d-2624bbbb98d0","html_url":"https://github.com/learnforpractice/evm4eosio-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnforpractice%2Fevm4eosio-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnforpractice%2Fevm4eosio-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnforpractice%2Fevm4eosio-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnforpractice%2Fevm4eosio-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/learnforpractice","download_url":"https://codeload.github.com/learnforpractice/evm4eosio-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239671421,"owners_count":19677875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T19:15:55.596Z","updated_at":"2025-12-10T15:30:15.631Z","avatar_url":"https://github.com/learnforpractice.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Get Started\n\n## Install Solidity 0.6.0\n\n### Ubuntu 18.04:\n\n```\nsudo apt install software-properties-common\nsudo add-apt-repository ppa:ethereum/ethereum\nsudo apt-get update\nsudo apt-get install solc\n```\n\n### Mac OS X:\n\n```\nbrew update\nbrew upgrade\nbrew tap ethereum/ethereum\nbrew install solidity\n```\n\n## Clone Demo From Github\n```\ngit clone https://github.com/learnforpractice/evm4eosio-demo\ncd evm4eosio-demo\n```\n\n## Setup Python Environment\n\n```\npython3.7 -m pip install virtualenv\npython3.7 -m virtualenv .venv\n. .venv/bin/activate\n```\n\n### Install PyEosKit\n\n#### Ubuntu\n\n```\npython3.7 -m pip https://github.com/learnforpractice/pyeoskit/releases/download/v0.7.0/pyeoskit-0.7.0-cp37-cp37m-linux_x86_64.whl\n```\n\n#### Mac OS X\n```\npython3.7 -m pip https://github.com/learnforpractice/pyeoskit/releases/download/v0.7.0/pyeoskit-0.7.0-cp37-cp37m-macosx_10_9_x86_64.whl\n```\n\n### Install Jupyter Notebook\n```\npython3.7 -m pip install notebook\n```\n\n### Install Solc Compiler\n```\npython3.7 -m pip install py-solc-x\n```\n\n### Install Web3\n\n```\npython3.7 -m pip install --pre web3[tester]==5.5.0\n```\n\n### Install Base58\n```\npython3.7 -m pip install base58\n```\n\n## Start a Testnet\n```\nnodeos  --verbose-http-errors  --http-max-response-time-ms 100 --data-dir dd --config-dir cd --wasm-runtime eos-vm-jit --contracts-console -p eosio -e --plugin eosio::producer_plugin --plugin eosio::chain_api_plugin --plugin eosio::producer_api_plugin\n```\n\n## Initialize the Testnet\nIn the same directory, run the following command:\n```\npython3.7 testnet-init.py http://127.0.0.1:8888\n```\n\nmodify http://127.0.0.1:8888 to the right url if nodeos's http server is not listening at the default ip and port\n\n\nThat will deploy a Smart Contract at [ethereum_vm](contracts/ethereum_vm) that can run Ethereum Smart Contract to the testnet.\n\nFor how to build the Smart Contract, please refer to the following link:\n\n[evmone4eosio](https://github.com/learnforpractice/evmone4eosio)\n\n\nFor test on the new builded ethereum_vm.wasm, copy evm4eos_contract/ethereum_vm.wasm and evm4eos_contract/ethereum_vm.abi from build directory to contracts/ethereum_vm\n\n## Open Jupyter Notebook\nIn eos-with-evm-demo directory, run the following command\n```\npython3.7 -m notebook\n```\n\nOpen hello_evm.ipynb and run code in cell one by one\n\n## Run TestCase\n\n```\npython3.7 evm_test.py http://127.0.0.1:8888\n```\n\nmodify http://127.0.0.1:8888 to the right url if nodeos's http server is not listening at the default ip and port\n\n## Run VMTests\n\nFirst clone [ethereum tests](https://github.com/ethereum/tests) to your local directory:\n\n```\ngit clone https://github.com/ethereum/tests\n```\n\nRun vm tests with the following command\n\n```\npython3.7 testsrunner.py -- --http-server-address http://127.0.0.1:8888 -d tests/VMTests -v 0\n```\n\nchange tests/VMTests to the properly vm tests directory.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flearnforpractice%2Fevm4eosio-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flearnforpractice%2Fevm4eosio-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flearnforpractice%2Fevm4eosio-demo/lists"}