Code Monkey home page Code Monkey logo

contractscan's Introduction

contractscan

contractscan 是一个专为合约初学者打造的油猴脚本,能够让用户在主流公链上查阅合约代码时,一键在线编辑和自动打包代码并下载

实现原理

  1. 通过用户前端直接发送代码查看请求,绕开平台反爬虫机制,获得合约代码及对应文件名
  2. 后端对合约代码进行预处理(引用路径转换),将所有文件移至根目录,并打包提交至 Github
  3. 利用 github.dev 实现代码在线编辑

支持网站

  • *.etherscan.io
  • *.bscscan.com
  • *.polygonscan.com

使用方法

在合约代码查看页面,新增了如下图所示的两个新功能:

  1. View Online 在 github.dev 编辑器中查看和编辑
  2. Export Zip 打包下载该合约代码

example

特别鸣谢

special sponsor appwrite special sponsor appwrite special sponsor appwrite special sponsor appwrite

contractscan's People

Contributors

aboutmydreams avatar exqlnet avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.