Giter Site home page Giter Site logo

weifund-contracts's Introduction

weifund-contracts


A module containing all WeiFund platform Ethereum smart-contracts.

Install

git clone http://github.com/weifund/weifund-contracts
cd weifund-contracts
npm install

Testing

npm run test

Contract Tests

npm run test:contracts

About

WeiFund is a decentralized crowdfunding platform built on Ethereum. Most of its critical architechure is built with smart-contracts. This repository contains all smart-contracts that power the platform, including unit tests, example use cases and future designs.

Contributing

Please help better the WeiFund ecosystem by submitting issues and pull requests to weifund-contracts. We need all the help we can get to build the absolute best contracts and architechure. We follow the AirBNB linting standard. Please read more about contributing to weifund-contracts in the CONTRIBUTING.md.

Bug Bounty Hunters

Please read the Bug Bounty Details for a lay of the land of the WeiFund contracts.

Guides

You'll find more detailed information on using default and tailoring it to your needs in our guides:

  • User guide - Usage, configuration, FAQ and complementary tools.
  • Developer guide - Contributing to default and writing your own plugins & formatters.

Help out

There is always a lot of work to do, and will have many rules to maintain. So please help out in any way that you can:

  • Create, enhance, and debug rules (see our guide to "Working on rules").
  • Improve documentation.
  • Chime in on any open issue or pull request.
  • Open new issues about your ideas for making stylelint better, and pull requests to show us how your idea works.
  • Add new tests to absolutely anything.

Please consult our Code of Conduct and Contributing docs before helping out.

We communicate via issues and pull requests.

Important documents

weifund-contracts's People

Contributors

3esmit avatar rverbee 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

Watchers

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

weifund-contracts's Issues

Build fails in node 6.9.1

On OS X 10.12.2, without the full xcode installed I get:

> node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Cannot install or build from github repo as is

Issue Type

  • Bug
  • Feature

Description

  1. The current script configuration in the package.json prevents building of this package.
  2. Resolving that, there appear to be some important files missing from the /src/lib directory.

Steps to reproduce (first issue)

  1. Clone a fresh copy of the repo
  2. Run npm install that will return linter errors of the format:
/Users/primary/Projects/weifund-project/weifund-contracts/internals/scripts/testContributionEthjs.js 
4:27  error    Unable to resolve path to module '../../src/lib/contracts.json'  import/no-unresolved

I was able to partially resolve the issue with this change: maurelian@3ada2fd, which moves linting and (most) testing to after the build steps.

Steps to reproduce (next issue)

After the previous fix above:

  1. Run npm install
  2. This time the contracts build successfully, but eventually I run into:

Error: while writting output JSON file ./src/lib/contracts.json: Error: ENOENT: no such file or directory, open '/Users/primary/temp/weifund-contracts/src/lib/contracts.json'
Error: while writting output JSON file ./src/lib/contracts.json: Error: ENOENT: no such file or directory, open '/Users/primary/temp/weifund-contracts/src/lib/contracts.json'
    at fs.writeFile (/Users/primary/temp/weifund-contracts/node_modules/wafr/bin/wafr.js:54:13)
    at fs.js:1305:7
    at FSReqWrap.oncomplete (fs.js:123:15)

I can get past this just by running mkdir lib. but then I run into an issue with this import:

https://github.com/weifund/weifund-contracts/blob/master/src/index.js#L2

Possible solution: Maybe everyone already working on this has some files in /src/lib/ that haven't been checked in since updates were made to the gitignore file?

Versions

  • node v6.5.0
  • npm v3.10.3

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.