Gitcoin pushes Open Source Forward. Learn more at https://gitcoin.co
Star and watch this github repository to stay up to date, we're pushing new code several times per week!
This is the repo that comprises the constellation of smart contracts in the Gitcoin ecosystem.
Please see https://gitcoin.co/whitepaper for the full specification of these smart contracts.
Check out the issues board or the Gitcoin Bounty Explorer to see the bounties posted against this repo.
- Clone locally, cd into the repo.
- Copy
mnemonic.js.dist
tomnemonic.js
, and replace the mnemonic in this file with a real one. This post covers how to do that - Install dependencies with npm
npm install
- Install zeppelin-solidity
npm install -g zeppelin-solidity
- Start testrpc with
bash scripts/testrpc.bash
- To deploy the contracts locally on testrpc, you can run
bash scripts/prepTestRPC.bash
. - The Bounty contract will be live on testrpc @
0x0ed0c2a859e9e576cdff840c51d29b6f8a405bdd
. - Run tests with
truffle test
.
Run testrpc in docker container
docker-compose up -d
- Mainnet: 0xb10700b5ece20a3c65b047f76fd3dc13720bd30e
- Ropsten: 0x3102118ba636942c82d1a6efa2e7d069dc2d14bd
- Rinkeby: TODO
- Mainnet: 0xe635c6d338dcd31c979b88000ff97c1fa3f0472c
- Ropsten: 0xeccb46ebe07c5a2b249586796f921ddfe0d46271
- Rinkeby: TODO
''' Copyright (C) 2017 Gitcoin Core
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''