GithubHelp home page GithubHelp logo

aniket-engg / fabric-chaincode-evm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hyperledger-archives/fabric-chaincode-evm

0.0 2.0 0.0 9.03 MB

Read-only mirror of https://gerrit.hyperledger.org/r/#/admin/projects/fabric-chaincode-evm

Home Page: https://hyperledger.org/

License: Apache License 2.0

Makefile 2.75% Go 81.26% JavaScript 11.51% Shell 4.48%

fabric-chaincode-evm's Introduction

Hyperledger Fabric EVM chaincode

This is the project for the Hyperledger Fabric chaincode, integrating the Burrow EVM. At its essence, this project enables one to use the Hyperledger Fabric permissioned blockchain platform to interact with Ethereum smart contracts written in an EVM compatible language such as Solidity or Vyper.

The integration has two main pieces. The chaincode, which integrates the Hyperledger Burrow EVM package in a Go chaincode shim and maps the various methods between the peer and the EVM itself.

The second piece is a Fabric Proxy that implements a subset of the Ethereum compliant JSON RPC interfaces, so that users could use tools such as Web3.js to interact with smart contracts running in the Fabric EVM. Currently the APIs that have been implemented are eth_getCode, eth_account, eth_call, sendTransaction,eth_getTransactionReceipt. We are working on expanding that subset.

We hang out in the #fabric-evm channel. We are always interested in feedback and help in development and testing! See the Fabric's CONTRIBUTING documentation for information on how to contribute to this repository.

Design Document

Please see the design document in FAB-6590.

Deploying the Fabric EVM Chaincode

This chaincode can be deployed like any other user chaincode to Hyperledger Fabric. The chaincode has no instantiation arguments.

You can run the integration test in which a sample Fabric Network is run and the chaincode is installed with the CCID: evmcc.

make integration-test

The end-2-end test is derivative of the hyperledger/fabric/integration/e2e test. You can compare them to see what is different.

We have an tutorial that runs through the basic setup of the EVM chaincode as well as setting up the Fabric Proxy.

Basically, the interaction is the same as with any other chaincode, except that the first argument of a chaincode invoke is the address for the contract and the second argument is the input you typically provide for an Ethereum transaction.

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License

fabric-chaincode-evm's People

Contributors

avlakshmy avatar christo4ferris avatar guoger avatar mhbauer avatar rameshthoomu avatar ryjones avatar swetharepakula avatar

Watchers

 avatar  avatar

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.