Browse Source

add back dex check address

etomic
jl777 8 years ago
parent
commit
d56681b7d3
  1. 1
      iguana/main.c
  2. 2
      iguana/tests/dexlistunspent
  3. 2
      iguana/tests/listunspent
  4. 1
      includes/iguana_apideclares.h

1
iguana/main.c

@ -1780,4 +1780,5 @@ void iguana_main(void *arg)
// features // features
// komodod convert passphrase to privkey // komodod convert passphrase to privkey
// Z -> Z
// iguana init nanomsg in own thread // iguana init nanomsg in own thread

2
iguana/tests/dexlistunspent

@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RKyuFwhojJgYNUQjuHWEcDUouiPHCpbRS6\",\"symbol\":\"KMD\"}" curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RU58D7nNLXwD29hgC2MPgtAF458gGxnPYS\",\"symbol\":\"KMD\"}"

2
iguana/tests/listunspent

@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
curl --url "http://127.0.0.1:7778" --data "{\"coin\":\"KMD\",\"method\":\"listunspent\",\"params\":[1, 9999999, []]}" curl --url "http://127.0.0.1:7778" --data "{\"coin\":\"KMD\",\"method\":\"listunspent\",\"params\":[1, 9999999, [\"RU58D7nNLXwD29hgC2MPgtAF458gGxnPYS\"]]}"

1
includes/iguana_apideclares.h

@ -37,6 +37,7 @@ TWO_STRINGS(dex,sendrawtransaction,symbol,signedtx);
HASH_AND_STRING_AND_INT(dex,gettxout,txid,symbol,vout); HASH_AND_STRING_AND_INT(dex,gettxout,txid,symbol,vout);
TWO_STRINGS(dex,importaddress,symbol,address); TWO_STRINGS(dex,importaddress,symbol,address);
TWO_STRINGS(dex,validateaddress,symbol,address); TWO_STRINGS(dex,validateaddress,symbol,address);
TWO_STRINGS(dex,checkaddress,symbol,address);
TWO_STRINGS(dex,listunspent,symbol,address); TWO_STRINGS(dex,listunspent,symbol,address);
TWO_STRINGS_AND_TWO_DOUBLES(dex,listtransactions,symbol,address,count,skip); TWO_STRINGS_AND_TWO_DOUBLES(dex,listtransactions,symbol,address,count,skip);
TWO_STRINGS(dex,kvsearch,symbol,key); TWO_STRINGS(dex,kvsearch,symbol,key);

Loading…
Cancel
Save