@melonproject/smart-contracts
Technology Regulated Investment Funds
Last updated 2 years ago by travs .
GPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @melonproject/smart-contracts 
SYNC missed versions from official npm registry.

Melon Protocol

Gitter chat Build Status Solidity version License: GPL v3 Dependencies Development Dependencies

Melon ([méllō], μέλλω; Greek for "destined to be") is blockchain software that seeks to enable participants to set up, manage and invest in technology regulated investment funds in a way that reduces barriers to entry, while minimizing the requirements for trust.

It does so by leveraging the fact that digital assets on distributed quasi-Turing Complete machines can be held solely by smart-contract code, and spent only according to preprogrammed rules within this code. The Melon protocol is a set of rules for how digital assets can be spent once held in a Melon smart-contract, or a Melon investment fund. These rules are meant to protect the investor and fund manager from malevolent behaviour of each other, even when both parties remain private.

Melon is to investment funds as Bitcoin is to accounting: a set of rules, enforced by blockchain technology, legitimized by the consent of its participants.

This repository contains a reference implementation of the Melon protocol written in Solidity, as specified in our paper.

Get started

Installation

# Clone this repository
git clone git@github.com:melonproject/smart-contracts.git
cd smart-contracts
# Install dependencies
npm install
# Generate bytecode and abi of smart-contracts
npm run compile

Deployment and testing

After installation, go to the above protocol directory, open a terminal and:

# Launch parity dev chain:
npm run devchain
# Open a second terminal and deploy the contracts to the development network:
npm run deploy
# Run the tests using
npm test

Kovan Deployment

After installation is complete, go to the above protocol directory, open a terminal and:

# Launch an ethereum client. For example something similar to this:
parity \
  --chain kovan      \
  --rpcport 8545     \
  --auto-update=all  \
  --jsonrpc-apis=all \
  --author <address> \
  --unlock <address> \
  --password <password file>

# Open a second terminal and deploy the contracts:
npm run deploy:kovan

Troubleshooting

Permission denied (publickey) when cloning the repo

Try cloning using git clone https://github.com/melonproject/smart-contracts.git

Spec json is invalid when running Parity Devchain

Update your Parity installation to the latest version or try changing "instantSeal": null to "instantSeal": { "params": {} } in chainGenesis.json

Stuck at deploy step

Deploying contracts may stuck indefinitely in case your parity node is not unlocked for some reason. Locked node requires you to enter password for each transaciton manually.

Contributing

As an open-source project, we welcome any kind of community involvement, whether that is by contributing code, reporting issues or engaging in insightful discussions. Please see our contributing instructions for information on the code style we use.

Security Issues

If you find a vulnerability that may affect live or testnet deployments please send your report privately to security@melonport.com. Please DO NOT file a public issue.

Protocol Design

When considering protocol design proposals, we are looking for:

  • A description of the problem this design proposal solves
  • Discussion of the tradeoffs involved
  • Review of other existing solutions
  • Links to relevant literature (RFCs, papers, etc)
  • Discussion of the proposed solution

Please note that protocol design is hard, and meticulous work. You may need to review existing literature and think through generalized use cases.

Implementation Design

When considering design proposals for implementations, we are looking for:

  • A description of the problem this design proposal solves
  • Discussion of the tradeoffs involved
  • Discussion of the proposed solution

Current Tags

  • 0.8.13                                ...           latest (2 years ago)
  • 0.8.3-naxos                                ...           naxos (2 years ago)

44 Versions

  • 0.8.13                                ...           2 years ago
  • 0.8.12                                ...           2 years ago
  • 0.8.11                                ...           2 years ago
  • 0.8.10                                ...           2 years ago
  • 0.8.9                                ...           2 years ago
  • 0.8.8                                ...           2 years ago
  • 0.8.7                                ...           2 years ago
  • 0.8.6                                ...           2 years ago
  • 0.8.5                                ...           2 years ago
  • 0.8.0-kyber.3                                ...           2 years ago
  • 0.8.0-kyber.2                                ...           2 years ago
  • 0.8.0-kyber.1                                ...           2 years ago
  • 0.8.4                                ...           2 years ago
  • 0.8.3                                ...           2 years ago
  • 0.8.3-naxos                                ...           2 years ago
  • 0.8.0-naxos                                ...           2 years ago
  • 0.8.0-paros                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 0.8.0-alpha.38                                ...           2 years ago
  • 0.8.0-alpha.37                                ...           2 years ago
  • 0.8.0-alpha.36                                ...           2 years ago
  • 0.8.0-alpha.35                                ...           2 years ago
  • 0.8.0-alpha.34                                ...           2 years ago
  • 0.8.0-alpha.33                                ...           2 years ago
  • 0.8.0-alpha.32                                ...           2 years ago
  • 0.8.0-alpha.31                                ...           2 years ago
  • 0.8.0-alpha.30                                ...           2 years ago
  • 0.8.0-alpha.29                                ...           2 years ago
  • 0.8.0-alpha.28                                ...           2 years ago
  • 0.8.0-alpha.27                                ...           2 years ago
  • 0.8.0-alpha.26                                ...           2 years ago
  • 0.8.0-alpha.25                                ...           2 years ago
  • 0.8.0-alpha.24                                ...           2 years ago
  • 0.8.0-alpha.23                                ...           2 years ago
  • 0.8.0-alpha.22                                ...           2 years ago
  • 0.8.0-alpha.21                                ...           2 years ago
  • 0.8.0-hackathon.3                                ...           2 years ago
  • 0.8.0-hackathon.2                                ...           2 years ago
  • 0.8.0-hackathon.1                                ...           2 years ago
  • 0.8.0-alpha.20                                ...           2 years ago
  • 0.8.0-alpha.19                                ...           2 years ago
  • 0.8.0-alpha.17                                ...           2 years ago
  • 0.8.0-alpha.16                                ...           2 years ago
  • 0.8.0-alpha.14                                ...           2 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (9)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |