{"id":19001503,"url":"https://github.com/bumi/eth-example","last_synced_at":"2026-02-28T00:03:18.323Z","repository":{"id":66382297,"uuid":"104934890","full_name":"bumi/eth-example","owner":"bumi","description":"quick and dirty code minimal, home made code example for Ethereum development","archived":false,"fork":false,"pushed_at":"2017-09-27T11:02:26.000Z","size":71,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-01T18:31:42.679Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","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/bumi.png","metadata":{"files":{"readme":"README.mdown","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":"2017-09-26T20:33:34.000Z","updated_at":"2017-09-27T13:00:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"948a0c0c-c70c-45a2-af5a-eec719c57c7e","html_url":"https://github.com/bumi/eth-example","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/bumi%2Feth-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Feth-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Feth-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Feth-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bumi","download_url":"https://codeload.github.com/bumi/eth-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240020580,"owners_count":19735218,"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-08T18:11:26.576Z","updated_at":"2026-02-28T00:03:18.293Z","avatar_url":"https://github.com/bumi.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eth examples \\o/\n\n## Contents: \n\n\n* token.sol: minimal contract with example on how to change a contract attribute (exchangeRate)\n* deploy.js: minimal example for a home-made deploy script\n* index.js: example on how to initialize a JS object for the contract and interact with it\n* wallet.json: wallet data incl. private key - added this here just to make it easier to use\n* index.html: dapp example on how to build a UI for the contract and interact through a provided web3 (metamask for example)\n\n## 0. setup\n\n    $ npm install (from this directory)\n    $ parity --chain=dev ui\n\n## 1. run the deploy script\n\n    $ node deploy.js\n\nThis will try to connect to your parity node on localhost:8545 and compile and deploy the contract. \nIt will print the address of the deployed contract and it will write it to `contract-metadata.js`\nIt will also try to send some ETH to our wallet (wallet.json) to allow it to interact with the contract.\n\n\n## 2. interact with the contract\n\n    $ node index.js\n\nThis will load the wallet and interact with the deployed contract. It will read the currect exchange rate and set the exchange rate. (examples on how to interact)\n\n## 3. run the dapp in index.html\n\n    $ python -m SimpleHTTPServer 8000\n\nindex.html contains some HTML and JS as an example on how to interact with the contract through metamask (or any other externally provided web3)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbumi%2Feth-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbumi%2Feth-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbumi%2Feth-example/lists"}