solidity README

The project's README from github.com/argotorg/solidity. As one markdown file: README.md.

The Solidity Contract-Oriented Programming Language

Matrix Chat Gitter Chat Solidity Forum X Follow Mastodon Follow

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

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 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.

solidity (argotorg/solidity)

Searching Database…

25.8K ·GitHub
这是什么?Solidity 是一种静态类型、面向合约的语言,用于在以太坊上编写智能合约——也就是运行在以太坊虚拟机上的程序。以太坊是一个点对点网络,没有任何人能对合约的执行享有特殊权力。
那这个仓库到底是语言本身、编译器,还是两者都是?两者都是:Solidity 是一种静态类型、使用大括号语法的语言,而这个仓库构建的是它的编译器,用 C++ 编写,编译目标是以太坊虚拟机。Remix 之类的 IDE 是独立的工具。
我怎么编写并运行第一个合约?从 Remix 开始,它是一个基于浏览器的 IDE,本地什么都不用装,然后跟着 README 链接的示例合约一步步做。
那如果我想在自己的电脑上编译合约呢?那就需要 Solidity 编译器。README 把构建和安装的说明都放在了文档里;代码库是原生 C++ 写的,所以要做好完整构建工具链的准备。
这门语言稳定吗?以后更新会不会把我的合约弄坏?它迭代很快:破坏性变更、新功能和 bug 修复都会定期发布,0.x 这样的版本号也说明了这一点。部署时请使用最新的正式发布版本。
人们实际用它做什么?以太坊上的智能合约——代表价值、所有权、投票等各种逻辑的代币,其执行不受任何单方面控制。
这个许可证有多宽松?GNU GPL v3.0——一种强 copyleft 许可证,部分捆绑的第三方代码按其自身条款发布。语言和编译器都是免费的开源软件。
我的第一个合约写什么好?README 链接了四个完整示例:Voting(投票)、Blind Auction(盲拍)、Safe remote purchase(安全远程购买)和 Micropayment Channel(微支付通道)。它还提到,Hello World 在 Solidity 里比在其他语言里更没什么用处。
Solidity 还在积极开发吗?是的——README 表明它仍在开发中,后续版本的功能和 bug 优先级在项目的 projects 区块中跟踪。参与贡献请遵循 Developer's Guide(开发者指南)。
Creator
argotorg
Size
84.8 MB
Stars
25.8K
Age
11y
Commits · 90 Days