Code Monkey home page Code Monkey logo

contracts's Introduction

Opus-foundation smart contracts

opus-logo
Opus - the worlds's first decentralised music platform, based on IPFS and Ethereum.
Solidity smart contracts for Opus official token, crowdsale & testnet demo token. Also includes advanced-demo website.

Token Standards

Opus token is compliant to the ERC23 standards, as well as backward compatible with the ERC20 standards.

Security Patterns

Uses zeppelin-solidity ERC20 library by OpenZeppelin.

Prerequisites

To install demo you need:

To install truffle, run the following command:

$ npm install -g truffle

To install testrpc, run:

npm install -g ethereumjs-testrpc

Build

To build demo, clone this repo and run the following command:

$ cd contracts
$ npm install

Running the demo

To run demo, first run testrpc by running:

$ testrpc

Then compile and deploy the solidity contracts:

$ truffle compile
$ truffle migrate

Run an instance of IPFS to enable uploads:

$ ipfs daemon

Finally to build website, run:

$ npm run dev

License

All smart contracts are released under GPL v.3.

contracts's People

Contributors

chenhaoxu304 avatar chennyhaohao avatar grandsam605 avatar opus-rc avatar schwifty-tomato avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

contracts's Issues

Cannot deploy code demo

Hi Team,

  1. I follow your instruction and getting issue when I run "npm run dev"

npm run dev
npm ERR! missing script: dev

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/IOSDeveloper/.npm/_logs/2017-07-21T09_55_09_345Z-debug.log
iOSDeveloper:contracts IOSDeveloper$

  1. But when I try with "npm run test"

/Users/IOSDeveloper/Desktop/contracts/node_modules/truffle/lib/commands/test.js:39
files = files.filter(function(file) {
^
TypeError: Cannot read property 'filter' of undefined
at /Users/IOSDeveloper/Desktop/contracts/node_modules/truffle/lib/commands/test.js:39:20
at onStat (/Users/IOSDeveloper/Desktop/contracts/node_modules/node-dir/lib/paths.js:149:21)
at FSReqWrap.oncomplete (fs.js:152:21)
3. Also "truffle migrate"
/Users/IOSDeveloper/Desktop/contracts/contracts/ERC23BasicToken.sol:20:28: : Unused local variable
function tokenFallback(address _from, uint256 _value, bytes _data) external {
^-----------^
,/Users/IOSDeveloper/Desktop/contracts/contracts/ERC23BasicToken.sol:20:43: : Unused local variable
function tokenFallback(address _from, uint256 _value, bytes _data) external {
^------------^
,/Users/IOSDeveloper/Desktop/contracts/contracts/ERC23BasicToken.sol:20:59: : Unused local variable
function tokenFallback(address _from, uint256 _value, bytes _data) external {
^----------^
,/Users/IOSDeveloper/Desktop/contracts/contracts/ERC23BasicToken.sol:72:25: : Unused local variable
function isContract(address _addr) returns (bool is_contract) {
^-----------^

Writing artifacts to ./build/contracts

Using network 'development'.

Error: Could not find built Migrations contract: Could not find artifacts for ./Migrations.sol from any sources
at Object.lastCompletedMigration (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:54982:23)
at Object.needsMigrating (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:55005:10)
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:81657:19
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:46796:9
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:33762:13
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:224637:9
at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:223413:13)
at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:225286:18)
at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:225576:12)
at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:225731:12)

I really interested in your project. Please give me some advice to get your demo project work on my machine.

Thanks,
Do

npm ERR! error: pathspec '3.0.3' did not match any file(s) known to git.

Hi guys,

On macOS, installed nodejs using brew.

$ cd contracts
$ npm install

npm WARN deprecated [email protected]: ๐Ÿ™Œ Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated [email protected]: ethereumjs-testrpc has been renamed to ganache-cli, please use this package from now on.
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git checkout 3.0.3
npm ERR! error: pathspec '3.0.3' did not match any file(s) known to git.

...

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.