From cb7c4316e197321a2738b483e8af21ab6b94914c Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 1 Dec 2017 22:59:08 +0400 Subject: [PATCH] Zeroconf -> instantdex --- iguana/exchanges/LP_commands.c | 12 ++++++------ iguana/exchanges/LP_nativeDEX.c | 2 +- iguana/exchanges/claim | 2 +- iguana/exchanges/deposit1 | 2 +- iguana/exchanges/{deposit => deposit10} | 2 +- iguana/exchanges/install | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) rename iguana/exchanges/{deposit => deposit10} (51%) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 86dda7eb6..b06a66e5d 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -154,8 +154,8 @@ bot_settings(botid, newprice, newvolume)\n\ bot_status(botid)\n\ bot_stop(botid)\n\ bot_pause(botid)\n\ -zeroconf_deposit(weeks, amount, broadcast=0)\n\ -zeroconf_claim(address, expiration=0)\n\ +instantdex_deposit(weeks, amount, broadcast=0)\n\ +instantdex_claim()\n\ \"}")); //sell(base, rel, price, basevolume, timeout=10, duration=3600)\n\ @@ -198,17 +198,17 @@ zeroconf_claim(address, expiration=0)\n\ return(jprint(retjson,1)); } } - else if ( strcmp(method,"zeroconf_deposit") == 0 ) + else if ( strcmp(method,"instantdex_deposit") == 0 ) { if ( (ptr= LP_coinsearch("KMD")) != 0 ) { - if ( jint(argjson,"weeks") < 0 || jdouble(argjson,"amount") < 10. ) - return(clonestr("{\"error\":\"deposit_create needs to have weeks and amount\"}")); + if ( jint(argjson,"weeks") <= 0 || jdouble(argjson,"amount") < 10. ) + return(clonestr("{\"error\":\"instantdex_deposit needs to have weeks and amount\"}")); else return(LP_instantdex_deposit(ptr,juint(argjson,"weeks"),jdouble(argjson,"amount"),jint(argjson,"broadcast"))); } return(clonestr("{\"error\":\"cant find KMD\"}")); } - else if ( strcmp(method,"zeroconf_claim") == 0 ) + else if ( strcmp(method,"instantdex_claim") == 0 ) { if ( (ptr= LP_coinsearch("KMD")) != 0 ) { diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index e167a684e..4a853cd6d 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -17,7 +17,7 @@ // LP_nativeDEX.c // marketmaker // -// verify claim works (display interest in electrum) +// verify claim works // big BTC swaps // https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki for signing BCH/BTG // diff --git a/iguana/exchanges/claim b/iguana/exchanges/claim index 7c9d212bf..85cd18c15 100755 --- a/iguana/exchanges/claim +++ b/iguana/exchanges/claim @@ -1,3 +1,3 @@ #!/bin/bash source userpass -curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"zeroconf_claim\"}" +curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"instantdex_claim\"}" diff --git a/iguana/exchanges/deposit1 b/iguana/exchanges/deposit1 index c82178e79..9b2e411b7 100755 --- a/iguana/exchanges/deposit1 +++ b/iguana/exchanges/deposit1 @@ -1,3 +1,3 @@ #!/bin/bash source userpass -curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"zeroconf_deposit\",\"weeks\":1,\"amount\":10.0,\"broadcast\":1}" +curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"instantdex_deposit\",\"weeks\":1,\"amount\":10.0,\"broadcast\":1}" diff --git a/iguana/exchanges/deposit b/iguana/exchanges/deposit10 similarity index 51% rename from iguana/exchanges/deposit rename to iguana/exchanges/deposit10 index 1fe7c6138..f0ba9bcf7 100755 --- a/iguana/exchanges/deposit +++ b/iguana/exchanges/deposit10 @@ -1,3 +1,3 @@ #!/bin/bash source userpass -curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"zeroconf_deposit\",\"weeks\":0,\"amount\":10.0,\"broadcast\":1}" +curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"instantdex_deposit\",\"weeks\":10,\"amount\":10.0,\"broadcast\":1}" diff --git a/iguana/exchanges/install b/iguana/exchanges/install index 7bbc5535d..b4feab5c9 100755 --- a/iguana/exchanges/install +++ b/iguana/exchanges/install @@ -1,5 +1,5 @@ #!/bin/bash -cp dynamictrust getcoin kickstart tradesarray claim deposit deposit1 invreset sendrawtransaction processfiles stop millis mnzservers bot_buy bot_list bot_statuslist bot_pause bot_resume bot_sell bot_settings bot_status bot_stop guistats pubkeystats pendings coinswaps baserelswaps setpassphrase notarizations getrawtransaction parselog statsdisp m_js trust trusted setconfirms balance listunspent electrum snapshot_balance snapshot_loop secretaddresses dividends snapshot goals goal portfolio autoprice deletemessages getmessages debug buy sell bestfit orderbook client run_osx client_osx run coins disable enable myprice myprices getcoins getpeers getpeersIP getprices help inv setprice status ../dexscripts +cp dynamictrust getcoin kickstart tradesarray claim deposit10 deposit1 invreset sendrawtransaction processfiles stop millis mnzservers bot_buy bot_list bot_statuslist bot_pause bot_resume bot_sell bot_settings bot_status bot_stop guistats pubkeystats pendings coinswaps baserelswaps setpassphrase notarizations getrawtransaction parselog statsdisp m_js trust trusted setconfirms balance listunspent electrum snapshot_balance snapshot_loop secretaddresses dividends snapshot goals goal portfolio autoprice deletemessages getmessages debug buy sell bestfit orderbook client run_osx client_osx run coins disable enable myprice myprices getcoins getpeers getpeersIP getprices help inv setprice status ../dexscripts cp coins.json .. cd ../dexscripts #cp ../exchanges/passphrase ../exchanges/userpass .