Git Product home page Git Product logo

ethereum-util's Introduction

Ethereum-util

这是一个帮助以太坊合约开发者,快速获取合约方法签名的小工具。当我们将合约开发完成后,需要js或者java调用时,需要合约的方法签名。当然现在使用web3能生成方法签名,但是我们在拼接方法签名参数的过程中仍然有不可避免的错误。使用ethSignUtil工具能一次性生成所有合约的方法签名,帮助开发者校对合约方法签名是否正确,而不需要使用remix将一个个方法在里面编写生成方法签名校对。 ethSignUtil2.0 添加了合约方法文档生成功能,帮助合约开发者与相关协作开发者接口统一。

source abi File

Use the premise

  • way1: truffle compile

    • 生成build/contracts目录,以及所有的合约json文件
  • way2: solc contract.sol --bin --abi --optimize -o abis/

    • 将合约生成abi和bin文件,生成的文件放在abis目录下

Usage

java -jar ethSignUtil.jar
重要提示! 必须将ethSignUtil.jar 放在上述truffle compile后的build目录的同级目录,或者是solc生成abis目录的同级目录。其中abis目录是强行指定的目录名称

Contact the author

  • weixin_public_number: blockchain_do / 刻意链习
  • weibo : 刻意链习 关注:刻意链习

ethereum-util's People

Contributors

zhjgit 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.