{"id":13626339,"url":"https://github.com/IBM/vote-hyperledger-ethereum","last_synced_at":"2025-04-16T14:33:14.117Z","repository":{"id":66065527,"uuid":"155438462","full_name":"IBM/vote-hyperledger-ethereum","owner":"IBM","description":"Voting DApp using Web3, Solidity, Hyperledger Fabric and Chaincode EVM","archived":true,"fork":false,"pushed_at":"2019-06-12T16:47:21.000Z","size":819,"stargazers_count":73,"open_issues_count":1,"forks_count":39,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-12-20T23:35:10.156Z","etag":null,"topics":["chaincode","ethereum","ethereum-blockchain","ethereum-dapp","evm","hyperledger","hyperledger-fabric","solidity","solidity-contracts","web3"],"latest_commit_sha":null,"homepage":"https://developer.ibm.com/patterns/voting-app-hyperledger-ethereum/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IBM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-10-30T18:43:02.000Z","updated_at":"2024-10-19T14:15:00.000Z","dependencies_parsed_at":"2023-02-21T02:15:24.293Z","dependency_job_id":null,"html_url":"https://github.com/IBM/vote-hyperledger-ethereum","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/IBM%2Fvote-hyperledger-ethereum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBM%2Fvote-hyperledger-ethereum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBM%2Fvote-hyperledger-ethereum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBM%2Fvote-hyperledger-ethereum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IBM","download_url":"https://codeload.github.com/IBM/vote-hyperledger-ethereum/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249250820,"owners_count":21237961,"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":["chaincode","ethereum","ethereum-blockchain","ethereum-dapp","evm","hyperledger","hyperledger-fabric","solidity","solidity-contracts","web3"],"created_at":"2024-08-01T21:02:15.674Z","updated_at":"2025-04-16T14:33:13.846Z","avatar_url":"https://github.com/IBM.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"## Blockchain DApp - {Web3, Ethereum, Solidity, Hyperledger Fabric, Chaincode EVM}\n\nSimple Web3 Hyperledger Fabric - Hyperledger [Burrow EVM](https://github.com/hyperledger/burrow) Voting Decentralized Application\n\nWith few clicks, run smart contracts from Solidity onto Ethereum Virtual Machine (EVM) that is embedded into Hyperledger Fabric to compiles these contracts as bytecode, of course, with the help of the chaincode.\n\n\u003chr\u003e\n\n\u003cimg src=\"img/hyperether.png\" width=\"600\" height=\"400\"\u003e\n\n\u003chr\u003e\n\n## Before we start\n\nMake sure to have the following prerequisite tools are installed on your machine: [NPM](https://www.npmjs.com/), [Node](https://nodejs.org/en/), [Go](https://golang.org/dl/), [Docker](https://www.docker.com/). Their versions used for this code (respectively): `v6.4.1`, `v10.10.0`, `v1.9.3 darwin/amd64`, `v18.06.1-ce`.\n\nThese scripts in this project have been tried and are macOS compatible but if there are machine issues, then follow the steps [here](https://github.com/hyperledger/fabric-chaincode-evm/blob/master/examples/EVM_Smart_Contracts.md) to bring up __manually__ the needed containers, peers and fab3 up and running.\n\n\u003cu\u003e_Note:_\u003c/u\u003e Take into consideration that running `./start/sh` will remove existing docker containers and images. If there are no containers or images on your machine, you can comment out the docker `stop`, `rm` and `rmi` in `start.sh`. The script is removing and adding docker compose yaml file that creates volume for fabric-chaincode-evm, adding needed repos for this project and `chmod` is to access/enable a file in the cloned repos to be executed.\n\nIf you would like to see the steps of everything happening behind the scenes, check [here](ingredients.md).\n\n\n## STEPS (__OR__ for `manual steps` - click [here](manual_steps.md))\n\n![](img/hyperether-steps.png)\n\n\u003chr\u003e\n\n__Read carefully the steps of this tutorial to build a successful setup:__\n\n* \u003cb\u003eSTEP 1 - `./start.sh` - run this script file\u003c/b\u003e\n\n* \u003cb\u003eSTEP 2 - copy/paste the following sections in the same terminal:\u003c/b\u003e\n\n```bash\n1) # COPY/PASTE THIS SECTION IN THE TERMINAL\n\nexport CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp\nexport CORE_PEER_ADDRESS=peer0.org1.example.com:7051\nexport CORE_PEER_LOCALMSPID=\"Org1MSP\"\nexport CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt\n\n\n2) # COPY/PASTE THIS SECTION IN THE TERMINAL\n\npeer chaincode install -n evmcc -l golang -v 0 -p github.com/hyperledger/fabric-chaincode-evm/evmcc\npeer chaincode instantiate -n evmcc -v 0 -C mychannel -c '{\"Args\":[]}' -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem\n\n\n3) # RUN this script file in a NEW separate terminal\n\n./proxy.sh\n\n# The fab3 proxy will be available at `localhost:5000`.\n```\n\n* \u003cb\u003eSTEP 3 - In a separate terminal, go back to the project's folder and run the web app locally by doing:\u003c/b\u003e\n\n```javascript\ncd web3-fabric-voting-dapp\nnpm install\nnpm start\n```\n\nOpen your browser at [localhost:3000](http://localhost:3000) to view the app.\n\n\u003chr\u003e\n\n\u003cimg src=\"img/start.png\" width=\"600\" height=\"400\"\u003e\n\n\u003chr\u003e\n\n\u003cimg src=\"img/add_yes.png\" width=\"600\" height=\"400\"\u003e\n\n\u003chr\u003e\n\n## References\n\n* [Hyperledger Fabric v1.3](https://github.com/hyperledger/fabric-samples)\n* [Hyperledger Fabric Chaincode EVM](https://github.com/hyperledger/fabric-chaincode-evm)\n* [Solidity](https://solidity.readthedocs.io/en/v0.4.25/index.html)\n* [Web3](https://web3js.readthedocs.io/en/1.0/)\n* [Ethereum JSON RPC API](https://github.com/ethereum/wiki/wiki/JSON-RPC)\n\n## License\nThis code pattern is licensed under the Apache Software License, Version 2.  Separate third party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the [Developer Certificate of Origin, Version 1.1 (DCO)](https://developercertificate.org/) and the [Apache Software License, Version 2](https://www.apache.org/licenses/LICENSE-2.0.txt).\n\n[Apache Software License (ASL) FAQ](https://www.apache.org/foundation/license-faq.html#WhatDoesItMEAN)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIBM%2Fvote-hyperledger-ethereum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FIBM%2Fvote-hyperledger-ethereum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIBM%2Fvote-hyperledger-ethereum/lists"}