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.
 
 
 
 
 
 
Nikola Matić 3f2cde9bd6
Merge pull request #14215 from ethereum/gitignore_orig_files
4 weeks ago
.circleci Bump docker images and evmone version. 1 month ago
.github Enable triage issues action 1 month ago
cmake Disable dangling-reference warning 1 month ago
docs Update bugs by version entry for 0.8.20. 1 month ago
libevmasm Change default EVM version to Shanghai. 1 month ago
liblangutil Change default EVM version to Shanghai. 1 month ago
libsmtutil Implement missing overrides and relax smtAsserts 1 month ago
libsolc Add std:: qualifier to move() calls 9 months ago
libsolidity Merge pull request #14171 from ethereum/ast-import-via-standard-json 1 month ago
libsolutil Merge pull request #14143 from ethereum/remove-type-categoryname 2 months ago
libyul Optimize multiplicity map 1 month ago
scripts Minor post-release adjustments. 4 weeks ago
snap Snap: update z3 2 years ago
solc Add experimental support to import AST via Standard JSON. 1 month ago
test Add experimental support to import AST via Standard JSON. 1 month ago
tools Remove solidity-upgrade 5 months ago
.clang-format [.clang-format ] Update prohibited property 'AlignEscapedNewlinesLeft'. 2 months ago
.dockerignore adds .dockerignore file 5 years ago
.editorconfig .editorconfig: Indentation rules for .yul 3 years ago
.gitattributes Create .gitattributes 5 years ago
.gitignore Add *.orig to .gitignore. 4 weeks ago
.readthedocs.yml Add readthedocs configuration 1 month ago
CMakeLists.txt Set version to 0.8.21. 1 month ago
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md 7 months ago
CODING_STYLE.md Use std:: prefix with std::forward() as well to satisfy Clang 3 months ago
CONTRIBUTING.md Replace links to readthedocs.io with ones using the new domain 3 years ago
Changelog.md Set version to 0.8.21. 1 month ago
LICENSE.txt Align license to those in file headers. 7 years ago
README.md Update README maintainers 7 months ago
ReleaseChecklist.md Minor post-release adjustments. 4 weeks ago
ReviewChecklist.md Use std:: prefix with std::forward() as well to satisfy Clang 3 months ago
SECURITY.md Replace links to readthedocs.io with ones using the new domain 3 years ago
codecov.yml Fix patch coverage settings 4 years ago

README.md

The Solidity Contract-Oriented Programming Language

Matrix Chat Gitter Chat Solidity<span class= 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.