Solidity, the Smart Contract Programming Language
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Nikola Matić f2dc3d38a7
Merge pull request #14052 from kuzdogan/develop
3 hours ago
.circleci update smtchecker tests 3 days ago
.github Double number of operations per run for stale action bot 2 weeks ago
cmake Improve comment on CMP0115 7 months ago
docs Merge pull request #14052 from kuzdogan/develop 3 hours ago
libevmasm Do not duplicate subassemblies. 1 month ago
liblangutil group unsupported warnings 2 weeks ago
libsmtutil Fixes handling bitwise operators for z3 model checker 2 months ago
libsolc Add std:: qualifier to move() calls 7 months ago
libsolidity group unsupported warnings 2 weeks ago
libsolutil libsolutil: Add missing include 2 months ago
libyul Re-implement unused assign / unused store eliminator. 2 weeks ago
scripts use new z3 3 days ago
snap Snap: update z3 2 years ago
solc group unsupported warnings 2 weeks ago
test update smtchecker tests 3 days ago
tools Remove solidity-upgrade 2 months ago
.clang-format Improved `.clang_format` file. 3 years ago
.dockerignore adds .dockerignore file 5 years ago
.editorconfig .editorconfig: Indentation rules for .yul 2 years ago
.gitattributes Create .gitattributes 5 years ago
.gitignore External tests maintenance 4 months ago
CMakeLists.txt use new z3 3 days ago
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md 5 months ago
CODING_STYLE.md Use std:: prefix with std::forward() as well to satisfy Clang 4 weeks ago
CONTRIBUTING.md Replace links to readthedocs.io with ones using the new domain 2 years ago
Changelog.md Refactored NumberUnit and FunctionDefinition. Added OctalNumber. Fixed number followed by identifier with no whitespace. 7 days ago
LICENSE.txt Align license to those in file headers. 7 years ago
README.md Update README maintainers 5 months ago
ReleaseChecklist.md ReleaseChecklist: Add more detail to the PPA steps 2 months ago
ReviewChecklist.md Use std:: prefix with std::forward() as well to satisfy Clang 4 weeks ago
SECURITY.md Replace links to readthedocs.io with ones using the new domain 2 years ago
codecov.yml Fix patch coverage settings 4 years ago

README.md

The Solidity Contract-Oriented Programming Language

Matrix Chat Gitter Chat Solidity Forum Twitter Follow Mastodon Follow

You can talk to us on Gitter and Matrix, tweet at us on Twitter or create a new topic in the Solidity forum. Questions, feedback, and suggestions are welcome!

Solidity is a statically typed, contract-oriented, high-level language for implementing smart contracts on the Ethereum platform.

For a good overview and starting point, please check out the official Solidity Language Portal.

Table of Contents

Background

Solidity is a statically-typed curly-braces programming language designed for developing smart contracts that run on the Ethereum Virtual Machine. Smart contracts are programs that are executed inside a peer-to-peer network where nobody has special authority over the execution, and thus they allow anyone to implement tokens of value, ownership, voting, and other kinds of logic.

When deploying contracts, you should use the latest released version of Solidity. This is because breaking changes, as well as new features and bug fixes, are introduced regularly. We currently use a 0.x version number to indicate this fast pace of change.

Build and Install

Instructions about how to build and install the Solidity compiler can be found in the Solidity documentation.

Example

A "Hello World" program in Solidity is of even less use than in other languages, but still:

// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.9.0;

contract HelloWorld {
    function helloWorld() external pure returns (string memory) {
        return "Hello, World!";
    }
}

To get started with Solidity, you can use Remix, which is a browser-based IDE. Here are some example contracts:

  1. Voting
  2. Blind Auction
  3. Safe remote purchase
  4. Micropayment Channel

Documentation

The Solidity documentation is hosted using Read the Docs.

Development

Solidity is still under development. Contributions are always welcome! Please follow the Developers Guide if you want to help.

You can find our current feature and bug priorities for forthcoming releases in the projects section.

Maintainers

The Solidity programming language and compiler are open-source community projects governed by a core team. The core team is sponsored by the Ethereum Foundation.

License

Solidity is licensed under GNU General Public License v3.0.

Some third-party code has its own licensing terms.

Security

The security policy may be found here.