raiden-network/raiden-contracts

Name: raiden-contracts

Owner: raiden-network

Description: Raiden Network Smart Contracts

Created: 2018-03-05 17:06:47.0

Updated: 2018-05-22 15:59:23.0

Pushed: 2018-05-22 16:25:39.0

Homepage:

Size: 286

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

raiden-contracts

Prerequisites
Installation
 install
Deployment on a testnet
llowing calls are equivalent

on -m deploy

on -m deploy \
   --rpc-provider http://127.0.0.1:8545 \
   --json raiden_contracts/data/contracts.json
   --owner 0x5601Ea8445A5d96EEeBF89A67C4199FbB7a43Fbb \
   --wait 300 \
   --token-name CustomToken --token-symbol TKN \
   --supply 10000000 --token-decimals 18

ovide a custom deployed token
on -m deploy --token-address <TOKEN_ADDRESS>
Development

We use populus for development. At the moment, this library is incompatible with recent libraries that act as dependencies. Therefore, we have to use different environments here.

install -r requirements-dev.txt

After you are finished, to uninstall populus and install the dependencies for the raiden-contracts package, you can do:

freeze  | xargs pip uninstall -y
install -r requirements.txt
Compile the contracts
on setup.py build
Testing
sts
st
st -p no:warnings -s
st raiden_contracts/tests/test_token_network.py -p no:warnings -s

commended for speed:
install pytest-xdist==1.17.1
st -p no:warnings -s -n NUM_OF_CPUs

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.