Browse Source

Merge remote-tracking branch 'jl777/master'

dev
Satinder Grewal 9 years ago
parent
commit
53a7046759
  1. 14
      .gitignore
  2. 0
      InstantDEX/Makefile
  3. 0
      InstantDEX/index.html
  4. 0
      InstantDEX/main.c
  5. 0
      LEGAL/AUTHORS
  6. 0
      LEGAL/DEVELOPER-AGREEMENT
  7. 0
      LEGAL/LICENSE
  8. 0
      LEGAL/THIRDPARTY-LICENSES
  9. 21
      Makefile
  10. 38
      README.md
  11. 0
      SuperNET/Makefile
  12. 0
      SuperNET/SuperNET.c
  13. 0
      SuperNET/SuperNET.h
  14. 2
      SuperNET/hostnet777.c
  15. 0
      SuperNET/index.html
  16. 2
      SuperNET/main.c
  17. 2
      SuperNET/teleport777.c
  18. 0
      SuperNET/tools/common.mk
  19. 0
      _API.md
  20. 0
      agents/.tmp
  21. 0
      agents/field.html
  22. 0
      agents/footer.html
  23. 0
      agents/formfooter.html
  24. 0
      agents/formheader.html
  25. 0
      agents/header.html
  26. 0
      android/Android_Readme.md
  27. 0
      android/include/curl/Makefile
  28. 0
      android/include/curl/Makefile.am
  29. 0
      android/include/curl/Makefile.in
  30. 0
      android/include/curl/curl.h
  31. 0
      android/include/curl/curlbuild.h
  32. 0
      android/include/curl/curlbuild.h.cmake
  33. 0
      android/include/curl/curlbuild.h.in
  34. 0
      android/include/curl/curlrules.h
  35. 0
      android/include/curl/curlver.h
  36. 0
      android/include/curl/easy.h
  37. 0
      android/include/curl/mprintf.h
  38. 0
      android/include/curl/multi.h
  39. 0
      android/include/curl/stamp-h2
  40. 0
      android/include/curl/stdcheaders.h
  41. 0
      android/include/curl/typecheck-gcc.h
  42. 0
      android/include/openssl/aes.h
  43. 0
      android/include/openssl/asn1.h
  44. 0
      android/include/openssl/asn1_mac.h
  45. 0
      android/include/openssl/asn1t.h
  46. 0
      android/include/openssl/bio.h
  47. 0
      android/include/openssl/blowfish.h
  48. 0
      android/include/openssl/bn.h
  49. 0
      android/include/openssl/buffer.h
  50. 0
      android/include/openssl/camellia.h
  51. 0
      android/include/openssl/cast.h
  52. 0
      android/include/openssl/cmac.h
  53. 0
      android/include/openssl/cms.h
  54. 0
      android/include/openssl/comp.h
  55. 0
      android/include/openssl/conf.h
  56. 0
      android/include/openssl/conf_api.h
  57. 0
      android/include/openssl/cryptlib.h
  58. 0
      android/include/openssl/crypto.h
  59. 0
      android/include/openssl/curl.h
  60. 0
      android/include/openssl/curlbuild.h
  61. 0
      android/include/openssl/curlrules.h
  62. 0
      android/include/openssl/curlver.h
  63. 0
      android/include/openssl/des.h
  64. 0
      android/include/openssl/des_old.h
  65. 0
      android/include/openssl/dh.h
  66. 0
      android/include/openssl/dsa.h
  67. 0
      android/include/openssl/dso.h
  68. 0
      android/include/openssl/dtls1.h
  69. 0
      android/include/openssl/e_os.h
  70. 0
      android/include/openssl/e_os2.h
  71. 0
      android/include/openssl/easy.h
  72. 0
      android/include/openssl/ebcdic.h
  73. 0
      android/include/openssl/ec.h
  74. 0
      android/include/openssl/ecdh.h
  75. 0
      android/include/openssl/ecdsa.h
  76. 0
      android/include/openssl/engine.h
  77. 0
      android/include/openssl/err.h
  78. 0
      android/include/openssl/evp.h
  79. 0
      android/include/openssl/fips_err.h
  80. 0
      android/include/openssl/hmac.h
  81. 0
      android/include/openssl/idea.h
  82. 0
      android/include/openssl/krb5_asn.h
  83. 0
      android/include/openssl/kssl.h
  84. 0
      android/include/openssl/lhash.h
  85. 0
      android/include/openssl/md32_common.h
  86. 0
      android/include/openssl/md4.h
  87. 0
      android/include/openssl/md5.h
  88. 0
      android/include/openssl/mdc2.h
  89. 0
      android/include/openssl/modes.h
  90. 0
      android/include/openssl/mprintf.h
  91. 0
      android/include/openssl/multi.h
  92. 0
      android/include/openssl/o_dir.h
  93. 0
      android/include/openssl/o_str.h
  94. 0
      android/include/openssl/o_time.h
  95. 0
      android/include/openssl/obj_mac.h
  96. 0
      android/include/openssl/objects.h
  97. 0
      android/include/openssl/ocsp.h
  98. 0
      android/include/openssl/opensslconf.h
  99. 0
      android/include/openssl/opensslv.h
  100. 0
      android/include/openssl/ossl_typ.h

14
.gitignore

@ -1,14 +1,18 @@
*.o *.o
agents/iguana
agents/libcrypto777.a
agents/iguana.exe agents/iguana.exe
iguana/pnacl/Release/iguana_unstripped.pexe iguana/pnacl/Release/iguana_unstripped.pexe
iguana/pnacl/Release/iguana.pexe
agents/libcrypto777.a
iguana/pnacl/Release/iguana_unstripped.bc iguana/pnacl/Release/iguana_unstripped.bc
*.deps *.deps
@ -18,3 +22,9 @@ iguana/pnacl/Release/iguana_unstripped.bc---linked.pre_opt.pexe
*.stamp *.stamp
*.d *.d
iguana/tests/.priv2wif.swp
agents/libiguana.a
iguana/iguana_rpc.o-2ed461a0

0
InstantDEX/Makefile

0
InstantDEX/index.html

0
InstantDEX/main.c

0
LEGAL/AUTHORS

0
LEGAL/DEVELOPER-AGREEMENT

0
LEGAL/LICENSE

0
LEGAL/THIRDPARTY-LICENSES

21
Makefile

@ -0,0 +1,21 @@
win32: win32_crypto win32_iguana
win64: win64_crypto win64_iguana
#build for win32 environment
win32_crypto:
cd crypto777; make -f make_win32; cd ..
win32_iguana:
cd iguana; make -f make_win32; cd ..
#build for win64 environment
win64_crypto:
cd crypto777; make -f make_win64; cd ..
win64_iguana:
cd iguana; make -f make_win64; cd ..

38
README.md

@ -1,10 +1,8 @@
#SuperNET Client "iguana" #SuperNET Client "iguana"
[![Join the chat at https://gitter.im/jl777/SuperNET](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jl777/SuperNET?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
> #TL;DR# > #TL;DR#
> >
> ```sudo apt-get update; sudo apt-get install libcurl4-gnutls-dev libssl-dev; git clone https://github.com/jl777/SuperNET; cd SuperNET; ./m_onetime m_unix; ./m_unix; agents/iguana``` > ```sudo apt-get update; sudo apt-get git install build-essential; git clone https://github.com/jl777/SuperNET; cd SuperNET; ./m_onetime m_unix;```
> >
> The above one line gets SuperNET installed, built and launched for unix. > The above one line gets SuperNET installed, built and launched for unix.
> >
@ -12,6 +10,8 @@
> *Continue below at "Running".* > *Continue below at "Running".*
**iguana is easy to build. Start by cloning (or downloading) this repository.** **iguana is easy to build. Start by cloning (or downloading) this repository.**
*** all external dependencies have been removed, except for -lpthread and -lm
#DEPENDENCIES# #DEPENDENCIES#
##for native (unix, osx)## ##for native (unix, osx)##
@ -108,3 +108,35 @@ iguana can be invoked with a command line argument. if it is a name of a file, i
"exchanges" -> { "name":"<name of exchange>", ... } "exchanges" -> { "name":"<name of exchange>", ... }
"apikey", "apisecret", "userid", "tradepassword" these are as expected "apikey", "apisecret", "userid", "tradepassword" these are as expected
"pollgap" -> gap between each access to exchange for getting prices "pollgap" -> gap between each access to exchange for getting prices
on OSX mksquashfs is not native, you will need to install fuse: https://osxfuse.github.io/ and a squashfs for mac: https://github.com/vasi/squashfuse
**********
user feedback:
A Note on Installation from pebwindkraft at bitco.in
=======================
Though I had xcode installed, aclocal didn’t work. I installed homebrew, and then:
# brew install autoconf
# brew install automake
# brew install gmp
2.) libsecp256
it complained, that libsecp256 was not there in includes, so I linked it.
Loretta:/Users/volker/SuperNET/includes # ln -s ../osx/libsecp256k1 .
3.) I had to change ulimit
During the syncing, I have many, many messages like this:
>>
>> cant create.(tmp/BTC/252000/.tmpmarker) errno.24 Too many open files
>> cant create.(tmp/BTC/18000/.tmpmarker) errno.24 Too many open files
>>
Loretta:/Users/volker/SuperNET # ulimit -n 2048
##### tests
in the SuperNET/iguana/tests directory, there is a jsoncmp.c file, which can be built into the jsoncmp executable via ./make_jsoncmp
once jsoncmp is built, then ./test shows how to use it
./jsoncmp <filename> {\"fields\":[{\"fieldA\":\"requiredvalueA\"},{\"fieldB\":\"requiredvalueB\"},...]}
the idea is to issue a curl command into a /tmp/file and then use jsoncmp to verify the exact value of one or more fields. it will print to stdout JSON with "error" or "result" and to stderr if there is an error

0
SuperNET/Makefile

0
SuperNET/SuperNET.c

0
SuperNET/SuperNET.h

2
SuperNET/hostnet777.c

@ -146,7 +146,7 @@ extern int32_t Debuglevel;
#include "../includes/curve25519.h" #include "../includes/curve25519.h"
static bits256 zeropoint; static const bits256 zeropoint;
int64_t hostnet777_convmT(struct hostnet777_mtime *mT,int64_t othermillitime) int64_t hostnet777_convmT(struct hostnet777_mtime *mT,int64_t othermillitime)
{ {

0
SuperNET/index.html

2
SuperNET/main.c

@ -216,7 +216,7 @@ bits256 SuperNET_OPRETURN(struct supernet_info *myinfo,char *symbol,double fee,u
bits256 SuperNET_agentannounce(struct supernet_info *myinfo,struct supernet_agent *agent,cJSON *network) bits256 SuperNET_agentannounce(struct supernet_info *myinfo,struct supernet_agent *agent,cJSON *network)
{ {
static bits256 zero; static const bits256 zero;
uint8_t buf[80 + sizeof(struct iguana_msghdr)],*data; uint8_t buf[80 + sizeof(struct iguana_msghdr)],*data;
bits256 pubkey,sig; int32_t i,len=0; uint8_t netmagic[4]; char *sigstr,*announce,*pubkeystr; bits256 pubkey,sig; int32_t i,len=0; uint8_t netmagic[4]; char *sigstr,*announce,*pubkeystr;
memset(buf,0,sizeof(buf)); memset(buf,0,sizeof(buf));

2
SuperNET/teleport777.c

@ -96,7 +96,7 @@ uint64_t parse_unspent_json(struct telepod *pod,struct coin777 *coin,cJSON *json
copy_cJSON(&tmp,cJSON_GetObjectItem(json,"txid")), safecopy(pod->txid,tmp.buf,sizeof(pod->txid)); copy_cJSON(&tmp,cJSON_GetObjectItem(json,"txid")), safecopy(pod->txid,tmp.buf,sizeof(pod->txid));
copy_cJSON(&tmp,cJSON_GetObjectItem(json,"address")), safecopy(pod->podaddr,tmp.buf,sizeof(pod->podaddr));; copy_cJSON(&tmp,cJSON_GetObjectItem(json,"address")), safecopy(pod->podaddr,tmp.buf,sizeof(pod->podaddr));;
copy_cJSON(&tmp,cJSON_GetObjectItem(json,"scriptPubKey")), safecopy(pod->script,tmp.buf,sizeof(pod->script));; copy_cJSON(&tmp,cJSON_GetObjectItem(json,"scriptPubKey")), safecopy(pod->script,tmp.buf,sizeof(pod->script));;
amount = (uint64_t)(SATOSHIDEN * get_API_float(cJSON_GetObjectItem(json,"amount"))); amount = (uint64_t)(SATOSHIDEN * jdouble(json,"amount"));
pod->vout = juint(json,"vout"); pod->vout = juint(json,"vout");
pod->numconfirms = juint(json,"confirmations"); pod->numconfirms = juint(json,"confirmations");
if ( pod->txid[0] != 0 && pod->podaddr[0] != 0 && pod->script[0] != 0 && amount != 0 && pod->vout >= 0 ) if ( pod->txid[0] != 0 && pod->podaddr[0] != 0 && pod->script[0] != 0 && amount != 0 && pod->vout >= 0 )

0
SuperNET/tools/common.mk

0
_API.md

0
agents/.tmp

0
agents/field.html

0
agents/footer.html

0
agents/formfooter.html

0
agents/formheader.html

0
agents/header.html

0
android/Android_Readme.md

0
android/include/curl/Makefile

0
android/include/curl/Makefile.am

0
android/include/curl/Makefile.in

0
android/include/curl/curl.h

0
android/include/curl/curlbuild.h

0
android/include/curl/curlbuild.h.cmake

0
android/include/curl/curlbuild.h.in

0
android/include/curl/curlrules.h

0
android/include/curl/curlver.h

0
android/include/curl/easy.h

0
android/include/curl/mprintf.h

0
android/include/curl/multi.h

0
android/include/curl/stamp-h2

0
android/include/curl/stdcheaders.h

0
android/include/curl/typecheck-gcc.h

0
android/include/openssl/aes.h

0
android/include/openssl/asn1.h

0
android/include/openssl/asn1_mac.h

0
android/include/openssl/asn1t.h

0
android/include/openssl/bio.h

0
android/include/openssl/blowfish.h

0
android/include/openssl/bn.h

0
android/include/openssl/buffer.h

0
android/include/openssl/camellia.h

0
android/include/openssl/cast.h

0
android/include/openssl/cmac.h

0
android/include/openssl/cms.h

0
android/include/openssl/comp.h

0
android/include/openssl/conf.h

0
android/include/openssl/conf_api.h

0
android/include/openssl/cryptlib.h

0
android/include/openssl/crypto.h

0
android/include/openssl/curl.h

0
android/include/openssl/curlbuild.h

0
android/include/openssl/curlrules.h

0
android/include/openssl/curlver.h

0
android/include/openssl/des.h

0
android/include/openssl/des_old.h

0
android/include/openssl/dh.h

0
android/include/openssl/dsa.h

0
android/include/openssl/dso.h

0
android/include/openssl/dtls1.h

0
android/include/openssl/e_os.h

0
android/include/openssl/e_os2.h

0
android/include/openssl/easy.h

0
android/include/openssl/ebcdic.h

0
android/include/openssl/ec.h

0
android/include/openssl/ecdh.h

0
android/include/openssl/ecdsa.h

0
android/include/openssl/engine.h

0
android/include/openssl/err.h

0
android/include/openssl/evp.h

0
android/include/openssl/fips_err.h

0
android/include/openssl/hmac.h

0
android/include/openssl/idea.h

0
android/include/openssl/krb5_asn.h

0
android/include/openssl/kssl.h

0
android/include/openssl/lhash.h

0
android/include/openssl/md32_common.h

0
android/include/openssl/md4.h

0
android/include/openssl/md5.h

0
android/include/openssl/mdc2.h

0
android/include/openssl/modes.h

0
android/include/openssl/mprintf.h

0
android/include/openssl/multi.h

0
android/include/openssl/o_dir.h

0
android/include/openssl/o_str.h

0
android/include/openssl/o_time.h

0
android/include/openssl/obj_mac.h

0
android/include/openssl/objects.h

0
android/include/openssl/ocsp.h

0
android/include/openssl/opensslconf.h

0
android/include/openssl/opensslv.h

0
android/include/openssl/ossl_typ.h

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save