Skip to content
iExec Proof of Contribution - [hub + PoCo + marketplace] smart contracts
Branch: master
Clone or download
Latest commit 383bc57 Jan 28, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
contracts app & dataset format update Jan 28, 2019
migrations now depending on iexec-solidity Jan 23, 2019
oyente
parity
scripts
test
uml
utils
.drone.yml
.gitignore
.solcover.js
Dockerfile fix migrate on docker parity/parity:stable (v2.1 -> v2.2) Jan 21, 2019
LICENSE add LICENSE License: Apache2.0 Apr 13, 2018
README.md
autotest.sh
ganache-custom ganache update Dec 18, 2018
package-lock.json
package.json
truffle
truffle-hdwallet.js add m_contributionHistory for sarmenta calcul Apr 12, 2018
truffle.js typo Nov 8, 2018

README.md

Build Status

Introduction to PoCo

PoCo Series #1 — About Trust and Agents Incentives

PoCo Series #2 — On the use of staking to prevent attacks

PoCo Series #3 — PoCo protocole update

PoCo Series #4 — Enclaves and Trusted Executions

PoCo Series #5 — Open decentralized brokering on the iExec platform

PoCo UML

Documentation

how to build

npm install
./node_modules/.bin/truffle compile

how to migrate

choice 1 :prepare ethereumjs simu

start ganache with

./ganache-custom

You must see someting like this at the end of the log

Listening on localhost:8545

choice 2 : prepare Local geth node

Pull the the following docker image

docker pull iexechub/iexec-geth-local

start container

docker run -d --name iexec-geth-local --entrypoint=./startupGeth.sh -p 8545:8545 iexechub/iexec-geth-local

wait to see in logs the word : LOCAL_GETH_WELL_INITIALIZED :

docker logs -f iexec-geth-local

Your local geth network is ready, you can launch your truffle action

choice 1 or 2 then : it will deploy smart contracts according to the 2_deploy_contracts.js content.

./node_modules/.bin/truffle migrate

how to test

choice 1 or 2 then launch one test :

./node_modules/.bin/truffle test test/000_fullchain.js

choice 1 or 2 then launch ALL tests :

./node_modules/.bin/truffle test
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.