项目作者: swarmcity

项目描述 :
所有群城智能合约
高级语言: JavaScript
项目地址: git://github.com/swarmcity/SwarmCityContracts.git
创建时间: 2017-12-15T11:49:13Z
项目社区:https://github.com/swarmcity/SwarmCityContracts

开源协议:

下载


Swarm City

Swarm City Contracts

Introduction

A collection of all the swarm city smart contracts written in solidity

Parameters.sol

Manages blockchain-approved parameters for a DApp
Developers stake their reputation by deploying new keys to this contract.

HashtagSimpleDeal.sol

Manages a hashtag

  • Creates a MiniMe token contract for managing REP balances
  • Registers Factories that can mint rep
  • Manages hashtag commission fees

Developing

The truffle framework is used.
Contracts are in the contracts folder.

Compiling contracts

truffle compile

Running unit tests

truffle test

or

truffle test ./test/HashtagSimpleDeal-makedeal.js
truffle test ./test/HashtagSimpleDeal-conflictflow.js
truffle test ./test/HashtagSimpleDeal-conflictflow-provider.js
truffle test ./test/HashtagSimpleDeal-conflictflow-payout.js
truffle test ./test/HashtagSimpleDeal-cancelflow.js