Browse Source

Randval -> passphrase

etomic
jl777 8 years ago
parent
commit
d8cccf9794
  1. 6
      iguana/exchanges/README.md
  2. 4
      iguana/exchanges/client
  3. 4
      iguana/exchanges/client_osx
  4. 4
      iguana/exchanges/install
  5. 1
      iguana/exchanges/passphrase
  6. 1
      iguana/exchanges/randval
  7. 4
      iguana/exchanges/run
  8. 4
      iguana/exchanges/run_osx

6
iguana/exchanges/README.md

@ -45,13 +45,13 @@ nano ~SuperNET/iguana/dexscripts/enable
copy the default command and paste it below but with the coin edited to JUMBLR in this case:
curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"JUMBLR\"}"
The same will happen for any other script in the dexscripts directory. You will need to edit the scripts to include or exclude the coins you want to trade.
IMPORTANT: All these scripts are expecting a userpass file, which contains the definition of the $userpass variable to authenticate API access. This avoids evil webpages that try to issue port 7779 calls to steal your money. At first you wont know the value of userpass. To find out, just run any API script. The first one will return all the required data, the "userpass" field is first and you can copy that value and put it into ~/SuperNET/iguana/dexscripts/userpass file. If you dont, all subsequent API calls will get authorization errors.The userpass variable is linked to each passphrase and that is defined in the randval file. Put your passphrase in that file. You can find templates for these two files in the iguana/exchanges dir. (you need to copy the edited version of these files to ~/SuperNET/iguana/dexscripts).
IMPORTANT: All these scripts are expecting a userpass file, which contains the definition of the $userpass variable to authenticate API access. This avoids evil webpages that try to issue port 7779 calls to steal your money. At first you wont know the value of userpass. To find out, just run any API script. The first one will return all the required data, the "userpass" field is first and you can copy that value and put it into ~/SuperNET/iguana/dexscripts/userpass file. If you dont, all subsequent API calls will get authorization errors.The userpass variable is linked to each passphrase and that is defined in the passphrase file. Put your passphrase in that file. You can find templates for these two files in the iguana/exchanges dir. (you need to copy the edited version of these files to ~/SuperNET/iguana/dexscripts).
cd ~/SuperNET/iguana/dexscripts
./enable
(look for the userpass passphrase that will be generated and copy it)
Now you have to paste the passphrase in both userpass and randval files:
Now you have to paste the passphrase in both userpass and passphrase files:
nano ./userpass
nano ./randval
nano ./passphrase
( paste the passphrase generated into the files where it says: “<put the userpass value from the first API call here>”)
EXCHANGE CLIENT STARTUP
Next step is to actually start the marketmaker from ~/SuperNET/iguana/dexscripts.

4
iguana/exchanges/client

@ -1,8 +1,8 @@
source randval
source passphrase
source coins
pkill -15 marketmaker;
git pull;
cd ..;
./m_mm;
./marketmaker "{\"gui\":\"nogui\",\"client\":1, \"userhome\":\"/${HOME#"/"}\", \"passphrase\":\"$randval\", \"coins\":$coins}" &
./marketmaker "{\"gui\":\"nogui\",\"client\":1, \"userhome\":\"/${HOME#"/"}\", \"passphrase\":\"$passphrase\", \"coins\":$coins}" &

4
iguana/exchanges/client_osx

@ -1,8 +1,8 @@
source randval
source passphrase
source coins
pkill -15 marketmaker;
git pull;
cd ..;
./m_mm;
./marketmaker "{\"gui\":\"nogui\",\"client\":1, \"userhome\":\"/${HOME#"/"}/Library/Application\ Support\", \"passphrase\":\"$randval\", \"coins\":$coins}" &
./marketmaker "{\"gui\":\"nogui\",\"client\":1, \"userhome\":\"/${HOME#"/"}/Library/Application\ Support\", \"passphrase\":\"$passphrase\", \"coins\":$coins}" &

4
iguana/exchanges/install

@ -1,4 +1,4 @@
cp orderbook autotrade client run_osx client_osx run coins disable enable forward myprice myprices getcoins getpeers getpeersIP getprices getutxos help inv lookup pub setprice status utxos ../dexscripts
cd ../dexscripts
cp ../exchanges/randval ../exchanges/userpass .
echo you will need to modify randval file with your passphrase and userpass file with userpass value
cp ../exchanges/passphrase ../exchanges/userpass .
echo you will need to modify passphrase file with your passphrase and userpass file with userpass value

1
iguana/exchanges/passphrase

@ -0,0 +1 @@
export passphrase="<put a very strong passphrase here>"

1
iguana/exchanges/randval

@ -1 +0,0 @@
export randval="<put a very strong passphrase here>"

4
iguana/exchanges/run

@ -1,7 +1,7 @@
source randval
source passphrase
source coins
pkill -15 marketmaker;
git pull;
cd ..;
./m_mm;
$1 ./marketmaker "{\"gui\":\"nogui\", \"profitmargin\":0.01, \"userhome\":\"/${HOME#"/"}\", \"passphrase\":\"$randval\", \"coins\":$coins}" &
$1 ./marketmaker "{\"gui\":\"nogui\", \"profitmargin\":0.01, \"userhome\":\"/${HOME#"/"}\", \"passphrase\":\"$passphrase\", \"coins\":$coins}" &

4
iguana/exchanges/run_osx

@ -1,7 +1,7 @@
source randval
source passphrase
source coins
pkill -15 marketmaker;
git pull;
cd ..;
./m_mm;
$1 ./marketmaker "{\"gui\":\"nogui\", \"profitmargin\":0.01, \"userhome\":\"/${HOME#"/"}/Library/Application\ Support\", \"passphrase\":\"$randval\", \"coins\":$coins}" &
$1 ./marketmaker "{\"gui\":\"nogui\", \"profitmargin\":0.01, \"userhome\":\"/${HOME#"/"}/Library/Application\ Support\", \"passphrase\":\"$passphrase\", \"coins\":$coins}" &

Loading…
Cancel
Save