Skip to content

swarmcity/SwarmCityContracts

Repository files navigation

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

About

All the swarm city smart contracts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published