Git Product home page Git Product logo

sol_batch_complie's Introduction

Sol文件批量编译工具

Requirements

  • Python >= 3.6
  • solcx (pip install py-solc-x)

执行过程

  1. 运行solcx_all_version_install.py,预先安装所有的solidity编译器版本
  2. 将合约压缩文件解压至./contracts
  3. 修改 handleIndividualJson.py, pathUpdate.py, batchCompile.py中数据目录的路径SavePath
  4. 运行./compile.sh完成5-6的步骤
    1. 运行handleIndividualJson.py以从包含合约的 json 文件中抽取并生成合约对应的 sol 文件和 metadata.json 文件。
    2. 运行pathUpdate.py以更改sol文件中所有 import 依赖路径并生成metadata.json文件
    3. 运行batchCompile.py进行批量编译

生成的编译文件放在compile_info目录下,若编译失败,异常信息保存在error_info目录下,编译异常信息保存在error_info/compile_error目录下。上述目录需要自行创建。

文件说明

moveContracts.py 批量移动数据 optimization_set.py 存储编译优化选项 ./etherscan_contract 200个未处理的合约 ./contracts 预处理后的合约 ./error_info 编译报错信息 ./compiled_info 编译结果

sol_batch_complie's People

Contributors

dragonfly-clf avatar slipyninja avatar

Watchers

 avatar

Forkers

dragonfly-clf

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.