Coder Social home page Coder Social logo

zh-chinese's Introduction

面向合约的Solidity编程语言

Matrix Chat Gitter Chat Solidity Forum Twitter Follow Mastodon Follow

您可以在Gitter和Matrix上与我们交谈,在Twitter上向我们发推特,或者在Solidity论坛上创建一个新的主题。 我们欢迎一切问题,反馈和建议。

Solidity是一种静态类型的,面向合约的高级语言,用于在Ethereum平台上实现智能合约。

为了获得一个好的概述和起点,请查看官方的 Solidity语言门户

目录

背景介绍

Solidity是一种静态类型的大括号编程语言,用于开发在以太坊虚拟机上运行的智能合约。 智能合约是在点对点网络内执行的程序,没有人对执行有特别的权限, 因此它们允许实现价值代币,所有权,投票和其他种类的逻辑。

当部署合约时,您应该使用最新发布的 Solidity 版本。 这是因为重大的变化,以及新的功能和错误修复都是定期引入的。 我们目前使用 0.x 版本号 以表示这种快速变化的节奏

构建和安装

关于如何构建和安装 Solidity 编译器的说明可以在 Solidity 文档 中找到。

示例

在 Solidity 中的 “Hello World” 程序比其他语言更没有用处,但此处仍然以此来展示:

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

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

要开始使用 Solidity,您可以使用 Remix, 它是一个基于浏览器的IDE。这里有一些合约的例子:

  1. 投票合约
  2. 盲拍合约
  3. 安全的远程购买合约
  4. 微支付通道合约

文档

Solidity 文档托管在 阅读文档

发展

Solidity 仍在开发中。我们随时欢迎您的贡献! 如果您想提供帮助,请遵循 开发者指南

您可以在 项目管理 中找到我们目前对即将发布的版本的功能和错误的优先级。

维护者

许可

Solidity 有 GNU 通用公共许可证 v3.0 的许可。

一些第三方代码有其 自己的许可条款

安全

安全政策可以 在这里找到

zh-chinese's People

Contributors

chriseth avatar axic avatar cameel avatar leonardoalt avatar ekpyron avatar cjentzsch avatar gavofyork avatar lefterisjp avatar debris avatar hrkrshnn avatar marenz avatar lianahus avatar bshastry avatar pirapira avatar subtly avatar erak avatar mijovic avatar winsvega avatar denton-l avatar christianparpart avatar skyge avatar chfast avatar aarlt avatar a3d4 avatar bobsummerwill avatar gluk256 avatar federicobond avatar vor0220 avatar arkpar avatar randomnetcat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.