Coder Social home page Coder Social logo

luozijun / solidity-sc2-replay-reader Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 233 KB

Starcraft II

License: GNU General Public License v3.0

Python 76.37% HTML 1.61% JavaScript 13.75% Rust 8.28%
ethereum-contract solidity starcraft-ii starcraft-ii-replays

solidity-sc2-replay-reader's Introduction

星际争霸2 裁判合约

Date

01/06 2017

介绍

构建在 Ethereum BlockChain 上面的裁判 智能合约。

该合约可以对 星际争霸2 这款游戏的比赛结果进行分析,并给出胜负结果。

开发

相关依赖:

安装完上述工具包,你的系统应该就有以下命令可以使用:

  • geth
  • parity
  • solc
  • testrpc
  • solcjs
  • webpack

简单介绍下这几个命令的作用:

parity (基于 Rust 语言) 和 geth (基于 Golang 语言) 是以太坊的客户端,你可以按照喜好选择安装一个(推荐 parity )。

testrpc 是一个以太坊 JsonRPC Service 模拟器,可以用来在开发时,对代码进行测试。 以太坊客户端 paritygeth 都提供了 完整的 JsonRPC Service

solcsolcjs 是 以太坊 合约语言 solidity 的编译器,其中 solc 采用 C++ 语言编写, solcjs 采用 Emscripten 这个工具 对 C++ 代码翻译成 JavaScript 代码, 所以,如果你在意性能,请直接使用 C++ 版本的 solidity 编译器。

webpack 这个是 NodeJS 的打包工具,相信不需要多介绍了 :))

编译合约:

Parity Dev Chain

macOS 配置目录 : /Users/your-name/Library/Application Support/io.parity.ethereum

chain.json :

启动 开发网络:

参考

Starcraft II Replay Protocol :

Ethereum:

Solidity Lnaguage:

Solidity Package:

Web3.js :

solidity-sc2-replay-reader's People

Contributors

luozijun avatar

Stargazers

 avatar  avatar

Watchers

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