链就码林高手

这是一个进行以太坊开发应用已有的工具、组件、模式和平台的指引。

以太坊开发者武器列表

Creation of this list was spurred by product managers at ConsenSys who saw a need for better sharing of tools, development patterns, and components amongst both new and experienced blockchain developers.

This resource is meant to be focused on developer tools, but the repo also includes:

Contributions are welcome!

Feel free to submit a pull request, with anything from small fixes to tools you'd like to add (or remove!). If adding a new tool, please add a brief description that you think new developers would understand.

Many thanks to the ~100 contributors including @corbpage and @pakaplace of Meridio for curating, and @jpantunes for restructuring the list in a more logical way.

  • Projects that do not have a working product will not be added.

  • Projects that are deprecated or no longer maintained will be removed.

  • Projects that are paid/restricted services without open source code or developer reviews will be further vetted.

^Is the above fair? Share your input here - https://github.com/ConsenSysLabs/ethereum-developer-tools-list/pull/70

New developers start here

  • Solidity - The most popular smart contract language.

  • Truffle - Most popular smart contract development, testing, and deployment framework. Install the cli via npm and start here to write your first smart contracts.

  • Metamask - Chrome extension wallet to interact with Dapps.

  • Truffle boxes - Packaged components for the Ethereum ecosystem

  • OpenZeppelin Starter Kits - An all-in-one starter box for developers to jumpstart their smart contract backed applications. Includes Truffle, OpenZeppelin SDK, the OpenZeppelin/contracts-ethereum-package EVM package of audited smart contract, a react-app and rimble for easy styling.

  • EthHub.io - Comprehensive crowdsourced overview of Ethereum- its history, governance, future plans and development resources.

  • Cobra - A fast, flexible and simple development environment framework for Ethereum smart contract, testing and deployment on Ethereum virtual machine(EVM).

  • Fortmatic - A simple to use SDK to build web3 dApps without extensions or downloads.

  • Portis - A non-custodial wallet with an SDK that enables easy interaction with DApps without installing anything.

Developer Tools

Developing Smart Contracts

Smart Contract Languages

  • Solidity - Ethereum smart contracting language

  • Bamboo - A morphing smart contract language

  • Vyper - New experimental pythonic programming language

  • Flint - New language under development with security features including asset types, state transition, and safe integers

Frameworks

  • Truffle - Most popular smart contract development, testing, and deployment framework. The Truffle suite includes Truffle, Ganache, and Drizzle. Deep dive on Truffle here

  • Embark - Framework for DApp development

  • Waffle - Framework for advanced smart contract development and testing, small, flexible, fast (based on ethers.js)

  • Dapp - Framework for DApp development, successor to DApple

  • Etherlime - ethers.js based framework for Dapp deployment

  • Parasol - Agile smart contract development environment with testing, INFURA deployment, automatic contract documentation and more. It features a flexible and unopinionated design with unlimited customizability

  • 0xcert - JavaScript framework for building decentralized applications

  • OpenZeppelin SDK - OpenZeppelin SDK: A suite of tools to help you develop, compile, upgrade, deploy and interact with smart contracts.

  • sbt-ethereum - A tab-completey, text-based console for smart-contract interaction and development, including wallet and ABI management, ENS support, and advanced Scala integration.

  • Brownie - Brownie is a Python framework for deploying, testing and interacting with Ethereum smart contracts.

  • Cobra - A fast, flexible and simple development environment framework for Ethereum smart contract, testing and deployment on Ethereum virtual machine(EVM).

IDEs

Other tools

  • Atra Blockchain Services - Atra provides web services to help you build, deploy, and maintain decentralized applications on the Ethereum blockchain.

  • Buidler - Extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.

Test blockchain networks

  • ethnode - Run an Ethereum node (Geth or Parity) for development, as easy as npm i -g ethnode && ethnode.

  • Ganache - App for test Ethereum blockchain with visual UI and logs

  • Kaleido - Use Kaleido for spinning up a consortium blockchain network. Great for PoCs and testing

  • Pantheon Private Network - Run a private network of Pantheon nodes in a Docker container ** Orion - Component for performing private transactions by PegaSys ** Artemis - Java implementation of the Ethereum 2.0 Beacon Chain by PegaSys

  • Cliquebait - Simplifies integration and accepting testing of smart contract applications with docker instances that closely resembles a real blockchain network

  • Local Raiden - Run a local Raiden network in docker containers for demo and testing purposes

  • Private networks deployment scripts - Out-of-the-box deployment scripts for private PoA networks

  • Local Ethereum Network - Out-of-the-box deployment scripts for private PoW networks

  • Ethereum on Azure - Deployment and governance of consortium Ethereum PoA networks

  • getho - DApp development platform including PoA private blockchain and Smart Contract testing tool.

  • Ethereum on Google Cloud - Build Ethereum network based on Proof of Work

  • Infura - Ethereum API access to Ethereum networks (Mainnet, Ropsten, Rinkeby, Goerli, Kovan)

Test Ether faucets

Communicating with Ethereum

Frontend Ethereum APIs

  • Web3.js - Javascript Web3

    • Eth.js - Javascript Web3 alternative

    • Ethers.js - Javascript Web3 alternative, useful utilities and wallet features

    • light.js A high-level reactive JS library optimized for light clients.

    • Web3Wrapper - Typescript Web3 alternative

    • Ethereumjs - A collection of utility functions for Ethereum like ethereumjs-util and ethereumjs-tx

    • flex-contract and flex-ether Modern, zero-configuration, high-level libraries for interacting with smart contracts and making transactions.

    • ez-ens Simple, zero-configuration Ethereum Name Service address resolver.

    • web3x - A TypeScript port of web3.js. Benefits includes tiny builds and full type safety, including when interacting with contracts.

  • Nethereum - Cross-platform Ethereum development framework

  • Drizzle - Redux library to connect a frontend to a blockchain

  • Tasit SDK - A JavaScript SDK for making native mobile Ethereum dapps using React Native

  • Subproviders - Several useful subproviders to use in conjunction with Web3-provider-engine (including a LedgerSubprovider for adding Ledger hardware wallet support to your dApp)

  • web3-react - React framework for building single-page Ethereum dApps

  • Vortex - A Dapp-ready Redux Store. Smart and Dynamic background data refresh thanks to WebSockets. Works with Truffle and Embark.

  • Strictly Typed - Javascript alternatives

  • ChainAbstractionLayer - Communicate with different blockchains (including Ethereum) using a single interface.

  • Delphereum - a Delphi interface to the Ethereum blockchain that allows for development of native dApps for Windows, macOS, iOS, and Android.

Backend Ethereum APIs

Bootstrap/out of box tools

  • Truffle boxes - Packaged components for the Ethereum ecosystem

  • Pantheon Private Network - Run a private network of Pantheon nodes in a Docker container

  • Testchains - Pre-configured .NET devchains for fast response (PoA) ** Blazor/Blockchain Explorer - Wasm blockchain explorer (functional sample)

  • Local Raiden - Run a local Raiden network in docker containers for demo and testing purposes

  • Private networks deployment scripts - Out-of-the-box deployment scripts for private PoA networks

  • Parity Demo-PoA Tutorial - Step-by-Step tutorial for building a PoA test chain with 2 nodes with Parity authority round consensus

  • Local Ethereum Network - Out-of-the-box deployment scripts for private PoW networks

  • Kaleido - Use Kaleido for spinning up a consortium blockchain network. Great for PoCs and testing

  • Cheshire - A local sandbox implementation of the CryptoKitties API and smart contracts, available as a Truffle Box

  • aragonCLI - aragonCLI is used to create and develop Aragon apps and organizations.

  • ColonyJS - JavaScript client that provides an API for interacting with the Colony Network smart contracts.

  • ArcJS - Library that facilitates javascript application access to the DAOstack Arc ethereum smart contracts.

  • Arkane Connect - JavaScript client that provides an API for interacting with Arkane Network, a wallet provider for building user-friendly dapps.

  • Blocknative - Assist.js is an embeddable widget that improves Dapp usability. The tool programmatically identifies and outlines clear actions for end-users to follow when interacting with MetaMask to overcome — and even prevent — common pitfalls and obstacles.

Ethereum ABI (Application Binary Interface) tools

  • ABI decoder - library for decoding data params and events from Ethereum transactions

  • ABI-gen - Generate Typescript contract wrappers from contract ABI's.

  • Ethereum ABI UI - Auto-generate UI form field definitions and associated validators from an Ethereum contract ABI

  • headlong - type-safe Contract ABI and Recursive Length Prefix library in Java

  • One Click dApp - Instantly create a dApp at a unique URL using the ABI.

  • Truffle Pig - a development tool that provides a simple HTTP API to find and read from Truffle-generated contract files, for use during local development. Serves fresh contract ABIs over http.

  • Ethereum Contract Service - A MESG Service to interact with any Ethereum contract based on its address and ABI.

Patterns & Best Practices

Patterns for Smart Contract Development

Upgradeability

Infrastructure

Ethereum Clients

  • Pantheon - Java client by PegaSys

  • Geth - Go client

  • Parity - Rust client

  • Aleth - C++ client

  • Nethermind - .NET Core client

  • Pyethapp - Python client using pyethereum

  • Infura - A managed service providing Ethereum client standards-compliant APIs

  • Trinity - Python client using py-evm

  • Ethereumjs - JS client using ethereumjs-vm

  • Ethereumj - Java client by the Ethereum Foundation

  • Harmony - Java client by EtherCamp

  • Seth - Seth is an Ethereum client tool—like a "MetaMask for the command line"

  • Mustekala - Ethereum Light Client project of Metamask.

  • Exthereum - Elixir client

  • EWF Parity - Energy Web Foundation client for the Tobalaba test network

  • Quorum - A permissioned implementation of Ethereum supporting data privacy by JP Morgan

  • Mana - Ethereum full node implementation written in Elixir.

Storage

  • IPFS - Decentralised storage and file referencing

    • IPFS-Store - IPFS Storage service with added search capability

    • OrbitDB - Decentralised database on top of IPFS

    • JS IPFS API - A client library for the IPFS HTTP API, implemented in JavaScript.

    • TEMPORAL - Easy to use API into IPFS and other distributed/decentralised storage protocols

  • Swarm - Distributed storage platform and content distribution service, a native base layer service of the Ethereum web3 stack

  • Infura - A managed IPFS API Gateway and pinning service

Messaging

  • Whisper - Communication protocol for DApps to communicate with each other, a native base layer service of the Ethereum web3 stack

  • DEVp2p Wire Protocol - Peer-to-peer communications between nodes running Ethereum/Whisper

  • Pydevp2p - Python implementation of the RLPx network layer

Testing Tools

  • Truffle Teams - Zero-Config continuous integration for truffle projects.

  • Solidity code coverage - Solidity code coverage tool

  • Solidity coverage - Alternative code coverage for Solidity smart-contracts

  • Solidity function profiler - Solidity contract function profiler

  • Sol-profiler - Alternative and updated Solidity smart contract profiler

  • Espresso - Speedy, parallelised, hot-reloading solidity test framework

  • Eth tester - Tool suite for testing Ethereum applications

  • Cliquebait - Simplifies integration and accepting testing of smart contract applications with docker instances that closely resembles a real blockchain network

  • Hevm - The hevm project is an implementation of the Ethereum virtual machine (EVM) made specifically for unit testing and debugging smart contracts

  • Ethereum graph debugger - Solidity graphical debugger

  • Tenderly CLI - Speed up your development with human readable stack traces

  • Solhint - Solidity linter that provides security, style guide and best practice rules for smart contract validation

  • Ethlint - Linter to identify and fix style & security issues in Solidity, formerly Solium

  • Decode - npm package which parses tx's submitted to a local testrpc node to make them more readable and easier to understand

  • truffle-assertions - An npm package with additional assertions and utilities used in testing Solidity smart contracts with truffle. Most importantly, it adds the ability to assert whether specific events have (not) been emitted.

  • Psol - Solidity lexical preprocessor with mustache.js-style syntax, macros, conditional compilation and automatic remote dependency inclusion.

  • solpp - Solidity preprocessor and flattener with a comprehensive directive and expression language, high precision math, and many useful helper functions.

  • Decode and Publish – Decode and publish raw ethereum tx. Similar to https://live.blockcypher.com/btc-testnet/decodetx/

  • Doppelgänger - a library for mocking smart contract dependencies during unit testing.

  • rocketh - A simple lib to test ethereum smart contract that allow to use whatever web3 lib and test runner you choose.

  • pytest-cobra - PyTest plugin for testing smart contracts for Ethereum blockchain.

Security Tools

  • MythX - Security verification platform and tools ecosystem for Ethereum developers

  • Mythril Classic - Open-source EVM bytecode security analysis tool

  • Oyente - Alternative static smart contract security analysis

  • Securify - Security scanner for Ethereum smart contracts

  • SmartCheck - Static smart contract security analyzer

  • Porosity - Decompiler and Security Analysis tool for Blockchain-based Ethereum Smart-Contracts

  • Ethersplay - EVM disassembler

  • Evmdis - Alternative EVM disassembler

  • Hydra - Framework for cryptoeconomic contract security, decentralised security bounties

  • Solgraph - Visualise Solidity control flow for smart contract security analysis

  • Manticore - Symbolic execution tool on Smart Contracts and Binaries

  • Slither - A Solidity static analysis framework

  • Adelaide - The SECBIT static analysis extension to Solidity compiler

  • solc-verify - A modular verifier for Solidity smart contracts

  • Solidity security blog - Comprehensive list of known attack vectors and common anti-patterns

  • Awesome Buggy ERC20 Tokens - A Collection of Vulnerabilities in ERC20 Smart Contracts With Tokens Affected

  • Free Smart Contract Security Audit - Free smart contract security audits from Callisto Network

Monitoring

  • amberdata.io - Provides live monitoring, insights and anomaly detection, token metrics, smart contract audits, graph visualization and blockchain search.

  • Neufund - Smart Contract Watch - A tool to monitor a number of smart contracts and transactions

  • Scout - A live data feed of the activities and event logs of your smart contracts on Ethereum

  • Tenderly - A platform that gives users reliable smart contract monitoring and alerting in the form of a web dashboard without requiring users to host or maintain infrastructure

  • Chainlyt - Explore smart contracts with decoded transaction data, see how the contract is used and search transactions with specific function calls

  • BlockScout - A tool for inspecting and analyzing EVM based blockchains. The only full featured blockchain explorer for Ethereum networks.

Other Miscellaneous Tools

  • aragonPM - a decentralized package manager powered by aragonOS and Ethereum. aragonPM enables decentralized governance over package upgrades, removing centralized points of failure.

  • Truffle boxes - Packaged components for building DApps fast.

    • Cheshire - A local sandbox implementation of the CryptoKitties API and smart contracts, available as a Truffle Box

  • Solc - Solidity compiler

  • Sol-compiler - Project-level Solidity compiler

  • Solidity cli - Compile solidity-code faster, easier and more reliable

  • Solidity flattener - Combine solidity project to flat file utility. Useful for visualizing imported contracts or for verifying your contract on Etherscan

  • Sol-merger - Alternative, merges all imports into single file for solidity contracts

  • RLP - Recursive Length Prefix Encoding in JavaScript

  • eth-cli - A collection of CLI tools to help with ethereum learning and development

  • Ethereal - Ethereal is a command line tool for managing common tasks in Ethereum

  • Eth crypto - Cryptographic javascript-functions for Ethereum and tutorials to use them with web3js and solidity

  • Parity Signer - mobile app allows signing transactions

  • py-eth - Collection of Python tools for the Ethereum ecosystem

  • truffle-flattener - Concats solidity files developed under Truffle with all of their dependencies

  • Decode - npm package which parses tx's submitted to a local testrpc node to make them more readable and easier to understand

  • TypeChain - Typescript bindings for Ethereum smartcontracts

  • EthSum - A Simple Ethereum Address Checksum Tool

  • PHP based Blockchain indexer - allows indexing blocks or listening to Events in PHP

  • Purser - JavaScript universal wallet tool for Ethereum-based wallets. Supports software, hardware, and Metamask -- brings all wallets into a consistent and predictable interface for dApp development.

  • Node-Metamask - Connect to MetaMask from node.js

  • Solidity-docgen - Documentation generator for Solidity projects

  • Ethereum ETL - Export Ethereum blockchain data to CSV or JSON files

  • prettier-plugin-solidity - Prettier plugin for formatting Solidity code

  • EthToolbox - A web app with off-chain tools for Ethereum developers. EC recovery, address formatter, unit converter, hash functions, keys generator, etc.

  • Unity3dSimpleSample - Ethereum and Unity integration demo

  • Flappy - Ethereum and Unity integration demo/sample

  • Wonka - Nethereum business rules engine demo/sample

  • Resolver-Engine - A set of tools to standarize Solidity import and artifact resolution in frameworks.

Smart Contract Standards & Libraries

ERCs - The Ethereum Request for Comment repository

  • Tokens

    • ERC-20 - Original token contract for fungible assets

    • ERC-721 - Token standard for non-fungible assets

    • ERC-777 - An improved token standard for fungible assets

    • ERC-918 - Mineable Token Standard

  • ERC-165 - Creates a standard method to publish and detect what interfaces a smart contract implements.

  • ERC-725 - Proxy contract for key management and execution, to establish a Blockchain identity.

  • ERC-173 - A standard interface for ownership of contracts

Popular Smart Contract Libraries

  • Zeppelin - Contains tested reusable smart contracts like SafeMath and ZeppelinOS library for smart contract upgradeability

  • cryptofin-solidity - A collection of Solidity libraries for building secure and gas-efficient smart contracts on Ethereum.

  • Modular Libraries - A group of packages built for use on blockchains utilising the Ethereum Virtual Machine

  • DateTime Library - A gas-efficient Solidity date and time library

  • Aragon - DAO protocol. Contains aragonOS smart contract framework with focus on upgradeability and governance

  • ARC - an operating system for DAOs and the base layer of the DAO stack.

  • 0x - DEX protocol

  • Token Libraries with Proofs - Contains correctness proofs of token contracts wrt. given specifications and high-level properties

  • Provable API - Provides contracts for using the Provable service, allowing for off-chain actions, data-fetching, and computation

Developer Guides for 2nd Layer Infrastructure

Scalability

Payment/State Channels

Plasma

  • Learn Plasma - Website as Node application that was started at the 2018 IC3-Ethereum Crypto Boot Camp at Cornell University, covering all Plasma variants (MVP/Cash/Debit)

  • Plasma MVP - OmiseGO's research implementation of Minimal Viable Plasma

  • Plasma MVP Golang - Golang implementation and extension of the Minimum Viable Plasma specification

  • Plasma Cash - Simple Plasma Cash implementation

  • Plasma Exit - Automatically watch and challenge or exit from Omisego Plasma Network when needed.

  • Plasma OmiseGo Watcher - Interact with Plasma OmiseGo network and notifies for any byzantine events.

Side-Chains

Privacy / Confidentiality

zkSNARKs

  • ZoKrates - A toolbox for zkSNARKS on Ethereum

  • The AZTEC Protocol - Confidential transactions on the Ethereum network, implementation is live on the Ethereum main-net

  • Proxy Re-encryption (PRE) ** NuCypher Network - A proxy re-encryption network to empower data privacy in decentralized systems ** pyUmbral - Threshold proxy re-encryption cryptographic library

  • Fully Homomorphic Encryption (FHE) ** NuFHE - GPU accelerated FHE library

Prebuilt UI Components