committed by
GitHub
199 changed files with 15998 additions and 22937 deletions
@ -0,0 +1,4 @@ |
|||
[submodule "cpp-ethereum"] |
|||
path = cpp-ethereum |
|||
url = https://github.com/artemii235/cpp-ethereum.git |
|||
branch = develop |
@ -0,0 +1,15 @@ |
|||
cmake_minimum_required(VERSION 3.5.1) |
|||
include("cmake/HunterGate.cmake") |
|||
HunterGate( |
|||
URL "https://github.com/ruslo/hunter/archive/v0.19.173.tar.gz" |
|||
SHA1 "750fb1d621af971fad6f303356b13017ad9f5e15" |
|||
LOCAL |
|||
) |
|||
project(SuperNET) |
|||
include_directories("${CMAKE_SOURCE_DIR}") |
|||
add_subdirectory(cpp-ethereum) |
|||
add_subdirectory(iguana/exchanges) |
|||
add_subdirectory(iguana/exchanges/etomicswap) |
|||
add_subdirectory(iguana/secp256k1) |
|||
add_subdirectory(crypto777) |
|||
add_subdirectory(crypto777/jpeg) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,18 @@ |
|||
# cryptopp has very bad CMakeLists.txt config. |
|||
# We have to enforce "cross compiling mode" there by setting CMAKE_SYSTEM_VERSION=NO |
|||
# to any "false" value. |
|||
hunter_config(cryptopp VERSION ${HUNTER_cryptopp_VERSION} CMAKE_ARGS CMAKE_SYSTEM_VERSION=NO) |
|||
|
|||
hunter_config( |
|||
libjson-rpc-cpp |
|||
VERSION ${HUNTER_libjson-rpc-cpp_VERSION} |
|||
CMAKE_ARGS |
|||
UNIX_DOMAIN_SOCKET_SERVER=NO |
|||
UNIX_DOMAIN_SOCKET_CLIENT=NO |
|||
FILE_DESCRIPTOR_SERVER=NO |
|||
FILE_DESCRIPTOR_CLIENT=NO |
|||
TCP_SOCKET_SERVER=NO |
|||
TCP_SOCKET_CLIENT=NO |
|||
HTTP_SERVER=NO |
|||
HTTP_CLIENT=NO |
|||
) |
@ -0,0 +1,529 @@ |
|||
# Copyright (c) 2013-2017, Ruslan Baratov |
|||
# All rights reserved. |
|||
# |
|||
# Redistribution and use in source and binary forms, with or without |
|||
# modification, are permitted provided that the following conditions are met: |
|||
# |
|||
# * Redistributions of source code must retain the above copyright notice, this |
|||
# list of conditions and the following disclaimer. |
|||
# |
|||
# * Redistributions in binary form must reproduce the above copyright notice, |
|||
# this list of conditions and the following disclaimer in the documentation |
|||
# and/or other materials provided with the distribution. |
|||
# |
|||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
|||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
|||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
|||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
|||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
|||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
|||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
|||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
|||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|||
|
|||
# This is a gate file to Hunter package manager. |
|||
# Include this file using `include` command and add package you need, example: |
|||
# |
|||
# cmake_minimum_required(VERSION 3.0) |
|||
# |
|||
# include("cmake/HunterGate.cmake") |
|||
# HunterGate( |
|||
# URL "https://github.com/path/to/hunter/archive.tar.gz" |
|||
# SHA1 "798501e983f14b28b10cda16afa4de69eee1da1d" |
|||
# ) |
|||
# |
|||
# project(MyProject) |
|||
# |
|||
# hunter_add_package(Foo) |
|||
# hunter_add_package(Boo COMPONENTS Bar Baz) |
|||
# |
|||
# Projects: |
|||
# * https://github.com/hunter-packages/gate/ |
|||
# * https://github.com/ruslo/hunter |
|||
|
|||
option(HUNTER_ENABLED "Enable Hunter package manager support" ON) |
|||
if(HUNTER_ENABLED) |
|||
if(CMAKE_VERSION VERSION_LESS "3.0") |
|||
message(FATAL_ERROR "At least CMake version 3.0 required for hunter dependency management." |
|||
" Update CMake or set HUNTER_ENABLED to OFF.") |
|||
endif() |
|||
endif() |
|||
|
|||
include(CMakeParseArguments) # cmake_parse_arguments |
|||
|
|||
option(HUNTER_STATUS_PRINT "Print working status" ON) |
|||
option(HUNTER_STATUS_DEBUG "Print a lot info" OFF) |
|||
|
|||
set(HUNTER_WIKI "https://github.com/ruslo/hunter/wiki") |
|||
|
|||
function(hunter_gate_status_print) |
|||
foreach(print_message ${ARGV}) |
|||
if(HUNTER_STATUS_PRINT OR HUNTER_STATUS_DEBUG) |
|||
message(STATUS "[hunter] ${print_message}") |
|||
endif() |
|||
endforeach() |
|||
endfunction() |
|||
|
|||
function(hunter_gate_status_debug) |
|||
foreach(print_message ${ARGV}) |
|||
if(HUNTER_STATUS_DEBUG) |
|||
string(TIMESTAMP timestamp) |
|||
message(STATUS "[hunter *** DEBUG *** ${timestamp}] ${print_message}") |
|||
endif() |
|||
endforeach() |
|||
endfunction() |
|||
|
|||
function(hunter_gate_wiki wiki_page) |
|||
message("------------------------------ WIKI -------------------------------") |
|||
message(" ${HUNTER_WIKI}/${wiki_page}") |
|||
message("-------------------------------------------------------------------") |
|||
message("") |
|||
message(FATAL_ERROR "") |
|||
endfunction() |
|||
|
|||
function(hunter_gate_internal_error) |
|||
message("") |
|||
foreach(print_message ${ARGV}) |
|||
message("[hunter ** INTERNAL **] ${print_message}") |
|||
endforeach() |
|||
message("[hunter ** INTERNAL **] [Directory:${CMAKE_CURRENT_LIST_DIR}]") |
|||
message("") |
|||
hunter_gate_wiki("error.internal") |
|||
endfunction() |
|||
|
|||
function(hunter_gate_fatal_error) |
|||
cmake_parse_arguments(hunter "" "WIKI" "" "${ARGV}") |
|||
string(COMPARE EQUAL "${hunter_WIKI}" "" have_no_wiki) |
|||
if(have_no_wiki) |
|||
hunter_gate_internal_error("Expected wiki") |
|||
endif() |
|||
message("") |
|||
foreach(x ${hunter_UNPARSED_ARGUMENTS}) |
|||
message("[hunter ** FATAL ERROR **] ${x}") |
|||
endforeach() |
|||
message("[hunter ** FATAL ERROR **] [Directory:${CMAKE_CURRENT_LIST_DIR}]") |
|||
message("") |
|||
hunter_gate_wiki("${hunter_WIKI}") |
|||
endfunction() |
|||
|
|||
function(hunter_gate_user_error) |
|||
hunter_gate_fatal_error(${ARGV} WIKI "error.incorrect.input.data") |
|||
endfunction() |
|||
|
|||
function(hunter_gate_self root version sha1 result) |
|||
string(COMPARE EQUAL "${root}" "" is_bad) |
|||
if(is_bad) |
|||
hunter_gate_internal_error("root is empty") |
|||
endif() |
|||
|
|||
string(COMPARE EQUAL "${version}" "" is_bad) |
|||
if(is_bad) |
|||
hunter_gate_internal_error("version is empty") |
|||
endif() |
|||
|
|||
string(COMPARE EQUAL "${sha1}" "" is_bad) |
|||
if(is_bad) |
|||
hunter_gate_internal_error("sha1 is empty") |
|||
endif() |
|||
|
|||
string(SUBSTRING "${sha1}" 0 7 archive_id) |
|||
|
|||
if(EXISTS "${root}/cmake/Hunter") |
|||
set(hunter_self "${root}") |
|||
else() |
|||
set( |
|||
hunter_self |
|||
"${root}/_Base/Download/Hunter/${version}/${archive_id}/Unpacked" |
|||
) |
|||
endif() |
|||
|
|||
set("${result}" "${hunter_self}" PARENT_SCOPE) |
|||
endfunction() |
|||
|
|||
# Set HUNTER_GATE_ROOT cmake variable to suitable value. |
|||
function(hunter_gate_detect_root) |
|||
# Check CMake variable |
|||
string(COMPARE NOTEQUAL "${HUNTER_ROOT}" "" not_empty) |
|||
if(not_empty) |
|||
set(HUNTER_GATE_ROOT "${HUNTER_ROOT}" PARENT_SCOPE) |
|||
hunter_gate_status_debug("HUNTER_ROOT detected by cmake variable") |
|||
return() |
|||
endif() |
|||
|
|||
# Check environment variable |
|||
string(COMPARE NOTEQUAL "$ENV{HUNTER_ROOT}" "" not_empty) |
|||
if(not_empty) |
|||
set(HUNTER_GATE_ROOT "$ENV{HUNTER_ROOT}" PARENT_SCOPE) |
|||
hunter_gate_status_debug("HUNTER_ROOT detected by environment variable") |
|||
return() |
|||
endif() |
|||
|
|||
# Check HOME environment variable |
|||
string(COMPARE NOTEQUAL "$ENV{HOME}" "" result) |
|||
if(result) |
|||
set(HUNTER_GATE_ROOT "$ENV{HOME}/.hunter" PARENT_SCOPE) |
|||
hunter_gate_status_debug("HUNTER_ROOT set using HOME environment variable") |
|||
return() |
|||
endif() |
|||
|
|||
# Check SYSTEMDRIVE and USERPROFILE environment variable (windows only) |
|||
if(WIN32) |
|||
string(COMPARE NOTEQUAL "$ENV{SYSTEMDRIVE}" "" result) |
|||
if(result) |
|||
set(HUNTER_GATE_ROOT "$ENV{SYSTEMDRIVE}/.hunter" PARENT_SCOPE) |
|||
hunter_gate_status_debug( |
|||
"HUNTER_ROOT set using SYSTEMDRIVE environment variable" |
|||
) |
|||
return() |
|||
endif() |
|||
|
|||
string(COMPARE NOTEQUAL "$ENV{USERPROFILE}" "" result) |
|||
if(result) |
|||
set(HUNTER_GATE_ROOT "$ENV{USERPROFILE}/.hunter" PARENT_SCOPE) |
|||
hunter_gate_status_debug( |
|||
"HUNTER_ROOT set using USERPROFILE environment variable" |
|||
) |
|||
return() |
|||
endif() |
|||
endif() |
|||
|
|||
hunter_gate_fatal_error( |
|||
"Can't detect HUNTER_ROOT" |
|||
WIKI "error.detect.hunter.root" |
|||
) |
|||
endfunction() |
|||
|
|||
macro(hunter_gate_lock dir) |
|||
if(NOT HUNTER_SKIP_LOCK) |
|||
if("${CMAKE_VERSION}" VERSION_LESS "3.2") |
|||
hunter_gate_fatal_error( |
|||
"Can't lock, upgrade to CMake 3.2 or use HUNTER_SKIP_LOCK" |
|||
WIKI "error.can.not.lock" |
|||
) |
|||
endif() |
|||
hunter_gate_status_debug("Locking directory: ${dir}") |
|||
file(LOCK "${dir}" DIRECTORY GUARD FUNCTION) |
|||
hunter_gate_status_debug("Lock done") |
|||
endif() |
|||
endmacro() |
|||
|
|||
function(hunter_gate_download dir) |
|||
string( |
|||
COMPARE |
|||
NOTEQUAL |
|||
"$ENV{HUNTER_DISABLE_AUTOINSTALL}" |
|||
"" |
|||
disable_autoinstall |
|||
) |
|||
if(disable_autoinstall AND NOT HUNTER_RUN_INSTALL) |
|||
hunter_gate_fatal_error( |
|||
"Hunter not found in '${dir}'" |
|||
"Set HUNTER_RUN_INSTALL=ON to auto-install it from '${HUNTER_GATE_URL}'" |
|||
"Settings:" |
|||
" HUNTER_ROOT: ${HUNTER_GATE_ROOT}" |
|||
" HUNTER_SHA1: ${HUNTER_GATE_SHA1}" |
|||
WIKI "error.run.install" |
|||
) |
|||
endif() |
|||
string(COMPARE EQUAL "${dir}" "" is_bad) |
|||
if(is_bad) |
|||
hunter_gate_internal_error("Empty 'dir' argument") |
|||
endif() |
|||
|
|||
string(COMPARE EQUAL "${HUNTER_GATE_SHA1}" "" is_bad) |
|||
if(is_bad) |
|||
hunter_gate_internal_error("HUNTER_GATE_SHA1 empty") |
|||
endif() |
|||
|
|||
string(COMPARE EQUAL "${HUNTER_GATE_URL}" "" is_bad) |
|||
if(is_bad) |
|||
hunter_gate_internal_error("HUNTER_GATE_URL empty") |
|||
endif() |
|||
|
|||
set(done_location "${dir}/DONE") |
|||
set(sha1_location "${dir}/SHA1") |
|||
|
|||
set(build_dir "${dir}/Build") |
|||
set(cmakelists "${dir}/CMakeLists.txt") |
|||
|
|||
hunter_gate_lock("${dir}") |
|||
if(EXISTS "${done_location}") |
|||
# while waiting for lock other instance can do all the job |
|||
hunter_gate_status_debug("File '${done_location}' found, skip install") |
|||
return() |
|||
endif() |
|||
|
|||
file(REMOVE_RECURSE "${build_dir}") |
|||
file(REMOVE_RECURSE "${cmakelists}") |
|||
|
|||
file(MAKE_DIRECTORY "${build_dir}") # check directory permissions |
|||
|
|||
# Disabling languages speeds up a little bit, reduces noise in the output |
|||
# and avoids path too long windows error |
|||
file( |
|||
WRITE |
|||
"${cmakelists}" |
|||
"cmake_minimum_required(VERSION 3.0)\n" |
|||
"project(HunterDownload LANGUAGES NONE)\n" |
|||
"include(ExternalProject)\n" |
|||
"ExternalProject_Add(\n" |
|||
" Hunter\n" |
|||
" URL\n" |
|||
" \"${HUNTER_GATE_URL}\"\n" |
|||
" URL_HASH\n" |
|||
" SHA1=${HUNTER_GATE_SHA1}\n" |
|||
" DOWNLOAD_DIR\n" |
|||
" \"${dir}\"\n" |
|||
" SOURCE_DIR\n" |
|||
" \"${dir}/Unpacked\"\n" |
|||
" CONFIGURE_COMMAND\n" |
|||
" \"\"\n" |
|||
" BUILD_COMMAND\n" |
|||
" \"\"\n" |
|||
" INSTALL_COMMAND\n" |
|||
" \"\"\n" |
|||
")\n" |
|||
) |
|||
|
|||
if(HUNTER_STATUS_DEBUG) |
|||
set(logging_params "") |
|||
else() |
|||
set(logging_params OUTPUT_QUIET) |
|||
endif() |
|||
|
|||
hunter_gate_status_debug("Run generate") |
|||
|
|||
# Need to add toolchain file too. |
|||
# Otherwise on Visual Studio + MDD this will fail with error: |
|||
# "Could not find an appropriate version of the Windows 10 SDK installed on this machine" |
|||
if(EXISTS "${CMAKE_TOOLCHAIN_FILE}") |
|||
get_filename_component(absolute_CMAKE_TOOLCHAIN_FILE "${CMAKE_TOOLCHAIN_FILE}" ABSOLUTE) |
|||
set(toolchain_arg "-DCMAKE_TOOLCHAIN_FILE=${absolute_CMAKE_TOOLCHAIN_FILE}") |
|||
else() |
|||
# 'toolchain_arg' can't be empty |
|||
set(toolchain_arg "-DCMAKE_TOOLCHAIN_FILE=") |
|||
endif() |
|||
|
|||
string(COMPARE EQUAL "${CMAKE_MAKE_PROGRAM}" "" no_make) |
|||
if(no_make) |
|||
set(make_arg "") |
|||
else() |
|||
# Test case: remove Ninja from PATH but set it via CMAKE_MAKE_PROGRAM |
|||
set(make_arg "-DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}") |
|||
endif() |
|||
|
|||
execute_process( |
|||
COMMAND |
|||
"${CMAKE_COMMAND}" |
|||
"-H${dir}" |
|||
"-B${build_dir}" |
|||
"-G${CMAKE_GENERATOR}" |
|||
"${toolchain_arg}" |
|||
${make_arg} |
|||
WORKING_DIRECTORY "${dir}" |
|||
RESULT_VARIABLE download_result |
|||
${logging_params} |
|||
) |
|||
|
|||
if(NOT download_result EQUAL 0) |
|||
hunter_gate_internal_error("Configure project failed") |
|||
endif() |
|||
|
|||
hunter_gate_status_print( |
|||
"Initializing Hunter workspace (${HUNTER_GATE_SHA1})" |
|||
" ${HUNTER_GATE_URL}" |
|||
" -> ${dir}" |
|||
) |
|||
execute_process( |
|||
COMMAND "${CMAKE_COMMAND}" --build "${build_dir}" |
|||
WORKING_DIRECTORY "${dir}" |
|||
RESULT_VARIABLE download_result |
|||
${logging_params} |
|||
) |
|||
|
|||
if(NOT download_result EQUAL 0) |
|||
hunter_gate_internal_error("Build project failed") |
|||
endif() |
|||
|
|||
file(REMOVE_RECURSE "${build_dir}") |
|||
file(REMOVE_RECURSE "${cmakelists}") |
|||
|
|||
file(WRITE "${sha1_location}" "${HUNTER_GATE_SHA1}") |
|||
file(WRITE "${done_location}" "DONE") |
|||
|
|||
hunter_gate_status_debug("Finished") |
|||
endfunction() |
|||
|
|||
# Must be a macro so master file 'cmake/Hunter' can |
|||
# apply all variables easily just by 'include' command |
|||
# (otherwise PARENT_SCOPE magic needed) |
|||
macro(HunterGate) |
|||
if(HUNTER_GATE_DONE) |
|||
# variable HUNTER_GATE_DONE set explicitly for external project |
|||
# (see `hunter_download`) |
|||
set_property(GLOBAL PROPERTY HUNTER_GATE_DONE YES) |
|||
endif() |
|||
|
|||
# First HunterGate command will init Hunter, others will be ignored |
|||
get_property(_hunter_gate_done GLOBAL PROPERTY HUNTER_GATE_DONE SET) |
|||
|
|||
if(NOT HUNTER_ENABLED) |
|||
# Empty function to avoid error "unknown function" |
|||
function(hunter_add_package) |
|||
endfunction() |
|||
elseif(_hunter_gate_done) |
|||
hunter_gate_status_debug("Secondary HunterGate (use old settings)") |
|||
hunter_gate_self( |
|||
"${HUNTER_CACHED_ROOT}" |
|||
"${HUNTER_VERSION}" |
|||
"${HUNTER_SHA1}" |
|||
_hunter_self |
|||
) |
|||
include("${_hunter_self}/cmake/Hunter") |
|||
else() |
|||
set(HUNTER_GATE_LOCATION "${CMAKE_CURRENT_LIST_DIR}") |
|||
|
|||
string(COMPARE NOTEQUAL "${PROJECT_NAME}" "" _have_project_name) |
|||
if(_have_project_name) |
|||
hunter_gate_fatal_error( |
|||
"Please set HunterGate *before* 'project' command. " |
|||
"Detected project: ${PROJECT_NAME}" |
|||
WIKI "error.huntergate.before.project" |
|||
) |
|||
endif() |
|||
|
|||
cmake_parse_arguments( |
|||
HUNTER_GATE "LOCAL" "URL;SHA1;GLOBAL;FILEPATH" "" ${ARGV} |
|||
) |
|||
|
|||
string(COMPARE EQUAL "${HUNTER_GATE_SHA1}" "" _empty_sha1) |
|||
string(COMPARE EQUAL "${HUNTER_GATE_URL}" "" _empty_url) |
|||
string( |
|||
COMPARE |
|||
NOTEQUAL |
|||
"${HUNTER_GATE_UNPARSED_ARGUMENTS}" |
|||
"" |
|||
_have_unparsed |
|||
) |
|||
string(COMPARE NOTEQUAL "${HUNTER_GATE_GLOBAL}" "" _have_global) |
|||
string(COMPARE NOTEQUAL "${HUNTER_GATE_FILEPATH}" "" _have_filepath) |
|||
|
|||
if(_have_unparsed) |
|||
hunter_gate_user_error( |
|||
"HunterGate unparsed arguments: ${HUNTER_GATE_UNPARSED_ARGUMENTS}" |
|||
) |
|||
endif() |
|||
if(_empty_sha1) |
|||
hunter_gate_user_error("SHA1 suboption of HunterGate is mandatory") |
|||
endif() |
|||
if(_empty_url) |
|||
hunter_gate_user_error("URL suboption of HunterGate is mandatory") |
|||
endif() |
|||
if(_have_global) |
|||
if(HUNTER_GATE_LOCAL) |
|||
hunter_gate_user_error("Unexpected LOCAL (already has GLOBAL)") |
|||
endif() |
|||
if(_have_filepath) |
|||
hunter_gate_user_error("Unexpected FILEPATH (already has GLOBAL)") |
|||
endif() |
|||
endif() |
|||
if(HUNTER_GATE_LOCAL) |
|||
if(_have_global) |
|||
hunter_gate_user_error("Unexpected GLOBAL (already has LOCAL)") |
|||
endif() |
|||
if(_have_filepath) |
|||
hunter_gate_user_error("Unexpected FILEPATH (already has LOCAL)") |
|||
endif() |
|||
endif() |
|||
if(_have_filepath) |
|||
if(_have_global) |
|||
hunter_gate_user_error("Unexpected GLOBAL (already has FILEPATH)") |
|||
endif() |
|||
if(HUNTER_GATE_LOCAL) |
|||
hunter_gate_user_error("Unexpected LOCAL (already has FILEPATH)") |
|||
endif() |
|||
endif() |
|||
|
|||
hunter_gate_detect_root() # set HUNTER_GATE_ROOT |
|||
|
|||
# Beautify path, fix probable problems with windows path slashes |
|||
get_filename_component( |
|||
HUNTER_GATE_ROOT "${HUNTER_GATE_ROOT}" ABSOLUTE |
|||
) |
|||
hunter_gate_status_debug("HUNTER_ROOT: ${HUNTER_GATE_ROOT}") |
|||
if(NOT HUNTER_ALLOW_SPACES_IN_PATH) |
|||
string(FIND "${HUNTER_GATE_ROOT}" " " _contain_spaces) |
|||
if(NOT _contain_spaces EQUAL -1) |
|||
hunter_gate_fatal_error( |
|||
"HUNTER_ROOT (${HUNTER_GATE_ROOT}) contains spaces." |
|||
"Set HUNTER_ALLOW_SPACES_IN_PATH=ON to skip this error" |
|||
"(Use at your own risk!)" |
|||
WIKI "error.spaces.in.hunter.root" |
|||
) |
|||
endif() |
|||
endif() |
|||
|
|||
string( |
|||
REGEX |
|||
MATCH |
|||
"[0-9]+\\.[0-9]+\\.[0-9]+[-_a-z0-9]*" |
|||
HUNTER_GATE_VERSION |
|||
"${HUNTER_GATE_URL}" |
|||
) |
|||
string(COMPARE EQUAL "${HUNTER_GATE_VERSION}" "" _is_empty) |
|||
if(_is_empty) |
|||
set(HUNTER_GATE_VERSION "unknown") |
|||
endif() |
|||
|
|||
hunter_gate_self( |
|||
"${HUNTER_GATE_ROOT}" |
|||
"${HUNTER_GATE_VERSION}" |
|||
"${HUNTER_GATE_SHA1}" |
|||
_hunter_self |
|||
) |
|||
|
|||
set(_master_location "${_hunter_self}/cmake/Hunter") |
|||
if(EXISTS "${HUNTER_GATE_ROOT}/cmake/Hunter") |
|||
# Hunter downloaded manually (e.g. by 'git clone') |
|||
set(_unused "xxxxxxxxxx") |
|||
set(HUNTER_GATE_SHA1 "${_unused}") |
|||
set(HUNTER_GATE_VERSION "${_unused}") |
|||
else() |
|||
get_filename_component(_archive_id_location "${_hunter_self}/.." ABSOLUTE) |
|||
set(_done_location "${_archive_id_location}/DONE") |
|||
set(_sha1_location "${_archive_id_location}/SHA1") |
|||
|
|||
# Check Hunter already downloaded by HunterGate |
|||
if(NOT EXISTS "${_done_location}") |
|||
hunter_gate_download("${_archive_id_location}") |
|||
endif() |
|||
|
|||
if(NOT EXISTS "${_done_location}") |
|||
hunter_gate_internal_error("hunter_gate_download failed") |
|||
endif() |
|||
|
|||
if(NOT EXISTS "${_sha1_location}") |
|||
hunter_gate_internal_error("${_sha1_location} not found") |
|||
endif() |
|||
file(READ "${_sha1_location}" _sha1_value) |
|||
string(COMPARE EQUAL "${_sha1_value}" "${HUNTER_GATE_SHA1}" _is_equal) |
|||
if(NOT _is_equal) |
|||
hunter_gate_internal_error( |
|||
"Short SHA1 collision:" |
|||
" ${_sha1_value} (from ${_sha1_location})" |
|||
" ${HUNTER_GATE_SHA1} (HunterGate)" |
|||
) |
|||
endif() |
|||
if(NOT EXISTS "${_master_location}") |
|||
hunter_gate_user_error( |
|||
"Master file not found:" |
|||
" ${_master_location}" |
|||
"try to update Hunter/HunterGate" |
|||
) |
|||
endif() |
|||
endif() |
|||
include("${_master_location}") |
|||
set_property(GLOBAL PROPERTY HUNTER_GATE_DONE YES) |
|||
endif() |
|||
endmacro() |
@ -0,0 +1,4 @@ |
|||
# Require C++11. |
|||
set(CMAKE_CXX_STANDARD 11) |
|||
set(CMAKE_CXX_STANDARD_REQUIRED True) |
|||
set(CMAKE_CXX_EXTENSIONS Off) |
@ -0,0 +1,4 @@ |
|||
file(GLOB sources "*.c") |
|||
file(GLOB headers "*.h") |
|||
add_library(libcrypto777 ${sources} ${headers}) |
|||
target_link_libraries(libcrypto777 PUBLIC curl) |
@ -0,0 +1,4 @@ |
|||
file(GLOB sources "*.c") |
|||
file(GLOB headers "*.h") |
|||
add_library(libjpeg ${sources} ${headers}) |
|||
target_sources(libjpeg PRIVATE "unix/jmemname.c") |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
@ -0,0 +1,3 @@ |
|||
#!/bin/bash |
|||
source userpass |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"autoprice\",\"base\":\"ETH\",\"rel\":\"KMD\",\"margin\":0.05,\"refbase\":\"ethereum\",\"refrel\":\"coinmarketcap\"}" |
@ -0,0 +1,3 @@ |
|||
#!/bin/bash |
|||
source userpass |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"buy\",\"base\":\"ETH\",\"rel\":\"KMD\",\"relvolume\":1,\"price\":300}" |
@ -0,0 +1,5 @@ |
|||
#!/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}" & |
File diff suppressed because one or more lines are too long
@ -0,0 +1,5 @@ |
|||
#!/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\"}" |
@ -0,0 +1,3 @@ |
|||
#!/bin/bash |
|||
source userpass |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"orderbook\",\"base\":\"ETH\",\"rel\":\"KMD\"}" |
@ -0,0 +1 @@ |
|||
export passphrase="<put a very strong passphrase here>" |
@ -0,0 +1,5 @@ |
|||
#!/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,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,3 @@ |
|||
#!/bin/bash |
|||
source userpass |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"stop\"}" |
@ -0,0 +1,2 @@ |
|||
#export userpass="<put the userpass value from the first API call here>" |
|||
export userpass="c3d8c2a364b7d18c1f9d7321d017b92e9f9c791e4f5c741214fefdea8a071256" |
Binary file not shown.
@ -0,0 +1,45 @@ |
|||
#!/bin/bash |
|||
|
|||
#Check if libnanomsg-static.a file is already exists or not |
|||
if [[ "$OSTYPE" == "linux-gnu" ]]; then |
|||
echo "Linux" |
|||
file="../OSlibs/linux/$(uname -m)/libnanomsg-static.a" |
|||
makedir="../OSlibs/linux/$(uname -m)/" |
|||
copytarget="../OSlibs/linux/$(uname -m)/libnanomsg-static.a" |
|||
elif [[ "$OSTYPE" == "darwin"* ]]; then |
|||
# Mac OSX |
|||
echo "Mac OSX" |
|||
file="../OSlibs/osx/$(uname -m)/libnanomsg-static.a" |
|||
makedir="../OSlibs/osx/$(uname -m)/" |
|||
copytarget="../OSlibs/osx/$(uname -m)/libnanomsg-static.a" |
|||
fi |
|||
|
|||
if [ ! -f "$file" ] |
|||
then |
|||
echo "$0: File '${file}' not found." |
|||
#Download nanomsg library 1.0 stable |
|||
rm -rf nanomsgsrc |
|||
git clone https://github.com/nanomsg/nanomsg.git nanomsgsrc |
|||
|
|||
#Create destination folder |
|||
mkdir nanomsglib |
|||
|
|||
#Switch into nanomsgsrc folder |
|||
cd nanomsgsrc |
|||
|
|||
#Create build directory and switch into it |
|||
mkdir build && cd build |
|||
|
|||
#Compile |
|||
cmake .. -DCMAKE_INSTALL_PREFIX=../../nanomsglib/ -DCMAKE_BUILD_TYPE=Debug -DNN_STATIC_LIB=1 |
|||
cmake --build . |
|||
ctest -C Debug . |
|||
cmake --build . --target install |
|||
|
|||
cd ../.. |
|||
pwd |
|||
mkdir -p $makedir |
|||
cp -av nanomsglib/lib/libnanomsg.a $copytarget |
|||
fi |
|||
|
|||
|
@ -0,0 +1,23 @@ |
|||
source randval |
|||
pkill -15 marketmaker; |
|||
git pull; |
|||
./m_mm; |
|||
#./m_mmosx; |
|||
./marketmaker "{\"client\":1,\"coins\":[{\"coin\":\"REVS\",\"active\":1, \"asset\":\"REVS\",\"rpcport\":10196},{\"coin\":\"JUMBLR\",\"active\":1, \"asset\":\"JUMBLR\",\"rpcport\":15106}, |
|||
{\"active\":0,\"coin\":\"ZEC\",\"name\":\"zcash\",\"rpcport\":8232,\"taddr\":28,\"pubtype\":184,\"p2shtype\":189,\"wiftype\":128,\"txfee\":10000 }, |
|||
{\"coin\":\"DOGE\", \"name\":\"dogecoin\", \"pubtype\":30, \"p2shtype\":5, \"wiftype\":128, \"txfee\":100000000}, |
|||
{\"coin\":\"DGB\", \"name\":\"digibyte\", \"pubtype\":30, \"p2shtype\":5, \"wiftype\":128, \"txfee\":10000}, |
|||
{\"coin\":\"MZC\", \"name\":\"mazacoin\", \"pubtype\":50, \"p2shtype\":9, \"wiftype\":224, \"txfee\":0}, |
|||
{\"coin\":\"SYS\", \"name\":\"syscoin\", \"pubtype\":0, \"p2shtype\":5, \"wiftype\":128, \"txfee\":100000}, |
|||
{\"coin\":\"UNO\", \"name\":\"unobtanium\", \"pubtype\":130, \"p2shtype\":30, \"wiftype\":224, \"txfee\":1000000}, |
|||
{\"coin\":\"ZET\", \"name\":\"zetacoin\", \"pubtype\":80, \"p2shtype\":9, \"wiftype\":224, \"txfee\":10000}, |
|||
{\"coin\":\"ZEC\", \"name\":\"zcash\", \"pubtype\":184, \"p2shtype\":189, \"wiftype\":128, \"txfee\":10000}, |
|||
{\"coin\":\"BTM\", \"name\":\"bitmark\", \"pubtype\":85, \"p2shtype\":5, \"wiftype\":213, \"txfee\":0}, |
|||
{\"coin\":\"CARB\", \"name\":\"carboncoin\", \"pubtype\":47, \"p2shtype\":5, \"wiftype\":175, \"txfee\":0}, |
|||
{\"coin\":\"ANC\", \"name\":\"anoncoin\", \"pubtype\":23, \"p2shtype\":5, \"wiftype\":151, \"txfee\":2000000}, |
|||
{\"coin\":\"FRK\", \"name\":\"franko\", \"pubtype\":35, \"p2shtype\":5, \"wiftype\":163, \"txfee\":0}, |
|||
{\"coin\":\"GAME\", \"name\":\"gamecredits\", \"pubtype\":38, \"p2shtype\":5, \"wiftype\":166, \"txfee\":100000}, |
|||
{\"coin\":\"LTC\", \"name\":\"litecoin\", \"rpcport\":9332, \"pubtype\":48, \"p2shtype\":5, \"wiftype\":176, \"txfee\":100000 }, |
|||
{\"coin\":\"SUPERNET\",\"asset\":\"SUPERNET\",\"rpcport\":11341},{\"coin\":\"WLC\",\"asset\":\"WLC\",\"rpcport\":12167},{\"coin\":\"PANGEA\",\"asset\":\"PANGEA\",\"rpcport\":14068},{\"coin\":\"DEX\",\"asset\":\"DEX\",\"rpcport\":11890},{\"coin\":\"BET\",\"asset\":\"BET\",\"rpcport\":14250},{\"coin\":\"CRYPTO\",\"asset\":\"CRYPTO\",\"rpcport\":8516},{\"coin\":\"HODL\",\"asset\":\"HODL\",\"rpcport\":14431},{\"coin\":\"SHARK\",\"asset\":\"SHARK\",\"rpcport\":10114},{\"coin\":\"BOTS\",\"asset\":\"BOTS\",\"rpcport\":11964},{\"coin\":\"MGW\",\"asset\":\"MGW\",\"rpcport\":12386},{\"coin\":\"COQUI\",\"asset\":\"COQUI\",\"rpcport\":14276},{\"coin\":\"KV\",\"asset\":\"KV\",\"rpcport\":9747},{\"coin\":\"CEAL\",\"asset\":\"CEAL\",\"rpcport\":11116},{\"coin\":\"MESH\",\"asset\":\"MESH\",\"rpcport\":9455} |
|||
], \"userhome\":\"/${HOME#"/"}\",\"passphrase\":\"$randval\"}" & |
|||
|
@ -0,0 +1,2 @@ |
|||
curl --url "http://127.0.0.1:7776" --data "{\"conf\":\"AXO.conf\",\"path\":\"${HOME#"/"}/.komodo/AXO\",\"unitval\":\"20\",\"zcash\":1,\"RELAY\":-1,\"VALIDATE\":0,\"prefetchlag\":-1,\"poll\":100,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":8,\"newcoin\":\"AXO\",\"name\":\"AXO\",\"hasheaders\":1,\"useaddmultisig\":0,\"netmagic\":\"ba009d17\",\"p2p\":12926,\"rpc\":12927,\"pubval\":60,\"p2shval\":85,\"wifval\":188,\"txfee_satoshis\":\"10000\",\"isPoS\":0,\"minoutput\":10000,\"minconfirms\":2,\"genesishash\":\"027e3758c3a65b12aa1046462b486d0a63bfa1beae327897f56c5cfb7daaae71\",\"protover\":170002,\"genesisblock\":\"0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2\",\"debug\":0,\"seedipaddr\":\"78.47.196.146\"}" |
|||
|
@ -0,0 +1,2 @@ |
|||
curl --url "http://127.0.0.1:7778" --data "{\"conf\":\"AXO.conf\",\"path\":\"${HOME#"/"}/.komodo/AXO\",\"unitval\":\"20\",\"zcash\":1,\"RELAY\":0,\"VALIDATE\":0,\"prefetchlag\":-1,\"poll\":100,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":8,\"newcoin\":\"AXO\",\"name\":\"AXO\",\"hasheaders\":1,\"useaddmultisig\":0,\"netmagic\":\"ba009d17\",\"p2p\":12926,\"rpc\":12927,\"pubval\":60,\"p2shval\":85,\"wifval\":188,\"txfee_satoshis\":\"10000\",\"isPoS\":0,\"minoutput\":10000,\"minconfirms\":2,\"genesishash\":\"027e3758c3a65b12aa1046462b486d0a63bfa1beae327897f56c5cfb7daaae71\",\"protover\":170002,\"genesisblock\":\"0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2\",\"debug\":0,\"seedipaddr\":\"78.47.196.146\"}" |
|||
|
@ -0,0 +1 @@ |
|||
curl --url "http://127.0.0.1:7778" --data "{\"conf\":\"BTCH.conf\",\"path\":\"${HOME#"/"}/.komodo/BTCH\",\"unitval\":\"20\",\"zcash\":1,\"RELAY\":0,\"VALIDATE\":0,\"prefetchlag\":-1,\"poll\":100,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":8,\"newcoin\":\"BTCH\",\"name\":\"BTCH\",\"hasheaders\":1,\"useaddmultisig\":0,\"netmagic\":\"b0ed1968\",\"p2p\":8799,\"rpc\":8800,\"pubval\":60,\"p2shval\":85,\"wifval\":188,\"txfee_satoshis\":\"10000\",\"isPoS\":0,\"minoutput\":10000,\"minconfirms\":2,\"genesishash\":\"027e3758c3a65b12aa1046462b486d0a63bfa1beae327897f56c5cfb7daaae71\",\"protover\":170002,\"genesisblock\":\"0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2\",\"debug\":0,\"seedipaddr\":\"78.47.196.146\"}" |
@ -0,0 +1,2 @@ |
|||
curl --url "http://127.0.0.1:7778" --data "{\"conf\":\"ETOMIC.conf\",\"path\":\"${HOME#"/"}/.komodo/ETOMIC\",\"unitval\":\"20\",\"zcash\":1,\"RELAY\":0,\"VALIDATE\":0,\"prefetchlag\":-1,\"poll\":100,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":8,\"newcoin\":\"ETOMIC\",\"name\":\"ETOMIC\",\"hasheaders\":1,\"useaddmultisig\":0,\"netmagic\":\"072a90e8\",\"p2p\":10270,\"rpc\":10271,\"pubval\":60,\"p2shval\":85,\"wifval\":188,\"txfee_satoshis\":\"10000\",\"isPoS\":0,\"minoutput\":10000,\"minconfirms\":2,\"genesishash\":\"027e3758c3a65b12aa1046462b486d0a63bfa1beae327897f56c5cfb7daaae71\",\"protover\":170002,\"genesisblock\":\"0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2\",\"debug\":0,\"seedipaddr\":\"78.47.196.146\"}" |
|||
|
@ -0,0 +1,2 @@ |
|||
curl --url "http://127.0.0.1:7776" --data "{\"conf\":\"BTCH.conf\",\"path\":\"${HOME#"/"}/.komodo/BTCH\",\"unitval\":\"20\",\"zcash\":1,\"RELAY\":-1,\"VALIDATE\":0,\"prefetchlag\":-1,\"poll\":100,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":8,\"newcoin\":\"BTCH\",\"name\":\"BTCH\",\"hasheaders\":1,\"useaddmultisig\":0,\"netmagic\":\"b0ed1968\",\"p2p\":8799,\"rpc\":8800,\"pubval\":60,\"p2shval\":85,\"wifval\":188,\"txfee_satoshis\":\"10000\",\"isPoS\":0,\"minoutput\":10000,\"minconfirms\":2,\"genesishash\":\"027e3758c3a65b12aa1046462b486d0a63bfa1beae327897f56c5cfb7daaae71\",\"protover\":170002,\"genesisblock\":\"0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2\",\"debug\":0,\"seedipaddr\":\"78.47.196.146\"}" |
|||
|
@ -0,0 +1,2 @@ |
|||
curl --url "http://127.0.0.1:7776" --data "{\"conf\":\"ETOMIC.conf\",\"path\":\"${HOME#"/"}/.komodo/ETOMIC\",\"unitval\":\"20\",\"zcash\":1,\"RELAY\":-1,\"VALIDATE\":0,\"prefetchlag\":-1,\"poll\":100,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":8,\"newcoin\":\"ETOMIC\",\"name\":\"ETOMIC\",\"hasheaders\":1,\"useaddmultisig\":0,\"netmagic\":\"072a90e8\",\"p2p\":10270,\"rpc\":10271,\"pubval\":60,\"p2shval\":85,\"wifval\":188,\"txfee_satoshis\":\"10000\",\"isPoS\":0,\"minoutput\":10000,\"minconfirms\":2,\"genesishash\":\"027e3758c3a65b12aa1046462b486d0a63bfa1beae327897f56c5cfb7daaae71\",\"protover\":170002,\"genesisblock\":\"0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2\",\"debug\":0,\"seedipaddr\":\"78.47.196.146\"}" |
|||
|
@ -0,0 +1 @@ |
|||
curl --url "http://127.0.0.1:7776" --data "{\"conf\":\"NINJA.conf\",\"path\":\"${HOME#"/"}/.komodo/NINJA\",\"unitval\":\"20\",\"zcash\":1,\"RELAY\":-1,\"VALIDATE\":0,\"prefetchlag\":-1,\"poll\":100,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":8,\"newcoin\":\"NINJA\",\"name\":\"NINJA\",\"hasheaders\":1,\"useaddmultisig\":0,\"netmagic\":\"78a7bd45\",\"p2p\":8426,\"rpc\":8427,\"pubval\":60,\"p2shval\":85,\"wifval\":188,\"txfee_satoshis\":\"10000\",\"isPoS\":0,\"minoutput\":10000,\"minconfirms\":2,\"genesishash\":\"027e3758c3a65b12aa1046462b486d0a63bfa1beae327897f56c5cfb7daaae71\",\"protover\":170002,\"genesisblock\":\"0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2\",\"debug\":0,\"seedipaddr\":\"192.241.134.19\"}" |
@ -0,0 +1 @@ |
|||
curl --url "http://127.0.0.1:7776" --data "{\"conf\":\"OOT.conf\",\"path\":\"${HOME#"/"}/.komodo/OOT\",\"unitval\":\"20\",\"zcash\":1,\"RELAY\":-1,\"VALIDATE\":0,\"prefetchlag\":-1,\"poll\":100,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":8,\"newcoin\":\"OOT\",\"name\":\"OOT\",\"hasheaders\":1,\"useaddmultisig\":0,\"netmagic\":\"a75b4bad\",\"p2p\":12466,\"rpc\":12467,\"pubval\":60,\"p2shval\":85,\"wifval\":188,\"txfee_satoshis\":\"10000\",\"isPoS\":0,\"minoutput\":10000,\"minconfirms\":2,\"genesishash\":\"027e3758c3a65b12aa1046462b486d0a63bfa1beae327897f56c5cfb7daaae71\",\"protover\":170002,\"genesisblock\":\"0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2\",\"debug\":0,\"seedipaddr\":\"78.47.196.146\"}" |
@ -0,0 +1 @@ |
|||
curl --url "http://127.0.0.1:7776" --data "{\"conf\":\"VOTE2018.conf\",\"path\":\"${HOME#"/"}/.komodo/VOTE2018\",\"unitval\":\"20\",\"zcash\":1,\"RELAY\":-1,\"VALIDATE\":0,\"prefetchlag\":-1,\"poll\":100,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":8,\"newcoin\":\"VOTE2018\",\"name\":\"VOTE2018\",\"hasheaders\":1,\"useaddmultisig\":0,\"netmagic\":\"e6f918ae\",\"p2p\":15487,\"rpc\":15488,\"pubval\":60,\"p2shval\":85,\"wifval\":188,\"txfee_satoshis\":\"10000\",\"isPoS\":0,\"minoutput\":10000,\"minconfirms\":2,\"genesishash\":\"027e3758c3a65b12aa1046462b486d0a63bfa1beae327897f56c5cfb7daaae71\",\"protover\":170002,\"genesisblock\":\"0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2\",\"debug\":0,\"seedipaddr\":\"78.47.196.146\"}" |
@ -0,0 +1,2 @@ |
|||
curl --url "http://127.0.0.1:7776" --data "{\"conf\":\"VOTE.conf\",\"path\":\"${HOME#"/"}/.komodo/VOTE\",\"unitval\":\"20\",\"zcash\":1,\"RELAY\":-1,\"VALIDATE\":0,\"prefetchlag\":-1,\"poll\":100,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":8,\"newcoin\":\"VOTE\",\"name\":\"VOTE\",\"hasheaders\":1,\"useaddmultisig\":0,\"netmagic\":\"c29923dc\",\"p2p\":8011,\"rpc\":8012,\"pubval\":60,\"p2shval\":85,\"wifval\":188,\"txfee_satoshis\":\"10000\",\"isPoS\":0,\"minoutput\":10000,\"minconfirms\":2,\"genesishash\":\"027e3758c3a65b12aa1046462b486d0a63bfa1beae327897f56c5cfb7daaae71\",\"protover\":170002,\"genesisblock\":\"0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2\",\"debug\":0,\"seedipaddr\":\"78.47.196.146\"}" |
|||
|
@ -1,7 +1,17 @@ |
|||
@echo off |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":null,\"method\":\"enable\",\"coin\":\" \"}" -s > userpass.json |
|||
for /f "tokens=2 delims=:," %%a in (' find "userpass" "userpass.json" ') do ( |
|||
rem first time call to any method after started markemaker will return default userpass 1d8b27b21efabcd96571cd56f91a40fb9aa4cc623d273c63bf9223dc6f8cd81f |
|||
rem by-default userpass is 1d8b27b21efabcd96571cd56f91a40fb9aa4cc623d273c63bf9223dc6f8cd81f from "default" passphrase |
|||
|
|||
rem first time call to marketmaker don't return anything now, so we disable it |
|||
rem curl --url "http://127.0.0.1:7783" --data "{\"userpass\":null,\"method\":\"enable\",\"coin\":\"\"}" -s > default_userpass.json |
|||
rem curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"1d8b27b21efabcd96571cd56f91a40fb9aa4cc623d273c63bf9223dc6f8cd81f\",\"method\":\"hello\"}" -s > default_userpass.json |
|||
|
|||
rem echo - First time call to MM API finished, default userpass received |
|||
set /p PASSPHRASE=<passphrase |
|||
echo - Pushing passphrase to login |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"1d8b27b21efabcd96571cd56f91a40fb9aa4cc623d273c63bf9223dc6f8cd81f\",\"method\":\"passphrase\",\"passphrase\":\"%PASSPHRASE%\",\"gui\":\"nogui\"}" -s > userpass.json |
|||
echo Getting userpass related to your passphrase finished |
|||
for /f "tokens=4 delims=:," %%a in (' find "userpass" "userpass.json" ') do ( |
|||
echo UserPass: %%~a |
|||
echo %%~a > userpass |
|||
) |
|||
del userpass.json |
Binary file not shown.
@ -0,0 +1,7 @@ |
|||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
|||
add_executable(marketmaker mm.c) |
|||
include_directories(../../crypto777) |
|||
target_sources(marketmaker PRIVATE ../mini-gmp.c) |
|||
target_sources(marketmaker PRIVATE ../groestl.c) |
|||
target_sources(marketmaker PRIVATE ../segwit_addr.c) |
|||
target_link_libraries(marketmaker PRIVATE nanomsg curl pthread m libcrypto777 libjpeg libsecp256k1 "-Wl,--allow-multiple-definition" etomiclib) |
@ -0,0 +1,406 @@ |
|||
|
|||
/******************************************************************************
|
|||
* Copyright © 2014-2017 The SuperNET Developers. * |
|||
* * |
|||
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * |
|||
* the top-level directory of this distribution for the individual copyright * |
|||
* holder information and the developer policies on copyright and licensing. * |
|||
* * |
|||
* Unless otherwise agreed in a custom licensing agreement, no part of the * |
|||
* SuperNET software, including this file may be copied, modified, propagated * |
|||
* or distributed except according to the terms contained in the LICENSE file * |
|||
* * |
|||
* Removal or modification of this copyright notice is prohibited. * |
|||
* * |
|||
******************************************************************************/ |
|||
//
|
|||
// LP_etomic.c
|
|||
// marketmaker
|
|||
//
|
|||
|
|||
//
|
|||
// Created by artem on 24.01.18.
|
|||
//
|
|||
#include "etomicswap/etomiclib.h" |
|||
#include "etomicswap/etomiccurl.h" |
|||
#include <inttypes.h> |
|||
|
|||
char *LP_etomicalice_send_payment(struct basilisk_swap *swap) |
|||
{ |
|||
AliceSendsEthPaymentInput input; AliceSendsErc20PaymentInput input20; BasicTxData txData; |
|||
|
|||
// set input and txData fields from the swap data structure
|
|||
memset(&txData,0,sizeof(txData)); |
|||
if ( strcmp(swap->I.alicestr,"ETH") == 0 ) |
|||
{ |
|||
memset(&input,0,sizeof(input)); |
|||
strcpy(input.bobAddress, swap->I.etomicsrc); |
|||
uint8arrayToHex(input.bobHash, swap->I.secretBn, 20); |
|||
uint8arrayToHex(input.aliceHash, swap->I.secretAm, 20); |
|||
uint8arrayToHex(input.dealId, swap->alicepayment.I.actualtxid.bytes, 32); |
|||
|
|||
strcpy(txData.from, swap->I.etomicdest); |
|||
strcpy(txData.to, ETOMIC_ALICECONTRACT); |
|||
satoshisToWei(txData.amount, swap->I.alicesatoshis); |
|||
uint8arrayToHex(txData.secretKey, swap->persistent_privkey.bytes, 32); |
|||
|
|||
return(aliceSendsEthPayment(input,txData)); |
|||
} |
|||
else |
|||
{ |
|||
memset(&input20,0,sizeof(input20)); |
|||
strcpy(input20.bobAddress, swap->I.etomicdest); |
|||
uint8arrayToHex(input20.bobHash, swap->I.secretBn, 20); |
|||
uint8arrayToHex(input20.aliceHash, swap->I.secretAm, 20); |
|||
uint8arrayToHex(input20.dealId, swap->alicepayment.utxotxid.bytes, 32); |
|||
strcpy(input20.tokenAddress, swap->I.alicetomic); |
|||
satoshisToWei(input20.amount, swap->I.alicesatoshis); |
|||
|
|||
strcpy(txData.from, swap->I.etomicsrc); |
|||
strcpy(txData.to, ETOMIC_ALICECONTRACT); |
|||
strcpy(txData.amount, "0"); |
|||
uint8arrayToHex(txData.secretKey, swap->persistent_privkey.bytes, 32); |
|||
return(aliceSendsErc20Payment(input20,txData)); |
|||
} |
|||
} |
|||
|
|||
char *LP_etomicalice_reclaims_payment(struct LP_swap_remember *swap) |
|||
{ |
|||
AliceReclaimsAlicePaymentInput input; |
|||
BasicTxData txData; |
|||
memset(&txData,0,sizeof(txData)); |
|||
memset(&input,0,sizeof(input)); |
|||
|
|||
struct iguana_info *ecoin; |
|||
bits256 privkey; |
|||
ecoin = LP_coinfind("ETOMIC"); |
|||
privkey = LP_privkey(ecoin->symbol, ecoin->smartaddr, ecoin->taddr); |
|||
|
|||
uint8arrayToHex(input.dealId, swap->txids[BASILISK_ALICEPAYMENT].bytes, 32); |
|||
satoshisToWei(input.amount, swap->values[BASILISK_ALICEPAYMENT]); |
|||
|
|||
if (swap->alicetomic[0] != 0) { |
|||
strcpy(input.tokenAddress, swap->alicetomic); |
|||
} else { |
|||
strcpy(input.tokenAddress, "0x0000000000000000000000000000000000000000"); |
|||
} |
|||
strcpy(input.bobAddress, swap->etomicdest); |
|||
uint8arrayToHex(input.aliceHash, swap->secretAm, 20); |
|||
bits256 invertedSecret; |
|||
int32_t i; |
|||
for (i=0; i<32; i++) { |
|||
invertedSecret.bytes[i] = swap->privBn.bytes[31 - i]; |
|||
} |
|||
uint8arrayToHex(input.bobSecret, invertedSecret.bytes, 32); |
|||
|
|||
strcpy(txData.from, swap->etomicsrc); |
|||
strcpy(txData.to, ETOMIC_ALICECONTRACT); |
|||
strcpy(txData.amount, "0"); |
|||
uint8arrayToHex(txData.secretKey, privkey.bytes, 32); |
|||
return aliceReclaimsAlicePayment(input, txData); |
|||
} |
|||
|
|||
char *LP_etomicbob_spends_alice_payment(struct LP_swap_remember *swap) |
|||
{ |
|||
BobSpendsAlicePaymentInput input; |
|||
BasicTxData txData; |
|||
|
|||
memset(&txData,0,sizeof(txData)); |
|||
memset(&input,0,sizeof(input)); |
|||
|
|||
struct iguana_info *ecoin; |
|||
bits256 privkey; |
|||
ecoin = LP_coinfind("ETOMIC"); |
|||
privkey = LP_privkey(ecoin->symbol, ecoin->smartaddr, ecoin->taddr); |
|||
|
|||
uint8arrayToHex(input.dealId, swap->txids[BASILISK_ALICEPAYMENT].bytes, 32); |
|||
satoshisToWei(input.amount, swap->destamount); |
|||
|
|||
if (swap->alicetomic[0] != 0) { |
|||
strcpy(input.tokenAddress, swap->alicetomic); |
|||
} else { |
|||
strcpy(input.tokenAddress, "0x0000000000000000000000000000000000000000"); |
|||
} |
|||
|
|||
strcpy(input.aliceAddress, swap->etomicdest); |
|||
bits256 invertedSecret; int32_t i; |
|||
for (i=0; i<32; i++) { |
|||
invertedSecret.bytes[i] = swap->privAm.bytes[31 - i]; |
|||
} |
|||
uint8arrayToHex(input.aliceSecret, invertedSecret.bytes, 32); |
|||
uint8arrayToHex(input.bobHash, swap->secretBn, 20); |
|||
|
|||
strcpy(txData.from, swap->etomicsrc); |
|||
strcpy(txData.to, ETOMIC_ALICECONTRACT); |
|||
strcpy(txData.amount, "0"); |
|||
uint8arrayToHex(txData.secretKey, privkey.bytes, 32); |
|||
return bobSpendsAlicePayment(input, txData); |
|||
} |
|||
|
|||
char *LP_etomicbob_sends_deposit(struct basilisk_swap *swap) |
|||
{ |
|||
BobSendsEthDepositInput input; |
|||
BobSendsErc20DepositInput input20; |
|||
BasicTxData txData; |
|||
memset(&txData,0,sizeof(txData)); |
|||
memset(&input,0,sizeof(input)); |
|||
memset(&input20,0,sizeof(input20)); |
|||
if ( strcmp(swap->I.bobstr,"ETH") == 0 ) { |
|||
uint8arrayToHex(input.depositId, swap->bobdeposit.I.actualtxid.bytes, 32); |
|||
strcpy(input.aliceAddress, swap->I.etomicdest); |
|||
uint8arrayToHex(input.bobHash, swap->I.secretBn, 20); |
|||
|
|||
strcpy(txData.from, swap->I.etomicsrc); |
|||
strcpy(txData.to, ETOMIC_BOBCONTRACT); |
|||
satoshisToWei(txData.amount, swap->bobdeposit.I.amount); |
|||
uint8arrayToHex(txData.secretKey, swap->persistent_privkey.bytes, 32); |
|||
return bobSendsEthDeposit(input, txData); |
|||
} else { |
|||
uint8arrayToHex(input20.depositId, swap->bobdeposit.I.actualtxid.bytes, 32); |
|||
strcpy(input20.aliceAddress, swap->I.etomicdest); |
|||
uint8arrayToHex(input20.bobHash, swap->I.secretBn, 20); |
|||
satoshisToWei(input20.amount, swap->bobdeposit.I.amount); |
|||
strcpy(input20.tokenAddress, swap->I.bobtomic); |
|||
|
|||
strcpy(txData.from, swap->I.etomicsrc); |
|||
strcpy(txData.to, ETOMIC_BOBCONTRACT); |
|||
strcpy(txData.amount, "0"); |
|||
uint8arrayToHex(txData.secretKey, swap->persistent_privkey.bytes, 32); |
|||
return bobSendsErc20Deposit(input20, txData); |
|||
} |
|||
} |
|||
|
|||
char *LP_etomicbob_refunds_deposit(struct LP_swap_remember *swap) |
|||
{ |
|||
BobRefundsDepositInput input; |
|||
BasicTxData txData; |
|||
memset(&txData,0,sizeof(txData)); |
|||
memset(&input,0,sizeof(input)); |
|||
|
|||
struct iguana_info *ecoin; |
|||
bits256 privkey; |
|||
ecoin = LP_coinfind("ETOMIC"); |
|||
privkey = LP_privkey(ecoin->symbol, ecoin->smartaddr, ecoin->taddr); |
|||
|
|||
EthTxReceipt receipt = getEthTxReceipt(swap->bobDepositEthTx); |
|||
uint8arrayToHex(input.depositId, swap->txids[BASILISK_BOBDEPOSIT].bytes, 32); |
|||
strcpy(input.aliceAddress, swap->etomicdest); |
|||
sprintf(input.aliceCanClaimAfter, "%" PRIu64, receipt.blockNumber + 960); |
|||
|
|||
bits256 invertedSecret; |
|||
int32_t i; |
|||
for (i=0; i<32; i++) { |
|||
invertedSecret.bytes[i] = swap->privBn.bytes[31 - i]; |
|||
} |
|||
uint8arrayToHex(input.bobSecret, invertedSecret.bytes, 32); |
|||
|
|||
if (swap->bobtomic[0] != 0) { |
|||
strcpy(input.tokenAddress, swap->bobtomic); |
|||
} else { |
|||
strcpy(input.tokenAddress, "0x0000000000000000000000000000000000000000"); |
|||
} |
|||
satoshisToWei(input.amount, swap->values[BASILISK_BOBDEPOSIT]); |
|||
|
|||
strcpy(txData.from, swap->etomicsrc); |
|||
strcpy(txData.to, ETOMIC_BOBCONTRACT); |
|||
strcpy(txData.amount, "0"); |
|||
uint8arrayToHex(txData.secretKey, privkey.bytes, 32); |
|||
return bobRefundsDeposit(input, txData); |
|||
} |
|||
|
|||
char *LP_etomicbob_sends_payment(struct basilisk_swap *swap) |
|||
{ |
|||
BobSendsEthPaymentInput input; |
|||
BobSendsErc20PaymentInput input20; |
|||
BasicTxData txData; |
|||
memset(&txData,0,sizeof(txData)); |
|||
memset(&input,0,sizeof(input)); |
|||
memset(&input20,0,sizeof(input20)); |
|||
|
|||
if ( strcmp(swap->I.bobstr,"ETH") == 0 ) { |
|||
uint8arrayToHex(input.paymentId, swap->bobpayment.I.actualtxid.bytes, 32); |
|||
strcpy(input.aliceAddress, swap->I.etomicdest); |
|||
uint8arrayToHex(input.aliceHash, swap->I.secretAm, 20); |
|||
|
|||
strcpy(txData.from, swap->I.etomicsrc); |
|||
strcpy(txData.to, ETOMIC_BOBCONTRACT); |
|||
satoshisToWei(txData.amount, swap->bobpayment.I.amount); |
|||
uint8arrayToHex(txData.secretKey, swap->persistent_privkey.bytes, 32); |
|||
return bobSendsEthPayment(input, txData); |
|||
} else { |
|||
uint8arrayToHex(input20.paymentId, swap->bobpayment.I.actualtxid.bytes, 32); |
|||
strcpy(input20.aliceAddress, swap->I.etomicdest); |
|||
uint8arrayToHex(input20.aliceHash, swap->I.secretAm, 20); |
|||
satoshisToWei(input20.amount, swap->bobpayment.I.amount); |
|||
strcpy(input20.tokenAddress, swap->I.bobtomic); |
|||
|
|||
strcpy(txData.from, swap->I.etomicsrc); |
|||
strcpy(txData.to, ETOMIC_BOBCONTRACT); |
|||
strcpy(txData.amount, "0"); |
|||
uint8arrayToHex(txData.secretKey, swap->persistent_privkey.bytes, 32); |
|||
return bobSendsErc20Payment(input20, txData); |
|||
} |
|||
} |
|||
|
|||
char *LP_etomicbob_reclaims_payment(struct LP_swap_remember *swap) |
|||
{ |
|||
BobReclaimsBobPaymentInput input; |
|||
BasicTxData txData; |
|||
memset(&txData,0,sizeof(txData)); |
|||
memset(&input,0,sizeof(input)); |
|||
|
|||
struct iguana_info *ecoin; |
|||
bits256 privkey; |
|||
ecoin = LP_coinfind("ETOMIC"); |
|||
privkey = LP_privkey(ecoin->symbol, ecoin->smartaddr, ecoin->taddr); |
|||
|
|||
EthTxReceipt receipt = getEthTxReceipt(swap->bobPaymentEthTx); |
|||
uint8arrayToHex(input.paymentId, swap->txids[BASILISK_BOBPAYMENT].bytes, 32); |
|||
strcpy(input.aliceAddress, swap->etomicdest); |
|||
sprintf(input.bobCanClaimAfter, "%" PRIu64, receipt.blockNumber + 480); |
|||
uint8arrayToHex(input.aliceHash, swap->secretAm, 20); |
|||
|
|||
if (swap->bobtomic[0] != 0) { |
|||
strcpy(input.tokenAddress, swap->bobtomic); |
|||
} else { |
|||
strcpy(input.tokenAddress, "0x0000000000000000000000000000000000000000"); |
|||
} |
|||
satoshisToWei(input.amount, swap->values[BASILISK_BOBPAYMENT]); |
|||
|
|||
strcpy(txData.from, swap->etomicsrc); |
|||
strcpy(txData.to, ETOMIC_BOBCONTRACT); |
|||
strcpy(txData.amount, "0"); |
|||
uint8arrayToHex(txData.secretKey, privkey.bytes, 32); |
|||
return bobReclaimsBobPayment(input, txData); |
|||
} |
|||
|
|||
char *LP_etomicalice_spends_bob_payment(struct LP_swap_remember *swap) |
|||
{ |
|||
AliceSpendsBobPaymentInput input; |
|||
BasicTxData txData; |
|||
|
|||
memset(&txData,0,sizeof(txData)); |
|||
memset(&input,0,sizeof(input)); |
|||
EthTxReceipt receipt = getEthTxReceipt(swap->bobPaymentEthTx); |
|||
|
|||
struct iguana_info *ecoin; |
|||
bits256 privkey; |
|||
ecoin = LP_coinfind("ETOMIC"); |
|||
privkey = LP_privkey(ecoin->symbol, ecoin->smartaddr, ecoin->taddr); |
|||
|
|||
uint8arrayToHex(input.paymentId, swap->txids[BASILISK_BOBPAYMENT].bytes, 32); |
|||
satoshisToWei(input.amount, swap->values[BASILISK_BOBPAYMENT]); |
|||
sprintf(input.bobCanClaimAfter, "%" PRIu64, receipt.blockNumber + 480); |
|||
|
|||
if (swap->bobtomic[0] != 0) { |
|||
strcpy(input.tokenAddress, swap->bobtomic); |
|||
} else { |
|||
strcpy(input.tokenAddress, "0x0000000000000000000000000000000000000000"); |
|||
} |
|||
|
|||
strcpy(input.bobAddress, swap->etomicsrc); |
|||
bits256 invertedSecret; int32_t i; |
|||
|
|||
for (i=0; i<32; i++) { |
|||
invertedSecret.bytes[i] = swap->privAm.bytes[31 - i]; |
|||
} |
|||
uint8arrayToHex(input.aliceSecret, invertedSecret.bytes, 32); |
|||
|
|||
strcpy(txData.from, swap->etomicdest); |
|||
strcpy(txData.to, ETOMIC_BOBCONTRACT); |
|||
strcpy(txData.amount, "0"); |
|||
uint8arrayToHex(txData.secretKey, privkey.bytes, 32); |
|||
return aliceSpendsBobPayment(input, txData); |
|||
} |
|||
|
|||
char *LP_etomicalice_claims_bob_deposit(struct LP_swap_remember *swap) |
|||
{ |
|||
AliceClaimsBobDepositInput input; |
|||
BasicTxData txData; |
|||
|
|||
memset(&txData,0,sizeof(txData)); |
|||
memset(&input,0,sizeof(input)); |
|||
EthTxReceipt receipt = getEthTxReceipt(swap->bobDepositEthTx); |
|||
|
|||
struct iguana_info *ecoin; |
|||
bits256 privkey; |
|||
ecoin = LP_coinfind("ETOMIC"); |
|||
privkey = LP_privkey(ecoin->symbol, ecoin->smartaddr, ecoin->taddr); |
|||
|
|||
uint8arrayToHex(input.depositId, swap->txids[BASILISK_BOBDEPOSIT].bytes, 32); |
|||
satoshisToWei(input.amount, swap->values[BASILISK_BOBDEPOSIT]); |
|||
sprintf(input.aliceCanClaimAfter, "%" PRIu64, receipt.blockNumber + 960); |
|||
|
|||
if (swap->bobtomic[0] != 0) { |
|||
strcpy(input.tokenAddress, swap->bobtomic); |
|||
} else { |
|||
strcpy(input.tokenAddress, "0x0000000000000000000000000000000000000000"); |
|||
} |
|||
|
|||
strcpy(input.bobAddress, swap->etomicsrc); |
|||
uint8arrayToHex(input.bobHash, swap->secretBn, 20); |
|||
|
|||
strcpy(txData.from, swap->etomicdest); |
|||
strcpy(txData.to, ETOMIC_BOBCONTRACT); |
|||
strcpy(txData.amount, "0"); |
|||
uint8arrayToHex(txData.secretKey, privkey.bytes, 32); |
|||
return aliceClaimsBobDeposit(input, txData); |
|||
} |
|||
|
|||
char *sendEthTx(struct basilisk_swap *swap, struct basilisk_rawtx *rawtx) |
|||
{ |
|||
if (rawtx == &swap->alicepayment && swap->I.alicetomic[0] != 0) { |
|||
return LP_etomicalice_send_payment(swap); |
|||
} else if (rawtx == &swap->bobdeposit && swap->I.bobtomic[0] != 0) { |
|||
return LP_etomicbob_sends_deposit(swap); |
|||
} else if (rawtx == &swap->bobpayment && swap->I.bobtomic[0] != 0) { |
|||
return LP_etomicbob_sends_payment(swap); |
|||
} else { |
|||
char *result = malloc(67); |
|||
strcpy(result, "0x0000000000000000000000000000000000000000000000000000000000000000"); |
|||
return result; |
|||
} |
|||
} |
|||
|
|||
int32_t LP_etomic_priv2addr(char *coinaddr,bits256 privkey) |
|||
{ |
|||
char str[65],*addrstr; |
|||
bits256_str(str,privkey); |
|||
if ( (addrstr= privKey2Addr(str)) != 0 ) |
|||
{ |
|||
strcpy(coinaddr,addrstr); |
|||
free(addrstr); |
|||
return(0); |
|||
} |
|||
return(-1); |
|||
} |
|||
|
|||
int32_t LP_etomic_priv2pub(uint8_t *pub64,bits256 privkey) |
|||
{ |
|||
char *pubstr,str[72]; int32_t retval = -1; |
|||
bits256_str(str,privkey); |
|||
if ( (pubstr= getPubKeyFromPriv(str)) != 0 ) |
|||
{ |
|||
if ( strlen(pubstr) == 130 && pubstr[0] == '0' && pubstr[1] == 'x' ) |
|||
{ |
|||
decode_hex(pub64,64,pubstr+2); |
|||
retval = 0; |
|||
} |
|||
free(pubstr); |
|||
} |
|||
return(retval); |
|||
} |
|||
|
|||
int32_t LP_etomic_pub2addr(char *coinaddr,uint8_t pub64[64]) |
|||
{ |
|||
char pubkeystr[131],*addrstr; |
|||
strcpy(pubkeystr,"0x"); |
|||
init_hexbytes_noT(pubkeystr+2,pub64,64); |
|||
if ( (addrstr= pubKey2Addr(pubkeystr)) != 0 ) |
|||
{ |
|||
strcpy(coinaddr,addrstr); |
|||
free(addrstr); |
|||
return(0); |
|||
} |
|||
return(-1); |
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue