百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

solidity

> 编程语言
开源

团结,智能合同编程语言

25.7K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

团结,智能合同编程语言

The Solidity Contract-Oriented Programming Language

You can talk to us on Gitter and Matrix, tweet at us on X (previously 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
  • Build and Install
  • Example
  • Documentation
  • Development
  • Maintainers
  • License
  • Security

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:

solidity
// 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 Developer's 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.

Issues· 829 开放

查看全部 Issues在 GitHub 打开
  • #16969

    `bytes constant` 的元素不是只读的

    bug :bug:low effortlow impactmust have eventually更新于 2026年9月17日
  • #16996

    AI 工具策略:添加 AGENTS.md

    documentation :book:更新于 2026年9月16日
  • #17013

    [test] 添加自定义的 StandardCompiler 测试用例

    feature更新于 2026年9月15日
  • #14985

    ABI 编码器 v1 未清理脏的数组项

    bug :bug:documentation :book:codegen errorlow effortlow impact更新于 2026年9月14日
  • #16745

    在长 `new C()` 链上使用 `--via-ssa-cfg --optimize-yul` 会导致病理性的编译时间

    更新于 2026年9月14日
  • #17004

    CompilerStack 全部重置保留实验和调试信息设置

    更新于 2026年9月12日
  • #16944

    存储 Layout : `Bytes' 数用 “u256” 计算, 跨 2^ 251 或 多个槽的包装

    bug :bug:更新于 2026年9月12日
  • #16942

    `super` 解析会忽略可见性,并可以选择 `external` 函数

    bug :bug:更新于 2026年9月10日
  • #16945

    每个名称只报告第一个重复定义组: `reported.count(i)` 位于循环条件中,而不是循环体中

    bug :bug:low impact更新于 2026年9月10日
  • #16875

    --via-ssa-cfg: 由单个函数中同时存在的局部变量数量所驱动的 O(N^4) 编译时爆炸

    performance :racehorse:high effortmedium impactexperimental更新于 2026年9月9日

> 标签

C++blockchaincppethereumhacktoberfest

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言