Artem Pikulin
7 years ago
22 changed files with 112 additions and 14 deletions
@ -0,0 +1,3 @@ |
|||
.git |
|||
.vscode |
|||
cmake-build-debug |
@ -0,0 +1,7 @@ |
|||
FROM ubuntu:17.10 |
|||
USER root |
|||
RUN apt-get update && apt-get install -y rinetd curl libcurl3-gnutls |
|||
RUN echo "0.0.0.0 10271 10.100.0.1 10271" >> /etc/rinetd.conf |
|||
RUN echo "0.0.0.0 8923 10.100.0.1 8923" >> /etc/rinetd.conf |
|||
WORKDIR /usr/mm/etomic_build/client |
|||
CMD /usr/sbin/rinetd && rm -rf DB && ./client |
@ -0,0 +1,7 @@ |
|||
FROM ubuntu:17.10 |
|||
USER root |
|||
RUN apt-get update && apt-get install -y rinetd curl libcurl3-gnutls |
|||
RUN echo "0.0.0.0 10271 10.100.0.1 10271" >> /etc/rinetd.conf |
|||
RUN echo "0.0.0.0 8923 10.100.0.1 8923" >> /etc/rinetd.conf |
|||
WORKDIR /usr/mm/etomic_build/seed |
|||
CMD /usr/sbin/rinetd && rm -rf DB && ./run |
@ -0,0 +1,37 @@ |
|||
version: '2' |
|||
services: |
|||
seednode: |
|||
build: |
|||
context: ./ |
|||
dockerfile: Dockerfile.seednode |
|||
volumes: |
|||
- ~/.zcash-params:/root/.zcash-params |
|||
- ~/.komodo:/root/.komodo |
|||
- .:/usr/mm |
|||
tty: true |
|||
networks: |
|||
default: |
|||
ipv4_address: 10.100.0.2 |
|||
|
|||
clientnode: |
|||
build: |
|||
context: ./ |
|||
dockerfile: Dockerfile.clientnode |
|||
volumes: |
|||
- ~/.zcash-params:/root/.zcash-params |
|||
- ~/.komodo:/root/.komodo |
|||
- .:/usr/mm |
|||
links: |
|||
- seednode |
|||
tty: true |
|||
networks: |
|||
default: |
|||
ipv4_address: 10.100.0.3 |
|||
|
|||
networks: |
|||
default: |
|||
driver: bridge |
|||
ipam: |
|||
config: |
|||
- subnet: 10.100.0.0/16 |
|||
gateway: 10.100.0.1 |
@ -1,5 +0,0 @@ |
|||
#!/bin/bash |
|||
source passphrase |
|||
source coins |
|||
./stop |
|||
iguana/exchanges/marketmaker "{\"netid\":9999,\"seednode\":\"5.9.253.204\",\"gui\":\"nogui\",\"client\":1, \"userhome\":\"/${HOME#"/"}\", \"passphrase\":\"$passphrase\", \"coins\":$coins}" & |
@ -0,0 +1,4 @@ |
|||
#!/bin/bash |
|||
source userpass |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"setprice\",\"base\":\"ETH\",\"rel\":\"BEER\",\"price\":1}" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"sell\",\"base\":\"ETH\",\"rel\":\"BEER\",\"basevolume\":0.1,\"price\":1}" |
@ -0,0 +1,4 @@ |
|||
#!/bin/bash |
|||
source passphrase |
|||
source ../coins |
|||
../../build/iguana/exchanges/marketmaker-testnet "{\"netid\":9999,\"seednode\":\"10.100.0.2\",\"gui\":\"nogui\",\"client\":1, \"userhome\":\"/${HOME#"/"}\", \"passphrase\":\"$passphrase\", \"coins\":$coins}" |
@ -0,0 +1,6 @@ |
|||
#!/bin/bash |
|||
source userpass |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"ETH\"}" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"KMD\"}" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"ETOMIC\"}" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"BEER\"}" |
@ -0,0 +1 @@ |
|||
export passphrase="$PASSPHRASE" |
@ -0,0 +1,4 @@ |
|||
#!/bin/bash |
|||
source userpass |
|||
source passphrase |
|||
curl --url "http://127.0.0.1:7783" --data "{\"netid\":9999,\"seednode\":\"10.100.0.2\",\"userpass\":\"1d8b27b21efabcd96571cd56f91a40fb9aa4cc623d273c63bf9223dc6f8cd81f\",\"method\":\"passphrase\",\"passphrase\":\"$passphrase\",\"gui\":\"nogui\"}" |
@ -0,0 +1,2 @@ |
|||
#export userpass="<put the userpass value from the first API call here>" |
|||
export userpass="$USERPASS" |
@ -1 +0,0 @@ |
|||
export passphrase="<put a very strong passphrase here>" |
@ -1,5 +0,0 @@ |
|||
#!/bin/bash |
|||
source passphrase |
|||
source coins |
|||
./stop |
|||
$1 iguana/exchanges/marketmaker "{\"netid\":9999,\"gui\":\"nogui\", \"profitmargin\":0.01, \"userhome\":\"/${HOME#"/"}\", \"passphrase\":\"$passphrase\", \"coins\":$coins}" & |
@ -0,0 +1,6 @@ |
|||
#!/bin/bash |
|||
source userpass |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"ETH\"}" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"KMD\"}" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"ETOMIC\"}" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"BEER\"}" |
@ -0,0 +1 @@ |
|||
10.100.0.2 |
@ -0,0 +1 @@ |
|||
export passphrase="$PASSPHRASE" |
@ -0,0 +1,4 @@ |
|||
#!/bin/bash |
|||
source passphrase |
|||
source ../coins |
|||
../../build/iguana/exchanges/marketmaker-testnet "{\"netid\":9999,\"gui\":\"nogui\", \"profitmargin\":0.01, \"userhome\":\"/${HOME#"/"}\", \"passphrase\":\"$passphrase\", \"coins\":$coins}" |
@ -0,0 +1,4 @@ |
|||
#!/bin/bash |
|||
source userpass |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"setprice\",\"base\":\"BEER\",\"rel\":\"ETH\",\"price\":0.9}" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"sell\",\"base\":\"BEER\",\"rel\":\"ETH\",\"basevolume\":0.1,\"price\":0.9}" |
@ -0,0 +1,4 @@ |
|||
#!/bin/bash |
|||
source userpass |
|||
source passphrase |
|||
curl --url "http://127.0.0.1:7783" --data "{\"netid\":9999,\"seednode\":\"5.9.253.204\",\"userpass\":\"1d8b27b21efabcd96571cd56f91a40fb9aa4cc623d273c63bf9223dc6f8cd81f\",\"method\":\"passphrase\",\"passphrase\":\"$passphrase\",\"gui\":\"nogui\"}" |
@ -0,0 +1,2 @@ |
|||
#export userpass="<put the userpass value from the first API call here>" |
|||
export userpass="$USERPASS" |
@ -0,0 +1,12 @@ |
|||
#!/bin/bash |
|||
docker-compose exec clientnode ./setpassphrase |
|||
sleep 1 |
|||
docker-compose exec clientnode ./enable |
|||
sleep 1 |
|||
docker-compose exec seednode ./setpassphrase |
|||
sleep 1 |
|||
docker-compose exec seednode ./enable |
|||
sleep 1 |
|||
docker-compose exec seednode ./sell_BEER_ETH |
|||
sleep 3 |
|||
docker-compose exec clientnode ./buy_BEER_ETH |
Loading…
Reference in new issue