Coder Social home page Coder Social logo

erwanor / smart-contract-sanctuary Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tintinweb/smart-contract-sanctuary

0.0 0.0 0.0 6.7 GB

๐Ÿฆ๐ŸŒด๐ŸŒด๐ŸŒด๐Ÿฆ• A home for ethereum smart contracts. ๐Ÿ 

Home Page: https://tintinweb.github.io/smart-contract-sanctuary/

smart-contract-sanctuary's Introduction

smart-contract-sanctuary

๐Ÿฆ๐ŸŒด๐ŸŒด๐ŸŒด๐Ÿฆ• A home for ethereum smart contracts verified on Etherscan. ๐Ÿ 

Folder Description
contracts folder structure of dumped solidity contract sources (ethereum)
contracts_chainProvider folder structure of dumped solidity contract sources (other chains)
utils utilities for dumping smart contracts from public sources

Note: This repo is updated twice a day.

Folders

Contracts

Contains smart contract sources for various networks, grouped by the first two chars of the contract address. Files are named in the format <address>_<source_unit_name>, e.g. 0f0c3fedb6226cd5a18826ce23bec92d18336a98_URToken.sol

Some contracts are listed in contracts.json, but this file is not complete. Rely on the file structure for a full list. This repo used to auto submit contracts to 4byte.directory. Feel free to contribute sources.

Utils

Scripts for dumping smart contracts from public sources (etherscan.io, etherchain.com)

requires: pip install -r requirements.txt

Update

To use List of Verified Contract addresses with an OpenSource license, you can download the csv file, add it to the util folder, and run parse_download_contracts_etherscan_io.py (with your etherscan API). This will add the new contracts to the appropriate folder

Contribute

Feel free to contribute smart contract sources, scripts for dumping sources or your analysis results with us.

TODO

  • deduplication script (link instead of duplicate)
  • statistics
  • code-hash (without comments; maybe compile and hash bytecode to dedup sources)

Citation

If you are using this dataset in your research and paper, here's how you can cite this dataset:

  • APA6
Ortner, M., Eskandari, S. (n.d.). Smart Contract Sanctuary. Retrieved from https://github.com/tintinweb/smart-contract-sanctuary.
  • LateX (Bib)
 @article{smart_contract_sanctuary, 
          title={Smart Contract Sanctuary}, 
          url={https://github.com/tintinweb/smart-contract-sanctuary}, 
          author={Ortner, Martin and Eskandari, Shayan}} 

smart-contract-sanctuary's People

Contributors

tintinweb avatar shayanb 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.