Short Demo based on real Ad-Exchange workflow shows capability to create micro-payment operations. There are several participants:
- Publisher -
- Ad-Exchange -
- Two DSPs -
- Monitoring -
The current version of code has been tested with Kovan testnet only for now. However, other testnet should also work after proper configurations.
- More information about parity intallation can be found https://www.parity.io/. The version of parity being used is 1.8.4-beta.
- Run your parity service with the following command:
parity --geth --chain kovan --force-ui --reseal-min-period 0 --jsonrpc-cors "*" --jsonrpc-apis web3,eth,net,parity,traces,rpc,personal
It may take a while to get syncronized.
- clone github repo
git clone https://github.com/aantoniuk-gl/microraiden-java.git
- build jar file
cd microraiden-java
./gradlew installDist
- install jar into local maven repo
mvn install:install-file -Dfile=build/libs/microraiden-java.jar -DgroupId=org.microraiden -DartifactId=microraiden-java -Dversion=1.0.0 -Dpackaging=jar
We have deployed the CustomToken and RaidenMicroTransferChannels contracts. The ABI and addresses have been added in the configuration file rm-ethereum.conf
in this project.
- clone github repo
git clone https://github.com/aantoniuk-gl/micro-raiden-ad-exchange-demo
./start.sh
./status.sh
./create_channels.sh
http://localhost:8085/ad
./show_log.sh
./show_business_log.sh
https://kovan.etherscan.io/address/0x5832edf9Da129Aa13fdA0fBff93379d3ED8a4a93
https://kovan.etherscan.io/address/0x0fc373426c87f555715e6fe673b07fe9e7f0e6e7
./close_channels.sh
./stop.sh
When demo is stopped all channels between Publisher and Ad-Exchange, Ad-Exchange and DSPs will be closed.