Git Product home page Git Product logo

solidity101's Introduction

Solidity 구문

예제

contract Stakeholder{

  // public 주소 변수
	address public serviceProvider;

  // 생성자
	function Stakeholder(){
    // msg 는 Solidity 에서 빌트인으로 생성된 변수, msg.sender 는 이 contract를 호출한
		// 대상의 주소값을 return 해준다.
		serviceProvider = msg.sender;
	}

  function registerStakeholder(){
  }

  function registerValueActivity(){
  }

  function update(){
  }

  // 해당 contract 의 잔여 ether를 serviceProvider에게 돌려줌
	function kill(){
		suicide(serviceProvider);
	}
}

기존의 프로그래밍 언어인 c, javascript, go와 유사함. 변수, 생성자, 함수 등으로 구성

solidity101's People

Watchers

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